SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.24460 · 2026

Shortcut Before Circuit: Document Statistics Time In-Context Conflict Resolution

Yijun Liao

arXiv · PDF · Open in the Atlas

Code that ran

12 of 17 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; 5 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 5 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/2608.24460.json · badge: /api/ran/2608.24460.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
lyj20071013/Shortcut-Before-Circuit canonical (classifier label)
classifier basis: census
12 ran · 5 no recorded run
FunctionStatusWhere it lives
cos Ran
ran; our contract draft was wrong, not the code
lyj20071013/Shortcut-Before-Circuit/an_grad.py
code served (permissive licence) · get_code("dad35c27a781231d")
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

torch.manual_seed(0)

# Create two small tensors for the cosine similarity function
# The function computes dot product divided by product of norms
a = torch.randn(4)
b = torch.randn(4)

ARGS = {
    'a': a,
    'b': b,
}
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
dd_band Ran
ran, honoured the contract we drafted
lyj20071013/Shortcut-Before-Circuit/config.py
code served (permissive licence) · get_code("5a4cbb3aaeae2f0c")
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 tuple, ndim 1, dtype family int; 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

torch.manual_seed(0)

ARGS = {
    "d": 8,
    "rel": 0.5
}
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 tuple, ndim 1, dtype family int — a tuple 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
deriv Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lyj20071013/Shortcut-Before-Circuit/depth_peaks.py
code served (permissive licence) · get_code("de688a842a104846")
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.

import math

def deriv(loss):
    """d loss / d log step,中心差分。"""
    out = []
    for i in range(1, len(loss) - 1):
        s0, l0 = loss[i - 1]
        s1, _ = loss[i]
        s2, l2 = loss[i + 1]
        if s0 <= 0 or s2 <= 0:
            continue
        out.append((s1, (l0 - l2) / (math.log(s2) - math.log(s0))))
    return out


# Construct valid arguments for deriv
# The function expects 'loss' to be a list of tuples where each tuple is (step, loss_value)
# step values must be positive for the math.log operations
# We need at least 3 elements to compute central differences

loss_data = [
    (1.0, 2.5),      # (s0, l0)
    (2.0, 2.2),      # (s1, l1)
    (4.0, 1.8),      # (s2, l2)
    (8.0, 1.5),      # (s3, l3)
    (16.0, 1.2),     # (s4, l4)
]

ARGS = {
    "loss": loss_data
}
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
escape_peak Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lyj20071013/Shortcut-Before-Circuit/depth_peaks.py
code served (permissive licence) · get_code("a2d5427b155c2018")
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 math

def deriv(loss):
    """d loss / d log step,中心差分。"""
    out = []
    for i in range(1, len(loss) - 1):
        s0, l0 = loss[i - 1]
        s1, _ = loss[i]
        s2, l2 = loss[i + 1]
        if s0 <= 0 or s2 <= 0:
            continue
        out.append((s1, (l0 - l2) / (math.log(s2) - math.log(s0))))
    return out

def escape_peak(loss, tail_frac=0.8):
    """内部极大值,排除余弦末段衰减。"""
    d = deriv(loss)
    if not d:
        return None
    cut = loss[-1][0] * tail_frac
    head = [t for t in d if t[0] <= cut]
    tail = [t for t in d if t[0] > cut]
    if not head:
        return None
    pk = max(head, key=lambda t: t[1])
    tl = max(tail, key=lambda t: t[1]) if tail else (None, float('nan'))
    return {'peak_step': pk[0], 'peak_h': pk[1], 'tail_step': tl[0], 'tail_h': tl[1]}


# Construct valid arguments for escape_peak
# loss should be a list of (step, loss_value) tuples
# Need at least 3 elements for deriv to work (it accesses i-1, i, i+1)
loss = [
    (1.0, 0.5),
    (10.0, 0.3),
    (100.0, 0.2),
    (1000.0, 0.15),
    (10000.0, 0.1),
]

ARGS = {
    'loss': loss,
    'tail_frac': 0.8,
}
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
flat Ran
ran, honoured the contract we drafted
lyj20071013/Shortcut-Before-Circuit/an_fd.py
code served (permissive licence) · get_code("c92e431dddb93f6b")
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 (23,) 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)

# Create a simple model with parameters
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

# Instantiate the model
model = SimpleModel()

# Create some dummy input and compute gradients
x = torch.randn(2, 4)
y = torch.randn(2, 2)
output = model(x)
loss = torch.nn.functional.mse_loss(output, y)
loss.backward()

ARGS = {
    'model': model,
    'attr': 'grad'
}
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 (23,) — shape (23,) 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
flat_grad Ran
ran, honoured the contract we drafted
lyj20071013/Shortcut-Before-Circuit/an_grad.py
code served (permissive licence) · get_code("235e26c1c810b459")
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 (23,) 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)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        return self.linear2(self.linear1(x))

model = SimpleModel()

# Create a simple loss and backward pass to populate gradients
x = torch.randn(2, 4)
y = torch.randn(2, 2)
output = model(x)
loss = torch.nn.functional.mse_loss(output, y)
loss.backward()

ARGS = {
    "model": 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 Tensor, ndim 1, dtype family float, shape (23,) — shape (23,) 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
load Ran
ran; our contract draft was wrong, not the code
lyj20071013/Shortcut-Before-Circuit/figs.py
code served (permissive licence) · get_code("0bafd22f290ff42b")
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 json
import tempfile
import os

# Create temporary files with test data
temp_files = []

# Create a .txt file with human-readable report format and raw data
txt_file = tempfile.NamedTemporaryFile(mode='w', suffix='.txt', delete=False)
txt_content = """go_nogo experiment report
some human readable text here
more report content
raw: [{"r_old": 0.5, "dd": 0.1, "seed": 42, "state": "retr", "total_steps": 16000, "value": 123}]"""
txt_file.write(txt_content)
txt_file.close()
temp_files.append(txt_file.name)

# Create a .jsonl file with line-delimited JSON
jsonl_file = tempfile.NamedTemporaryFile(mode='w', suffix='.jsonl', delete=False)
jsonl_file.write('{"r_old": 0.3, "dd": 0.2, "seed": 10, "state": "retr", "total_steps": 16000, "value": 456}\n')
jsonl_file.write('{"r_old": 0.7, "dd": 0.05, "seed": 20, "state": "retr", "total_steps": 16000, "value": 789}\n')
jsonl_file.write('{"r_old": 0.4, "dd": 0.15, "seed": 30, "state": "other", "total_steps": 16000, "value": 999}\n')
jsonl_file.write('{"r_old": 0.6, "dd": 0.12, "seed": 40, "state": "retr", "total_steps": 8000, "value": 111}\n')
jsonl_file.close()
temp_files.append(jsonl_file.name)

# Arguments for the load function
ARGS = {
    'paths': temp_files
}
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
measure Ran
ran; our contract draft was wrong, not the code
lyj20071013/Shortcut-Before-Circuit/an_fd.py
code served (permissive licence) · get_code("bf305fb5940ccf07")
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 tuple, 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 torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.embedding = nn.Embedding(10, 4)
        self.linear = nn.Linear(4, 5)
    
    def forward(self, ids, labels=None):
        # ids shape: (batch, seq_len)
        x = self.embedding(ids)  # (batch, seq_len, 4)
        logits = self.linear(x)  # (batch, seq_len, 5)
        
        if labels is not None:
            loss = torch.nn.functional.cross_entropy(
                logits.view(-1, 5),
                labels.view(-1)
            )
            return logits, loss
        return logits, None

class TokenizedValue:
    def __init__(self, tokens, answer_pos):
        self.tokens = tokens
        self.answer_pos = answer_pos

model = SimpleModel()

# Create pairs: each pair is (d, ed, vs, vt)
# d and ed are TokenizedValue objects with .tokens and .answer_pos
# vs and vt are indices into the vocabulary slice [lo:lo+n_val]
pairs = [
    (
        TokenizedValue([1, 2], 2),
        TokenizedValue([3, 4], 2),
        0,
        1
    ),
    (
        TokenizedValue([5, 6], 2),
        TokenizedValue([7, 8], 2),
        1,
        0
    )
]

# Create batch: (ids, labels) tensors
batch_ids = torch.tensor([[1, 2, 3, 4], [5, 6, 7, 8]], dtype=torch.long)
batch_labels = torch.tensor([[0, 1, 2, 3], [1, 2, 3, 0]], dtype=torch.long)
batch = (batch_ids, batch_labels)

lo = 0
n_val = 3
dev = 'cpu'

ARGS = {
    'model': model,
    'pairs': pairs,
    'batch': batch,
    'lo': lo,
    'n_val': n_val,
    'dev': dev
}
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 tuple, ndim 1, dtype family float — a tuple 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
q_stmts Ran
ran, honoured the contract we drafted
lyj20071013/Shortcut-Before-Circuit/calib.py
code served (permissive licence) · get_code("66ee057e8201c196")
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 int; 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

class Statement:
    def __init__(self, ent, attr):
        self.ent = ent
        self.attr = attr

class DataObject:
    def __init__(self, stmts, q_ent, q_attr):
        self.stmts = stmts
        self.q_ent = q_ent
        self.q_attr = q_attr

stmt1 = Statement("entity1", "attr1")
stmt2 = Statement("entity2", "attr2")
stmt3 = Statement("entity1", "attr1")
stmt4 = Statement("entity3", "attr3")

d = DataObject(
    stmts=[stmt1, stmt2, stmt3, stmt4],
    q_ent="entity1",
    q_attr="attr1"
)

ARGS = {"d": d}
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 int — 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
q_stmts Ran
ran, honoured the contract we drafted
lyj20071013/Shortcut-Before-Circuit/collide.py
code served (permissive licence) · get_code("d47181d27dceb967")
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 int; 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

class Statement:
    def __init__(self, ent, attr):
        self.ent = ent
        self.attr = attr

class Document:
    def __init__(self, stmts, q_ent, q_attr):
        self.stmts = stmts
        self.q_ent = q_ent
        self.q_attr = q_attr

stmt1 = Statement("entity_a", "attr_1")
stmt2 = Statement("entity_b", "attr_2")
stmt3 = Statement("entity_a", "attr_1")
stmt4 = Statement("entity_c", "attr_3")

d = Document(
    stmts=[stmt1, stmt2, stmt3, stmt4],
    q_ent="entity_a",
    q_attr="attr_1"
)

ARGS = {"d": d}
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 int — 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
rules Ran
ran; our contract draft was wrong, not the code
lyj20071013/Shortcut-Before-Circuit/collide.py
code served (permissive licence) · get_code("96ad5fe4edc79dc1")
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.

class Stmt:
    def __init__(self, ent, attr, val, is_update=False):
        self.ent = ent
        self.attr = attr
        self.val = val
        self.is_update = is_update

class Document:
    def __init__(self, stmts, q_ent, q_attr, realized_delta):
        self.stmts = stmts
        self.q_ent = q_ent
        self.q_attr = q_attr
        self.realized_delta = realized_delta

stmts = [
    Stmt("entity_a", "color", "red"),
    Stmt("entity_b", "size", "large"),
    Stmt("entity_a", "color", "blue"),
    Stmt("entity_a", "color", "green", is_update=True),
    Stmt("entity_c", "weight", "heavy"),
]

d = Document(
    stmts=stmts,
    q_ent="entity_a",
    q_attr="color",
    realized_delta=0.75
)

ARGS = {"d": d}
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
task_probe Ran
ran; our contract draft was wrong, not the code
lyj20071013/Shortcut-Before-Circuit/bench.py
code served (permissive licence) · get_code("e9cb0ed3b342ebe2")
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 tuple. 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)

class MockConfig:
    def __init__(self):
        self.n_layer = 2

class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.cfg = MockConfig()
    
    def forward(self, ids, cache=None):
        B, T = ids.shape
        if cache is not None:
            # Store attention patterns for each layer
            for l in range(self.cfg.n_layer):
                # Create mock attention pattern: (B, n_heads, T, T)
                cache[f'pattern.{l}'] = torch.randn(B, 3, T, T)
                # Create mock qk_std: (n_heads,)
                cache[f'qk_std.{l}'] = torch.randn(3)
        return None

model = MockModel()
n_keys = 4
n_occ = 6
key_len = 2
v_key = 8
v_attr = 4
v_val = 5
device = 'cpu'
gen = torch.Generator(device=device).manual_seed(42)
B = 2

ARGS = {
    'model': model,
    'n_keys': n_keys,
    'n_occ': n_occ,
    'key_len': key_len,
    'v_key': v_key,
    'v_attr': v_attr,
    'v_val': v_val,
    'device': device,
    'gen': gen,
    'B': B
}
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 tuple — a tuple output has no array shape of its own; none is 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
make_batch Not yet run
unverified (harvested, no recorded run)
lyj20071013/Shortcut-Before-Circuit/bench.py
code served (permissive licence) · get_code("9d0f0bf99fa3c165")
How it ran

no invocation recorded.

measure Not yet run
unverified (harvested, no recorded run)
lyj20071013/Shortcut-Before-Circuit/bench.py
code served (permissive licence) · get_code("87e6ece047e4c847")
How it ran

no invocation recorded.

q_indices Not yet run
unverified (harvested, no recorded run)
lyj20071013/Shortcut-Before-Circuit/covar.py
code served (permissive licence) · get_code("07cce9dd395c5d18")
How it ran

no invocation recorded.

read Not yet run
unverified (harvested, no recorded run)
lyj20071013/Shortcut-Before-Circuit/fig_traj.py
code served (permissive licence) · get_code("d3e77f4daa41f29e")
How it ran

no invocation recorded.

read_run Not yet run
unverified (harvested, no recorded run)
lyj20071013/Shortcut-Before-Circuit/depth_peaks.py
code served (permissive licence) · get_code("0a5a357aaeb78d82")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 16 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.

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

When a context asserts two values for one fact, a model commits to a cuerecency, repetition, position-but natural data rarely makes these disagree, so behavior cannot reveal which. We train 26M-parameter transformers on a synthetic language where recency and rarity are exactly coextensive, and separate them with a minimal causal edit that inverts one cue while holding the truth, token count and answer position fixed. All 75 runs reach accuracy ≥ 0.999, including where the trivial heuristic fails, so no held-in evaluation distinguishes them. Under intervention the per-cell readout does not replicate: 13 of 25 cells differ by more than 0.3 in sign fraction across three seeds, the largest by 0.879 against a standard error of 0.025. The construction predicts this-coextensive rules leave the objective indifferent between them-and the variance is ordered by how much of the optimization each comparison releases. What replicates is timing: escape from a positional shortcut with a closed-form ceiling, monotone in redundancy. Probed before that escape, attribution reverses sign in 32 of 75 runs at unchanged accuracy, and gating on circuit formation is necessary but not sufficient. The corpus fixes when a mechanism appears, not which one -a criterion for when mechanistic attribution to data is available at all, and our construction makes the unavailable case exact.

For agents

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

get_harvested_code_for_paper("2608.24460")
get_code_for_paper("2608.24460")
have("2608.24460")

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

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

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

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

Connect an agent — have() is free.