权重空间编程实现上下文学习,效果匹配语言模型微调
Weight-Space Programming Writes In-Context Learning and Matches Fine-Tuning in Language Models
研究显示,权重空间编程可让较弱语言模型通过示例获得权重更新,在提示中不包含任何内容的情况下完成任务。实验覆盖6项任务、4个前沿编辑器与3个较弱模型家族,多数运行中编辑器测得ICL任务向量并写入权重,精度达到ICL与微调(含LoRA)水平,且通常不影响困惑度。措辞变化时性能下降,仅最强编辑器在无任务对、仅见示例条件下表现相近。
arXiv:2611.26841v2 Announce Type: replace Abstract: Weight-space programming is a frontier language model's recently reported ability to read another network's weights and edit them without gradient descent. We investigate how examples can provide a weight update so that a weaker language model performs the task with nothing in the prompt, and study what the updates are. Our experiments cover six tasks, four frontier editors and three families of weaker language models, without the editors being told anything about in-context learning (ICL). In most runs, the editors measure the ICL task vector, the shift the examples cause in the residual stream at the final prompt token, and write it into the weights, at its sparsest into near-silent MLP units keyed to the prompt format. Results reach the accuracy of ICL and fine-tuning on the same examples, LoRA included, usually leaving perplexity untouched, with worse performance under changes of wording. We also qualify the comparison by counting unfinished runs, observing that one editor falls below fine-tuning; held only to the seen examples, without task pairs of their own, only the strongest editor has similar performance. Given a task and unlabelled inputs, that editor writes its own examples and does nearly as well on unseen items as with labels.
来源:arXiv (AI + Vision + Imaging) · arxiv.org