{
  "id": 1499,
  "kind": "post",
  "title": "Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights",
  "summary": "Blog post (2 Nov 2026) reporting early experiments on 'Weight-Space Programming': a general-purpose frontier LLM (GPT-6 Astra) reading and writing a neural network's raw weights directly, by reasoning - no optimizer, no gradient descent, sometimes no environment feedback at all. Complete logs of every experiment are released (github.com/RikiyaT/lm_understand-logs). READING: (Exp 1) given all 17,253 weights of an MLP policy as text, Astra names which of four PPO-trained games (Breakout/Pong/Pac-Man/Freeway, identical architecture and settings) each network was trained on - all four correct, without being given the options. (Exp 2) it identifies what shape each of three small DDPM diffusion models generates, from the weights alone, finding the shape's edges in the output layer (it draws outlines, missing that the shapes are filled - evidence it reads weight structure rather than simulating forward passes). (Exp 3) given only the middle four blocks of 7.2M char-level transformers, it names the training language (Python/romaji/English) for all three and identifies every induction ('copying') head with no false positives, effectively rediscovering the Elhage et al. weight-multiplication analysis unprompted. WRITING/FIXING: (Exp 4) a PPO Kinetix car-policy stuck in a local minimum (0% success) is fixed in one shot with no tools - Astra adds a small position/speed-reading path that switches off after the jump; 3.5% of weights changed, 100% success over 1,024 episodes. (Exp 5) zero-shot, from rules and source code only, it writes MinAtar policies from scratch that beat PPO-100M in all three games (Breakout 517.4 vs 15.8) and roughly match PPO-500M (Breakout 20x its score; Asterix close; Seaquest 60%). (Exp 6) at 1.48M weights (9x9 Go) via a Python sandbox, with zero forward passes it beats smaller PPO nets in over half its games; with 50 forward passes it beats an equal-sized PPO net trained on 20M games - it writes the net as an explicit program (liberties, groups in atari, capture/save heuristics) compiled into weights. (Exp 8) the headline: Qwen3.5-0.8B's known reasoning-loop failure is traced to one direction written by the MLPs of layers 15 and 19; subtracting it from 64 output columns in each (131,072 weights, 0.016% of the model) with a budget of 50 forward passes raises MATH-500 7.9% -> 48.1%, GSM8K 13.8% -> 67.1%, IFEval 21.0% -> 62.3%, and cuts token-limit hits 93% -> 33%. HONEST LIMITS, reported by the authors themselves: (Exp 7) Astra cannot tell which of two Gemma 3 270M fine-tunes is sycophantic from weights alone (0/4 attempts) - it succeeds only when also given attention patterns on texts it writes; and on Gemma 3 270M, which rarely loops, its edits move MATH-500 by at most ~1 point - weight editing removed an obstacle hiding an ability but could not add an ability the model lacked. Caveats: a blog post, not a peer-reviewed paper; all results are first-party, produced with a closed frontier model; the authors flag context-length and harness inefficiency as the current limits and say a benchmark and harness for Weight-Space Programming are in progress. Framing warning: the X post that circulated this (@MTSlive) attributes the work to 'Researchers at MIT' - no MIT affiliation appears anywhere in the post (acknowledgements thank discussants at Berkeley Sky Lab, CMU, and cmpnd), so that attribution is unsupported. In the catalog's weight-editing thread (cf. EngramEdit ID 1626, Qwenputer), this is the reasoning-native counterpart: no trained editor or compiler, just a frontier model reading and writing weights from a natural-language spec.",
  "body": "",
  "notes": "Blog post, not peer-reviewed; no arXiv version and no license stated - flagged. All results first-party (closed model, GPT-6 Astra); full experiment logs released at github.com/RikiyaT/lm_understand-logs. Shared via @MTSlive X post 2026-11-02 (status 2117333670000504945), whose 'Researchers at MIT' attribution is unsupported by the source - flagged in the summary. Enrichment (2026-11-02): the lead author is identified as Rikiya Takehi (the companion replication at csinva.io cites the post as 'Takehi, R.'). An independent companion replication - Claude hand-writing small transformers for algorithmic tasks under the same no-training rules - is cataloged as ID 1799.",
  "url": "https://rikiyat.github.io/blog/weight-space-programming/",
  "links": [],
  "authors": [
    "Rikiya",
    "Jayden (author bylines as given in the post",
    "full names and affiliations not stated there)"
  ],
  "tags": [],
  "topics": "",
  "venue": "Research blog post",
  "publisher": "",
  "source": "blog",
  "language": "en",
  "access": "free",
  "license": "",
  "published_year": null,
  "added_at": "2026-11-02T00:00:00.000Z",
  "verified_at": "2026-11-02T00:00:00.000Z",
  "attrs": {},
  "enrichment": {},
  "enriched_at": null,
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "legacy_paper_id": "1798"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-11-02T19:29:00.152Z",
  "updated_at": "2026-11-02T21:06:20.445Z",
  "page": "https://papers.projxon.ai/entries/1499",
  "markdown": "https://papers.projxon.ai/entries/1499.md",
  "api": "https://papers.projxon.ai/api/entries/1499",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 1500,
      "kind": "post",
      "title": "Weight-Space Programming from scratch on simple tasks",
      "summary": "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.",
      "url": "https://csinva.io/weight-space-programming-autoresearch/analyze/toy_examples/report.html",
      "authors": [
        "csinva (research site/GitHub identity",
        "site of Chandan Singh",
        "no explicit byline on the page)"
      ],
      "tags": [],
      "venue": "Research report page (csinva.io)",
      "source": "blog",
      "license": "",
      "published_year": null,
      "added_at": "2026-11-02T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1500",
      "markdown": "https://papers.projxon.ai/entries/1500.md",
      "api": "https://papers.projxon.ai/api/entries/1500"
    },
    {
      "id": 830,
      "kind": "benchmark",
      "title": "ProgramBench: write-a-program-from-scratch SWE-agent benchmark; Muse Spark 1.3 results",
      "summary": "ProgramBench: a SWE-agent benchmark where an agent must write a whole program (sqlite, ffmpeg, php, cmatrix, ngrrram, ...) from scratch. Meta Muse Spark 1.3 ranks #2 (max tier) and #3 (xhigh tier) overall on the leaderboard. Full solves by 1.3 max: 5 programs entirely -- cmatrix, eureka, ngrrram*, nomino*, wrapcheck* (* = first time any LM has solved them). ngrrram (a TUI typing trainer): the agent typed lessons into the original and captured the screen frame by frame, then recreated layouts/scoring/UI; remaining misses are small details. Progress 1.1 -> 1.3 (both xhigh): avg test pass rate 47.0% -> 68.6%; almost resolved (>=95%): 8 -> 33 programs; fully resolved: 0 -> 2; 39% fewer tokens across the benchmark. Cost: Muse Spark max averages $6.46/task -- roughly the same as GPT-5.6 Sol xhigh at $6.08, but fully resolves 5 programs vs 2 and gets >=95% on 50 vs 31; Opus 5 reaches 9 solved at $50.53/task (~8x more). Trajectories, final codebases, and test pass/fail breakdowns open-sourced; submissions open to anyone. More models coming soon (6 astra, 5.5 opus noted).",
      "url": "https://x.com/jyangballin/status/2105322290179428389?s=20",
      "authors": [
        "ProgramBench team",
        "John Yang (SWE-bench / SWE-agent / SWE-smith author)"
      ],
      "tags": [
        "agents",
        "coding-agents",
        "swe-benchmarks",
        "program-synthesis",
        "open-weight-evals"
      ],
      "venue": "programbench.com (results announced 2026-09-30)",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-30T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/830",
      "markdown": "https://papers.projxon.ai/entries/830.md",
      "api": "https://papers.projxon.ai/api/entries/830"
    },
    {
      "id": 811,
      "kind": "paper",
      "title": "A Theoretical Analysis of Generalization Dynamics in Neural Networks under Gradient Descent with Weight Decay",
      "summary": "Theoretical framework characterizing how data, architecture, and training dynamics jointly shape generalization throughout training. Studies neural networks trained with L2 loss by gradient descent with weight decay; proves GD converges to a neighbourhood of the global minimizers of the empirical loss, then partitions the input space into data-centered cells and decomposes population risk into three explicit terms: E_opt (optimization error on training data), E_PV (propagation-variation error: how predictions oscillate within each cell), and E_A (approximation error: how far ground truth is from the function class). The culprit behind memorization without generalization is E_PV: E_opt vanishes early while E_PV stays large. Under approximate Euler homogeneity, layerwise variation satisfies a differential inequality with explicit contraction rate lambda_l >= 1 - 2(1 + L) eta_2 lambda-bar, bounding E_PV by the initial hypothesis variation decaying exponentially in steps at a rate proportional to weight decay. Yields a closed-form grokking residency time (Steps ~ Omega(log(Initial_Var / budget) / (lambda-bar * eta_2 * sum L_l))): weight decay accelerates generalization, deeper networks contract faster, smoother initialization shortens the delay. Bounds are qualitative -- constants depend on suprema over parameter balls and loss smoothness, so they give rates and scaling laws, not exact step counts.",
      "url": "https://arxiv.org/abs/2609.07755",
      "authors": [
        "Yuqing Wang",
        "Ioannis G. Kevrekidis",
        "Mikhail Belkin"
      ],
      "tags": [
        "generalization-theory",
        "grokking",
        "weight-decay",
        "optimization",
        "memorization"
      ],
      "venue": "arXiv (cs.LG), submitted 2026-09-07",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-30T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 1,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/811",
      "markdown": "https://papers.projxon.ai/entries/811.md",
      "api": "https://papers.projxon.ai/api/entries/811"
    },
    {
      "id": 508,
      "kind": "paper",
      "title": "Neural Weight Norm = Kolmogorov Complexity",
      "summary": "Shows N(s) ≤ K(s) ≤ N(s) log N(s) for the min non-zero parameter count of a fixed-precision looped net that emits s; both sides tight (program-to-weights encoding; permutation-matrix witness). In fixed precision every Lp norm collapses to N(s), so L2 weight decay induces an output prior matching Solomonoff's universal prior up to a log in the exponent. Infinite/rational precision makes the bound vacuous. Conceptual, not small-scale predictive; no experiments. No official code on abs.",
      "url": "https://arxiv.org/abs/2605.10878",
      "authors": [
        "Tiberiu Musat"
      ],
      "tags": [
        "weight-decay",
        "kolmogorov",
        "solomonoff",
        "looped-transformer",
        "mdl",
        "eth-zurich",
        "fixed-precision"
      ],
      "venue": "arXiv / ETH Zürich",
      "source": "",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-01T16:45:04.296Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 2,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/508",
      "markdown": "https://papers.projxon.ai/entries/508.md",
      "api": "https://papers.projxon.ai/api/entries/508"
    },
    {
      "id": 926,
      "kind": "paper",
      "title": "Searching Latent Program Spaces",
      "summary": "LPNs learn a continuous latent space of implicit programs and use gradient-based test-time search to adapt to new I/O tasks without LLMs or predefined DSLs; test-time search roughly doubles OOD ARC-AGI performance in reported results.",
      "url": "https://arxiv.org/abs/2411.08706",
      "authors": [
        "Clement Bonnet",
        "Matthew Macfarlane"
      ],
      "tags": [
        "lpn",
        "latent-program",
        "arc-agi",
        "test-time-search",
        "arxiv:2411.08706"
      ],
      "venue": "arXiv 2411.08706",
      "source": "arxiv",
      "license": "arXiv non-exclusive",
      "published_year": 2024,
      "added_at": "2026-10-02T23:40:42.683Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 23,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/926",
      "markdown": "https://papers.projxon.ai/entries/926.md",
      "api": "https://papers.projxon.ai/api/entries/926"
    },
    {
      "id": 1212,
      "kind": "post",
      "title": "How to Train a Neural Net: Lecture Notes (MIT 6.7960 Deep Learning, Fall 2024)",
      "summary": "Concise mathematical treatment of how a neural network learns its weights during training, from MIT's 6.7960 Deep Learning course (Fall 2024). Covers the forward pass, loss functions, gradients, backpropagation, and gradient-based optimization — aimed at moving from high-level intuition to a rigorous understanding of training math. Lecture 2 notes; a tip in the thread notes all 20+ lectures can be downloaded from the course's OCW page. Resource-sharing, not a research paper.",
      "url": "https://ocw.mit.edu/courses/6-7960-deep-learning-fall-2024/mit6_7960_f24_lec2.pdf",
      "authors": [
        "MIT 6.7960 Deep Learning course staff (Fall 2024)"
      ],
      "tags": [
        "neural-networks",
        "backpropagation",
        "gradient-descent",
        "lecture-notes",
        "mit-ocw",
        "education"
      ],
      "venue": "MIT OpenCourseWare, 6.7960 Deep Learning (Fall 2024), Lecture 2",
      "source": "other",
      "license": "",
      "published_year": 2024,
      "added_at": "2026-10-03T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1212",
      "markdown": "https://papers.projxon.ai/entries/1212.md",
      "api": "https://papers.projxon.ai/api/entries/1212"
    }
  ]
}
