绝对零度下的注意力

·

研究论文 · 2026/11/19

本文提出一种在零温度下读取注意力分数的机制,通过构建高阶注意力层,其状态定义在项目对上,每个第三项作为见证者通过两条腿(a,k)和(k,b)进行评判。该层在零温度下读取见证者,保留最佳分数及与之并列的数量,仅传递比较这些计数的比特,并在每个循环中从输入和这些比特重建对状态,仅从答案中训练。每个选择消除了软注意力在规模上的一种失败方式:权重分散、学习分数之间的未解决差距以及软状态漂移。在最大检索任务中,对于比训练大1000倍的集合,在全部十个种子上正确率至少99.95%;而使用软计数训练的同一网络在4096个项目时降至42%。在无提示的CLRS-30上,该层的一般形式(一半通道在零温度下读取,数字嵌入,状态携带)优于最佳已发表模型(该模型在某些任务上使用提示);完整的冷层在12个任务中的9个(其答案仅通过比较依赖于数字)的每个测试输入上精确。从是/否答案中,它精确判定500个变量的2-SAT和双着色问题,并且正如理论预测,不能判定奇偶方程。在冻结的7B语言模型旁,它在训练16条语句后精确链接1000条语句的家庭关系,而模型单独降至44%;对权重的有限检查证明每个学习正确的块在每个大小、无环上下文和给定模型读取内容时都正确。在CLUTRR上,给定图,它在每个五到十个关系的故事情节上正确,精确学习62条规则;从文本中,在模型冻结、无手写规则且仅训练小型读入的情况下,它将开放的7B模型从33%提升至65%,高于我们发现的除前沿推理模型外所有无手写规则的系统。

该研究通过零温度注意力机制显著提升了模型在规模上的精确性和泛化能力,在多个基准上超越现有方法,并与大型语言模型结合实现高效推理,对注意力机制和神经符号推理领域有重要启示。

Attention scores candidate supports of an answer, which we call witnesses, and reads the scores at a temperature. We build a higher-order attention layer whose state lives on pairs of items: for a pair (a, b), each third item k is a witness judged through its legs (a, k) and (k, b). It reads witnesses at zero temperature, keeping the best and the number tied with it, passes on only bits comparing such counts, rebuilds its pair state from the input and these bits at every loop, and is trained from answers alone. Each choice removes one way soft attention fails at size: dispersed weight, unresolved gaps between learned scores, and a drifting soft state. In maximum retrieval it is right on at least 99.95% of sets 1,000 times larger than in training, on all ten seeds; trained with a soft count, the same network falls to 42% at 4,096 items. On CLRS-30 without hints, a general form of the layer (half its channels read at zero temperature, numbers embedded, state carried) beats the best published model, which uses hints on some tasks; the full cold layer is exact on every test input of 9 of the 12 tasks whose answers depend on numbers only through comparisons. From yes-or-no answers it decides 2-SAT and two-colouring exactly at 500 variables and, as our theory predicts, not parity equations. Beside a frozen 7B language model it chains family relations exactly at 1,000 statements after training on 16, where the model alone falls to 44%; finite checks on the weights prove every block that learned correct at every size, on acyclic contexts and given what the model reads. On CLUTRR it is right on every story of five to ten relations given the graphs, learning the 62 rules exactly; from text, with the model frozen, no hand-written rule and only a small read-in trained, it lifts an open 7B model from 33% to 65%, above every system we found without hand-written rules except frontier reasoning models.

阅读原文

参与讨论