Weight-Space Programming Doesn't Need Transformers
该论文提出了一种基于关联记忆的模型,用于权重空间编程,显著提高了推理速度,同时保持了与LLM设计模型相当的准确性。
更新于 2026-11-26。作者:Hyunjong Ok、Jaeho Lee。
中文摘要
标准神经网络架构,如Transformer,因其能够通过梯度下降有效训练且在GPU上运行速度快而被选中。在权重空间编程中,大型语言模型(LLM)通过手动编写目标权重而不依赖于基于梯度的训练,因此上述原因不再适用。我们应该保留Transformer吗?在给予最小指导、十个标记示例和一个沙盒(主要针对多项选择题)的情况下,我们让三个前沿的LLM要么生成固定架构的权重,要么自行设计架构。当自由设计时,这三个LLM都将文本事实编译成由固定程序查询的稀疏表,测试准确率高达54.4%。一个由LLM设计的模型在测试准确率上超过了相同LLM编写的最准确的已发布Transformer,同时使用的参数数量减少了约1800倍。没有梯度的情况下,它们选择一个表格,其中LLM可以声明每个权重代表什么,并且可以找到并重新编写错误的一个。每个错误答案指向一行,移除一行大约会改变一个其他答案。基于此,我们提出了一种基于联想记忆的模型,其GPU速度比同等规模的Transformer快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.
解读
一句话总结
该论文提出了一种基于关联记忆的模型,用于权重空间编程,显著提高了推理速度,同时保持了与LLM设计模型相当的准确性。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:传统的Transformer架构在权重空间编程(WSP)中效率低下,因为WSP不依赖于梯度下降进行训练。
- 现有方案不足:现有的WSP方法通常依赖于Transformer架构,导致计算效率低下。
- 研究目标:设计一个高效且准确的模型,用于权重空间编程,不依赖Transformer架构。
问题2:论文的核心创新点是什么?
- 技术创新:提出了一种基于关联记忆的模型,用于权重空间编程,该模型使用稀疏表和固定查找程序。
- 方法改进:改进了WSP的架构,使其不依赖于Transformer,从而提高了计算效率。
- 优势:与同等规模的Transformer相比,该模型在GPU上的推理速度提高了17倍,同时保持了与LLM设计模型相当的准确性。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在ARC多选题科学问题上进行实验,比较了LLM设计的模型、基于关联记忆的模型和Transformer。
- 性能提升:基于关联记忆的模型在GPU上的推理速度比同等规模的Transformer快17倍,同时保持了与LLM设计模型相当的准确性。
- 对比结果:与同等规模的Transformer相比,基于关联记忆的模型在GPU上的推理速度提高了17倍。
问题4:这个研究的实际应用价值是什么?
- 应用场景:适用于需要快速推理的场景,例如实时问答系统。
- 实施建议:使用基于关联记忆的模型进行权重空间编程,以提高计算效率。
- 局限与展望:该模型在处理图像和文本分类任务时效果不佳,未来可以探索将LLM与图像识别模型结合的方法。