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

Xinyu Zhou, Simin Fan, Martin Jaggi

TL;DR

Influence functions are powerful tools for identifying which training samples most impact a model's performance, but computing them for large foundation models is notoriously slow and unstable. This paper introduces HyperINF, a method that combines Schulz's iterative matrix inversion algorithm with Generalized Fisher Information Matrix (GFIM) approximations. HyperINF delivers stable, highly accurate, and computationally efficient data attribution for large language and vision-language models, especially when using parameter-efficient tuning like LoRA.

What Problem Does This Paper Address?

Data-centric AI has shown that the quality of training data matters just as much as model architecture. Influence functions offer a principled way to do data attribution—quantifying exactly how much a specific training data point helps or hurts a model's performance on a validation set.

However, calculating true influence requires inverting a massive Hessian matrix (the matrix of second-order derivatives), which scales at an intractable $O(d^3)$ cost where $d$ is the number of parameters. Existing approximation methods fall short:

  • LiSSA iteratively estimates Hessian-vector products but lacks strong convergence guarantees, often causing the calculation to violently diverge on large models.
  • DataInf uses a closed-form approximation but suffers from a quadratic error bound that degrades downstream performance.

The authors tackle this bottleneck to make data attribution stable, accurate, and cheap enough for modern large language models (LLMs) and vision-language models (VLMs).

Methods

HyperINF achieves its efficiency and stability through two core innovations:

  1. Schulz's Iterative Method (Hyperpower Family): Instead of standard matrix inversion techniques, HyperINF leverages Schulz's algorithm ($X_{t+1} = X_t(2I - AX_t)$) to approximate the matrix inverse. This method provides rigorous quadratic convergence guarantees, ensuring the approximation quickly stabilizes rather than exploding.
  2. Generalized Fisher Information Matrix (GFIM): To avoid the massive memory footprint of the standard Hessian, the authors use GFIM as a low-rank approximation. Crucially, when applied to Low-Rank Adaptation (LoRA) fine-tuning, GFIM reduces the memory and computational overhead to a constant cost that is completely independent of the LoRA ranks.

Additionally, the authors apply a block-wise diagonal approximation, computing the inverse independently for each transformer layer block to further save compute.

Datasets

The authors evaluated HyperINF across three distinct downstream applications using several standard benchmarks:

  • Mislabeled Data Detection: Evaluated on 6 binary classification tasks from the GLUE benchmark (COLA, MRPC, QNLI, QQP, RTE, SST2) using a RoBERTa-large model.
  • LLM Fine-Tuning Data Selection: Tested on 4 reasoning datasets—QASC, HellaSwag, PIQA, and LogiQA—using Llama2-7B.
  • VLM Pre-training Data Selection: Utilized a 665K multimodal instruct-tuning mixture (including LLaVA Synthetic Data, Standard VQA, Multiple Choice VQA, TextCaps, and RefCOCO) to train a VLM (CLIP ViT-Large + Llama2-7B), evaluating on VQAv2, GQA, POPE, and TextVQA.

Key Insights and Ideas

  • Guaranteed Convergence is Crucial: Synthetic simulations reveal that as matrix dimensions grow, standard baselines like LiSSA and DataInf completely diverge from the true inverse. Schulz's method is the only one that consistently converges to a low error rate.
  • LoRA Synergy: By utilizing unflattened gradients with GFIM, HyperINF bypasses the need to flatten gradient vectors. For a LoRA rank of 16, HyperINF requires just 0.39% of the memory and 6.25% of the computations compared to traditional Hessian-vector product operations.
  • Alignment is Essential for VLM Attribution: The authors discovered that attempting data selection before cross-modal alignment (matching vision and language spaces) severely degrades influence accuracy. The alignment phase provides indispensable geometric information that makes data attribution meaningful.

Key Results

Synthetic Convergence

In matrix inversion simulations, HyperINF consistently converges across various matrix dimensions ($d$) and sample sizes ($N$), whereas LiSSA's error explodes exponentially.

Convergence test of HYPERINF, LiSSA and DataInf.

Mislabeled Data Detection

When identifying corrupted data points in the GLUE benchmark, HyperINF consistently outperformed all baselines. At a 20% and 40% inspection rate, it beat competing methods by a margin of 7% to 25% in detection accuracy.

Figure 2: Mislabeled Data Detection across the GLUE Benchmark with rank r = 16 for rsLoRA finetuning. HYPERINF significantly improve the detection rate (rt) according to the inspection rate (p) above all baselines, while LISSA performs barely better than the random guess. The dotted lines denote the detection rates from Random Guess and Oracle, which is the best possible accuracy at each inspection rate. For each method, we run the experiments with 3 random seeds and report the detection rate with 95% confidence intervals.

The exact quantitative breakdown highlights HyperINF's superior detection rate across almost all tasks:

Table 2: Mislabeled Data Detection Accuracies across the GLUE Benchmark with rank r = 16 for rsLoRA finetuning. When probing 20% and 40% data points, HYPERINF can consistently outperform other baselines by a large margin (7%-25% ↑).

Data Selection for Fine-Tuning

  • LLMs: Selecting just the top 5% of training data using HyperINF yielded better downstream reasoning accuracy than training on the entire (100%) dataset, saving massive amounts of compute.
  • VLMs: With a 20% data selection ratio, HyperINF achieved a 2.3% average accuracy improvement over random selection, while other second-order methods suffered severe performance degradation.

Limitations and Future Work

While HyperINF demonstrates excellent empirical results, it relies on a few idealized theoretical assumptions. Specifically, the GFIM approximation assumes that the columns of the gradient matrices are independently and identically distributed (i.e.i.d.) with a zero mean. In real-world LLM training dynamics, this assumption does not strictly hold.

The authors note that finding even more accurate low-rank approximations of the Hessian matrix within tractable computational limits remains an open and compelling direction for future research.

Summary updated

BibTeX
@inproceedings{zhou2025hyperinf,
  author = {Xinyu Zhou and Simin Fan and Martin Jaggi},
  title = {{HyperINF: Unleashing the HyperPower of the Schulz's Method for Data Influence Estimation}},
  booktitle = {COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=QByEdZMJdx},
}
Figure