SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.03938 · 2026

q0: Primitives for Hyper-Epoch Pretraining

Samip Dahal, Bishwas Mandal, Shmuel Berman, Akshay Vegesna

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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; 5 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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.03938.json · badge: /api/ran/2606.03938.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
qlabs-eng/slowrun canonical (classifier label)
classifier basis: census
6 ran · 1 no recorded run
FunctionStatusWhere it lives
optimize_alpha Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
qlabs-eng/slowrun/unlimited/gradient_select.py
code served (permissive licence) · get_code("0dff35cd3b495d19")
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

torch.manual_seed(0)

# P_fit: [M, N] float tensor
# M=3 distinct from N=4 for shape probing
M, N = 3, 4
P_fit = torch.randn(M, N, dtype=torch.float32)

ARGS = {
    "P_fit": P_fit,
    "opt_steps": 300,
    "lr": 0.5,
    "weight_decay": 0.0,
    "grad_clip": 1.0,
    "eps": 1e-12,
    "seed": 0,
}
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
parse_n_layer_schedule Ran
ran, honoured the contract we drafted
qlabs-eng/slowrun/research/universal_transformer/train_unlimited.py
code served (permissive licence) · get_code("7c9ee1871f3b8ac9")
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 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.

# The function parse_n_layer_schedule takes a single parameter: spec (a string)
# It parses a comma-separated schedule of step:n_layer pairs
# Let's construct valid test cases

# Valid schedule: starts at step 0, strictly increasing steps, non-decreasing n_layer values
ARGS = {
    "spec": "0:2,10:4,20:6"
}
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 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
rms_norm Ran
ran; our contract draft was wrong, not the code
qlabs-eng/slowrun/research/universal_transformer/train_unlimited.py
code served (permissive licence) · get_code("91e337d4b7b8293c")
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 float, shape (2, 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
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small tensor with batch size 2 and feature dimension 4
x = torch.randn(2, 4)

ARGS = {
    'x': x
}
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 float, shape (2, 4) — shape (2, 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
run_gradient_selection Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
qlabs-eng/slowrun/unlimited/gradient_select.py
code served (permissive licence) · get_code("b3f4d8cf48999af4")
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

torch.manual_seed(0)

# Create a small P_active tensor [M, N] with M=5 candidates and N=3 fitness values
# Values should be valid probabilities (positive, will be clamped)
P_active = torch.tensor([
    [0.5, 0.3, 0.2],
    [0.4, 0.4, 0.2],
    [0.2, 0.5, 0.3],
    [0.6, 0.2, 0.2],
    [0.3, 0.3, 0.4]
], dtype=torch.float32)

# Define k_values to test
k_values = [2, 3, 5]

ARGS = {
    'P_active': P_active,
    'k_values': k_values,
    'opt_steps': 50,
    'lr': 0.5,
    'weight_decay': 0.0,
    'grad_clip': 1.0,
    'eps': 1e-12,
    'seed': 0
}
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
sha256_file Ran
ran; our contract draft was wrong, not the code
qlabs-eng/slowrun/prepare_data.py
code served (permissive licence) · get_code("5569e16cd0139606")
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 tempfile
import os

# Create a temporary file with some content
temp_dir = tempfile.mkdtemp()
temp_filepath = os.path.join(temp_dir, "test_file.txt")

with open(temp_filepath, 'wb') as f:
    f.write(b"Hello, this is test content for SHA256 hashing.\n" * 100)

ARGS = {
    "filepath": temp_filepath
}
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 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
tokenize_documents Ran
ran; our contract draft was wrong, not the code
qlabs-eng/slowrun/prepare_data.py
code served (permissive licence) · get_code("46f85d911174eff4")
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 numpy as np

class MockEncoder:
    def __init__(self):
        self._special_tokens = {'<|endoftext|>': 42}
    
    def encode_ordinary(self, text):
        # Return a small list of token ids based on text length
        return [100 + i for i in range(len(text) // 10 + 1)]

class MockDataset:
    def __init__(self, num_docs=3):
        self.docs = [
            {'text': 'hello world this is a test document'},
            {'text': 'another document with some content'},
            {'text': 'final document for tokenization'}
        ][:num_docs]
    
    def __iter__(self):
        return iter(self.docs)

dataset_iter = MockDataset(num_docs=3)
encoder = MockEncoder()
token_budget = 500

ARGS = {
    'dataset_iter': dataset_iter,
    'encoder': encoder,
    'token_budget': token_budget
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tqdm — 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
flash_attn_func Not yet run
unverified (harvested, no recorded run)
qlabs-eng/slowrun/research/universal_transformer/train_unlimited.py
code served (permissive licence) · get_code("5a657f70b0431103")
How it ran

no invocation recorded.

Also present in other papers' code

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

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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Multi-epoch training is becoming the standard now that compute is growing faster than the supply of high-quality text. But pretraining a single model saturates within a few passes, long before the compute budget is exhausted. We argue this calls for a conceptual shift from training a single model toward exploring a population of models and aggregating their predictions. We introduce hyper-epoch pretraining (q0), which turns a multi-epoch budget into a population of diverse models whose combined predictions reach a lower validation loss than a single refined model. q0 reduces to three core primitives. A cyclic schedule with anti-correlated learning rate and weight decay collects diverse models from a few parallel trajectories. Chain distillation trains each model against its predecessor so that model quality compounds across the population. A learned prior, fit on a held out set, selects and weights members for any inference budget. On a 1.8B-parameter model trained on 100M FineWeb tokens, q0 matches a strong 256-epoch ensemble baseline using only ∼56 epochs (∼4.6× fewer), or ∼67 epochs (∼3.8× fewer) when matched to the baseline's ensemble size, and continues to improve beyond it. These gains reach cumulative ∼12.9× data efficiency under the Slowrun setting and transfer to downstream benchmarks. Crucially, the optimal allocation shifts with the budget, so we give prescriptive recipes for how to spend a given epoch budget to maximize generalization, from a single epoch up to the largest budgets.

For agents

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

get_harvested_code_for_paper("2606.03938")
get_code_for_paper("2606.03938")
have("2606.03938")

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

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

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

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

Connect an agent — have() is free.