SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2507.09305 · ICCV · 2025

DAA * : Deep Angular A Star for Image-based Path Planning

Zhiwei Xu

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 4 failures of our instrument; 0 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2507.09305.json · badge: /api/ran/2507.09305.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
AIRI-Institute/TransPath community
Papers with Code archive
6 ran · 0 no recorded run
FunctionStatusWhere it lives
AstarOutput Ran
ran on a synthesized input · constructed an object; no result was computed
AIRI-Institute/TransPath/modules/planners.py
code served (permissive licence) · get_code("b3a2b62ff97bac01")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, AstarOutput: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from dataclasses import dataclass
from typing import Optional, List

torch.manual_seed(0)

@dataclass
class AstarOutput:
    """
    Output structure of A* search planners
    """
    histories: torch.tensor
    paths: torch.tensor
    intermediate_results: Optional[List[dict]] = None
    g: Optional[torch.tensor] = None


# Construct tiny valid tensors
histories = torch.randn(2, 4)  # batch=2, dim=4
paths = torch.randn(2, 3)      # batch=2, different dim=3

# Construct optional intermediate results
intermediate_results = [
    {"step": 0, "cost": 1.5},
    {"step": 1, "cost": 2.3}
]

# Construct optional g tensor
g = torch.randn(2, 5)  # batch=2, different dim=5

ARGS = {
    "histories": histories,
    "paths": paths,
    "intermediate_results": intermediate_results,
    "g": g
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type AstarOutput — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a AstarOutput output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
DifferentiableDiagAstar Ran
ran on a synthesized input · constructed an object; no result was computed
AIRI-Institute/TransPath/modules/planners.py
code served (permissive licence) · get_code("4264be6bd890d108")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, DifferentiableDiagAstar: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'g_ratio': 0.5,
    'Tmax': 0.95,
    'h_w': 1,
    'f_w': 2,
    'mode': 'default'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DifferentiableDiagAstar — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a DifferentiableDiagAstar output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
_st_softmax_noexp Ran
ran; our contract draft was wrong, not the code
AIRI-Institute/TransPath/modules/planners.py
code served (permissive licence) · get_code("5521a29b2837d96f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small tensor with batch size 2 and flattened dimension 4
# The function reshapes to (batch_size, -1), so we need a tensor that can be reshaped appropriately
val = torch.randn(2, 4, requires_grad=True)

ARGS = {
    "val": val
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
backtrack Ran
ran; our contract draft was wrong, not the code
AIRI-Institute/TransPath/modules/planners.py
code served (permissive licence) · get_code("5b8ddb72b6fa827f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family int, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct valid arguments for the backtrack function
# The function expects:
# - start_maps: one-hot matrices for start locations, shape (num_samples, height*width)
# - goal_maps: one-hot matrices for goal locations, shape (num_samples, height*width)
# - parents: parent node indices for backtracking, shape (num_samples, height*width)
# - current_t: integer representing current time step

num_samples = 2
spatial_dim = 4  # height * width = 4
max_loc_value = 3  # valid indices 0-3

# Create start_maps: one-hot encoded start locations
start_maps = torch.zeros(num_samples, spatial_dim)
start_maps[0, 0] = 1  # sample 0 starts at location 0
start_maps[1, 1] = 1  # sample 1 starts at location 1

# Create goal_maps: one-hot encoded goal locations
goal_maps = torch.zeros(num_samples, spatial_dim)
goal_maps[0, 2] = 1  # sample 0 goal at location 2
goal_maps[1, 3] = 1  # sample 1 goal at location 3

# Create parents: parent node indices for each location
# Shape (num_samples, spatial_dim)
# Each entry indicates which location is the parent in the search tree
parents = torch.tensor([
    [0, 0, 1, 2],  # sample 0: locations lead back following this path
    [1, 1, 0, 2]   # sample 1: locations lead back following this path
], dtype=torch.float32)

# current_t: number of time steps to backtrack
current_t = 2

ARGS = {
    'start_maps': start_maps,
    'goal_maps': goal_maps,
    'parents': parents,
    'current_t': current_t
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family int, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
expand Ran
ran; our contract draft was wrong, not the code
AIRI-Institute/TransPath/modules/planners.py
code served (permissive licence) · get_code("c4c06ef95d9cd34e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (2, 4, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# x should be a 2D tensor representing selected nodes
# Based on the function, it gets unsqueezed to 3D, so it should be (num_samples, height, width)
x = torch.randn(2, 4, 3)

# neighbor_filter should be a 4D tensor for conv2d
# Shape: (out_channels, in_channels/groups, kernel_h, kernel_w)
# Since groups=num_samples and num_samples=2, we need:
# out_channels=2, in_channels=1 (per group), kernel_h=3, kernel_w=3
neighbor_filter = torch.randn(2, 1, 3, 3)

ARGS = {
    "x": x,
    "neighbor_filter": neighbor_filter,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 4, 3) — shape (2, 4, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_diag_heuristic Ran
ran; our contract draft was wrong, not the code
AIRI-Institute/TransPath/modules/planners.py
code served (permissive licence) · get_code("a7da0321208c23fa")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (2, 4, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# goal_maps should be a tensor with shape (num_samples, size, size)
# where num_samples is batch dimension and size is the spatial dimension
# The function uses goal_maps to compute weighted locations and heuristic values
goal_maps = torch.rand(2, 4, 4)

ARGS = {
    "goal_maps": goal_maps
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 4, 4) — shape (2, 4, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Path smoothness is often overlooked in path imitation learning from expert demonstrations. In this paper, we introduce a novel learning method, termed deep angular A * (DAA * ), by incorporating the proposed path angular freedom (PAF) into A * to improve path similarity through adaptive path smoothness. The PAF aims to explore the effect of move angles on path node expansion by finding the trade-off between their minimum and maximum values, allowing for high adaptiveness for imitation learning. DAA * improves path optimality by closely aligning with the reference path through joint optimization of path shortening and smoothing, which correspond to heuristic distance and PAF, respectively. Throughout comprehensive evaluations on 7 datasets, including 4 maze datasets, 2 video-game datasets, and a real-world drone-view dataset containing 2 scenarios, we demonstrate remarkable improvements of our DAA * over neural A * in path similarity between the predicted and reference paths with a shorter path length when the shortest path is plausible, improving by 9.0% SPR, 6.9% ASIM, and 3.9% PSIM. Furthermore, when jointly learning pathfinding with both path loss and path probability map loss, DAA * significantly outperforms the state-of-theart TransPath by 6.3% SPR, 6.0% PSIM, and 3.7% ASIM. We also discuss the minor trade-off between path optimality and search efficiency where applicable.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2507.09305")
get_code_for_paper("2507.09305")
have("2507.09305")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2507.09305.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2507.09305.svg)](https://syntology.ai/paper/2507.09305)

Connect an agent — have() is free.