SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2203.14936 · ECCV · 2022

FedVLN: Privacy-preserving Federated Vision-and-Language Navigation

Kaiwen Zhou, Xin Wang

arXiv · PDF · Open in the Atlas

Code that ran

4 of 10 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 3 have no contract verdict; 1 failure of our instrument; 6 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/2203.14936.json · badge: /api/ran/2203.14936.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
eric-ai-lab/FedVLN community
Papers with Code archive
4 ran · 6 no recorded run
FunctionStatusWhere it lives
BaseAgent Ran
ran on a synthesized input · constructed an object; no result was computed
eric-ai-lab/FedVLN/r2r_src/agent.py
code served (permissive licence) · get_code("a02da85c573a6d3a")
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, BaseAgent: 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 json
import random
import tempfile
import os

class MockEnv:
    """Mock environment for R2R agent testing"""
    def __init__(self):
        self.epoch = 0
        self.trajectory_index = 0
    
    def reset_epoch(self, shuffle=False):
        self.epoch += 1
        self.trajectory_index = 0
    
    def get_trajectories(self):
        """Return mock trajectories"""
        return [
            {
                'instr_id': 'instr_001',
                'path': [(0, 0.0, 0.0), (1, 1.57, 0.0)]
            },
            {
                'instr_id': 'instr_002',
                'path': [(2, 3.14, 0.5), (3, 4.71, 1.0)]
            }
        ]

# Create a temporary file for results
temp_dir = tempfile.mkdtemp()
results_path = os.path.join(temp_dir, "results.json")

# Construct valid arguments
ARGS = {
    'env': MockEnv(),
    'results_path': results_path
}
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 BaseAgent — 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 BaseAgent 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
FloydGraph Ran
ran on a synthesized input · constructed an object; no result was computed
eric-ai-lab/FedVLN/r2r_src/agent.py
code served (permissive licence) · get_code("979b2f41d2c1ec93")
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, FloydGraph: 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.

from collections import defaultdict

class FloydGraph:

    def __init__(self):
        self._dis = defaultdict(lambda: defaultdict(lambda: 95959595))
        self._point = defaultdict(lambda: defaultdict(lambda: ''))
        self._visited = set()

    def distance(self, x, y):
        if x == y:
            return 0
        else:
            return self._dis[x][y]

    def add_edge(self, x, y, dis):
        if dis < self._dis[x][y]:
            self._dis[x][y] = dis
            self._dis[y][x] = dis
            self._point[x][y] = ''
            self._point[y][x] = ''

    def update(self, k):
        for x in self._dis:
            for y in self._dis:
                if x != y:
                    if self._dis[x][k] + self._dis[k][y] < self._dis[x][y]:
                        self._dis[x][y] = self._dis[x][k] + self._dis[k][y]
                        self._dis[y][x] = self._dis[x][y]
                        self._point[x][y] = k
                        self._point[y][x] = k
        self._visited.add(k)

    def visited(self, k):
        return k in self._visited

    def path(self, x, y):
        """
        :param x: start
        :param y: end
        :return: the path from x to y [v1, v2, ..., v_n, y]
        """
        if x == y:
            return []
        if self._point[x][y] == '':
            return [y]
        else:
            k = self._point[x][y]
            return self.path(x, k) + self.path(k, y)


# Create a simple FloydGraph instance with some edges
graph = FloydGraph()

# Add some edges to build a simple graph
graph.add_edge('A', 'B', 1)
graph.add_edge('B', 'C', 2)
graph.add_edge('A', 'C', 5)
graph.add_edge('C', 'D', 1)

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 FloydGraph — 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 FloydGraph 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
SoftDotAttention Ran
ran on a synthesized input
eric-ai-lab/FedVLN/r2r_src/agent.py
code served (permissive licence) · get_code("159abaee904ad60e")
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 torch.nn as nn

class SoftDotAttention(nn.Module):
    """Soft Dot Attention. 

    Ref: http://www.aclweb.org/anthology/D15-1166
    Adapted from PyTorch OPEN NMT.
    """

    def __init__(self, query_dim, ctx_dim):
        """Initialize layer."""
        super(SoftDotAttention, self).__init__()
        self.linear_in = nn.Linear(query_dim, ctx_dim, bias=False)
        self.sm = nn.Softmax(dim=1)
        self.linear_out = nn.Linear(query_dim + ctx_dim, query_dim, bias=False)
        self.tanh = nn.Tanh()

    def forward(self, h, context, mask=None, output_tilde=True, output_prob=True):
        """Propagate h through the network.

        h: batch x dim
        context: batch x seq_len x dim
        mask: batch x seq_len indices to be masked
        """
        target = self.linear_in(h).unsqueeze(2)
        attn = torch.bmm(context, target).squeeze(2)
        logit = attn
        if mask is not None:
            attn.masked_fill_(mask, -float('inf'))
        attn = self.sm(attn)
        attn3 = attn.view(attn.size(0), 1, attn.size(1))
        weighted_context = torch.bmm(attn3, context).squeeze(1)
        if not output_prob:
            attn = logit
        if output_tilde:
            h_tilde = torch.cat((weighted_context, h), 1)
            h_tilde = self.tanh(self.linear_out(h_tilde))
            return (h_tilde, attn)
        else:
            return (weighted_context, attn)


INIT_ARGS = {
    'query_dim': 4,
    'ctx_dim': 5,
}

ARGS = {
    'h': torch.randn(2, 4),
    'context': torch.randn(2, 3, 5),
    'mask': None,
    'output_tilde': True,
    'output_prob': True,
}

if __name__ == '__main__':
    model = SoftDotAttention(**INIT_ARGS)
    output = model(**ARGS)
    print("Output shapes:", [o.shape for o in output])
    print("Success!")
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)
length2mask Ran
ran; our contract draft was wrong, not the code
eric-ai-lab/FedVLN/r2r_src/agent.py
code served (permissive licence) · get_code("2cf4d520aa29b6f2")
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; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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

torch.manual_seed(0)

# The function expects:
# - length: a sequence (list or tensor) of integers representing lengths
# - size: optional integer for mask size (defaults to max of length)

# Create a small batch of length values
# batch_size = 2, with different length values
length = [3, 5]

# size parameter - we can pass None to let it auto-calculate from max(length)
# or we can pass an explicit size
size = None

ARGS = {
    "length": length,
    "size": size,
}
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 — no output shape is stated: observe_signature.py could not observe it (call:AssertionError)
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
AttnDecoderLSTM Not yet run
unverified (harvested, no recorded run)
eric-ai-lab/FedVLN/r2r_src/agent.py
code served (permissive licence) · get_code("54dc0f7ea7346e75")
How it ran

no invocation recorded.

Critic Not yet run
unverified (harvested, no recorded run)
eric-ai-lab/FedVLN/r2r_src/agent.py
code served (permissive licence) · get_code("2187ea87b0f4c35c")
How it ran

no invocation recorded.

EncoderLSTM Not yet run
unverified (harvested, no recorded run)
eric-ai-lab/FedVLN/r2r_src/agent.py
code served (permissive licence) · get_code("d01ddaeb112df7d8")
How it ran

no invocation recorded.

Param Not yet run
unverified (harvested, no recorded run)
eric-ai-lab/FedVLN/r2r_src/agent.py
code served (permissive licence) · get_code("84e3f8eba34be70d")
How it ran

no invocation recorded.

Seq2SeqAgent Not yet run
unverified (harvested, no recorded run)
eric-ai-lab/FedVLN/r2r_src/agent.py
code served (permissive licence) · get_code("66ad16389109bbf4")
How it ran

no invocation recorded.

angle_feature Not yet run
unverified (harvested, no recorded run)
eric-ai-lab/FedVLN/r2r_src/agent.py
code served (permissive licence) · get_code("0d364ce5919decd3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 9 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
length2mask
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2021.emnlp-main.518 (2021 (year only))
NDH-FULL: Learning and Evaluating Navigational Agents on Full-Length Dialogue

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

Data privacy is a central problem for embodied agents that can perceive the environment, communicate with humans, and act in the real world. While helping humans complete tasks, the agent may observe and process sensitive information of users, such as house environments, human activities, etc. In this work, we introduce privacypreserving embodied agent learning for the task of Vision-and-Language Navigation (VLN), where an embodied agent navigates house environments by following natural language instructions. We view each house environment as a local client, which shares nothing other than local updates with the cloud server and other clients, and propose a novel Federated Vision-and-Language Navigation (FedVLN) framework to protect data privacy during both training and pre-exploration. Particularly, we propose a decentralized federated training strategy to limit the data of each client to its local model training and a federated preexploration method to do partial model aggregation to improve model generalizability to unseen environments. Extensive results on R2R and RxR datasets show that, decentralized federated training achieve comparable results with centralized training while protecting seen environment privacy, and federated pre-exploration significantly outperforms centralized pre-exploration while preserving unseen environment privacy. Code is available at https://github.com/eric-ai-lab/FedVLN.

For agents

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

get_harvested_code_for_paper("2203.14936")
get_code_for_paper("2203.14936")
have("2203.14936")

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

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

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

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

Connect an agent — have() is free.