Empirical influence functions to understand the logic of fine-tuning
Jordan K. Matelsky, Lyle Ungar, Konrad P. Kording
TL;DR
The paper introduces empirical influence functions (EIF) to quantify how fine-tuning data affect model outputs and defines desiderata for useful influences. Using EIFs on CNNs trained with FashionMNIST and MNIST and on a Phi-3 LLM, the authors connect the observations to the neural tangent kernel (NTK) regime, showing symmetry in CNN influences but persistent asymmetry and lack of robust logical structure in LLM fine-tuning. Prompting with in-context data partly rescues the desiderata, illustrating that context can outperform pure fine-tuning for enabling logical and causal inferences. The work provides an efficient, scalable EIF framework to diagnose and potentially steer learning from fine-tuning stimuli, with implications for model alignment, interpretability, and meta-learning that aim to shape the influence of training data.
Abstract
Understanding the process of learning in neural networks is crucial for improving their performance and interpreting their behavior. This can be approximately understood by asking how a model's output is influenced when we fine-tune on a new training sample. There are desiderata for such influences, such as decreasing influence with semantic distance, sparseness, noise invariance, transitive causality, and logical consistency. Here we use the empirical influence measured using fine-tuning to demonstrate how individual training samples affect outputs. We show that these desiderata are violated for both for simple convolutional networks and for a modern LLM. We also illustrate how prompting can partially rescue this failure. Our paper presents an efficient and practical way of quantifying how well neural networks learn from fine-tuning stimuli. Our results suggest that popular models cannot generalize or perform logic in the way they appear to.
