阐明语言模型数据归因的设计空间
Elucidating the Design Space of LM Data Attribution
AI总结:
本研究探索LLM数据归因的设计空间,提出可控归因基准CATT,发现用负对数几率梯度替代交叉熵损失梯度并聚合Top词分数可显著提升归因性能,该修正还能推广到FTRACE-TREX。
摘要:
语言模型(LM)的数据归因方法通常使用事实检索等下游任务进行评估。然而,现有评估会同时改变多个数据集属性,导致无法准确分离归因算法失效的具体原因。为诊断这些失效问题,我们探索了大语言模型(LLM)数据归因的设计空间,重点关注评估环节。我们引入了用于事实追踪的可控归因基准(CATT),在该基准中我们在完全虚构的知识上微调LLM,为归因提供明确的真实值。这种合成设置允许我们一次系统地改变一个数据集配置,例如文档冗余度和词汇干扰项。通过这种可配置的评估,我们证明冗余度和干扰项会持续降低归因性能。我们没有提出新的估计器,而是研究了两个未被充分探索的设计选择:用于计算梯度的损失函数,以及如何将逐词的归因分数聚合为文档分数。我们发现训练文档中的真实因果证据高度局部化,但标准方法通过对整个文档的归因分数取平均,将这些证据稀释为噪声。我们发现用负对数几率梯度替代标准交叉熵损失梯度,能从其他无信息的词中凸显出关键词。随后,我们仅聚合排名靠前的词的分数,在我们的诊断基准上,多个基线方法的真实值召回率提升了35至72个百分点。负对数几率修正还可推广到FTRACE-TREX,对于我们测试的每一种方法,都能将反事实再训练性能提升最多4.9倍。
英文摘要:
Data attribution methods for Language Models (LMs) are typically evaluated using downstream tasks like fact retrieval. However, existing evaluations vary multiple dataset properties simultaneously, making it impossible to isolate exactly why an attribution algorithm fails. To diagnose these failures, we explore the design space of LLM data attribution, with a primary focus on evaluation. We introduce the Controlled Attribution Benchmark (CATT) for fact tracing, in which we fine-tune LLMs on entirely fictitious knowledge, providing unambiguous ground truth for attribution. This synthetic setup allows us to systematically alter one dataset configuration at a time, such as document redundancy and lexical distractors. With this configurable evaluation, we demonstrate that redundancy and distractors consistently degrade attribution performance. Rather than proposing a new estimator, we examine two design choices that are underexplored: the loss used to compute gradients and how per-token attribution scores are aggregated into a document score. We find that the true causal evidence within a training document is highly localized, but standard methods dilute this evidence into noise by averaging attribution scores across the entire document. We find that replacing standard cross-entropy loss gradients with the negative log-odds gradients surfaces the critical tokens from other uninformative ones. We can then aggregate only the top token scores to improve ground truth recall by 35 to 72 percentage points across multiple baselines on our diagnostic benchmark. The negative log-odds correction also generalizes to FTRACE-TREX, improving counterfactual retraining performance for every method we test, by up to 4.9x.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。