SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1904.04195 · 2019

Learning to Navigate Unseen Environments: Back Translation with Environmental Dropout

arXiv · PDF · Open in the Atlas

Code that ran

2 of 4 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 2 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/1904.04195.json · badge: /api/ran/1904.04195.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
airsplay/R2R-EnvDrop canonical (classifier label)
classifier basis not recorded on the link
2 ran · 2 no recorded run
FunctionStatusWhere it lives
compute_bleu Ran
ran; our contract draft was wrong, not the code
airsplay/R2R-EnvDrop/r2r_src/bleu.py
code served (permissive licence) · get_code("7b5b4685db18fbca")
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 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 collections
import math

# Set seed for reproducibility
import torch
torch.manual_seed(0)

# Create small example data for BLEU score computation
# reference_corpus: list of lists of references for each translation
# Each reference is a tokenized list
reference_corpus = [
    [['the', 'cat', 'sat', 'on', 'the', 'mat'],
     ['a', 'cat', 'was', 'sitting', 'on', 'the', 'mat']],
    [['hello', 'world'],
     ['hi', 'world']]
]

# translation_corpus: list of translations to score
# Each translation is a tokenized list
translation_corpus = [
    ['the', 'cat', 'sat', 'on', 'the', 'mat'],
    ['hello', 'world']
]

# max_order: maximum n-gram order
max_order = 4

# smooth: whether to apply smoothing
smooth = False

ARGS = {
    'reference_corpus': reference_corpus,
    'translation_corpus': translation_corpus,
    'max_order': max_order,
    'smooth': smooth
}
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 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: none by the harness; any seed is in the setup block
load_nav_graphs Ran
ran; our contract draft was wrong, not the code
airsplay/R2R-EnvDrop/r2r_src/utils.py
code served (permissive licence) · get_code("e3a90df1a875a38e")
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 json
import numpy as np
import networkx as nx
from unittest.mock import patch, mock_open
import tempfile
import os

# Create mock connectivity JSON data
mock_connectivity_data = [
    {
        'image_id': 'img_0',
        'included': True,
        'pose': [0, 0, 0, 1.0, 0, 0, 0, 2.0, 0, 0, 0, 3.0],
        'unobstructed': [True, True, False]
    },
    {
        'image_id': 'img_1',
        'included': True,
        'pose': [0, 0, 0, 1.5, 0, 0, 0, 2.5, 0, 0, 0, 3.5],
        'unobstructed': [True, True, False]
    },
    {
        'image_id': 'img_2',
        'included': False,
        'pose': [0, 0, 0, 2.0, 0, 0, 0, 3.0, 0, 0, 0, 4.0],
        'unobstructed': [False, False, True]
    }
]

# Create a temporary directory with mock connectivity files
temp_dir = tempfile.mkdtemp()
connectivity_dir = os.path.join(temp_dir, 'connectivity')
os.makedirs(connectivity_dir, exist_ok=True)

# Write mock connectivity files
for scan_name in ['scan_0', 'scan_1']:
    filepath = os.path.join(connectivity_dir, f'{scan_name}_connectivity.json')
    with open(filepath, 'w') as f:
        json.dump(mock_connectivity_data, f)

# Patch the file open to use our temp directory
original_open = open

def patched_open(file, *args, **kwargs):
    if 'connectivity/' in str(file):
        # Replace connectivity/ path with our temp directory path
        file = file.replace('connectivity/', connectivity_dir + '/')
    return original_open(file, *args, **kwargs)

# Apply the patch
import builtins
builtins.open = patched_open

ARGS = {
    'scans': ['scan_0', 'scan_1']
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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
build_vocab Not yet run
unverified (harvested, no recorded run)
airsplay/R2R-EnvDrop/r2r_src/utils.py
code served (permissive licence) · get_code("de363b1cbf20852f")
How it ran

no invocation recorded.

load_datasets Not yet run
unverified (harvested, no recorded run)
airsplay/R2R-EnvDrop/r2r_src/utils.py
code served (permissive licence) · get_code("1d9c8c3cd78345c4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 4 later) and 0 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
load_nav_graphs 7 other papers
2 dated earlier, 5 later
1901.03035 (2019-01)
Self-Monitoring Navigation Agent via Auxiliary Progress Estimation
1903.01602 (2019-03)
The Regretful Agent: Heuristic-Aided Navigation through Progress Estimation
2010.07954 (2020-10)
Room-Across-Room: Multilingual Vision-and-Language Navigation with Dense Spatiotemporal Grounding
and 4 more not named here
compute_bleu 4 other papers
1 dated earlier, 3 later
1711.04090 (2017-11)
MojiTalk: Generating Emotional Responses at Scale
2010.07954 (2020-10)
Room-Across-Room: Multilingual Vision-and-Language Navigation with Dense Spatiotemporal Grounding
2107.07201 (2021-07)
Neighbor-view Enhanced Model for Vision and Language Navigation
and 1 more not named here
build_vocab 3 other papers
2 dated earlier, 1 later
1901.03035 (2019-01)
Self-Monitoring Navigation Agent via Auxiliary Progress Estimation
1903.01602 (2019-03)
The Regretful Agent: Heuristic-Aided Navigation through Progress Estimation
2107.07201 (2021-07)
Neighbor-view Enhanced Model for Vision and Language Navigation
load_datasets 1 other paper
1 later
2107.07201 (2021-07)
Neighbor-view Enhanced Model 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

A grand goal in AI is to build a robot that can accurately navigate based on natural language instructions, which requires the agent to perceive the scene, understand and ground language, and act in the real-world environment. One key challenge here is to learn to navigate in new environments that are unseen during training. Most of the existing approaches perform dramatically worse in unseen environments as compared to seen ones. In this paper, we present a generalizable navigational agent. Our agent is trained in two stages. The first stage is training via mixed imitation and reinforcement learning, combining the benefits from both off-policy and on-policy optimization. The second stage is fine-tuning via newly-introduced 'unseen' triplets (environment, path, instruction). To generate these unseen triplets, we propose a simple but effective 'environmental dropout' method to mimic unseen environments, which overcomes the problem of limited seen environment variability. Next, we apply semi-supervised learning (via back-translation) on these dropped-out environments to generate new paths and instructions. Empirically, we show that our agent is substantially better at generalizability when fine-tuned with these triplets, outperforming the state-of-art approaches by a large margin on the private unseen test set of the Room-to-Room task, and achieving the top rank on the leaderboard.

For agents

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

get_harvested_code_for_paper("1904.04195")
get_code_for_paper("1904.04195")
have("1904.04195")

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

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

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

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

Connect an agent — have() is free.