SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · aaai_28597 · AAAI · 2024

NavGPT: Explicit Reasoning in Vision-and-Language Navigation with Large Language Models

Qi Wu, Yicong Hong, Gengze Zhou

Open in the Atlas

Code that ran

10 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 2 violated it and 2 have no contract verdict; 5 failures of our instrument; 4 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/aaai_28597.json · badge: /api/ran/aaai_28597.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
GengzeZhou/NavGPT canonical (classifier label)
classifier basis: census
10 ran · 4 no recorded run
FunctionStatusWhere it lives
angle_feature Ran
ran, honoured the contract we drafted
GengzeZhou/NavGPT/nav_src/utils/data.py
code served (permissive licence) · get_code("0017f5b37e73d929")
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) and returned ndarray, ndim 1, dtype family float, shape (8,) 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 math
import numpy as np

# The function takes three parameters:
# - heading: a numeric value (angle in radians)
# - elevation: a numeric value (angle in radians)
# - angle_feat_size: an integer that should be divisible by 4

ARGS = {
    "heading": 0.5,  # A sample heading angle in radians
    "elevation": 0.3,  # A sample elevation angle in radians
    "angle_feat_size": 8  # Must be divisible by 4 to work properly with the function
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (8,) — shape (8,) 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
cal_cls Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
GengzeZhou/NavGPT/nav_src/eval_utils.py
code served (permissive licence) · get_code("cbef633255b01324")
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 float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np

# Create a small shortest_distances matrix
# This is a distance matrix between nodes, so we need it to be square and symmetric
shortest_distances = np.array([
    [0.0, 1.5, 2.0, 3.5],
    [1.5, 0.0, 1.2, 2.1],
    [2.0, 1.2, 0.0, 1.8],
    [3.5, 2.1, 1.8, 0.0]
])

# prediction is a sequence of node indices
prediction = [0, 1, 2, 3]

# reference is a sequence of node indices
reference = [0, 2, 3, 1]

# threshold is already provided as a default parameter (3.0)
threshold = 3.0

ARGS = {
    "shortest_distances": shortest_distances,
    "prediction": prediction,
    "reference": reference,
    "threshold": threshold
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
cal_dtw Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
GengzeZhou/NavGPT/nav_src/eval_utils.py
code served (permissive licence) · get_code("7ada68c978baa7c9")
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 dict. 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 numpy as np

# Create shortest_distances: a square matrix representing distances between points
# The function indexes this as shortest_distances[prediction[i]][reference[j]]
# So we need it to be indexable by integers
n_points = 5
shortest_distances = np.random.rand(n_points, n_points)

# Create prediction: a sequence of indices into shortest_distances
prediction = np.array([0, 1, 2, 3], dtype=int)

# Create reference: another sequence of indices into shortest_distances
reference = np.array([0, 2, 4], dtype=int)

# Create success: optional parameter, can be None or a float
success = None

# Create threshold: a float parameter
threshold = 3.0

ARGS = {
    'shortest_distances': shortest_distances,
    'prediction': prediction,
    'reference': reference,
    'success': success,
    'threshold': threshold
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
calc_position_distance Ran
ran, violated the contract we drafted
GengzeZhou/NavGPT/nav_src/utils/graph_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from cshizhe/vln-duet, is pointer only (licence: NONE) · get_code("c362aaed2935ceff")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from cshizhe/vln-duet, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calculate_vp_rel_pos_fts Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
GengzeZhou/NavGPT/nav_src/utils/graph_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from cshizhe/vln-duet, is pointer only (licence: NONE) · get_code("168e35f8ed1ad0ce")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from cshizhe/vln-duet, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_angle_fts Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
GengzeZhou/NavGPT/nav_src/utils/graph_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from cshizhe/vln-duet, is pointer only (licence: NONE) · get_code("dac1993f5ce8e12e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from cshizhe/vln-duet, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

is_default_gpu Ran
ran, violated the contract we drafted
GengzeZhou/NavGPT/nav_src/utils/distributed.py
pointer only (licence: MIT); the stored copy get_code serves, from expectorlin/navcot, is pointer only (licence: NONE) · get_code("34472603c7e3ebfc")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from expectorlin/navcot, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_instr_datasets Ran
ran on a synthesized input
GengzeZhou/NavGPT/nav_src/data_utils.py
code served (permissive licence) · get_code("9edaa36d372150dd")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 os
import json
import tempfile
import shutil

# Create a temporary directory for test data
temp_dir = tempfile.mkdtemp()

# Create sample JSON files for different splits
splits_data = {
    'train': [
        {'id': 1, 'instruction': 'do something', 'data': [1, 2, 3]},
        {'id': 2, 'instruction': 'do another thing', 'data': [4, 5, 6]}
    ],
    'val': [
        {'id': 3, 'instruction': 'validate this', 'data': [7, 8, 9]}
    ],
    'test': [
        {'id': 4, 'instruction': 'test this', 'data': [10, 11, 12]}
    ]
}

# Write JSON files to temp directory
for split, data in splits_data.items():
    filepath = os.path.join(temp_dir, f'{split}.json')
    with open(filepath, 'w') as f:
        json.dump(data, f)

# Define ARGS
ARGS = {
    'anno_dir': temp_dir,
    'dataset': 'test_dataset',
    'splits': ['train', 'val', 'test']
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
load_nav_graphs Ran
ran; our contract draft was wrong, not the code
GengzeZhou/NavGPT/nav_src/utils/data.py
code served (permissive licence) · get_code("635ca59e339f7321")
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) and returned dict. 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 os
import json
import tempfile
import shutil

# Create a temporary directory for connectivity files
temp_dir = tempfile.mkdtemp()

# Create mock connectivity JSON files
scan_ids = ['scan1', 'scan2']

for scan_id in scan_ids:
    # Create a simple connectivity structure with 3 viewpoints
    connectivity_data = [
        {
            'image_id': '0',
            'included': True,
            'pose': [0, 0, 0, 0.0, 0, 0, 0, 0.0, 0, 0, 0, 0.0],
            'unobstructed': [True, True, False]
        },
        {
            'image_id': '1',
            'included': True,
            'pose': [0, 0, 0, 1.0, 0, 0, 0, 1.0, 0, 0, 0, 1.0],
            'unobstructed': [True, True, True]
        },
        {
            'image_id': '2',
            'included': True,
            'pose': [0, 0, 0, 2.0, 0, 0, 0, 0.0, 0, 0, 0, 2.0],
            'unobstructed': [False, True, True]
        }
    ]
    
    # Write connectivity file
    filepath = os.path.join(temp_dir, f'{scan_id}_connectivity.json')
    with open(filepath, 'w') as f:
        json.dump(connectivity_data, f)

ARGS = {
    'connectivity_dir': temp_dir,
    'scans': scan_ids
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
networkx, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
postprocess_args Ran
ran on a synthesized input
GengzeZhou/NavGPT/nav_src/parser.py
code served (permissive licence) · get_code("ad2d8b95b87a638c")
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 Args. 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 os
import tempfile

class Args:
    def __init__(self):
        self.root_dir = tempfile.gettempdir()
        self.output_dir = tempfile.gettempdir()

args = Args()
args.root_dir = tempfile.gettempdir()
args.output_dir = tempfile.gettempdir()

ARGS = {
    'args': args
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Args — a Args output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Args 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
construct_instrs Not yet run
unverified (harvested, no recorded run)
GengzeZhou/NavGPT/nav_src/data_utils.py
code served (permissive licence) · get_code("40c8c7f52aaec9f8")
How it ran

no invocation recorded.

init_distributed Not yet run
unverified (harvested, no recorded run)
GengzeZhou/NavGPT/nav_src/utils/distributed.py
pointer only (licence: MIT); the stored copy get_code serves, from expectorlin/navcot, is pointer only (licence: NONE) · get_code("8638e244b7ad3376")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from expectorlin/navcot, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_init_param Not yet run
unverified (harvested, no recorded run)
GengzeZhou/NavGPT/nav_src/utils/distributed.py
pointer only (licence: MIT); the stored copy get_code serves, from expectorlin/navcot, is pointer only (licence: NONE) · get_code("e04e867548dfe3e7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from expectorlin/navcot, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

new_simulator Not yet run
unverified (harvested, no recorded run)
GengzeZhou/NavGPT/nav_src/utils/data.py
code served (permissive licence) · get_code("563de8b7490cd450")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 11 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 2 later) and 3 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.

FunctionAlso present inEarliest-datedOthers named
calc_position_distance 8 other papers
4 dated earlier, 1 later, 3 same year, order not determinable
2202.11742 (2022-02)
Think Global, Act Local: Dual-scale Graph Transformer for Vision-and-Language Navigation
2307.12907 (2023-07)
GridMM: Grid Memory Map for Vision-and-Language Navigation
2308.04758 (2023-08)
Bird's-Eye-View Scene Graph for Vision-Language Navigation
and 5 more not named here
get_angle_fts 7 other papers
3 dated earlier, 1 later, 3 same year, order not determinable
2202.11742 (2022-02)
Think Global, Act Local: Dual-scale Graph Transformer for Vision-and-Language Navigation
2308.04758 (2023-08)
Bird's-Eye-View Scene Graph for Vision-Language Navigation
2312.02010 (2023-12)
Towards Learning a Generalist Model for Embodied Navigation
and 4 more not named here
calculate_vp_rel_pos_fts 6 other papers
4 dated earlier, 2 same year, order not determinable
2202.11742 (2022-02)
Think Global, Act Local: Dual-scale Graph Transformer for Vision-and-Language Navigation
2307.12907 (2023-07)
GridMM: Grid Memory Map for Vision-and-Language Navigation
2308.04758 (2023-08)
Bird's-Eye-View Scene Graph for Vision-Language Navigation
and 3 more not named here
cal_cls 2 other papers
2 same year, order not determinable
2403.07376 (2024-03)
NavCoT: Boosting LLM-Based Vision-and-Language Navigation via Learning Disentangled Reasoning
2407.12366 (2024-07)
NavGPT-2: Unleashing Navigational Reasoning Capability for Large Vision-Language Models
cal_dtw 2 other papers
2 same year, order not determinable
2403.07376 (2024-03)
NavCoT: Boosting LLM-Based Vision-and-Language Navigation via Learning Disentangled Reasoning
2407.12366 (2024-07)
NavGPT-2: Unleashing Navigational Reasoning Capability for Large Vision-Language Models
load_nav_graphs 2 other papers
1 dated earlier, 1 same year, order not determinable
2305.16986 (2023-05)
NavGPT: Explicit Reasoning in Vision-and-Language Navigation with Large Language Models
2403.07376 (2024-03)
NavCoT: Boosting LLM-Based Vision-and-Language Navigation via Learning Disentangled Reasoning
angle_feature 1 other paper
1 dated earlier
2305.16986 (2023-05)
NavGPT: Explicit Reasoning in Vision-and-Language Navigation with Large Language Models
init_distributed 1 other paper
1 same year, order not determinable
2403.07376 (2024-03)
NavCoT: Boosting LLM-Based Vision-and-Language Navigation via Learning Disentangled Reasoning
is_default_gpu 1 other paper
1 same year, order not determinable
2403.07376 (2024-03)
NavCoT: Boosting LLM-Based Vision-and-Language Navigation via Learning Disentangled Reasoning
load_init_param 1 other paper
1 same year, order not determinable
2403.07376 (2024-03)
NavCoT: Boosting LLM-Based Vision-and-Language Navigation via Learning Disentangled Reasoning
new_simulator 1 other paper
1 dated earlier
2305.16986 (2023-05)
NavGPT: Explicit Reasoning in Vision-and-Language Navigation with Large Language Models

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

Trained with an unprecedented scale of data, large language models (LLMs) like ChatGPT and GPT-4 exhibit the emergence of significant reasoning abilities from model scaling. Such a trend underscored the potential of training LLMs with unlimited language data, advancing the development of a universal embodied agent. In this work, we introduce the NavGPT, a purely LLM-based instruction-following navigation agent, to reveal the reasoning capability of GPT models in complex embodied scenes by performing zero-shot sequential action prediction for vision-and-language navigation (VLN). At each step, NavGPT takes the textual descriptions of visual observations, navigation history, and future explorable directions as inputs to reason the agent's current status, and makes the decision to approach the target. Through comprehensive experiments, we demonstrate NavGPT can explicitly perform high-level planning for navigation, including decomposing instruction into sub-goals, integrating commonsense knowledge relevant to navigation task resolution, identifying landmarks from observed scenes, tracking navigation progress, and adapting to exceptions with plan adjustment. Furthermore, we show that LLMs is capable of generating high-quality navigational instructions from observations and actions along a path, as well as drawing accurate top-down metric trajectory given the agent's navigation history. Despite the performance of using NavGPT to zeroshot R2R tasks still falling short of trained models, we suggest adapting multi-modality inputs for LLMs to use as visual navigation agents and applying the explicit reasoning of LLMs to benefit learning-based models. Code is available at: https://github.com/GengzeZhou/NavGPT.

For agents

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

get_harvested_code_for_paper("aaai_28597")
get_code_for_paper("aaai_28597")
have("aaai_28597")

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

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

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

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

Connect an agent — have() is free.