SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.05171 · 2025

Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach

arXiv · PDF · Open in the Atlas

Code that ran

10 of 13 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; 1 honoured the contract we drafted, 0 violated it and 6 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/2502.05171.json · badge: /api/ran/2502.05171.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
seal-rg/recurrent-pretraining canonical (classifier label)
classifier basis not recorded on the link
10 ran · 3 no recorded run
FunctionStatusWhere it lives
apply_rotary_emb_complex_like Ran
ran; our contract draft was wrong, not the code
seal-rg/recurrent-pretraining/recpre/legacy_modeling_file.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from wenquanlu/huginn-latent-cot, is pointer only (licence: NONE) · get_code("d5b72c13e150ef82")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from wenquanlu/huginn-latent-cot, and GitHub detected no licence in that repository 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.

frontier_max_minutes Ran
ran on a synthesized input
seal-rg/recurrent-pretraining/launch_frontier.py
code served (permissive licence) · get_code("3e3df5fbf65b64b2")
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 int, ndim 0, dtype family int, shape () 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)

ARGS = {
    "num_nodes": 100
}
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 int, ndim 0, dtype family int, shape () — shape () 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_comms_and_slingshot Ran
ran on a synthesized input
seal-rg/recurrent-pretraining/launch_frontier.py
code served (permissive licence) · get_code("2577d131ae9699ea")
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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'installdir': '${WRKSPC}/tiny_plugins_rccl',
    'enable_net_gdr': True,
    'debug_flags': False,
    'rccl_algo': None
}
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
get_unwrapped_model Ran
ran; our contract draft was wrong, not the code
seal-rg/recurrent-pretraining/finetuning_simple_example.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from njuyxw/STARS, is pointer only (licence: NONE) · get_code("ada420946a965abb")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from njuyxw/STARS, and GitHub detected no licence in that repository 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.

load_specific_keys Ran
ran on a synthesized input
seal-rg/recurrent-pretraining/evaluate_raven/quick_chat_rec_compare.py
code served (permissive licence) · get_code("00abb7bc07b05163")
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 torch
import pickle
import tempfile
import os

torch.manual_seed(0)

# Create a temporary checkpoint file with sample data
temp_dir = tempfile.mkdtemp()
checkpoint_path = os.path.join(temp_dir, "test_checkpoint.pt")

# Create sample data to save
sample_data = {
    'model_config': {'hidden_size': 128, 'num_layers': 2},
    'model': {'weights': torch.randn(4, 3)},
    'optimizer_state': {'lr': 0.001},
    'epoch': 42
}

# Save the checkpoint
torch.save(sample_data, checkpoint_path)

# Define ARGS
ARGS = {
    'checkpoint_name': checkpoint_path,
    'keys': ['model_config', 'model']
}
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 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
load_standard_modules Ran
ran on a synthesized input
seal-rg/recurrent-pretraining/launch_frontier.py
code served (permissive licence) · get_code("7b9bbef7f2314381")
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 = {
    'rocm_version': '5.7.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 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
parse_eval_args Ran
ran; our contract draft was wrong, not the code
seal-rg/recurrent-pretraining/evaluate_raven/local_lm_eval.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from BatsResearch/crosslingual-test-time-scaling, is pointer only (licence: NONE) · get_code("400ea4f64ccce5ef")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from BatsResearch/crosslingual-test-time-scaling, and GitHub detected no licence in that repository 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.

parse_gen_kwargs Ran
ran on a synthesized input
seal-rg/recurrent-pretraining/evaluate_raven/record_steps_in_bench.py
code served (permissive licence) · get_code("a4a69f170428494a")
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 torch
import numpy as np

torch.manual_seed(0)

# The function parse_gen_kwargs takes a string parameter and parses it
# into a dictionary of key-value pairs. Let's construct test cases.

# Test case 1: Empty string
test1 = ""

# Test case 2: Simple key-value pairs with different types
test2 = "key1=value1,key2=true,key3=false,key4=42,key5=3.14,key6=1e-5"

# Test case 3: None value (edge case)
test3 = None

# Test case 4: Single pair
test4 = "temperature=0.7"

# Test case 5: Complex mixed types
test5 = "max_tokens=100,do_sample=true,top_p=0.95,seed=42,negative_prompt=test"

ARGS = {
    "gen_kwargs_str": test2
}
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 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
precompute_freqs_cis Ran
ran, honoured the contract we drafted
seal-rg/recurrent-pretraining/recpre/legacy_modeling_file.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from wenquanlu/huginn-latent-cot, is pointer only (licence: NONE) · get_code("db336122f09999c7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from wenquanlu/huginn-latent-cot, and GitHub detected no licence in that repository 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.

sample_gamma Ran
ran on a synthesized input
seal-rg/recurrent-pretraining/recpre/model_dynamic.py
code served (permissive licence) · get_code("40881a9c742670e8")
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 1, dtype family float, shape (1,) 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 math
import torch

torch.manual_seed(0)

ARGS = {
    "alpha": 2.5,
    "beta": 1.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 Tensor, ndim 1, dtype family float, shape (1,) — shape (1,) 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_adaptive_exit_evaluator Not yet run
unverified (harvested, no recorded run)
seal-rg/recurrent-pretraining/recpre/raven_modeling_minimal.py
code served (permissive licence) · get_code("7f7dafd2517a1906")
How it ran

no invocation recorded.

startup Not yet run
unverified (harvested, no recorded run)
seal-rg/recurrent-pretraining/finetuning_simple_example.py
code served (permissive licence) · get_code("78396767cd633b79")
How it ran

no invocation recorded.

try_parse_json Not yet run
unverified (harvested, no recorded run)
seal-rg/recurrent-pretraining/evaluate_raven/local_lm_eval.py
code served (permissive licence) · get_code("06b670bf334b8d88")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 5 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 5 later) and 8 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
parse_eval_args 15 other papers
8 dated earlier, 5 later, 1 same year, order not determinable, 1 undated
2005.14165 (2020-05)
Language Models are Few-Shot Learners
2024.findings-emnlp.86 (2024 (year only))
Tokenization Falling Short: On Subword Robustness in Large Language Models
2405.07938 (2024-05)
EconLogicQA: A Question-Answering Benchmark for Evaluating Large Language Models in Economic Sequential Reasoning
and 12 more not named here
try_parse_json 4 other papers
2 later, 1 same year, order not determinable, 1 undated
2025.findings-acl.744 (2025 (year only))
Ranked Voting based Self-Consistency of Large Language Models
2601.02236 (2026-01)
CD 4 LM: Consistency Distillation and aDaptive Decoding for Diffusion Language Models
2601.22527 (2026-01)
ρ-EOS: Training-free Bidirectional Variable-Length Control for Masked Diffusion LLMs
and 1 more not named here
apply_rotary_emb_complex_like 1 other paper
1 later
2507.02199 (2025-07)
Latent Chain-of-Thought? Decoding the Depth-Recurrent Transformer
get_unwrapped_model 1 other paper
1 later
2605.26733 (2026-05)
Stabilizing Recurrent Dynamics for Test-Time Scalable Latent Reasoning in Looped Language Models
precompute_freqs_cis 1 other paper
1 later
2507.02199 (2025-07)
Latent Chain-of-Thought? Decoding the Depth-Recurrent Transformer

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

We study a novel language model architecture that is capable of scaling test-time computation by implicitly reasoning in latent space. Our model works by iterating a recurrent block, thereby unrolling to arbitrary depth at test-time. This stands in contrast to mainstream reasoning models that scale up compute by producing more tokens. Unlike approaches based on chain-of-thought, our approach does not require any specialized training data, can work with small context windows, and can capture types of reasoning that are not easily represented in words. We scale a proof-of-concept model to 3.5 billion parameters and 800 billion tokens. We show that the resulting model can improve its performance on reasoning benchmarks, sometimes dramatically, up to a computation load equivalent to 50 billion parameters.

For agents

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

get_harvested_code_for_paper("2502.05171")
get_code_for_paper("2502.05171")
have("2502.05171")

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

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

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

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

Connect an agent — have() is free.