SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2509.25140 · ICLR · 2025

Re as on i ng Ban k: Scaling Agent Self-Evolving with Reasoning Memory

Chen-Yu Lee, Jiawei Han, Tomas Pfister, Zifeng Wang, Long Le, Xiangru Tang, Yanfei Chen, Siru Ouyang, Ke Jiang, Jun Yan, I-Hung Hsu, Rujun Han, and 5 more

arXiv · PDF · Open in the Atlas

Code that ran

9 of 14 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; 9 failures of our instrument; 5 no recorded run), measured 2026-11-24; 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/2509.25140.json · badge: /api/ran/2509.25140.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
google-research/reasoning-bank canonical (classifier label)
classifier basis: census
9 ran · 5 no recorded run
FunctionStatusWhere it lives
build_naive_last_frame_eval_prompt Ran
ran; our contract draft was wrong, not the code
google-research/reasoning-bank/WebArena/autoeval/prompts.py
code served (permissive licence) · get_code("238e7dce697a54e4")
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 str. 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

ARGS = {
    "cap": "The bot is looking at a product listing page. The page shows a blue widget priced at $19.99 with an 'Add to Cart' button visible.",
    "intent": "Find and add a blue widget to the shopping cart",
    "response": "Successfully added the blue widget to cart and proceeded to checkout"
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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_naive_multi_frame_eval_prompt Ran
ran; our contract draft was wrong, not the code
google-research/reasoning-bank/WebArena/autoeval/prompts.py
code served (permissive licence) · get_code("7ad3fb700204a1d0")
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 str. 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

torch.manual_seed(0)

ARGS = {
    "caps": [
        "The robot is in the kitchen.",
        "The robot moved to the table.",
        "The robot picked up the object successfully."
    ],
    "intent": "Pick up the object from the table",
    "response": "Task completed successfully"
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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_obs_simplifier_prompt Ran
ran; our contract draft was wrong, not the code
google-research/reasoning-bank/WebArena/autoeval/prompts.py
code served (permissive licence) · get_code("d30039bf61d4ce96")
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 str. 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 numpy as np

torch.manual_seed(0)

ARGS = {
    "cap": "The task involves classifying images of cats and dogs. The model processes RGB images of size 224x224 pixels. It uses a convolutional neural network architecture. The training dataset contains 1000 labeled examples. The validation accuracy reached 95% on the test set.",
    "intent": "classify images of cats and dogs",
    "response": "The model successfully classifies cats and dogs with 95% accuracy on the test set."
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
extract_final_response Ran
ran; our contract draft was wrong, not the code
google-research/reasoning-bank/WebArena/reeval_memevol_prompt.py
code served (permissive licence) · get_code("4ae947fadb35f89b")
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 str. 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 tempfile
from pathlib import Path

# Create a temporary log file with send_msg_to_user() calls
temp_log = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.log')
temp_log.write("""
Some log content here
send_msg_to_user("first message")
More log lines
send_msg_to_user("second message")
send_msg_to_user('final response')
End of log
""")
temp_log.close()

ARGS = {
    "log_path": temp_log.name
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
extract_response Ran
ran; our contract draft was wrong, not the code
google-research/reasoning-bank/WebArena/autoeval/evaluate_trajectory.py
code served (permissive licence) · get_code("5503345bf4b138db")
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 str. 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

torch.manual_seed(0)

def extract_response(action):
    s, e = (action.index('(') + 1, action.index(')'))
    return action[s:e]

# The function takes a string 'action' and extracts the content between parentheses
# We need to provide a string with parentheses in it
action = "some_function(response_content)"

ARGS = {
    "action": action
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
format_trajectory Ran
ran; our contract draft was wrong, not the code
google-research/reasoning-bank/WebArena/induce_memory.py
code served (permissive licence) · get_code("c6db4f1167ef1f97")
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 str. 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 numpy as np

# Construct valid arguments for format_trajectory
think_list = [
    "First, I need to analyze the problem.",
    "Now I should consider the next step.",
    "Finally, I'll formulate my response."
]

action_list = [
    ["search", "wikipedia"],
    ["retrieve", "documents"],
    ["generate", "answer"]
]

ARGS = {
    "think_list": think_list,
    "action_list": action_list
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
l2_normalize Ran
ran; our contract draft was wrong, not the code
google-research/reasoning-bank/WebArena/memory_management.py
code served (permissive licence) · get_code("cf9eabc2e955701a")
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
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small tensor for L2 normalization
x = torch.randn(2, 4)

# Define the arguments dictionary
ARGS = {
    "x": x,
    "dim": -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
random_group_sample Ran
ran; our contract draft was wrong, not the code
google-research/reasoning-bank/WebArena/induce_memory.py
code served (permissive licence) · get_code("ee92b111809ec4b6")
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 list, ndim 1, 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 random
import torch

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

# Construct a dictionary where values are lists (groups)
# The function iterates over d.values() and calls random.sample on each
d = {
    'group_1': [1, 2, 3, 4, 5],
    'group_2': ['a', 'b', 'c'],
    'group_3': [10.5, 20.5, 30.5, 40.5],
    'group_4': [True, False],
}

# n is the number of samples to take from each group
n = 2

ARGS = {
    'd': d,
    'n': n,
}
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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
remove_invalid_steps Ran
ran; our contract draft was wrong, not the code
google-research/reasoning-bank/WebArena/induce_scaling.py
code served (permissive licence) · get_code("68200314270ba3be")
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 list, ndim 1, 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

def remove_invalid_steps(actions: list[str]) -> list[str]:
    """Remove invalid steps from the action sequence."""
    valid_actions = []
    for a in actions:
        if 'click(' in a:
            arg = a[a.index('(') + 1:a.index(')')]
            try:
                if type(eval(arg)) == str and type(eval(arg[1:-1])) == int:
                    valid_actions.append(a)
            except:
                continue
        elif 'fill(' in a:
            arg = a[a.index('(') + 1:a.index(',')].strip()
            if type(eval(arg)) == str:
                valid_actions.append(a)
        elif 'scroll(' in a or 'noop(' in a:
            continue
        else:
            valid_actions.append(a)
    return valid_actions

# Test data with various action types
actions = [
    'click("button", 5)',           # valid click: string and int
    'click("link", "text")',        # invalid click: two strings
    'click(123, 456)',              # invalid click: two ints
    'fill("form", value="test")',   # valid fill: has string argument
    'fill(123, value="test")',      # invalid fill: int argument
    'scroll(5)',                    # scroll should be filtered
    'noop()',                       # noop should be filtered
    'custom_action()',              # valid else: passes through
]

ARGS = {
    "actions": actions
}
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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
embed_query_with_qwen Not yet run
unverified (harvested, no recorded run)
google-research/reasoning-bank/WebArena/memory_management.py
code served (permissive licence) · get_code("e35f25d166dc1c3b")
How it ran

no invocation recorded.

extract_think_and_action Not yet run
unverified (harvested, no recorded run)
google-research/reasoning-bank/WebArena/induce_memory.py
code served (permissive licence) · get_code("38314d8e2e565dd6")
How it ran

no invocation recorded.

extract_think_and_action Not yet run
unverified (harvested, no recorded run)
google-research/reasoning-bank/WebArena/autoeval/evaluate_trajectory.py
code served (permissive licence) · get_code("c4e4bc0ba1f63988")
How it ran

no invocation recorded.

load_blocks Not yet run
unverified (harvested, no recorded run)
google-research/reasoning-bank/WebArena/induce_scaling.py
code served (permissive licence) · get_code("868712f71f85de88")
How it ran

no invocation recorded.

load_step_pkl Not yet run
unverified (harvested, no recorded run)
google-research/reasoning-bank/WebArena/induce_scaling.py
code served (permissive licence) · get_code("06ce227a2f35045b")
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, 0 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
load_blocks 1 other paper
1 dated earlier
2409.07429 (2024-09)
Agent Workflow Memory
remove_invalid_steps 1 other paper
1 dated earlier
2409.07429 (2024-09)
Agent Workflow Memory

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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

With the growing adoption of large language model agents in persistent real-world roles, they naturally encounter continuous streams of tasks. A key limitation, however, is their failure to learn from the accumulated interaction history, forcing them to discard valuable insights and repeat past errors. We propose ReasoningBank, a novel memory framework that distills generalizable reasoning strategies from an agent's self-judged successful and failed experiences. At test time, an agent retrieves relevant memories from Re as on i ng Ban k to inform its interaction and then integrates new learnings back, enabling it to become more capable over time. Building on this powerful experience learner, we further introduce memory-aware test-time scaling (M aT T S), which accelerates and diversifies this learning process by scaling up the agent's interaction experience. By allocating more compute to each task, the agent generates abundant, diverse experiences that provide rich contrastive signals for synthesizing higher-quality memory. The better memory in turn guides more effective scaling, establishing a powerful synergy between memory and test-time scaling. Across web browsing and software engineering benchmarks, Re as on i ng Ban k consistently outperforms existing memory mechanisms that store raw trajectories or only successful task routines, improving both effectiveness and efficiency; M aT T S further amplifies these gains. These findings establish memory-driven experience scaling as a new scaling dimension, enabling agents to self-evolve with emergent behaviors naturally arise. Our code can be found at https://github.com/google-research/reasoning-bank.

For agents

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

get_harvested_code_for_paper("2509.25140")
get_code_for_paper("2509.25140")
have("2509.25140")

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

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

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

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

Connect an agent — have() is free.