SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.20670 · 2026

LT2: Linear-Time Looped Transformers

Yizhe Zhang, Hanjie Chen, Jiarui Liu, Rui-Jie Zhu, Chunyuan Deng, Yuanyuan Xu, T Ng

arXiv · PDF · Open in the Atlas

Code that ran

13 of 15 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 11 failures of our instrument; 2 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/2605.20670.json · badge: /api/ran/2605.20670.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
chili-lab/LT2 canonical (classifier label)
classifier basis: census
13 ran · 2 no recorded run
FunctionStatusWhere it lives
attention_flops_per_token Ran
ran, honoured the contract we drafted
chili-lab/LT2/apps/LT2/transformer.py
code served (permissive licence) · get_code("26ff74d6538ab161")
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 float, ndim 0, dtype family float, 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
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "n_layers": 12,
    "seq_len": 128,
    "dim": 768,
    "causal": True,
}
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 float, ndim 0, dtype family float, 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
compute_correlation Ran
ran; our contract draft was wrong, not the code
chili-lab/LT2/apps/LT2/kernel/dsa/fp8_lighting_indexer.py
code served (permissive licence) · get_code("5552f9c3667da10b")
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 0, dtype family float, 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)

# Create two small tensors with .data attribute
a = torch.randn(2, 4, requires_grad=True)
b = torch.randn(2, 4, requires_grad=True)

# Define ARGS dict with all parameters
ARGS = {
    'a': a,
    'b': b,
    'label': 'test_tensor'
}
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 0, dtype family float, 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
create_slurm_script Ran
ran; our contract draft was wrong, not the code
chili-lab/LT2/submit_eval_jobs.py
code served (permissive licence) · get_code("08410d4120383939")
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)

# The function create_slurm_script takes a single parameter: ckpt_name
# Looking at the function body, it uses ckpt_name as a string interpolated into:
# - job name: eval_{ckpt_name}
# - output/error file patterns
# - directory paths
# - config file name
# So ckpt_name should be a string representing a checkpoint name

ARGS = {
    'ckpt_name': 'checkpoint_001'
}
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
dataclass_from_dict Ran
ran; our contract draft was wrong, not the code
chili-lab/LT2/lingua/args.py
code served (permissive licence) · get_code("e0ebc4027f1bd03b")
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 SimpleConfig. 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 dataclasses import dataclass
from omegaconf import OmegaConf, DictConfig
from typing import Type, TypeVar

T = TypeVar('T')

# Define a simple dataclass for testing
@dataclass
class SimpleConfig:
    name: str = "default"
    value: int = 42
    learning_rate: float = 0.001

@dataclass
class NestedConfig:
    simple: SimpleConfig = None
    count: int = 10
    
    def __post_init__(self):
        if self.simple is None:
            self.simple = SimpleConfig()

# Create test data
test_dict = {
    "name": "test_config",
    "value": 100,
    "learning_rate": 0.01
}

nested_dict = {
    "simple": {
        "name": "nested_test",
        "value": 50,
        "learning_rate": 0.005
    },
    "count": 20
}

# Define ARGS with all parameters
ARGS = {
    "cls": SimpleConfig,
    "data": test_dict,
    "strict": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
omegaconf — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SimpleConfig — a SimpleConfig output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleConfig 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
dataclass_to_dict Ran
ran; our contract draft was wrong, not the code
chili-lab/LT2/lingua/args.py
code served (permissive licence) · get_code("116b2f19f9a6148c")
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.

from dataclasses import dataclass
from omegaconf import OmegaConf, DictConfig, ListConfig
import torch

@dataclass
class SimpleConfig:
    learning_rate: float = 0.001
    batch_size: int = 32
    num_epochs: int = 10

@dataclass
class NestedConfig:
    model_name: str = "test_model"
    optimizer: SimpleConfig = None
    
    def __post_init__(self):
        if self.optimizer is None:
            self.optimizer = SimpleConfig()

# Test with a simple dataclass instance
simple_instance = SimpleConfig(learning_rate=0.002, batch_size=64, num_epochs=5)

# Test with a nested dataclass instance
nested_instance = NestedConfig(model_name="nested_test", optimizer=SimpleConfig())

# Test with a plain dict
plain_dict = {"key1": "value1", "key2": 42, "key3": [1, 2, 3]}

ARGS = {
    "dataclass_instance": simple_instance
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
omegaconf, 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
discover_checkpoints Ran
ran; our contract draft was wrong, not the code
chili-lab/LT2/upload_to_hf.py
code served (permissive licence) · get_code("03ebb650056220da")
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 2, 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.

from pathlib import Path
import tempfile
import shutil

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()
ckpt_root = Path(temp_dir)

# Create checkpoints subdirectory with numbered step directories
checkpoints_dir = ckpt_root / 'checkpoints'
checkpoints_dir.mkdir(exist_ok=True)

# Create some numbered step directories
(checkpoints_dir / '100').mkdir(exist_ok=True)
(checkpoints_dir / '200').mkdir(exist_ok=True)
(checkpoints_dir / '50').mkdir(exist_ok=True)

ARGS = {
    'ckpt_root': ckpt_root,
}
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 list, ndim 2, 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
distribute_data_to_rank Ran
ran; our contract draft was wrong, not the code
chili-lab/LT2/lingua/data.py
code served (permissive licence) · get_code("df220aefba133398")
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 tempfile
from pathlib import Path

# Create a temporary directory with mock chunk files
temp_dir = tempfile.mkdtemp()
dataset_path = temp_dir

# Create some mock chunk files matching the pattern
for i in range(4):
    chunk_file = Path(dataset_path) / f"data.chunk.{i}.jsonl"
    chunk_file.write_text('{"example": "data"}\n')

ARGS = {
    "dataset_path": dataset_path,
    "rank": 1,
    "world_size": 4,
    "file_pattern": "*.chunk.*.jsonl"
}
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 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
find_and_sanitize_chunks Ran
ran; our contract draft was wrong, not the code
chili-lab/LT2/lingua/data.py
code served (permissive licence) · get_code("8c82e41cb936a35d")
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 tempfile
from pathlib import Path
import os

# Create a temporary directory with mock chunk files
temp_dir = tempfile.mkdtemp()

# Create some mock chunk files matching the pattern
for i in range(3):
    chunk_file = Path(temp_dir) / f"data.chunk.{i}.jsonl"
    chunk_file.write_text('{"text": "sample"}\n')

ARGS = {
    'dataset_path': temp_dir,
    'world_size': 3,
    'file_pattern': '*.chunk.*.jsonl'
}
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 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
flatten_dict Ran
ran; our contract draft was wrong, not the code
chili-lab/LT2/lingua/args.py
code served (permissive licence) · get_code("15be2e56e073a228")
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)

# Construct a nested dictionary with various types of values
nested_dict = {
    'layer1': {
        'weight': 0.5,
        'bias': 0.1,
        'config': {
            'learning_rate': 0.001,
            'momentum': 0.9
        }
    },
    'layer2': {
        'activation': 'relu',
        'dropout': 0.2
    },
    'model_name': 'test_model',
    'version': 1
}

ARGS = {
    'd': nested_dict,
    'parent_key': '',
    'sep': '_'
}
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
get_empty_buffer_state Ran
ran; our contract draft was wrong, not the code
chili-lab/LT2/lingua/data.py
code served (permissive licence) · get_code("bfdcca22e67a0a67")
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
from copy import deepcopy

torch.manual_seed(0)

# Create a list of state dictionaries
# Each state represents a sequence with metadata
states = [
    {
        'seq_len': 5,
        'hidden': torch.randn(2, 4),
        'cache': torch.randn(3, 4),
    },
    {
        'seq_len': 7,
        'hidden': torch.randn(2, 4),
        'cache': torch.randn(3, 4),
    },
    {
        'seq_len': 6,
        'hidden': torch.randn(2, 4),
        'cache': torch.randn(3, 4),
    },
]

# start_token is a negative index that may span multiple sequences
# For example, -3 means 3 tokens back from the end
# This should rewind into a previous sequence
start_token = -8

ARGS = {
    'start_token': start_token,
    'states': states,
}
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
get_num_flop_per_token Ran
ran, honoured the contract we drafted
chili-lab/LT2/apps/LT2/transformer.py
code served (permissive licence) · get_code("5e36da6fe12b04f3")
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 float, ndim 0, dtype family float, 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
import torch.nn as nn

torch.manual_seed(0)

# Construct arguments for get_num_flop_per_token
# Parameters: num_non_embed_params, n_layers, dim, seq_len

ARGS = {
    "num_non_embed_params": 1000000,  # 1M non-embedding parameters
    "n_layers": 12,                    # number of transformer layers
    "dim": 768,                        # embedding dimension
    "seq_len": 512                     # sequence length
}
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 float, ndim 0, dtype family float, 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
step_to_tokens_label Ran
ran; our contract draft was wrong, not the code
chili-lab/LT2/upload_to_hf.py
code served (permissive licence) · get_code("04f070ff6d753818")
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

TOKENS_AT_25400 = 10000000000

STEPS_AT_10B = 25400

TOKENS_PER_STEP = TOKENS_AT_25400 / STEPS_AT_10B

def step_to_tokens_label(step: int) -> str:
    """Return a human-readable token-count label, e.g. '10B', '20B'."""
    billions = step * TOKENS_PER_STEP / 1000000000.0
    if abs(billions - round(billions)) < 0.05:
        return f'{round(billions)}B'
    return f'{billions:.1f}B'

ARGS = {
    'step': 25400
}
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
validate_tensor_match Ran
ran; our contract draft was wrong, not the code
chili-lab/LT2/apps/LT2/kernel/dsa/fp8_lighting_indexer.py
code served (permissive licence) · get_code("0cfebed388443ee6")
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 0, dtype family float, 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)

# Create two similar tensors for validation
a = torch.tensor([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]])
b = torch.tensor([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]])

ARGS = {
    'a': a,
    'b': b,
    'tolerance': 1e-8,
    'tensor_name': 'test_tensor',
    'should_raise': False
}
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 0, dtype family float, 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
consolidate_checkpoints Not yet run
unverified (harvested, no recorded run)
chili-lab/LT2/lingua/checkpoint.py
code served (permissive licence) · get_code("a11baf6e8cca859b")
How it ran

no invocation recorded.

ref_sparse_mla_fwd_interface Not yet run
unverified (harvested, no recorded run)
chili-lab/LT2/apps/LT2/kernel/dsa/sparse_mla_fwd.py
code served (permissive licence) · get_code("3e67867b7d7bdcd0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 0 the same month, 0 later) and 7 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
flatten_dict 5 other papers
5 dated earlier
2405.15589 (2024-05)
Efficient Adversarial Training in LLMs with Continuous Attacks
2410.15221 (2024-10)
IntersectionZoo: Eco-driving for Benchmarking Multi-Agent Contextual Reinforcement Learning
2412.09764 (2024-12)
Memory Layers at Scale
and 2 more not named here
dataclass_from_dict 3 other papers
3 dated earlier
2412.09764 (2024-12)
Memory Layers at Scale
2503.18866 (2025-03)
Reasoning to Learn from Latent Thoughts
2506.14761 (2025-06)
From Bytes to Ideas: Language Modeling with Autoregressive U-Nets
dataclass_to_dict 3 other papers
3 dated earlier
2412.09764 (2024-12)
Memory Layers at Scale
2503.18866 (2025-03)
Reasoning to Learn from Latent Thoughts
2506.14761 (2025-06)
From Bytes to Ideas: Language Modeling with Autoregressive U-Nets
get_empty_buffer_state 3 other papers
3 dated earlier
2412.09764 (2024-12)
Memory Layers at Scale
2503.18866 (2025-03)
Reasoning to Learn from Latent Thoughts
2506.14761 (2025-06)
From Bytes to Ideas: Language Modeling with Autoregressive U-Nets
attention_flops_per_token 2 other papers
2 dated earlier
2312.16682 (2023-12)
Some things are more CRINGE than others: Iterative Preference Optimization with the Pairwise Cringe Loss
2412.09871 (2024-12)
Byte Latent Transformer: Patches Scale Better Than Tokens
distribute_data_to_rank 2 other papers
2 dated earlier
2503.18866 (2025-03)
Reasoning to Learn from Latent Thoughts
2506.14761 (2025-06)
From Bytes to Ideas: Language Modeling with Autoregressive U-Nets
consolidate_checkpoints 1 other paper
1 dated earlier
2506.14761 (2025-06)
From Bytes to Ideas: Language Modeling with Autoregressive U-Nets
get_num_flop_per_token 1 other paper
1 dated earlier
2412.09871 (2024-12)
Byte Latent Transformer: Patches Scale Better Than Tokens

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

Looped Transformers (LT) have emerged as a powerful architecture by iterating their layers multiple times before decoding the final token. However, their pairing with full attention retains quadratic complexity making it computationally expensive and slow. We introduce LT2 (Linear-Time Looped Transformers), a family of looped architectures that replace quadratic softmax attention with subquadratic attention with linear-time complexity. We study two variants: LT2-linear with linear attention and LT2-sparse with sparse attention. We find looping uniquely synergizes with these variants: it enables iterative memory refinement in linear attention and progressively expands the effective receptive field in sparse attention. We formalize these benefits theoretically and demonstrate consistent empirical gains across controlled recall, state-tracking, and language modeling tasks. We then explore LT2-hybrid, a hybrid architecture that combines different attention variants in a looped setting. We find two architectural variants promising: (1) LT2-hybrid (GDN+DSA), which interleaves linear and sparse attention to maximize efficiency, matching the standard looped transformer's quality at fully linear-time cost. and (2) LT2-hybrid (Full+GDN), which interleaves GDN with a small fraction of full attention layers to maximize quality, surpassing the standard looped transformer in both performance and efficiency. Furthermore, we also show how to turn a pre-trained LT into an LT2-hybrid model. With only about 1B tokens of training, our converted model (Ouro-hybrid-1.4B) outperforms industry-level 1B models and is competitive with industry-level 4B models while keeping the speed benefits of linear-time attention. Together, these two directions show a clear path to making looped transformers a more scalable architecture for language modeling and advancing the development of efficient, capable small language models. Codebase: https://github.com/chili-lab/LT2 Huggingface Checkpoints: https://huggingface.co/chili-lab/Ouro-hybrid-1.4B 0 50 100 150 Decode throughput at 8k context, bs=8 (tok/s) 54 56 58 60 62 Avg. zero-shot performance (%) Best quality (+2.1 pts over Looped Transformer) Matches full-attn quality at linear-time cost Standard Looped Transformer ARC-C HellaSwag Winogrande MMLU Figure 1: (Left) New parameter-efficiency frontier introduced by LT2. (Right) Converted LT2-Hybrid outperforms similarly sized industry-level 1B while matching 4B ones.

For agents

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

get_harvested_code_for_paper("2605.20670")
get_code_for_paper("2605.20670")
have("2605.20670")

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

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

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

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

Connect an agent — have() is free.