paper web signal

WeightCode: frozen LLM writes programs that rewrite ViT weights

TL;DR

  • A frozen language model writes short programs that read and modify a neural network's weights directly, skipping gradient-based training.
  • Ten weight programs retained 83-110% of their source-network gains when applied across five independently trained Vision Transformers.
  • Four programs delivered 8.84-17.62 point gains on ImageNet robustness while preserving clean accuracy, reportedly beating eight fine-tuning methods.

A frozen language model can write short programs that read and rewrite a neural network's weights directly to install new capabilities, according to a preprint titled "WeightCode: Installing New Capabilities into Neural Networks via Weight-Space Programming". The authors describe "executable programs [that] read, construct or modify a network's weights directly," skipping gradient-based training entirely.

On command composition the technique moves accuracy from 0% to 99.8% exact match on previously unseen compositions. On a pickup action benchmark, 0% to 98.4% success.

The more unusual claim is transfer. Ten weight programs retained 83 to 110% of their source-network gains when applied across five independently trained Vision Transformers, meaning a program written against one model carried over to others. Six programs stacked onto already-edited networks added 5.23 to 14.50 points of contrast robustness. Four programs delivered 8.84 to 17.62 point gains on ImageNet robustness while preserving clean accuracy, which the paper reports as surpassing eight fine-tuning methods.

The abstract gives ranges, not per-model numbers, and does not name the eight fine-tuning methods it compares against. The paper is a preprint and has not been independently replicated.