SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.05483 · 2024

Just read twice: closing the recall gap for recurrent language models

arXiv · PDF · Open in the Atlas

Code that ran

3 of 5 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; 3 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/2407.05483.json · badge: /api/ran/2407.05483.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
HazyResearch/prefix-linear-attention canonical (classifier label)
classifier basis: census
3 ran · 2 no recorded run
FunctionStatusWhere it lives
init_to_zero Ran
ran; our contract draft was wrong, not the code
HazyResearch/prefix-linear-attention/based/ops/triton/linear.py
pointer only (licence: NONE); the stored copy get_code serves, from amazon-science/dualkv-flash-attn-for-rl, is pointer only (licence: NOASSERTION) · get_code("1586b639a5abd0b0")
How it ran

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

maybe_align Ran
ran; our contract draft was wrong, not the code
HazyResearch/prefix-linear-attention/based/ops/layer_norm.py
pointer only (licence: NONE); the stored copy get_code serves, from hrtan/fastmix, is pointer only (licence: NONE) · get_code("c6283b7a1a1785ba")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HazyResearch/prefix-linear-attention 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 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
HazyResearch/prefix-linear-attention/based/generation.py
pointer only (licence: NONE) · get_code("0e11bb8b11afc5b8")
How it ran

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

decode Not yet run
unverified (harvested, no recorded run)
HazyResearch/prefix-linear-attention/based/generation.py
pointer only (licence: NONE) · get_code("26116b1ac7fbe421")
How it ran

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

sample_speculative Not yet run
unverified (harvested, no recorded run)
HazyResearch/prefix-linear-attention/based/generation.py
pointer only (licence: NONE) · get_code("a8c6d95092ae59ba")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HazyResearch/prefix-linear-attention 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 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 2 later) and 2 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
init_to_zero 12 other papers
7 dated earlier, 2 the same month, 3 later
2304.11277 (2023-04)
PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallel
2309.06180 (2023-09)
Efficient Memory Management for Large Language Model Serving with PagedAttention
2310.05869 (2023-10)
HyperAttention: Long-context Attention in Near-Linear Time
and 9 more not named here
maybe_align 5 other papers
1 dated earlier, 4 later
2401.02385 (2024-01)
TinyLlama: An Open-Source Small Language Model
2410.05363 (2024-10)
Towards World Simulator: Crafting Physical Commonsense-Based Benchmark for Video Generation
2412.06464 (2024-12)
Gated Delta Networks: Improving Mamba2 with Delta Rule
and 2 more not named here
sample 1 other paper
1 dated earlier
2406.03344 (2024-06)
Audio Mamba: Bidirectional State Space Model for Audio Representation 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

Recurrent large language models that compete with Transformers in language modeling perplexity are emerging at a rapid rate (e.g., Mamba, RWKV). Excitingly, these architectures use a constant amount of memory during inference. However, due to the limited memory, recurrent LMs cannot recall and use all the information in long contexts leading to brittle in-context learning (ICL) quality. A key challenge for efficient LMs is selecting what information to store versus discard. In this work, we observe the order in which information is shown to the LM impacts the selection difficulty. To formalize this, we show that the hardness of information recall reduces to the hardness of a problem called set disjointness (SD), a quintessential problem in communication complexity that requires a streaming algorithm (e.g., recurrent model) to decide whether inputted sets are disjoint. We empirically and theoretically show that the recurrent memory required to solve SD changes with set order, i.e., whether the smaller set appears first in-context. Our analysis suggests, to mitigate the reliance on data order, we can put information in the right order in-context or process prompts non-causally. Towards that end, we propose: (1) JRT-Prompt, where context gets repeated multiple times in the prompt, effectively showing the model all data orders. This gives $11.0 \pm 1.3$ points of improvement, averaged across $16$ recurrent LMs and the $6$ ICL tasks, with $11.9\times$ higher throughput than FlashAttention-2 for generation prefill (length $32$k, batch size $16$, NVidia H100). We then propose (2) JRT-RNN, which uses non-causal prefix-linear-attention to process prompts and provides $99\%$ of Transformer quality at $360$M params., $30$B tokens and $96\%$ at $1.3$B params., $50$B tokens on average across the tasks, with $19.2\times$ higher throughput for prefill than FA2.

For agents

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

get_harvested_code_for_paper("2407.05483")
get_code_for_paper("2407.05483")
have("2407.05483")

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

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

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

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

Connect an agent — have() is free.