SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2110.13309 · NeurIPS · 2021

History Aware Multimodal Transformer for Vision-and-Language Navigation

Cordelia Schmid, Ivan Laptev, Shizhe Chen, Pierre-Louis Guhur

arXiv · PDF · Open in the Atlas

Code that ran

7 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 0 failures of our instrument; 8 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2110.13309.json · badge: /api/ran/2110.13309.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
cshizhe/vln-hamt community
Papers with Code archive
7 ran · 8 no recorded run
FunctionStatusWhere it lives
BertEmbeddings Ran
ran on a synthesized input · constructed an object; no result was computed
cshizhe/vln-hamt/finetune_src/models/vilmodel_cmt.py
code served (permissive licence) · get_code("43ea2bbc815e3fd5")
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, BertEmbeddings: 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 torch import nn

torch.manual_seed(0)

class Config:
    """Minimal config class with required attributes for BertEmbeddings."""
    def __init__(self):
        self.vocab_size = 100
        self.hidden_size = 4
        self.max_position_embeddings = 16
        self.type_vocab_size = 2
        self.layer_norm_eps = 1e-12
        self.hidden_dropout_prob = 0.1

config = Config()

# Create input_ids tensor: batch_size=2, seq_length=3
input_ids = torch.tensor([[1, 2, 3], [4, 5, 6]], dtype=torch.long)

ARGS = {
    "config": config,
}
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 BertEmbeddings — 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 BertEmbeddings 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
BertIntermediate Ran
ran on a synthesized input · constructed an object; no result was computed
cshizhe/vln-hamt/finetune_src/models/vilmodel_cmt.py
code served (permissive licence) · get_code("97d0724e78e93d36")
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, BertIntermediate: 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 math
import torch
from torch import nn

torch.manual_seed(0)

# Create a minimal config class with required attributes
class Config:
    def __init__(self):
        self.hidden_size = 4
        self.intermediate_size = 8
        self.hidden_act = 'gelu'

# Define ARGS dictionary
ARGS = {
    'config': Config()
}
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 BertIntermediate — 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 BertIntermediate 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
BertOutput Ran
ran on a synthesized input
cshizhe/vln-hamt/finetune_src/models/vilmodel_cmt.py
code served (permissive licence) · get_code("6c574c57986a3d21")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, 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 torch
from torch import nn

class Config:
    def __init__(self):
        self.intermediate_size = 12
        self.hidden_size = 8
        self.layer_norm_eps = 1e-12
        self.hidden_dropout_prob = 0.1

config = Config()

INIT_ARGS = {
    'config': config
}

batch_size = 2
seq_length = 5
hidden_size = config.hidden_size
intermediate_size = config.intermediate_size

hidden_states = torch.randn(batch_size, seq_length, intermediate_size)
input_tensor = torch.randn(batch_size, seq_length, hidden_size)

ARGS = {
    'hidden_states': hidden_states,
    'input_tensor': input_tensor
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
BertSelfOutput Ran
ran on a synthesized input
cshizhe/vln-hamt/finetune_src/models/vilmodel_cmt.py
code served (permissive licence) · get_code("2e4a0b2327855df3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, 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 torch
from torch import nn

class Config:
    def __init__(self):
        self.hidden_size = 8
        self.layer_norm_eps = 1e-12
        self.hidden_dropout_prob = 0.1

config = Config()

INIT_ARGS = {
    'config': config
}

batch_size = 2
seq_length = 5
hidden_size = config.hidden_size

hidden_states = torch.randn(batch_size, seq_length, hidden_size)
input_tensor = torch.randn(batch_size, seq_length, hidden_size)

ARGS = {
    'hidden_states': hidden_states,
    'input_tensor': input_tensor
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
BertXAttention Ran
ran on a synthesized input
cshizhe/vln-hamt/finetune_src/models/vilmodel_cmt.py
code served (permissive licence) · get_code("8a5135e42774f599")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned tuple. 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 math
from torch import nn

# Config for BertXAttention
config = type('Config', (), {
    'hidden_size': 4,
    'num_attention_heads': 2,
    'attention_probs_dropout_prob': 0.1,
    'layer_norm_eps': 1e-12,
    'hidden_dropout_prob': 0.1,
})()

# INIT_ARGS for BertXAttention
INIT_ARGS = {
    'config': config,
    'ctx_dim': 3,  # distinct from hidden_size
}

# ARGS for BertXAttention.forward
batch_size = 2
seq_len = 5
input_tensor = torch.randn(batch_size, seq_len, config.hidden_size)
ctx_tensor = torch.randn(batch_size, seq_len, INIT_ARGS['ctx_dim'])
ctx_att_mask = torch.zeros(batch_size, 1, 1, seq_len)  # broadcastable mask

ARGS = {
    'input_tensor': input_tensor,
    'ctx_tensor': ctx_tensor,
    'ctx_att_mask': ctx_att_mask,
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ImageEmbeddings Ran
ran on a synthesized input
cshizhe/vln-hamt/finetune_src/models/vilmodel_cmt.py
code served (permissive licence) · get_code("cb7d5749c6b79a1b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, 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 torch
from torch import nn

class Config:
    def __init__(self):
        self.image_feat_size = 7
        self.angle_feat_size = 5
        self.hidden_size = 8
        self.hidden_dropout_prob = 0.1

config = Config()

INIT_ARGS = {
    'config': config
}

batch_size = 2
seq_len = 3

img_feat = torch.randn(batch_size, seq_len, config.image_feat_size)
ang_feat = torch.randn(batch_size, seq_len, config.angle_feat_size)
type_embeddings = torch.randn(batch_size, seq_len, config.hidden_size)
nav_types = torch.randint(0, 3, (batch_size, seq_len))

ARGS = {
    'img_feat': img_feat,
    'ang_feat': ang_feat,
    'type_embeddings': type_embeddings,
    'nav_types': nav_types
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
NextActionPrediction Ran
ran on a synthesized input · constructed an object; no result was computed
cshizhe/vln-hamt/finetune_src/models/vilmodel_cmt.py
code served (permissive licence) · get_code("f8175627f6813677")
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, NextActionPrediction: 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 torch import nn

torch.manual_seed(0)

ARGS = {
    "hidden_size": 8,
    "dropout_rate": 0.1,
}
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 NextActionPrediction — 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 NextActionPrediction 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
BertAttention Not yet run
unverified (harvested, no recorded run)
cshizhe/vln-hamt/finetune_src/models/vilmodel_cmt.py
code served (permissive licence) · get_code("13836f9b26886d79")
How it ran

no invocation recorded.

BertEncoder Not yet run
unverified (harvested, no recorded run)
cshizhe/vln-hamt/finetune_src/models/vilmodel_cmt.py
code served (permissive licence) · get_code("35a750d77f3a1303")
How it ran

no invocation recorded.

BertLayer Not yet run
unverified (harvested, no recorded run)
cshizhe/vln-hamt/finetune_src/models/vilmodel_cmt.py
code served (permissive licence) · get_code("8c82bbeb6226b351")
How it ran

no invocation recorded.

BertSelfAttention Not yet run
unverified (harvested, no recorded run)
cshizhe/vln-hamt/finetune_src/models/vilmodel_cmt.py
code served (permissive licence) · get_code("c08a770513cf174b")
How it ran

no invocation recorded.

HistoryEmbeddings Not yet run
unverified (harvested, no recorded run)
cshizhe/vln-hamt/finetune_src/models/vilmodel_cmt.py
code served (permissive licence) · get_code("25134291a74bace2")
How it ran

no invocation recorded.

LXRTXLayer Not yet run
unverified (harvested, no recorded run)
cshizhe/vln-hamt/finetune_src/models/vilmodel_cmt.py
code served (permissive licence) · get_code("169082b5fe3d0fbc")
How it ran

no invocation recorded.

LxmertEncoder Not yet run
unverified (harvested, no recorded run)
cshizhe/vln-hamt/finetune_src/models/vilmodel_cmt.py
code served (permissive licence) · get_code("e60d770a83baf317")
How it ran

no invocation recorded.

NavCMT Not yet run
unverified (harvested, no recorded run)
cshizhe/vln-hamt/finetune_src/models/vilmodel_cmt.py
code served (permissive licence) · get_code("c399f3a94801c4fd")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 10 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 10 later) and 5 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
BertOutput
brick of this paper's assembly: helper
12 other papers
2 dated earlier, 10 later · 8 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning
2203.14040 (2022-03)
Visual Abductive Reasoning
and 9 more not named here
BertSelfOutput
brick of this paper's assembly: helper
12 other papers
2 dated earlier, 10 later · 8 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning
2203.14040 (2022-03)
Visual Abductive Reasoning
and 9 more not named here
BertIntermediate
brick of this paper's assembly: helper
8 other papers
1 dated earlier, 7 later · 4 only as an assembly brick
2106.14019 (2021-06)
UMIC: An Unreferenced Metric for Image Captioning via Contrastive Learning
2210.08714 (2022-10)
Selective Query-guided Debiasing for Video Corpus Moment Retrieval
2303.08409 (2023-03)
LANA: A Language-Capable Navigator for Instruction Following and Generation
and 5 more not named here
BertEmbeddings
brick of this paper's assembly: model
5 other papers
5 later · 3 only as an assembly brick
2303.08409 (2023-03)
LANA: A Language-Capable Navigator for Instruction Following and Generation
2303.15796 (2023-03)
KERM: Knowledge Enhanced Reasoning for Vision-and-Language Navigation
2308.12587 (2023-08)
Grounded Entity-Landmark Adaptive Pre-training for Vision-and-Language Navigation
and 2 more not named here
BertXAttention
brick of this paper's assembly: helper
5 other papers
5 later · 4 only as an assembly brick
2303.08409 (2023-03)
LANA: A Language-Capable Navigator for Instruction Following and Generation
2303.15796 (2023-03)
KERM: Knowledge Enhanced Reasoning for Vision-and-Language Navigation
2305.03602 (2023-05)
A Dual Semantic-Aware Recurrent Global-Adaptive Network for Vision-and-Language Navigation
and 2 more not named here
NextActionPrediction
brick of this paper's assembly: model
3 other papers
3 later · 1 only as an assembly brick
2303.08409 (2023-03)
LANA: A Language-Capable Navigator for Instruction Following and Generation
2308.12587 (2023-08)
Grounded Entity-Landmark Adaptive Pre-training for Vision-and-Language Navigation
2601.21751 (2026-01)
Dynamic Topology Awareness: Breaking the Granularity Rigidity in Vision-Language Navigation
BertLayer
brick of this paper's assembly: model
2 other papers
2 later
2303.08409 (2023-03)
LANA: A Language-Capable Navigator for Instruction Following and Generation
2308.12587 (2023-08)
Grounded Entity-Landmark Adaptive Pre-training for Vision-and-Language Navigation
ImageEmbeddings
brick of this paper's assembly: model
2 other papers
2 later · 1 only as an assembly brick
2303.08409 (2023-03)
LANA: A Language-Capable Navigator for Instruction Following and Generation
2308.12587 (2023-08)
Grounded Entity-Landmark Adaptive Pre-training for Vision-and-Language Navigation
BertAttention
brick of this paper's assembly: helper
1 other paper
1 later
2308.12587 (2023-08)
Grounded Entity-Landmark Adaptive Pre-training for Vision-and-Language Navigation
BertEncoder
brick of this paper's assembly: model
1 other paper
1 later
2308.12587 (2023-08)
Grounded Entity-Landmark Adaptive Pre-training for Vision-and-Language Navigation

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

Vision-and-language navigation (VLN) aims to build autonomous visual agents that follow instructions and navigate in real scenes. To remember previously visited locations and actions taken, most approaches to VLN implement memory using recurrent states. Instead, we introduce a History Aware Multimodal Transformer (HAMT) to incorporate a long-horizon history into multimodal decision making. HAMT efficiently encodes all the past panoramic observations via a hierarchical vision transformer (ViT), which first encodes individual images with ViT, then models spatial relation between images in a panoramic observation and finally takes into account temporal relation between panoramas in the history. It, then, jointly combines text, history and current observation to predict the next action. We first train HAMT end-to-end using several proxy tasks including single step action prediction and spatial relation prediction, and then use reinforcement learning to further improve the navigation policy. HAMT achieves new state of the art on a broad range of VLN tasks, including VLN with fine-grained instructions (R2R, RxR), high-level instructions (R2R-Last, REVERIE), dialogs (CVDN) as well as long-horizon VLN (R4R, R2R-Back). We demonstrate HAMT to be particularly effective for navigation tasks with longer trajectories.

For agents

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

get_harvested_code_for_paper("2110.13309")
get_code_for_paper("2110.13309")
have("2110.13309")

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

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

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

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

Connect an agent — have() is free.