arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.04715cs.CLcs.AIcs.LG
收藏

首先并非真的优于最后:评估语言模型数据影响估计中的层数选择和聚合策略

First is Not Really Better Than Last: Evaluating Layer Choice and Aggregation Strategies in Language Model Data Influence Estimation

Bellini College of Artificial Intelligence, Cybersecurity, and Computing(人工智能、网络安全与计算学院)

Dmytro Vitel, Anshuman Chhabra

AI总结:

本研究通过理论和实证分析,证明中间注意力层比第一层更有效,提出新的噪声检测率度量标准,挑战传统影响估计方法。

摘要:

识别训练样本如何影响/冲击大语言模型(LLM)的决策过程对于有效解释模型决策和审计大规模数据集至关重要。当前的训练样本影响估计方法(也称为影响函数)通过利用模型中通过一阶和更高阶梯度项的信息流来实现这一目标。然而,由于当今模型的规模庞大,包含数十亿参数,这些影响计算通常被限制在某些模型层的子集以确保计算可行性。Yeh等人(2022)先前的工作在评估哪些层最适合计算语言数据影响时得出结论,即第一(嵌入)层是最有信息量的,基于一个假设,即影响分数相互抵消(即抵消效应)。在本工作中,我们提出了理论和实证证据,证明抵消效应是不可靠的,并且中间注意力层是更好的影响估计器。此外,我们还解决了跨层聚合影响分数的更广泛挑战,并展示了替代标准平均(如排名和投票方法)如何显著提高性能。最后,我们提出了在不进行模型重新训练的情况下评估影响分数有效性的更好方法,并提出了一种新的度量标准,称为噪声检测率(NDR),其相比抵消效应具有更强的预测能力。通过在不同类型和规模的LLM上进行广泛的实验,我们明确确定了第一(层)并不一定比最后一(层)更适合LLM影响估计,这与该领域先前的知识相矛盾。

英文摘要:

Identifying how training samples influence/impact Large Language Model (LLM) decision-making is essential for effectively interpreting model decisions and auditing large-scale datasets. Current training sample influence estimation methods (also known as influence functions) undertake this goal by utilizing information flow through the model via its first-order and higher-order gradient terms. However, owing to the large model sizes of today consisting of billions of parameters, these influence computations are often restricted to some subset of model layers to ensure computational feasibility. Prior seminal work by Yeh et al. (2022) in assessing which layers are best suited for computing language data influence concluded that the first (embedding) layers are the most informative for this purpose, using a hypothesis based on influence scores canceling out (i.e., the cancellation effect). In this work, we propose theoretical and empirical evidence demonstrating how the cancellation effect is unreliable, and that middle attention layers are better estimators for influence. Furthermore, we address the broader challenge of aggregating influence scores across layers, and showcase how alternatives to standard averaging (such as ranking and vote-based methods) can lead to significantly improved performance. Finally, we propose better methods for evaluating influence score efficacy in LLMs without undertaking model retraining, and propose a new metric known as the Noise Detection Rate (NDR) that exhibits strong predictive capability compared to the cancellation effect. Through extensive experiments across LLMs of varying types and scales, we concretely determine that the first (layers) are not necessarily better than the last (layers) for LLM influence estimation, contrasting with prior knowledge in the field.

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

↑