SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.21386 · 2026

Model of Models: When Does Emitting a Specialist Beat Attending, Adapting, or Tuning? A Controlled Cross-Domain Study of Amortized Weight Generation

John Howell, Nineonefour

arXiv · PDF

Code that ran

6 of 9 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; 4 failures of our instrument; 3 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.21386.json · badge: /api/ran/2608.21386.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
johnchowell/Model-of-Models canonical (classifier label)
classifier basis: census
6 ran · 3 no recorded run
FunctionStatusWhere it lives
chunk_bpc Ran
ran; our contract draft was wrong, not the code
johnchowell/Model-of-Models/exp13_hyperlora.py
code served (permissive licence) · get_code("dfbbaf8bada6e08d")
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
import torch.nn.functional as F
import math

torch.manual_seed(0)

# chunk_bpc expects:
# - logits: a tensor that can be flattened to (batch_size * seq_len, vocab_size)
# - tgt: a tensor that can be flattened to (batch_size * seq_len,)

# Create small tensors with distinct dimensions
batch_size = 2
seq_len = 3
vocab_size = 4

logits = torch.randn(batch_size, seq_len, vocab_size)
tgt = torch.randint(0, vocab_size, (batch_size, seq_len))

ARGS = {
    "logits": logits,
    "tgt": tgt,
}
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
exact_match Ran
ran; our contract draft was wrong, not the code
johnchowell/Model-of-Models/exp16_arc.py
code served (permissive licence) · get_code("8b3aae2b84b3210e")
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 (2,) 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 small logits tensor: (batch_size=2, sequence_length=3, vocab_size=4)
# The function calls argmax(-1) and compares to tgt, so logits should have shape (batch, ..., vocab_size)
logits = torch.randn(2, 3, 4)

# Create target tensor: (batch_size=2, sequence_length=3)
# Must match the non-last dimensions of logits
tgt = torch.randint(0, 4, (2, 3))

ARGS = {
    "logits": logits,
    "tgt": tgt
}
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 (2,) — shape (2,) 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_corpus Ran
ran; our contract draft was wrong, not the code
johnchowell/Model-of-Models/exp12_lm.py
code served (permissive licence) · get_code("177e6731706681d8")
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 os
import tempfile

# Create temporary directory and mock data files
tmpdir = tempfile.mkdtemp()
os.makedirs(f'{tmpdir}/data', exist_ok=True)

SOURCES = ['shakespeare', 'alice', 'python', 'c_headers']

# Create mock data files with small uint8 tensors
for source in SOURCES:
    data = torch.randint(0, 256, (100,), dtype=torch.uint8)
    with open(f'{tmpdir}/data/{source}.txt', 'wb') as f:
        f.write(data.numpy().tobytes())

# Change to temp directory so relative path works
original_dir = os.getcwd()
os.chdir(tmpdir)

# Define ARGS with the parameter
ARGS = {
    'val_frac': 0.1
}
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
lora_delta Ran
ran; our contract draft was wrong, not the code
johnchowell/Model-of-Models/exp12_lm.py
code served (permissive licence) · get_code("a7d7bb2a40592c1f")
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 3, dtype family float, shape (2, 3, 4) 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)

# x: shape (batch, time, dim) - the input tensor
x = torch.randn(2, 3, 4)

# A: shape (batch, rank, dim) - first projection matrix
A = torch.randn(2, 5, 4)

# B: shape (batch, dim, rank) - second projection matrix
B = torch.randn(2, 4, 5)

# scale: scalar multiplier
scale = 0.5

ARGS = {
    'x': x,
    'A': A,
    'B': B,
    'scale': scale
}
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 3, dtype family float, shape (2, 3, 4) — shape (2, 3, 4) 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
sample_lm_batch Ran
ran, honoured the contract we drafted
johnchowell/Model-of-Models/exp12_lm.py
code served (permissive licence) · get_code("41ee7c197b144bef")
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 2, dtype family int, shape (2, 5) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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)

# The function expects:
# - data: dict with values that are tensors of token sequences
# - B: int (batch size)
# - T: int (sequence length)
# - device: str (defaults to 'cuda', but we use 'cpu')

# Create sample data: dict of tensors with token sequences
data = {
    'seq_0': torch.randint(0, 100, (50,), dtype=torch.long),
    'seq_1': torch.randint(0, 100, (60,), dtype=torch.long),
    'seq_2': torch.randint(0, 100, (70,), dtype=torch.long),
}

B = 2  # batch size
T = 4  # sequence length

ARGS = {
    'data': data,
    'B': B,
    'T': T,
    'device': 'cpu'
}
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 2, dtype family int, shape (2, 5) — shape (2, 5) 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
sample_tasks Ran
ran, honoured the contract we drafted
johnchowell/Model-of-Models/exp14_sinusoid.py
code served (permissive licence) · get_code("6835abbeb38e0957")
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 3, dtype family float; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import torch

torch.manual_seed(0)

ARGS = {
    'B': 2,
    'n': 4,
    'device': 'cpu'
}
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 3, 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
evaluate_real Not yet run
unverified (harvested, no recorded run)
johnchowell/Model-of-Models/exp16_arc.py
code served (permissive licence) · get_code("36e28ee9fa2ee1a5")
How it ran

no invocation recorded.

fourier Not yet run
unverified (harvested, no recorded run)
johnchowell/Model-of-Models/exp11_hypernet.py
code served (permissive licence) · get_code("9a1ed389e8887d97")
How it ran

no invocation recorded.

greedy_step Not yet run
unverified (harvested, no recorded run)
johnchowell/Model-of-Models/exp10_ablate.py
code served (permissive licence) · get_code("2d88b7ef3bc824ca")
How it ran

no invocation recorded.

Also present in other papers' code

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

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

Given a task described by a few examples, how should a model be specialized to it? Four mechanisms are available-zero-shot, in-context attention, test-time gradient adaptation, and emitting specialist weights from a hypernetwork-yet the operating regime of the last is rarely mapped. We run the identical four-way comparison across six tasks spanning regression, generation, language modeling, reinforcement learning, and clinical and genomic classification, holding the specialist, the context, and (where we can) the training budget fixed. The clearest wins for emission are about cost at matched quality: it ties the state-of-the-art amortized tabular model (TabPFN) on clinical few-shot classification while emitting a reusable specialist instead of re-attending the support set per query, and reaches noise-floor shape generation with a 132float per-instance program. On few-shot sinusoid regression it is 2-3 orders of magnitude below MAML at zero test-time gradient steps-a margin that narrows to ∼30× but persists once training budgets are equalized. Emission cannot match in-context attention on high-dimensional sequence modeling: under matched-budget pre-training a one-pass adapter recovers only a minority of the in-context gain (14.0 ± 0.9% at 5M, 11.2 ± 0.5% at 15M), and a LoRA-rank sweep shows this shortfall is a partial capacity limit-capture climbs from 5% to 21% as rank grows but plateaus far below full recovery. Mechanism ablations confirm the emitted specialist is genuinely task-conditioned, not a memorized prior; and, more speculatively, emitted specialists compose in weight space-interpolating two of them tracks the corresponding blend of their functions. We close with a falsifiable thesis, operationalized through a per-task resolution measure, bounding when each conditioning mechanism should be preferred.

For agents

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

get_harvested_code_for_paper("2608.21386")
get_code_for_paper("2608.21386")
have("2608.21386")

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

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

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

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

Connect an agent — have() is free.