Faithful and Fast Influence Function via Advanced Sampling

Jungyeon Koh, Hyeonsu Lyu, Jonggyu Jang, Hyun Jong Yang
10/30/2025
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

How can we explain the influence of training data on black-box models? Influence functions (IFs) offer a post-hoc solution by utilizing gradients and Hessians. However, computing the Hessian for an entire dataset is resource-intensive, necessitating a feasible alternative. A common approach involves randomly sampling a small subset of the training data, but this method often results in highly inconsistent IF estimates due to the high variance in sample configurations. To address this, we propose two advanced sampling techniques based on features and logits. These samplers select a small yet representative subset of the entire dataset by considering the stochastic distribution of features or logits, thereby enhancing the accuracy of IF estimations. We validate our approach through class removal experiments, a typical application of IFs, using the F1-score to measure how effectively the model forgets the removed class while maintaining inference consistency on the remaining classes. Our method reduces computation time by 30.1% and memory usage by 42.2%, or improves the F1-score by 2.5% compared to the baseline.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{koh2025faithful,
  title  = {Faithful and Fast Influence Function via Advanced Sampling},
  author = {Jungyeon Koh and Hyeonsu Lyu and Jonggyu Jang and Hyun Jong Yang},
  year   = {2025},
  eprint = {2510.26776},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.26776v2}
}

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/2510.26776.svg)](https://codeofpaper.com/paper/2510.26776)

Discussion