WeightCode: installing new capabilities in neural networks via weight-space programming
WeightCode uses a frozen language model to write programs that read and edit a trained network's weights directly, without gradient training. Given a grammar or eight demonstrations, it takes unseen command compositions from 0% to 99.8% exact match, and on…
Why it matters
It proposes an alternative to fine-tuning for adding capabilities that is reusable and composable across edits.
What happened
1 min readWeightCode uses a frozen language model to write programs that read and edit a trained network's weights directly, without gradient training. Given a grammar or eight demonstrations, it takes unseen command compositions from 0% to 99.8% exact match, and on ImageNet four weight programs add 8.8-17.6 points of robustness while preserving clean accuracy, beating the best of eight fine-tuning methods.
Our analysis
The idea is bold, and transferring programs to five independently trained ViTs (retaining 83-110% of gains) suggests they capture something more general than a fixed edit. Experiments are on relatively small networks and narrow tasks, and it is unclear whether this scales to large LLMs. For now it is an interesting research result rather than a practical tool.