Don't Train It, Write It: An AI Agent Writes New Capabilities into Language Model Weights
Abstract
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 (weboflies) 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 (weboflies) 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.
Create a lesson
Related papers
Learning When to Ask: Advisor-Aware Post-Training for SLM Agents
Shared title terminology · Aasheesh Singh, Vishal Vaddina
Measuring and Teaching Language Model Agents to Act on Delayed Consequences
Shared title terminology · Shardul Bansal, Seth Schilbe, Jarrod Barnes
When a Permitted Action Completes a Forbidden Workflow: Designing Consequence-Oriented Approval for LLM Agents
Shared title terminology · S M Asif Hossain, Ruksat Khan Shayoni, Md Kishor Morol et al.
WingBench: Benchmarking How AI Agents Search for Better Designs
Shared title terminology · Yiming Yang, David Xia, Jisen Li et al.
Model Carving: Training Transformers That Optimize Their Own Topology
Shared title terminology · Kaden Zheng, Pratyusha Sharma
DistDNA: Language Model Fingerprinting under Stochastic Decoding
Shared title terminology · Lifan Hu, Qian Yu, Zhaomin Wu et al.