HyperINF: Unleashing the HyperPower of the Schulz's Method for Data Influence Estimation

Xinyu Zhou, Simin Fan, Martin Jaggi
10/7/2024
cs.LGstat.ML

Official code: Blackzxy/HyperINF (0 stars, Apache-2.0, last commit 2024-12-01).

Abstract

Influence functions provide a principled method to assess the contribution of individual training samples to a specific target. Yet, their high computational costs limit their applications on large-scale models and datasets. Existing methods proposed for influence function approximation have significantly reduced the computational overheads. However, they mostly suffer from inaccurate estimation due to the lack of strong convergence guarantees from the algorithm. The family of hyperpower methods are well-known for their rigorous convergence guarantees on matrix inverse approximation, while the matrix multiplication operation can involve intractable memory and computation costs on large-scale models. We propose HyperINF, an efficient and accurate influence function approximation method which leverages the hyperpower method, specifically Schulz's iterative algorithm. To deal with the computation-intensive matrix multiplication, we incorporate the generalized fisher information (GFIM) as a low-rank approximation of the Hessian matrix, which reduces the memory and computation overheads to constant costs independent of ranks on LoRA-tuned models. We first demonstrate the superior accuracy and stability of HyperINF compared to other baselines through a synthetic convergence simulation for matrix inversion. We further validate the efficacy of HyperINF through extensive real-world data attribution tasks, including mislabeled data detection and data selection for LLM and VLM fine-tuning. On LoRA-tuned models, HyperINF achieves superior downstream performance with minimal memory and computational overhead, while other baselines suffer from significant degradation. Our codebase is available at https://github.com/Blackzxy/HyperINF.

View on arXivView PDF

Code Implementations(1)

Blackzxy/HyperINFOfficial100%
Apache-2.0
00Python, Jupyter NotebookMay 21, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhou2024hyperinf,
  title  = {HyperINF: Unleashing the HyperPower of the Schulz's Method for Data Influence Estimation},
  author = {Xinyu Zhou and Simin Fan and Martin Jaggi},
  year   = {2024},
  eprint = {2410.05090},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.05090v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.05090.svg)](https://codeofpaper.com/paper/2410.05090)

Discussion