arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.16709cs.LGcs.CL
收藏

用于数学推理验证的注意力图曲率

Attention-Graph Curvature for the Verification of Mathematical Reasoning

Télécom Paris(巴黎电信学院);École Polytechnique(巴黎综合理工学院);CNRS(法国国家科学研究中心)

Kanghyeon Kim, Johannes F. Lutzeyer, Yanzhu Guo

AI总结:

本研究探讨注意力图的有向福尔曼曲率是否可用于数学推理验证,在ProcessBench上评估四个验证器,附加曲率可提升其性能,ReProbe提升最大,且使前向传播时间平均增加18%。

摘要:

语言模型近期已解决了厄德什(Erdős)公开问题,并在国际数学奥林匹克(International Mathematical Olympiad)题目上取得了金牌级表现,但它们用自然语言写出的解答目前仍无法被证明助手验证。错误的推理步骤会使后续所有步骤失效,因此尽早检测错误十分有利。已有若干方法被提出,用于基于执行推理的语言模型前向传播特征快速检测错误推理。本研究探讨该模型注意力图的有向福尔曼曲率(directed Forman curvature,一种在边处由其周围注意力权重计算得到的局部量)是否包含步骤正确性的信息。为此,我们在ProcessBench数据集上评估了四个每步骤验证器,分别在输入中附加曲率和不附加曲率的情况。附加曲率值提升了所有四个验证器的整体平均性能,其中将步骤的每个 token 作为输入的验证器ReProbe 提升最大。添加曲率使语言模型前向传播的时间平均增加了18%。

英文摘要:

Language models have recently solved open Erdős problems and achieved gold-medal level performance on International Mathematical Olympiad problems. But their solutions, written in natural language, cannot yet be verified by proof assistants. An erroneous reasoning step can invalidate every step that comes after, so it is advantageous to detect errors early. Several methods have been proposed to detect erroneous reasoning quickly based on the features of the forward pass of the language model that performs reasoning. In this work, we study whether the directed Forman curvature of that model's attention graph, a local quantity computed at an edge from the attention weights around it, carries information about a step's correctness. To do so, we evaluate four per-step verifiers on ProcessBench with and without the curvature appended to their input. Appending curvature values improves the overall mean performance of all four verifiers. ReProbe, the verifier that takes every token of a step as input, shows the largest improvement. Adding the curvature increases the time of the language model's forward pass by 18% on average. Our code is available at https://github.com/kanghyeonz/attention-graph-curvature.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑