arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2610.25877cs.LG
收藏

DeltaTrace:面向推理语言模型的高效符号归因方法

DeltaTrace: Efficient Signed Attribution for Reasoning Language Models

Harbin Institute of Technology(哈尔滨工业大学);Zhejiang Lab(之江实验室)

Chen Liang, Daoping Wu, Donghua Yang, Zhiyu Liang, Ying Zhang, Shuguang Xiong, Hongzhi Wang

AI总结:

DeltaTrace是一种高效符号归因框架,可解释输入标记对语言模型响应的影响,在注意力及混合模型上的删除保真度优于FlashTrace,干草堆中针召回率更高。

摘要:

我们研究上下文中的词语如何支持或反对语言模型的响应,并提出DeltaTrace,这是一种新颖的归因框架,用于解释输入标记对固定模型响应的影响。DeltaTrace通过在被解释的上下文标记被掩码时测量响应的对数概率变化来实现这一点。为了将这种差异分配给源标记,它针对有限变化构建了特定于算子的局部规则,并使用有效割线斜率通过计算图反向组合这些规则。每个标记被分配一个符号归因,即其嵌入位移与相应反向传播斜率的内积。局部守恒使这些贡献的总和等于测量的分数差异,并在句子或段落聚合时保留其含义。DeltaTrace支持注意力模型和线性注意力模型,在固定模型维度和块大小下,其辅助内存随序列长度线性增长。在评估的注意力模型上,DeltaTrace在大多数检索和推理任务上实现了最低的删除保真度分数(RISE和MAS),并获得了最高的干草堆中针召回率,超过FlashTrace 5.67至24.33个百分点。在评估的混合注意力与线性注意力模型上,DeltaTrace相对于FlashTrace在9个任务上降低了RISE,在12个任务上降低了MAS。

英文摘要:

We study how words in the context support or oppose a language model's response and present DeltaTrace, a novel attribution framework that explains the effect of input tokens on a fixed model response. DeltaTrace measures how the response's log-probability changes when the context tokens being explained are masked. To distribute this difference among source tokens, it constructs operator-specific local rules for finite changes and composes them backward through the computational graph using effective secant slopes. Each token is assigned a signed attribution as the inner product of its embedding displacement and the corresponding backward-propagated slope. Local conservation makes these contributions sum to the measured score difference and preserves their meaning when aggregated over sentences or passages. DeltaTrace supports both attention and linear-attention models, with auxiliary memory growing linearly with sequence length at fixed model dimensions and chunk size. On the evaluated attention model, DeltaTrace achieves the lowest deletion-faithfulness scores (RISE and MAS) on most retrieval and reasoning tasks and the highest needle-in-a-haystack Recall, exceeding FlashTrace by 5.67-24.33 percentage points. On the evaluated hybrid attention and linear-attention model, DeltaTrace lowers RISE on 9 tasks and MAS on 12 relative to FlashTrace.

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

↑