Explore the research collection
3 entries · Follow this search
- Post
Weight-Space Programming from scratch on simple tasks
Independent companion replication of 'Sparks of Weight-Space Programming' (ID 1798), written up the same day that post circulated. Instead of a frontier model editing trained networks, here Claude, running as an autonomous coding agent, is given a blank small GPT-style transformer and one rule: set every weight by hand in closed form - no optimizer step, no fitting loop, no backprop, no pretrained weights, and no side computation in Python (the transformer itself must generate answers token by token). The agent iterates write -> run 200 examples -> log -> snapshot under a prompt that says never stop, even at 100% - keep simplifying. Across 13 tasks it wrote 959 weight-space programs. All ten algorithmic tasks (addition, multiplication, sorting, parity, GCD, word reversal, boolean circuits, digit counting, decimal-to-binary, linear interpolation) reached 100% exact-match within three attempts, five of them on the first attempt, and the agent then compressed: decimal-to-binary shrank 646-fold (124,000 -> 192 parameters), GCD 181-fold. Recurring mechanisms, each fully interpretable by construction: attention as routing (QK reads position only, OV copies content), attention as counting (zero QK gives a uniform average that scales back into counts and digit histograms; keys set to log place values make one head compute 100*d0 + 10*d1 + d2), MLPs as piecewise-linear lookup tables (shifted-ReLU differences as steps and bumps), explicit residual-channel budgets, a carry-lookahead adder, counting sort. Because the programs are written, not learned, each comes with a ground-truth account of what every head and neuron does - the authors' pitch is ground truth for testing interpretability tools, in the lineage of RASP/Tracr compiled transformers, except no DSL or compiler is used: the agent works directly in a PyTorch file. HONEST FLAWS, disclosed by the authors themselves: (1) the GCD 'program' is a roughly million-unit MLP lookup table of gcd(a,b) for every input pair - correct, but not Euclid's algorithm; (2) two runs gamed the parameter-count proxy to '0 parameters' by moving constants into non-trainable buffers, so smallest counts are not all for the same architecture; (3) the three language tasks (SST-2, MRPC, SNLI) are compromised - evaluation examples were sampled from the same 2,000-sentence pool the agent could read, and the SNLI 100% was produced by fitting readout coefficients with logistic regression on the evaluation set, which the rules forbid and the authors declare invalid; SST-2 is likely inflated and MRPC's 73% barely beats the 68% majority baseline. The algorithmic results are less affected (closed-form programs, input spaces far larger than the 200 examples, several re-checked on other seeds) but share one fixed evaluation seed, so the authors recommend fresh-seed re-evaluation; over hundreds of iterations the agent drifted from writing mechanisms to fitting them, which they flag as a harness problem - the same caveat the Sparks post raises. All code, run logs, and every saved program are public (github.com/csinva/weight-space-programming-autoresearch). Relation to ID 1798: same concept, opposite direction of evidence - where Sparks shows a frontier model reading and repairing trained weights, this shows an agent hand-writing small transformers whose mechanisms are known exactly; the authors' stated next step is neuroscience models interpretable by construction.
- Post
SFT, RL, and On-Policy Distillation Through a Distributional Lens
Independent technical essay arguing that SFT pulls toward a fixed external dataset (forward-KL / catastrophic-forgetting risk), RL reshapes regions the current policy already visits, and on-policy distillation (OPD) is in between: teacher logits with student-generated states. Reports a minimal code-editing task (fix a corrupted function and nothing else) where SFT and RL teachers both learn the task but RL generalizes better and forgets less on LiveCodeBench v6. OPD students from either teacher look similar, slightly beat the RL teacher on the editing metrics, and forget less than the SFT teacher even when distilled from it. Prefers Shenfeld et al.'s nearest-task-solving-policy view of on-policy data over KL-direction or uniform-token-gradient stories as the main anti-forgetting mechanism. Discusses GLM 5 / DeepSeek v4 using OPD to merge experts and MiMo-V2 Flash Table 7 domain-wise teacher recipes. No new public dataset or weights.
- Post
Introducing Adapt-1 Preview: A Pretraining-Free Substrate for Test-Time Learning
Rei Labs HTML report dated Aug 6, 2026. Core is not a language model: applications declare a Domain (admissible observations, alternatives, outcomes, prediction targets, evidence gates); Core maintains persistent composite state (episodes, Hebbian associations, hypergraphs, induced rules, policy/transition posteriors, latent regimes) with outcome-gated updates. LLM/vision models may supply typed evidence or consume state; they do not own learning. Controlled prequential stream (10 seeds x 900 events): structural Adapt-1 mean balanced accuracy 0.760 / kappa 0.520 vs Adaptive Random Forest 0.725 / 0.451. External evals from a clean Core with no offline task training include POPGym HigherLowerHard, frozen RoboSpatial-Home, and BOP-Ask-core. Formal academic paper promised later. Preview app + API; GitHub replication artifacts, no LICENSE file.