[Paper Review] Multi-Stage Influence Function
This paper introduces a multi-stage influence function to trace predictions in fine-tuned models back to influential examples in pretraining data, enabling efficient, non-retraining estimation of influence without requiring model convexity. The method achieves strong correlation (up to 0.92) between predicted and actual influence scores, offering a scalable way to diagnose data impact across pretraining and fine-tuning stages.
Multi-stage training and knowledge transfer, from a large-scale pretraining task to various finetuning tasks, have revolutionized natural language processing and computer vision resulting in state-of-the-art performance improvements. In this paper, we develop a multi-stage influence function score to track predictions from a finetuned model all the way back to the pretraining data. With this score, we can identify the pretraining examples in the pretraining task that contribute most to a prediction in the finetuning task. The proposed multi-stage influence function generalizes the original influence function for a single model in (Koh & Liang, 2017), thereby enabling influence computation through both pretrained and finetuned models. We study two different scenarios with the pretrained embeddings fixed or updated in the finetuning tasks. We test our proposed method in various experiments to show its effectiveness and potential applications.
Motivation & Objective
- To address the lack of methods for quantitatively measuring how pretraining data influences fine-tuned model performance in multi-stage learning.
- To enable influence analysis from fine-tuning predictions back to pretraining data without retraining, overcoming computational infeasibility of brute-force removal.
- To understand whether pretraining data benefits or harms the fine-tuning task, especially in cases of 'false transfer' or low-shot learning.
- To decompose influence into two components: influence on the pretrained model and influence on the fine-tuned model, for better interpretability.
- To provide a scalable, first-order approximation method that works under both fixed and updated embedding settings in fine-tuning.
Proposed method
- Proposes a multi-stage influence function that generalizes the original influence function (Koh & Liang, 2017) to trace influence from pretraining data through both pretraining and fine-tuning stages.
- Uses a first-order approximation of the loss change when a pretraining example is removed, enabling efficient computation without retraining.
- Derives influence scores separately for two settings: when pretrained embeddings are fixed and when they are fine-tuned during the downstream task.
- Computes influence as the product of gradients from the pretraining and fine-tuning stages, capturing the full backpropagation path of influence.
- Employs a Jacobian-based approximation to estimate the influence of each pretraining example on the final prediction in the fine-tuning task.
- Applies parallel computation to scale to large models (e.g., ELMo with 93.6M parameters), with each data point’s influence computed independently.
Experimental results
Research questions
- RQ1Which pretraining examples contribute most to a prediction in a downstream fine-tuning task?
- RQ2How does the influence of pretraining data on the fine-tuned model depend on the similarity between pretraining and fine-tuning tasks?
- RQ3Does the number of fine-tuning examples affect the relative influence of pretraining data on model predictions?
- RQ4Can we detect 'false transfer' where harmful pretraining data negatively impacts fine-tuning performance?
- RQ5How well does the proposed influence score correlate with the true loss change when a pretraining example is removed?
Key findings
- The proposed multi-stage influence function shows strong correlation (up to 0.92) between predicted influence scores and actual loss differences when pretraining examples are removed.
- With more fine-tuning examples and steps, the average absolute influence score of pretraining data decreased from 0.15 to 0.05, indicating reduced dependency on pretraining data.
- In the ELMo-based sentiment classification task, influence computation took an average of 0.94 seconds per pretraining data point on a model with 93.6 million parameters.
- The method successfully identified pretraining sentences with high influence (e.g., 0.0841) that were semantically related to test inputs, such as those discussing political figures or policy decisions.
- The influence of pretraining data was found to be significantly reduced when fine-tuning data were abundant, confirming that fine-tuning data dominate when sufficient.
- The method correctly identified low-influence pretraining examples (e.g., influence < 10^-6) that were semantically unrelated to the test input, validating its sensitivity to relevance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.