cs.LGOct 11, 2026

ZOIF: Zeroth-Order Influence Function Estimation for LLM Data Selection Using Only Forward Passes

Authors: Lisong He, Yunxuan Jiang, Haishan Ye, Xiangyu Chang

Organizations: School of Management, Xi’an Jiaotong University, Xi’an, China

Abstract

Influence functions enable principled data selection for large language models (e.g., identifying influential training samples for model editing, debugging, or efficient fine-tuning). However, scaling IFs to LLMs is hindered by the intractability of billion-scale Hessian matrices and the prohibitive memory overhead of backpropagation (BP). While many classical IF approximations reduce Hessian complexity, they still rely on BP for gradient computation, requiring massive storage for intermediate activations that impedes practical data selection at scale. To address this, we propose ZOIF, a zeroth-order framework for influence estimation that operates entirely via forward passes, enabling memory-efficient data selection under resource constraints. ZOIF decomposes influence estimation into three BP-free stages: (1) approximating the average proxy gradient via zeroth-order estimation; (2) reformulating and solving the inverse Hessian-vector product as an auxiliary zeroth-order optimization to bypass explicit inversion; and (3) deriving per-sample influence scores via a forward finite difference along the previously computed parameter update direction. Experiments show that ZOIF selects data subsets with downstream utility competitive with, and in some cases exceeding, the evaluated baselines, yet at substantially lower peak memory cost and with comparable overall computation time.

Figures & tables

Appendix figures & tables18 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Influence-Preserving Proxies for Gradient-Based Data Selection in LLM Fine-tuning

    Feb 19, 2026Sirui Chen, Yunzhe Qi, Mengting Ai +4Training Data SelectionLLM Fine-Tuning

  2. LESSER: Post-Training Data Selection with Output-Layer Gradients

    Oct 2, 2026Lyuxin David Zhang, Eric Wong, Surbhi Goel +1Training Data SelectionData Selection for Language Model Fine-Tuning

  3. Interaction-Aware Influence Functions for Group Attribution

    May 15, 2026Jaeseung Heo, Kyeongheung Yun, Youngbin Choi +3Instruction-Tuning Data SelectionInfluence Functions