A frozen language model writes reusable programs that construct weight updates for trained networks.
How it works
- Construction
- The language model writes Python code that inspects the network and constructs weight changes, using evaluation feedback to select candidates.
- Preparation and training
- The main protocol uses direct computation and forward-pass feedback without gradient-based training; finite-difference experiments are reported separately.
- Execution
- The edited network runs without the language model. The retained code can construct new edits for compatible networks.
Cite this work
@misc{weightcode,
title = {{WeightCode: Installing New Capabilities into Neural Networks via Weight-Space Programming}},
author = {Li, Bo and Cui, Taoyong and Zhang, Bob and Li, Mengran and Zhang, Chengyang and Zhang, Yang and Heng, Pheng Ann and Ouyang, Wanli and Yin, Zhenfei and Wu, Yingcheng and Yang, Ling},
year = {2026},
date = {2026-11-19},
eprint = {2611.25476},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.25476}
}