SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.06840 · 2026

Characterize Then Distill: Mechanistic Reasoning in Large Output Spaces

Byron Wallace, Javed Aslam, Debjyoti Saha

arXiv · PDF

Code that ran

4 of 12 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 0 have no contract verdict; 3 failures of our instrument; 8 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/2606.06840.json · badge: /api/ran/2606.06840.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
research-anon-487/xcube canonical (classifier label)
classifier basis: census
4 ran · 8 no recorded run
FunctionStatusWhere it lives
load_pretrained_keys Ran
ran, honoured the contract we drafted
research-anon-487/xcube/xcube/collab.py
code served (permissive licence) · get_code("cb06b8b8018ef621")
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 _IncompatibleKeys. 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 SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.u_weight = nn.Linear(4, 3, bias=False)
        self.u_bias = nn.Linear(4, 3, bias=False)
        self.i_weight = nn.Linear(4, 3, bias=False)
        self.i_bias = nn.Linear(4, 3, bias=False)

model = SimpleModel()

wgts = {
    '0.module.encoder.weight': torch.randn(3, 4),
    '1.attn.lbs_weight.weight': torch.randn(3, 4),
    '1.attn.lbs_bias.weight': torch.randn(3, 4),
}

ARGS = {
    'model': model,
    'wgts': wgts,
}
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 _IncompatibleKeys — a _IncompatibleKeys output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _IncompatibleKeys output the recorded ndim 2 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
make_paths Ran
ran; our contract draft was wrong, not the code
research-anon-487/xcube/xcube/utils.py
code served (permissive licence) · get_code("c076cd732410220e")
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 pathlib import Path
import tempfile

# Create a temporary directory for paths
temp_dir = tempfile.mkdtemp()
base_path = Path(temp_dir)

ARGS = {
    'path': base_path,
    'prefix': 'test_model'
}
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
match_embeds Ran
ran; our contract draft was wrong, not the code
research-anon-487/xcube/xcube/collab.py
code served (permissive licence) · get_code("91947da403736e2f")
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 numpy as np

torch.manual_seed(0)

# Create old_wgts with the required embedding weight tensors
old_u_wgts = torch.randn(5, 4)  # 5 old user tokens, 4-dim embeddings
old_i_wgts = torch.randn(6, 4)  # 6 old item labels, 4-dim embeddings
old_i_bias = torch.randn(6, 1)  # 6 old item biases

old_wgts = {
    '0.module.encoder.weight': old_u_wgts,
    '1.attn.lbs_weight.weight': old_i_wgts,
    '1.attn.lbs_bias.weight': old_i_bias,
    '0.module.encoder_dp.emb.weight': old_u_wgts.clone(),
    '1.attn.lbs_weight_dp.emb.weight': old_i_wgts.clone(),
}

# Create old_vocab as a list of two vocab objects
# Each vocab should have either o2i dict attribute or be indexable
class SimpleVocab:
    def __init__(self, words):
        self.words = words
        self.o2i = {w: i for i, w in enumerate(words)}

old_vocab = [
    SimpleVocab(['apple', 'banana', 'cherry', 'date', 'elderberry']),  # 5 old user tokens
    SimpleVocab(['label_a', 'label_b', 'label_c', 'label_d', 'label_e', 'label_f']),  # 6 old item labels
]

# Create new_vocab with token and label keys
# Some tokens/labels overlap with old, some are new (to trigger missing logic)
new_vocab = {
    'token': ['apple', 'banana', 'unknown_token', 'cherry'],  # 4 new tokens, 1 missing
    'label': ['label_a', 'label_x', 'label_b', 'label_y'],  # 4 new labels, 2 missing
}

ARGS = {
    'old_wgts': old_wgts,
    'old_vocab': old_vocab,
    'new_vocab': new_vocab,
}
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 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
namestr Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
research-anon-487/xcube/xcube/utils.py
code served (permissive licence) · get_code("79464d4983a1b2fe")
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 torch

def namestr(obj, namespace=None):
    """Returns the name of the object `obj` passed"""
    return [name for name in namespace if namespace[name] is obj]

# Create a simple object to search for
test_obj = torch.tensor([1, 2, 3])

# Create a namespace dictionary with various objects
namespace = {
    'var_a': torch.tensor([4, 5, 6]),
    'var_b': test_obj,
    'var_c': 42,
    'var_d': test_obj,
    'var_e': "hello"
}

ARGS = {
    'obj': test_obj,
    'namespace': namespace
}
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 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
lincomb Not yet run
unverified (harvested, no recorded run)
research-anon-487/xcube/xcube/layers.py
code served (permissive licence) · get_code("a00d7a6c1957082f")
How it ran

no invocation recorded.

loss_fn Not yet run
unverified (harvested, no recorded run)
research-anon-487/xcube/xcube/l2r/gradients.py
code served (permissive licence) · get_code("0232ac1b45031e9d")
How it ran

no invocation recorded.

plot_reduction Not yet run
unverified (harvested, no recorded run)
research-anon-487/xcube/xcube/utils.py
code served (permissive licence) · get_code("55e85c4e649a1d5e")
How it ran

no invocation recorded.

precision_at_k Not yet run
unverified (harvested, no recorded run)
research-anon-487/xcube/xcube/metrics.py
code served (permissive licence) · get_code("111d946b6f9de033")
How it ran

no invocation recorded.

precision_at_r Not yet run
unverified (harvested, no recorded run)
research-anon-487/xcube/xcube/metrics.py
code served (permissive licence) · get_code("c1535ab30156474b")
How it ran

no invocation recorded.

rank_loss2 Not yet run
unverified (harvested, no recorded run)
research-anon-487/xcube/xcube/l2r/gradients.py
code served (permissive licence) · get_code("51ad818b127f2635")
How it ran

no invocation recorded.

rank_loss3 Not yet run
unverified (harvested, no recorded run)
research-anon-487/xcube/xcube/l2r/gradients.py
code served (permissive licence) · get_code("76e00d8896b27b31")
How it ran

no invocation recorded.

recall_at_k Not yet run
unverified (harvested, no recorded run)
research-anon-487/xcube/xcube/metrics.py
code served (permissive licence) · get_code("e9e6246899873351")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 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 12 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

Modern reasoning models offer surprisingly strong zero-shot performance on challenging multi-label tasks that require selecting a small set of relevant options from hundreds of thousands to millions of candidate labels. We investigate how they achieve this mechanistically. We characterize reasoning as a two-phase process: A broad "shortlisting" of candidates followed by fine-grained reasoning over the resulting set. We provide evidence across a range of datasets that these steps can be isolated and are complementary. Using this characterization, we develop a mechanistic distillation strategy that consistently outperforms standard distillation. We open-source code and trained models.

For agents

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

get_harvested_code_for_paper("2606.06840")
get_code_for_paper("2606.06840")
have("2606.06840")

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

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

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

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

Connect an agent — have() is free.