SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2507.02199 · 2025

Latent Chain-of-Thought? Decoding the Depth-Recurrent Transformer

arXiv · PDF · Open in the Atlas

Code that ran

9 of 11 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; 3 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 4 failures of our instrument; 2 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/2507.02199.json · badge: /api/ran/2507.02199.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
wenquanlu/huginn-latent-cot canonical (classifier label)
classifier basis: census
9 ran · 2 no recorded run
FunctionStatusWhere it lives
apply_rotary_emb_complex_like Ran
ran; our contract draft was wrong, not the code
wenquanlu/huginn-latent-cot/huginn-predrank/raven_modeling_minimal.py
pointer only (licence: NONE) · get_code("d5b72c13e150ef82")
How it ran

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

compute_std_ranks Ran
ran, honoured the contract we drafted
wenquanlu/huginn-latent-cot/rank_analysis_inter_combined.py
pointer only (licence: NONE) · get_code("633babd6ef2a0581")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wenquanlu/huginn-latent-cot 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_final_predicted_logit Ran
ran; our contract draft was wrong, not the code
wenquanlu/huginn-latent-cot/coda_lens_exp.py
pointer only (licence: NONE) · get_code("259364a9505ced11")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wenquanlu/huginn-latent-cot 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_intermediate Ran
ran; our contract draft was wrong, not the code
wenquanlu/huginn-latent-cot/filter_dataset.py
pointer only (licence: NONE) · get_code("fc8d88e3e0f20956")
How it ran

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

is_signed_numeric Ran
ran, violated the contract we drafted
wenquanlu/huginn-latent-cot/frequency_analysis_combined.py
pointer only (licence: NONE) · get_code("790bef835ff3efd0")
How it ran

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

operator Ran
ran, honoured the contract we drafted
wenquanlu/huginn-latent-cot/filter_dataset.py
pointer only (licence: NONE) · get_code("e894012ac830ab50")
How it ran

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

precompute_freqs_cis Ran
ran, honoured the contract we drafted
wenquanlu/huginn-latent-cot/huginn-predrank/raven_modeling_minimal.py
pointer only (licence: NONE) · get_code("db336122f09999c7")
How it ran

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

single_digit_test Ran
ran, violated the contract we drafted
wenquanlu/huginn-latent-cot/filter_dataset.py
pointer only (licence: NONE) · get_code("05a3210b118e5e83")
How it ran

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

trim_output Ran
ran; our contract draft was wrong, not the code
wenquanlu/huginn-latent-cot/coda_lens_exp.py
pointer only (licence: NONE) · get_code("79f09692d8de2b4d")
How it ran

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

logit_coda_intermediate_rank_lens Not yet run
unverified (harvested, no recorded run)
wenquanlu/huginn-latent-cot/logit_lens_exp_inter.py
pointer only (licence: NONE) · get_code("13869bcb8c96fc73")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wenquanlu/huginn-latent-cot 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. No invocation recorded.

logit_coda_rank_lens Not yet run
unverified (harvested, no recorded run)
wenquanlu/huginn-latent-cot/logit_lens_exp.py
pointer only (licence: NONE) · get_code("2e37e08ffcc4bd2b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wenquanlu/huginn-latent-cot 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. No invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 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 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
apply_rotary_emb_complex_like 1 other paper
1 dated earlier
2502.05171 (2025-02)
Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach
precompute_freqs_cis 1 other paper
1 dated earlier
2502.05171 (2025-02)
Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach

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

Chain-of-thought (CoT) reasoning has enabled transformer-based language models to excel at complex mathematics and multi-step planning. However, in standard decoder-only architectures, these reasoning steps are externalized in natural language, improving interpretability at the cost of efficiency. To capture reasoning that is not easily represented in words, many works have explored recurrent architectures that aim to internalize reasoning in latent space, potentially supporting latent CoT. In this paper, we investigate whether such reasoning structures emerge in Huginn-3.5B, a depth-recurrent Transformer that reuses layers at inference time without increasing parameter count. We examine the model's internal behavior on arithmetic tasks using a suite of probing techniques including the Logit Lens and Coda Lens. Our findings reveal limited evidence of interpretable latent CoT by tracking rank trajectories of final and intermediate result tokens. Furthermore, we uncover significant probing inconsistencies across recurrent blocks, where the interpretability of hidden states depends heavily on both the layer index and the decoding method. Finally, we empirically show that increasing recurrence depth yields only marginal gains and falls well short of models that explicitly externalize reasoning steps. The code is available at https://github.com/wenquanlu/huginn-latent-cot.

For agents

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

get_harvested_code_for_paper("2507.02199")
get_code_for_paper("2507.02199")
have("2507.02199")

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

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

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

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

Connect an agent — have() is free.