# Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights

- **ID:** 1499
- **Kind:** post
- **URL:** https://rikiyat.github.io/blog/weight-space-programming/
- **Authors:** Rikiya, Jayden (author bylines as given in the post, full names and affiliations not stated there)
- **Venue:** Research blog post
- **Source:** blog
- **Language:** en
- **Access:** free
- **Added:** 2026-11-02
- **Verified:** 2026-11-02
- **Page:** https://papers.projxon.ai/entries/1499

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

## Research 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.

## Similar entries

- [Weight-Space Programming from scratch on simple tasks](https://papers.projxon.ai/entries/1500) (post, #1500)
- [ProgramBench: write-a-program-from-scratch SWE-agent benchmark; Muse Spark 1.3 results](https://papers.projxon.ai/entries/830) (benchmark, #830)
- [A Theoretical Analysis of Generalization Dynamics in Neural Networks under Gradient Descent with Weight Decay](https://papers.projxon.ai/entries/811) (paper, #811)
- [Neural Weight Norm = Kolmogorov Complexity](https://papers.projxon.ai/entries/508) (paper, #508)
- [Searching Latent Program Spaces](https://papers.projxon.ai/entries/926) (paper, #926)
- [How to Train a Neural Net: Lecture Notes (MIT 6.7960 Deep Learning, Fall 2024)](https://papers.projxon.ai/entries/1212) (post, #1212)
