SELFWRITE: LLMs write Python programs to edit their own weights without gradient descent
kalyan_kpl · x · 2026-11-25
The SELFWRITE paper enables LLMs to inspect their own weights, activations, and reasoning, then generate Python programs that modify their weights via low-rank edits — no gradient descent required.
- Core loop: the model iteratively evaluates candidate edits on a hidden validation set, keeps the best improving edit, and uses the updated model to generate the next edit.
- Results: on Qwen3.8-27B with DAPO-Math, after five generations gate accuracy rose from 73.95% to 76.45%, held-out avg@4 from 76.30% to 77.75%, and pass@4 from 82.60% to 84.80%.
More from Research
- Llama 3.1 as a protein-binder negative control: the designs were terrible — anshulkundaje · 2026-11-25
- Boltz team warns binder-design evaluation standards systematically overstate hit rates — anshulkundaje · 2026-11-25
- ProteinGym data leakage concern: GPT-6 likely trained on the exact test sequences — anshulkundaje · 2026-11-25
- Nature Methods: seven guiding questions to prevent data leakage in biology ML — anshulkundaje · 2026-11-25
- Protein model generalization remains a recurring challenge, experts argue — anshulkundaje · 2026-11-25
- Six-benchmark average tracks OpenAI log-perplexity at r=-0.99, hints internal model hits ~80% on HLE-Diamond — _jasonwei · 2026-11-25