Don't Train It, Write It: An AI Agent Writes New Capabilities into Language Model Weights
On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks also fits: Agent skill learning and evolution
Abstract (arXiv)
We show that an AI agent can write new capabilities into a pretrained language model by adding gated attention heads and MLP neurons inside its existing layers, without backpropagation and without fitting any weight to the answers of task examples. It has a budget of 50 model passes and sees no validation or test instance. Composed in one model, its modules for six BIG-Bench Hard (BBH) subtasks raise the normalized BBH score of Qwen2.5-1.5B-Instruct from 19.95 to 41.05 (Qwen2.5-7B-Instruct: at most 35.01) and that of Gemma-3-1B-it from 10.25 to 32.86. Against the unmodified model at the same precision, both composites leave the next-token distribution on 1,023,000 WikiText tokens unchanged (KL exactly 0), give identical answers on 15,845 items of five other Leaderboard tests and identical scores on the other 18 BBH subtasks. The agent also writes exact multiplication up to 20 digits, running the model only up to 6 (100.0% on the absent lengths of the sealed test in both models; a LoRA with the same budget: at most 2.1%). Sets, rules and report sentences were sealed in git before the first session (manifests timestamped in Bitcoin), with dated amendments listed in Appendix D; a frozen evaluator ran the sealed test once. Verdicts (H5: tracking; H6: composite; H8: one pass vs. chain of thought; H9: fresh and rewritten instances; H10: side effects; H12: multiplication), on the preregistered sealed test, Qwen2.5-1.5B-Instruct: H5 success, H6 success, H8 (web_of_lies) success, H9 success, H10 (composite) success on (i) to (iii), (iv) confirmed, H12 success; Gemma-3-1B-it (H7: H5, H6, H8 and H9 in this model): H5 success, H6 success, H8 (web_of_lies) success, H8 (tracking 3) success, H9 partial, H10 (composite) success on (i) to (iii), (iv) confirmed, H12 success. Not everything worked: 4 of 45 single modules show small side effects and 5 of 50 sessions hit the 12-hour limit without a module.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 27 of its 38 references that are in the map. Submitted 21 Nov 2026, announced 24 Nov 2026.
Builds on
27 of 38 references.
References · 27
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 15,591
- 2020Measuring Massive Multitask Language Understandingcited by 8,473
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 5,336
- 2016Pointer Sentinel Mixture Modelscited by 3,344
- 2022Locating and Editing Factual Associations in GPTcited by 2,951
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,957
- 2023Steering Language Models With Activation Engineeringcited by 1,128
- 2022PAL: Program-aided Language Modelscited by 685
- 2016The CMA Evolution Strategy: A Tutorialcited by 412
- 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 348
- 2022Exploring Length Generalization in Large Language Modelscited by 219
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 219
15 more
- 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 214
- 2024Lessons from the Trenches on Reproducible Evaluation of Language Modelscited by 211
- 2023Tracr: Compiled Transformers as a Laboratory for Interpretabilitycited by 125
- 2024Transformers Can Do Arithmetic with the Right Embeddingscited by 89
- 2025Language Models Use Trigonometry to Do Additioncited by 86
- 2024Position Coupling: Improving Length Generalization of Arithmetic Transformers Using Task Structurecited by 28
- 2023Mastering Symbolic Operations: Augmenting Language Models with Compiled Neural Networkscited by 16
- 2025Why Can't Transformers Learn Multiplication? Reverse-Engineering Reveals Long-Range Dependency Pitfallscited by 12
- 2026WeightBench: Evaluating Language Models as Weight-Space Programmerscited by 4
- 2025Tracr-Injection: Distilling Algorithms into Pre-trained Language Modelscited by 3
- 2026Explaining Attention with Program Synthesiscited by 3
- 2026Language Models Can Rewrite Their Own Weightscited by 3
- 2026Sketchpad: certified exact arithmetic with a small vision-language modelcited by 2
- 2026A Tool in the Forward Pass: Frozen Tape Modules as Layers of a Small Language Modelcited by 1
- 2026WeightCode: Installing New Capabilities into Neural Networks via Weight-Space Programmingcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Agents Can Use Base Models to Evade AI Detection
- 2026Agent Skills for Large Language Models: Architecture, Acquisition, Security, and the Path Forward
- 2025Instruction-Level Weight Shaping: A Framework for Self-Improving AI Agents
- 2024Offline Training of Language Model Agents with Functions as Learnable Weights
- 2026Compiled Memory: Not More Information, but More Precise Instructions for Language Agents
- 2026AutoDataBench: Can Agents Write the Data That Feeds the Self-Improvement Loop?
- 2026Think with Skills: Pseudocode Planning Before Execution for Advanced Reasoners
- 2024Symbolic Learning Enables Self-Evolving Agents