SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2010.03768 · ICLR · 2021

ALFWorld: Aligning Text and Embodied Environments for Interactive Learning

Matthew Hausknecht, Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Côté, Yonatan Bisk, Adam Trischler, Alfworld Io

arXiv · PDF · Open in the Atlas

Code that ran

11 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 3 failures of our instrument; 3 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/2010.03768.json · badge: /api/ran/2010.03768.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
alfworld/alfworld marked official in Papers with Code
Papers with Code archive
11 ran · 3 no recorded run
FunctionStatusWhere it lives
BoxFeaturesFC Ran
ran on a synthesized input
alfworld/alfworld/alfworld/agents/modules/model.py
code served (permissive licence) · get_code("42db735ed71ca183")
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
import torch.nn.functional as F

class BoxFeaturesFC(torch.nn.Module):

    def __init__(self, in_features=1024, out_features=64):
        super(BoxFeaturesFC, self).__init__()
        self.in_features = in_features
        self.out_features = out_features
        self.linear1 = torch.nn.Linear(in_features=self.in_features, out_features=256)
        self.linear2 = torch.nn.Linear(in_features=256, out_features=self.out_features)

    def pad_and_stack(self, obs, max_feat_len=None):
        if not max_feat_len:
            max_feat_len = max([o.shape[0] for o in obs])
        padded = [F.pad(input=o, pad=(0, 0, 0, max_feat_len - o.shape[0]), mode='constant', value=0) for o in obs]
        return torch.stack(padded, dim=0)

    def forward(self, x):
        x = self.pad_and_stack(x)
        x = self.linear1(x)
        x = self.linear2(x)
        return x


INIT_ARGS = {
    'in_features': 8,
    'out_features': 16,
}

ARGS = {
    'x': [
        torch.randn(3, 8),
        torch.randn(5, 8),
    ],
}

if __name__ == '__main__':
    model = BoxFeaturesFC(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output: {output}")
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)
CQAttention Ran
ran on a synthesized input · constructed an object; no result was computed
alfworld/alfworld/alfworld/agents/modules/model.py
code served (permissive licence) · get_code("676a78e4b2463f42")
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, CQAttention: 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
import torch.nn.functional as F

torch.manual_seed(0)

def masked_softmax(x, m=None, axis=-1):
    """
    Softmax with mask (optional)
    """
    x = torch.clamp(x, min=-15.0, max=15.0)
    if m is not None:
        m = m.float()
        x = x * m
    e_x = torch.exp(x - torch.max(x, dim=axis, keepdim=True)[0])
    if m is not None:
        e_x = e_x * m
    softmax = e_x / (torch.sum(e_x, dim=axis, keepdim=True) + 1e-06)
    return softmax

class CQAttention(torch.nn.Module):

    def __init__(self, block_hidden_dim, dropout=0):
        super().__init__()
        self.dropout = dropout
        w4C = torch.empty(block_hidden_dim, 1)
        w4Q = torch.empty(block_hidden_dim, 1)
        w4mlu = torch.empty(1, 1, block_hidden_dim)
        torch.nn.init.xavier_uniform_(w4C)
        torch.nn.init.xavier_uniform_(w4Q)
        torch.nn.init.xavier_uniform_(w4mlu)
        self.w4C = torch.nn.Parameter(w4C)
        self.w4Q = torch.nn.Parameter(w4Q)
        self.w4mlu = torch.nn.Parameter(w4mlu)
        bias = torch.empty(1)
        torch.nn.init.constant_(bias, 0)
        self.bias = torch.nn.Parameter(bias)

    def forward(self, C, Q, Cmask, Qmask):
        S = self.trilinear_for_attention(C, Q, Cmask, Qmask)
        Cmask = Cmask.unsqueeze(-1)
        Qmask = Qmask.unsqueeze(1)
        S1 = masked_softmax(S, Qmask, axis=2)
        S2 = masked_softmax(S, Cmask, axis=1)
        S1 = S1 * Qmask * Cmask
        S2 = S2 * Qmask * Cmask
        A = torch.bmm(S1, Q)
        B = torch.bmm(torch.bmm(S1, S2.transpose(1, 2)), C)
        out = torch.cat([C, A, torch.mul(C, A), torch.mul(C, B)], dim=2)
        return out

    def trilinear_for_attention(self, C, Q, Cmask, Qmask):
        C = F.dropout(C, p=self.dropout, training=self.training)
        Q = F.dropout(Q, p=self.dropout, training=self.training)
        max_q_len = Q.size(-2)
        max_context_len = C.size(-2)
        subres0 = torch.matmul(C, self.w4C).expand([-1, -1, max_q_len])
        subres1 = torch.matmul(Q, self.w4Q).transpose(1, 2).expand([-1, max_context_len, -1])
        subres2 = torch.matmul(C * self.w4mlu, Q.transpose(1, 2))
        res = subres0 + subres1 + subres2
        res += self.bias
        res = res * Qmask.unsqueeze(1) * Cmask.unsqueeze(-1)
        return res

# Create test data
batch_size = 2
context_len = 3
query_len = 4
hidden_dim = 4

# Context tensor: (batch_size, context_len, hidden_dim)
C = torch.randn(batch_size, context_len, hidden_dim)

# Query tensor: (batch_size, query_len, hidden_dim)
Q = torch.randn(batch_size, query_len, hidden_dim)

# Context mask: (batch_size, context_len)
Cmask = torch.ones(batch_size, context_len)

# Query mask: (batch_size, query_len)
Qmask = torch.ones(batch_size, query_len)

ARGS = {
    'block_hidden_dim': hidden_dim,
    'dropout': 0.0
}
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 CQAttention — 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 CQAttention 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
DecoderBlock Ran
ran on a synthesized input · constructed an object; no result was computed
alfworld/alfworld/alfworld/agents/modules/model.py
code served (permissive licence) · get_code("eaa6cae4d498c74a")
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, DecoderBlock: the run constructed the object and did not call it, so no result was computed. 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 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 numpy as np

torch.manual_seed(0)

# Define arguments for DecoderBlock.__init__
ch_num = 4
k = 3
block_hidden_dim = 8
n_head = 2
dropout = 0.1

# Create decoder block instance
decoder_block = torch.nn.modules.container.ModuleDict()

# For forward pass, we need:
# x: tensor of shape (batch, length, block_hidden_dim)
# mask: attention mask
# self_att_mask: self attention mask

batch_size = 2
length = 3

x = torch.randn(batch_size, length, block_hidden_dim)
mask = torch.ones(batch_size, length, length)
self_att_mask = torch.ones(batch_size, length, length)

ARGS = {
    'ch_num': ch_num,
    'k': k,
    'block_hidden_dim': block_hidden_dim,
    'n_head': n_head,
    'dropout': dropout
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DecoderBlock — 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 DecoderBlock 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
DepthwiseSeparableConv Ran
ran on a synthesized input
alfworld/alfworld/alfworld/agents/modules/model.py
code served (permissive licence) · get_code("189fed4e56b7291e")
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
import numpy as np

INIT_ARGS = {
    'in_ch': 4,
    'out_ch': 3,
    'k': 3,
    'bias': True
}

# Construct input tensor and mask
batch_size = 2
seq_len = 5
in_ch = INIT_ARGS['in_ch']

# Input tensor: (batch_size, seq_len, in_ch)
x = torch.randn(batch_size, seq_len, in_ch)

# Mask: (batch_size, seq_len), binary mask with some zeros
mask = torch.ones(batch_size, seq_len)
mask[0, -1] = 0  # Introduce a zero to test masking
mask[1, -2:] = 0  # Introduce more zeros

ARGS = {
    'x': x,
    'mask': mask
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, 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)
NoisyLinear Ran
ran on a synthesized input · constructed an object; no result was computed
alfworld/alfworld/alfworld/agents/modules/model.py
code served (permissive licence) · get_code("a81a851773abf04b")
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, NoisyLinear: 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
import math

torch.manual_seed(0)

# Create a minimal NoisyLinear module to test
ARGS = {
    'in_features': 4,
    'out_features': 3,
    'std_init': 0.5
}

# Instantiate to verify it works
noisy_linear = nn.NoisyLinear(**ARGS) if hasattr(nn, 'NoisyLinear') else None

# If NoisyLinear is not in nn, define it locally for testing
if noisy_linear is None:
    class NoisyLinear(torch.nn.Module):
        def __init__(self, in_features, out_features, std_init=0.5):
            super(NoisyLinear, self).__init__()
            self.in_features = in_features
            self.out_features = out_features
            self.std_init = std_init
            self.weight_mu = torch.nn.Parameter(torch.empty(out_features, in_features))
            self.weight_sigma = torch.nn.Parameter(torch.empty(out_features, in_features))
            self.register_buffer('weight_epsilon', torch.empty(out_features, in_features))
            self.bias_mu = torch.nn.Parameter(torch.empty(out_features))
            self.bias_sigma = torch.nn.Parameter(torch.empty(out_features))
            self.register_buffer('bias_epsilon', torch.empty(out_features))
            self.reset_parameters()
            self.reset_noise()

        def reset_parameters(self):
            mu_range = 1 / math.sqrt(self.in_features)
            self.weight_mu.data.uniform_(-mu_range, mu_range)
            self.weight_sigma.data.fill_(self.std_init / math.sqrt(self.in_features))
            self.bias_mu.data.uniform_(-mu_range, mu_range)
            self.bias_sigma.data.fill_(self.std_init / math.sqrt(self.out_features))

        def _scale_noise(self, size):
            x = torch.randn(size)
            return x.sign().mul_(x.abs().sqrt_())

        def reset_noise(self):
            epsilon_in = self._scale_noise(self.in_features)
            epsilon_out = self._scale_noise(self.out_features)
            self.weight_epsilon.copy_(epsilon_out.ger(epsilon_in))
            self.bias_epsilon.copy_(epsilon_out)

        def forward(self, input):
            if self.training:
                return torch.nn.functional.linear(input, self.weight_mu + self.weight_sigma * self.weight_epsilon, self.bias_mu + self.bias_sigma * self.bias_epsilon)
            else:
                return torch.nn.functional.linear(input, self.weight_mu, self.bias_mu)
    
    noisy_linear = NoisyLinear(**ARGS)

# Test instantiation
test_input = torch.randn(2, 4)
noisy_linear.train()
output_train = noisy_linear(test_input)
noisy_linear.eval()
output_eval = noisy_linear(test_input)

ARGS = {
    'in_features': 4,
    'out_features': 3,
    'std_init': 0.5
}
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 NoisyLinear — 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 NoisyLinear 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
PointerSoftmax Ran
ran on a synthesized input
alfworld/alfworld/alfworld/agents/modules/model.py
code served (permissive licence) · get_code("b12dcd1f191784bb")
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. 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

INIT_ARGS = {
    'input_dim': 4,
    'hidden_dim': 8,
}

ARGS = {
    'target_target_representations': torch.randn(2, 3, 4),
    'target_source_representations': torch.randn(2, 3, 4),
    'trg_decoder_output': torch.randn(2, 3, 5),
    'target_mask': torch.ones(2, 3),
    'target_source_attention': torch.randn(2, 3, 6),
    'source_mask': torch.ones(2, 6),
    'input_source': torch.randint(0, 5, (2, 6)),
}
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)
PosEncoder Ran
ran; our contract draft was wrong, not the code
alfworld/alfworld/alfworld/agents/modules/model.py
code served (permissive licence) · get_code("6dda823ca190d07a")
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, 3, 4) as a later run recorded it. 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, 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 math

torch.manual_seed(0)

# Create a small input tensor with shape (batch=2, length=3, channels=4)
x = torch.randn(2, 3, 4)

# Define ARGS dict with all parameters for PosEncoder
ARGS = {
    "x": x,
    "min_timescale": 1.0,
    "max_timescale": 10000.0,
}
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, 3, 4) — shape (2, 3, 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
ScaledDotProductAttention Ran
ran on a synthesized input · constructed an object; no result was computed
alfworld/alfworld/alfworld/agents/modules/model.py
code served (permissive licence) · get_code("540b60f3c35ddb5c")
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, ScaledDotProductAttention: 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)

def masked_softmax(x, m=None, axis=-1):
    """
    Softmax with mask (optional)
    """
    x = torch.clamp(x, min=-15.0, max=15.0)
    if m is not None:
        m = m.float()
        x = x * m
    e_x = torch.exp(x - torch.max(x, dim=axis, keepdim=True)[0])
    if m is not None:
        e_x = e_x * m
    softmax = e_x / (torch.sum(e_x, dim=axis, keepdim=True) + 1e-06)
    return softmax

class ScaledDotProductAttention(torch.nn.Module):
    """ Scaled Dot-Product Attention """

    def __init__(self, temperature, attn_dropout=0.1):
        super().__init__()
        self.temperature = temperature
        self.dropout = torch.nn.Dropout(attn_dropout)

    def forward(self, q, k, v, mask):
        attn = torch.bmm(q, k.transpose(1, 2))
        attn = attn / self.temperature
        attn = masked_softmax(attn, mask, 2)
        attn = self.dropout(attn)
        output = torch.bmm(attn, v)
        return (output, attn)

# Create setup arguments
batch_size = 2
seq_len_q = 3
seq_len_k = 4
d_model = 5

# Query: (batch, seq_len_q, d_model)
q = torch.randn(batch_size, seq_len_q, d_model)
# Key: (batch, seq_len_k, d_model)
k = torch.randn(batch_size, seq_len_k, d_model)
# Value: (batch, seq_len_k, d_model)
v = torch.randn(batch_size, seq_len_k, d_model)
# Mask: (batch, seq_len_q, seq_len_k)
mask = torch.ones(batch_size, seq_len_q, seq_len_k)

# Create the attention module
temperature = 5.0
attn_dropout = 0.1
model = ScaledDotProductAttention(temperature=temperature, attn_dropout=attn_dropout)

ARGS = {
    "temperature": temperature,
    "attn_dropout": attn_dropout
}
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 ScaledDotProductAttention — 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 ScaledDotProductAttention 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
compute_mask Ran
ran; our contract draft was wrong, not the code
alfworld/alfworld/alfworld/agents/modules/model.py
code served (permissive licence) · get_code("91eb0af694a5d554")
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. 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, 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 some zeros and non-zero values
# Using shape (2, 4) for batch size 2, dimension 4
x = torch.tensor([
    [1.0, 0.0, 2.0, 0.0],
    [0.0, 3.0, 0.0, 4.0]
])

ARGS = {
    "x": x
}
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
get_timing_signal Ran
ran, honoured the contract we drafted
alfworld/alfworld/alfworld/agents/modules/model.py
code served (permissive licence) · get_code("91d294d891ea41db")
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 (1, 8, 16) 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 math

torch.manual_seed(0)

ARGS = {
    "length": 8,
    "channels": 16,
    "min_timescale": 1.0,
    "max_timescale": 10000.0
}
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 (1, 8, 16) — shape (1, 8, 16) 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
masked_softmax Ran
ran; our contract draft was wrong, not the code
alfworld/alfworld/alfworld/agents/modules/model.py
code served (permissive licence) · get_code("e5002de1b930b693")
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 input tensor (batch_size=2, features=4)
x = torch.randn(2, 4)

# Create an optional mask tensor with same shape
m = torch.ones(2, 4)

# Define ARGS dict with all parameters
ARGS = {
    "x": x,
    "m": m,
    "axis": -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 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
EncoderBlock Not yet run
unverified (harvested, no recorded run)
alfworld/alfworld/alfworld/agents/modules/model.py
code served (permissive licence) · get_code("72bcf63ba171e486")
How it ran

no invocation recorded.

Policy Not yet run
unverified (harvested, no recorded run)
alfworld/alfworld/alfworld/agents/modules/model.py
code served (permissive licence) · get_code("2ee19fbc662f9365")
How it ran

no invocation recorded.

SelfAttention Not yet run
unverified (harvested, no recorded run)
alfworld/alfworld/alfworld/agents/modules/model.py
code served (permissive licence) · get_code("4b8de7bded2e4118")
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, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 later) and 12 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
compute_mask
brick of this paper's assembly: helper
3 other papers
2 dated earlier, 1 later
1908.10449 (2019-08)
Interactive Machine Comprehension with Information Seeking Agents
1908.10909 (2019-08)
Interactive Language Learning by Question Answering
2109.00077 (2021-09)
Interactive Machine Comprehension with Dynamic Knowledge Graphs
masked_softmax
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 later
1908.10909 (2019-08)
Interactive Language Learning by Question Answering
2206.09670 (2022-06)
Benchmarking Constraint Inference in Inverse Reinforcement Learning

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

Given a simple request like Put a washed apple in the kitchen fridge, humans can reason in purely abstract terms by imagining action sequences and scoring their likelihood of success, prototypicality, and efficiency, all without moving a muscle. Once we see the kitchen in question, we can update our abstract plans to fit the scene. Embodied agents require the same abilities, but existing work does not yet provide the infrastructure necessary for both reasoning abstractly and executing concretely. We address this limitation by introducing ALFWorld, a simulator that enables agents to learn abstract, text-based policies in TextWorld (Côté et al., 2018) and then execute goals from the ALFRED benchmark (Shridhar et al., 2020) in a rich visual environment. ALFWorld enables the creation of a new BUTLER agent whose abstract knowledge, learned in TextWorld, corresponds directly to concrete, visually grounded actions. In turn, as we demonstrate empirically, this fosters better agent generalization than training only in the visually grounded environment. BUTLER's simple, modular design factors the problem to allow researchers to focus on models for improving every piece of the pipeline (language understanding, planning, navigation, and visual scene understanding).

For agents

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

get_harvested_code_for_paper("2010.03768")
get_code_for_paper("2010.03768")
have("2010.03768")

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

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

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

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

Connect an agent — have() is free.