Weight-Space Programming of LoRA Adapters
We let an AI agent write the weights of a LoRA adapter by hand instead of training them. The agent looks at the model's activations and the training examples, and then computes the weights with simple linear algebra. It uses no gradients. We test two uses. First, the agent edits the adapter once, early in normal fine-tuning, and training then continues. On Qwen3-0.6B, this single edit makes fine-tuning reach its final accuracy in a third of the steps and finish slightly higher, while changing the model's behaviour on unrelated text less. On the smaller SmolLM2-135M, a higher learning rate gives the same speed-up. The edit takes a few seconds and beats the standard approach of fitting a linear probe before fine-tuning. Second, the agent writes a whole adapter from scratch. On the same small set of layers, written adapters match trained ones while disturbing the base model far less. On a robot policy, they keep the original skill, which trained adapters partly lose. Written weights work best as readouts and switches on top of features that training builds.
Authors
- Vuk Rosić
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24790385
- Primary Topic
- Domain Adaptation and Few-Shot Learning
- Type
- preprint