LoRIF: 低秩影响函数用于可扩展的训练数据归因
LoRIF: Pushing the Scalability Frontier of Training Data Attribution
AI总结:
LoRIF通过利用梯度的低秩结构,解决了大规模训练数据归因中的存储和计算瓶颈,实现存储和查询速度的显著提升,同时保持归因质量。
摘要:
训练数据归因(TDA)识别影响模型预测的训练示例。影响函数方法是理论上 grounded 的 TDA 方法,利用梯度。为克服梯度计算带来的可扩展性挑战,最流行的策略是随机投影(例如 TRAK、LoGRA)。然而,当扩展到大规模训练集和高质量归因时,仍面临两个瓶颈:(i)存储和加载所有 N 个训练示例的投影梯度,查询延迟由 I/O 主导;以及(ii)形成 D×D 的逆 Hessian 近似,这需要 O(D²) 内存。两个瓶颈随投影维度 D 增加而增加,但增加 D 是归因质量所必需的,从而产生质量-可扩展性权衡。我们引入 LoRIF(低秩影响函数),利用梯度的低秩结构解决这两个瓶颈。首先,我们存储投影每个示例梯度的 rank-c 因子,而不是完整矩阵,将存储和查询时间 I/O 从 O(D) 减少到 O(c√D) 每层每样本。其次,我们使用截断 SVD 加 Woodbury 身份来近似逆 Hessian 项在一个 r 维子空间中,将内存从 O(D²) 减少到 O(Dr)。在从 0.1B 到 70B 参数的模型上,训练在数百万示例的数据集上,LoRIF 相比 LoGRA 实现了高达 20 倍的存储减少和查询时间加速,同时匹配或超过其归因质量。LoRIF 使基于梯度的 TDA 在前沿规模上变得可行。
英文摘要:
Training data attribution (TDA) identifies which training examples most influenced a model's prediction. Influence function methods are a theoretically grounded family of TDA methods and exploit gradients. To overcome the scalability challenge arising from gradient computation, the most popular strategy is random projection (e.g., TRAK, LoGRA). However, this still faces two bottlenecks when scaling to large training sets and high-quality attribution: \emph{(i)} storing and loading projected per-example gradients for all $N$ training examples, where query latency is dominated by I/O; and \emph{(ii)} forming the $D \times D$ inverse Hessian approximation, which costs $O(D^2)$ memory. Both bottlenecks scale with the projection dimension $D$, yet increasing $D$ is necessary for attribution quality -- creating a quality--scalability tradeoff. We introduce \textbf{LoRIF} (\textbf{Lo}w-\textbf{R}ank \textbf{I}nfluence \textbf{F}unctions), which exploits low-rank structures of gradient to address both bottlenecks. First, we store rank-$c$ factors of projected per-example gradients rather than full matrices, reducing storage and query-time I/O from $O(D)$ to $O(c\sqrt{D})$ per layer per sample. Second, we use truncated SVD with the Woodbury identity to approximate the inverse Hessian term in an $r$-dimensional subspace, reducing memory from $O(D^2)$ to $O(Dr)$. On models from 0.1B to 70B parameters trained on datasets with millions of examples, LoRIF achieves up to 20$\times$ storage reduction and query-time speedup compared to LoGRA, while matching or exceeding its attribution quality. LoRIF makes gradient-based TDA practical at frontier scale. Code is available at https://github.com/doub7e/LoRIF.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。