Measuring the Contribution of Fine-Tuning to Individual Responses of LLMs
Abstract
Past work has studied the effects of fine-tuning on large language models' (LLMs) overall performance on certain tasks. However, a way to quantitatively and systematically analyze its effect on individual outputs is still lacking. In this work, we propose a new method for measuring the contribution that fine-tuning makes to individual LLM responses, assuming access to the original pre-trained model. We introduce and theoretically analyze an exact decomposition of any fine-tuned LLM into a pre-training component and a fine-tuning component. Empirically, we find that one can steer model behavior and performance by up- or down-scaling the fine-tuning component during the forward pass. Motivated by this finding and our theoretical analysis, we define the Tuning Contribution ($\mathrm{TuCo}$) in terms of the ratio of the magnitudes fine-tuning component and the pre-training component. We find that three prominent adversarial attacks on LLMs circumvent safety measures in a way that reduces the Tuning Contribution, and that $\mathrm{TuCo}$ is consistently lower on prompts where the attacks succeed compared to ones where they don't. This suggests that attenuating the effect of fine-tuning on model outputs plays a role in the success of these attacks. In summary, $\mathrm{TuCo}$ enables the quantitative study of how fine-tuning influences model behavior and safety, and vice versa.
BibTeX
@misc{nuti2025measuring,
author = {Felipe Pinto Coelho Nuti and Tim Franzmeyer and Joao F. Henriques},
title = {{Measuring the Contribution of Fine-Tuning to Individual Responses of LLMs}},
year = {2025},
url = {https://openreview.net/forum?id=3VD92FuNCd},
howpublished = {OpenReview},
note = {Submitted to ICLR 2025},
}Ask Althea to put this paper to the test.
Loading related content...