权重空间编程不需要Transformer

·

研究论文 · 2026/11/18

标准Transformer架构因其在梯度下降训练和GPU上的高效性而被广泛采用,但在权重空间编程中,大语言模型(LLM)手动编写目标权重而无需梯度训练,这些优势不再适用。本研究在少量指导、十个标注示例和沙盒环境下,主要针对多项选择题,让三个前沿LLM生成固定架构的权重或自行设计架构。当自由设计时,三个LLM均将纯文本事实编译成由固定过程查询的稀疏表,测试准确率最高达54.4%。LLM设计的模型比同一LLM编写的最准确已发布Transformer测试准确率更高,且参数量减少约1800倍。无梯度情况下,LLM选择表结构,其中每个权重的含义可表述,错误权重可查找并重写。每个错误答案对应一行,删除一行约改变一个其他答案。据此,我们提出基于关联记忆的模型,在GPU上比同等大小Transformer快17倍。我们还测试了预训练权重、其他基准和生成答案的任务。预训练LLM仍更准确;本主张关注的是编写权重时构建何种结构。

本文挑战了Transformer在权重空间编程中的必要性,展示了LLM设计简单稀疏表结构即可实现更高准确率和效率,为无需梯度的模型设计提供了新思路,并提出了加速17倍的关联记忆模型,对理解LLM的权重编写能力和架构选择具有启发意义。

Standard neural architectures such as the Transformer were chosen because they train well with gradient descent and run fast on GPUs. In weight-space programming, a large language model (LLM) writes target weights by hand without gradient-based training, so those reasons no longer apply. Should we keep the Transformer? Given minimal guidance, ten labeled examples, and a sandbox, mainly on multiple-choice questions, we task three frontier LLMs with either generating the weights of a fixed architecture or designing the architecture themselves. When free to design, all three compile plain-text facts into a sparse table queried by a fixed procedure, reaching up to 54.4% test accuracy. An LLM-designed model achieves higher test accuracy than the most accurate released Transformer that the same LLM wrote while using about 1,800x fewer parameters. Without gradients, they choose a table, in which the LLM can state what each weight means and can find and rewrite a wrong one. Each wrong answer points to one row, and removing a row changes about one other answer. From this, we propose an associative-memory-based model up to 17x faster on GPUs than a same-sized Transformer. We also test pretrained weights, other benchmarks, and tasks where models generate answers. Pretrained LLMs remain more accurate; the claim concerns which structure to build when writing weights.

阅读原文

参与讨论