SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2510.19732 · NeurIPS · 2025

Memo: Training Memory-Efficient Embodied Agents with Reinforcement Learning

Yarin Gal, Gunshi Gupta, Karmesh Yadav, Zsolt Kira, Rahaf Aljundi, Toyota Europe

arXiv · PDF · Open in the Atlas

Code that ran

8 of 8 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; 8 failures of our instrument; 0 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/2510.19732.json · badge: /api/ran/2510.19732.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
Memory-icrl/memo canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
gunshi/memo canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
FunctionStatusWhere it lives
ContinuousActionDist Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Memory-icrl/memo/amago/nets/actor_critic.py
code served (permissive licence) · get_code("bd53f926adbfbdb4")
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 _SquashedNormal. 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.distributions as pyd

torch.manual_seed(0)

# For 'normal' kind: vec should have shape (..., 2*d_action)
# We'll use batch_size=2, d_action=4
# So vec should be (2, 8)

# For 'gmm' kind: vec should have shape (..., 2*gmm_modes*d_action + gmm_modes)
# With gmm_modes=3, d_action=4: 2*3*4 + 3 = 27
# So vec should be (2, 27)

# For 'multibinary' kind: vec can be any shape
# We'll use (2, 4)

# Test with 'normal' kind
vec_normal = torch.randn(2, 8)

# Test with 'gmm' kind
vec_gmm = torch.randn(2, 27)

# Test with 'multibinary' kind
vec_multibinary = torch.randn(2, 4)

ARGS = {
    'vec': vec_normal,
    'kind': 'normal',
    'log_std_low': -5.0,
    'log_std_high': 2.0,
    'd_action': None,
    'gmm_modes': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type _SquashedNormal — a _SquashedNormal output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _SquashedNormal 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
DiscreteActionDist Ran
ran; our contract draft was wrong, not the code
Memory-icrl/memo/amago/nets/actor_critic.py
code served (permissive licence) · get_code("a928ef5746d94b5c")
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 _Categorical. 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
from torch import distributions as pyd

torch.manual_seed(0)

# The function takes a single parameter 'vec' which is used as logits
# for a Categorical distribution. It should be a tensor of shape (batch, num_actions)
vec = torch.randn(2, 4)

ARGS = {
    "vec": vec
}
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 _Categorical — a _Categorical output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _Categorical 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
add_common_cli Ran
ran; our contract draft was wrong, not the code
Memory-icrl/memo/amago/cli_utils.py
code served (permissive licence) · get_code("040df9379437c972")
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 ArgumentParser. 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 argparse import ArgumentParser

ARGS = {
    'parser': ArgumentParser(),
}
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 ArgumentParser — a ArgumentParser output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ArgumentParser 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
create_episodes_mask Ran
ran; our contract draft was wrong, not the code
gunshi/memo/memo/policies/llamarl/modeling_llamarl.py
pointer only (licence: NONE) · get_code("72b0399bfcee1e5c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gunshi/memo 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_maze_obs_space Ran
ran; our contract draft was wrong, not the code
Memory-icrl/memo/amago/learning.py
code served (permissive licence) · get_code("670359641d76db94")
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
import gymnasium as gym

# Construct ARGS dict for get_maze_obs_space function
ARGS = {
    'keepkeys': ['image', 'prev_action']
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
gymnasium, 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 1 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
get_wrapped_prop Ran
ran; our contract draft was wrong, not the code
gunshi/memo/memo/interactive_play.py
pointer only (licence: NONE) · get_code("3d54758ed67ca815")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gunshi/memo 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.

reverse_hidden_window Ran
ran; our contract draft was wrong, not the code
gunshi/memo/memo/policies/cores.py
pointer only (licence: NONE) · get_code("02f1e778c5d0c0f7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gunshi/memo 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.

step_env Ran
ran; our contract draft was wrong, not the code
gunshi/memo/memo/interactive_play.py
pointer only (licence: NONE) · get_code("3bb20f48b8e49d44")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gunshi/memo 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.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 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
create_episodes_mask 1 other paper
1 dated earlier
2410.02751 (2024-10)
ReLIC: A Recipe for 64k Steps of In-Context Reinforcement Learning for Embodied AI
get_wrapped_prop 1 other paper
1 dated earlier
2410.02751 (2024-10)
ReLIC: A Recipe for 64k Steps of In-Context Reinforcement Learning for Embodied AI
step_env 1 other paper
1 dated earlier
2410.02751 (2024-10)
ReLIC: A Recipe for 64k Steps of In-Context Reinforcement Learning for Embodied AI

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

To enable embodied agents to operate effectively over extended timeframes, it is crucial to develop models that form and access memories to stay contextualized in their environment. In the current paradigm of training transformer-based policies for embodied sequential decision-making tasks, visual inputs often overwhelm the context limits of transformers, while humans can maintain and utilize a lifetime of experience compressed as memories. Significant compression is possible in principle, as much of the input is irrelevant and can be abstracted. However, existing approaches predominantly focus on either recurrent models with fixed-size memory or transformers with full-context reliance. In this work, we propose Memo, a transformer-based architecture and training recipe for reinforcement learning (RL) on memory-intensive, long-horizon tasks. Memo incorporates the creation and retrieval of memory by interleaving periodic summarization tokens with the inputs of a model during training. We demonstrate Memo's effectiveness on a gridworld meta-RL benchmark and a multi-object navigation task in photo-realistic indoor settings. Memo outperforms naive long-context transformer baselines while being more compute and storage efficient. Additionally, Memo generalizes better to longer contexts at inference time and remains robust in streaming settings, where historical context must be truncated to fit inference constraints. Our code is available at: https://github.com/gunshi/memo.

For agents

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

get_harvested_code_for_paper("2510.19732")
get_code_for_paper("2510.19732")
have("2510.19732")

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

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

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

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

Connect an agent — have() is free.