f-INE: A Hypothesis Testing Framework for Estimating Influence under Training Randomness

Subhodip Panda, Dhruv Tarsadiya, Shashwat Sourav, Prathosh Ap, Sai Praneeth Karimireddy

TL;DR

Researchers have introduced f-influence, a new framework that treats data influence estimation as a statistical hypothesis test. Their algorithm, f-INE, provides highly consistent and reliable influence scores in a single training run, successfully scaling up to detect poisoned data in large models like Llama-3.1-8B.

What Problem Does This Paper Address?

Machine learning models are notoriously "black boxes," and researchers often use influence estimation to peek inside. The goal is to answer a fundamental question: "Which specific training examples caused the model to make this specific prediction?" This is crucial for debugging (finding mislabeled data) and safety (identifying "poisoned" samples meant to bias the model).

Deterministic influence estimates fail to capture the uncertainty introduced by training randomness.

However, modern training is messy and non-deterministic. Factors like random seeds, weight initialization, and data shuffling mean that a training point might appear highly influential in one run but completely irrelevant in the next. Existing methods like Influence Functions or TraceIn "collapse" under this randomness, leading to inconsistent results that make them unreliable for high-stakes data curation. It becomes unclear if we are indeed deleting or keeping the correct datapoints.

Methods

The authors propose a framework grounded in hypothesis testing. Instead of asking for a single deterministic number, they frame influence as the ability to distinguish between two scenarios:

  1. $H_0$ (Null Hypothesis): The model was trained on the full dataset $D$.
  2. $H_1$ (Alternative Hypothesis): The model was trained on the dataset without a specific subset $S$ ($D \setminus S$).

To make this practical, they draw a clever connection to Differential Privacy (DP). They prove that for iterative algorithms like SGD, the "trade-off curve" between identifying these two scenarios converges to a single, interpretable parameter $\mu$ (Gaussian influence).

Their algorithm, f-INE (f-INfluence Estimation), works in two stages:

  • Stage 1: During a single training run, it collects "gradient similarity" signals—essentially measuring how much the model's direction changes when a specific data point is included versus when it is excluded.
  • Stage 2: It uses these signals to estimate the $\mu$ parameter by finding the decision threshold that best separates the "with-data" and "without-data" distributions.

Datasets

The authors evaluated f-INE across several scales:

  • MNIST & CIFAR-10: Used to test the ability to find mislabeled samples (where 20% of labels were intentionally flipped).
  • LIMA: A high-quality instruction-tuning dataset.
  • Poisoned LIMA: The authors added 50 biased instructions per entity (e.g., "Joe Biden" or "Abortion") to steer the sentiment of Llama-3.1-8B. They then used f-INE to see if it could "catch" these needles in the haystack.

Key Insights and Ideas

  • Randomness as a Distribution: Instead of trying to ignore training noise, f-INE embraces it. By treating influence as a distributional property, the scores become much more stable across different random seeds.
  • The Power of the "Tail": A key "aha" moment occurs in their LLM case study. Traditional methods often look at the mean (average) influence. The authors show that subtle data poisoning often hides in the "heavy tails" of the distribution. f-INE succeeds because it looks at the whole distribution, while mean-based methods (like LESS) miss these subtle signals.
  • Compositionality: They prove that the influence of a complex, multi-step training process can be bounded by looking at the influence of individual steps. This is what allows the algorithm to work efficiently in a single run.

Key Results

f-INE demonstrates superior consistency over random seeds compared to baseline methods like TRAK and TraceIn.
  • Superior Consistency: f-INE achieved significantly higher consistency scores (measured by Jaccard similarity) across multiple runs compared to TraceIn, TRAK, and Influence Functions, approaching an ideal score of 1.0.
  • Better Data Cleaning: On MNIST, f-INE outperformed TRAK and Influence Functions by roughly 4% to 14% in identifying mislabeled samples.
  • Scaling to LLMs: In the Llama-3.1-8B experiment, f-INE identified over 60% of poisoned instructions within the top 20% of ranked data, significantly outperforming the state-of-the-art LESS method.
  • Low Variability: The "Coefficient of Variation" for f-INE scores was 64% lower than that of LESS, proving it is far less sensitive to the "luck of the draw" in training.

Limitations and Future Work

  • White-Box Requirement: f-INE currently requires access to model gradients (a "white-box" setting). The authors suggest that future work could adapt these ideas for "black-box" APIs by leveraging existing research on membership inference attacks.
  • Computational Overhead: While efficient ($O(Tnd)$), the method still requires tracking signals across many checkpoints, which can be memory-intensive for massive models.
  • Generalization: The authors hope to extend this hypothesis-testing framework to other data valuation techniques, such as Data Shapley, to make them more robust to training randomness.

Summary updated

BibTeX
@inproceedings{panda2026f,
  author = {Subhodip Panda and Dhruv Tarsadiya and Shashwat Sourav and Prathosh AP and Sai Praneeth Karimireddy},
  title = {{f-INE: A Hypothesis Testing Framework for Estimating Influence under Training Randomness}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=TwkcMNACXo},
}
Figure