Get the daily emailDaily email
  1. Home
  2. Research
  3. This story

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…

Published Read the original
WeightCode: installing new capabilities in neural networks via weight-space programming

Why it matters

It proposes an alternative to fine-tuning for adding capabilities that is reusable and composable across edits.

What happened

1 min read

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 ImageNet four weight programs add 8.8-17.6 points of robustness while preserving clean accuracy, beating the best of eight fine-tuning methods.

inscraper analysis

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.

More in Research