跳到主要导航 跳到搜索 跳到主要内容

Accelerating Influence Function Estimation for Large Language Models: A Practical Design

  • Mengyi Yan*
  • , Yaoshu Wang*
  • , Guangyi Zhang
  • , Kehan Pang
  • , Haoyi Zhou*
  • *此作品的通讯作者
  • School of Artificial Intelligence
  • Shandong University
  • Shenzhen Institute of Computing Sciences
  • School of Artificial Intelligence
  • Shenzhen Technology University
  • Beihang University

科研成果: 书/报告/会议事项章节 › 会议稿件 › 同行评审

摘要

Influence functions provide a principled framework for tracing model predictions back to training data, yet existing methods remain impractical for large language models due to prohibitive storage and I/O costs. Prior approaches face two critical barriers: the Fidelity Gap from coarse curvature approximations, and the I/O bottleneck from materializing per-example gradients, which renders million-scale datasets infeasible. We propose StructInf, a structure-aware influence estimation framework that addresses both gaps through system-algorithm co-design. For fidelity, we first replace the indefinite Hessian with an adaptive block-diagonal damped empirical Fisher surrogate, computed via quadratically convergent Newton - Schulz iterations. For efficiency, we then introduce a streaming algorithm that eliminates per-example gradient storage entirely, reducing space complexity from O(N •d) to O(d) and enabling processing of million-scale training instances on consumer hardware, where N denotes the number of training instances and d the parameter size. We further identify and resolve Split-View Bias, a distributed pitfall where naive averaging of local curvatures fails, via a distributed gradient calibration strategy that synchronizes global statistics with minimal communication. Finally, we conduct comprehensive experiments to evaluate StructInf against other baselines. Unlike prior methods requiring hours of pre-computation or TB-scale storage, StructInf enables real-time data selection during training. Across GLUE and instruction-tuning benchmarks, StructInf achieves up to +26% AUC on MRPC and average 7× speedup for 7B-scale models, making high-fidelity influence analysis practical on a single RTX 4090. These results suggest that practical IF for LoRA-tuned LLMs benefits from joint optimization of curvature modeling, memory management, and distributed coordination.

源语言英语
主期刊名KDD 2026 - Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.2
出版商Association for Computing Machinery
页5927-5938
页数12
ISBN(电子版)9798400722592
DOI
出版状态已出版 - 8 8月 2026
活动32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.1, KDD 2026 - Jeju Island, 韩国
期限: 9 8月 2026 → 13 8月 2026

丛书

姓名Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery and Data Mining
卷2-B
ISSN(印刷版)2154-817X

会议

会议32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.1, KDD 2026
国家/地区韩国
市Jeju Island
时期9/08/26 → 13/08/26

学术指纹

探究 'Accelerating Influence Function Estimation for Large Language Models: A Practical Design' 的科研主题。它们共同构成独一无二的学术指纹。

引用此