Understanding the Effects of Domain Finetuning on LLMs

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Tanwar, Eshaan, Nathani, Deepak, Wang, William Yang, Chakraborty, Tanmoy
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914086895222784
author Tanwar, Eshaan
Nathani, Deepak
Wang, William Yang
Chakraborty, Tanmoy
author_facet Tanwar, Eshaan
Nathani, Deepak
Wang, William Yang
Chakraborty, Tanmoy
contents Large Language Models (LLMs) fine-tuned for specific domains exhibit strong performance; however, the underlying mechanisms by which this fine-tuning reshapes their parametric space are not well understood. Prior works primarily focus on auto-regressive or general-purpose instruct models, leaving domain-specialised LLMs under-explored. We present the first systematic study of domain-specific fine-tuning in large medical language models. Our analysis reveals that fine-tuning modifies only a small subset of the representational subspace, essentially preserving the pre-trained model's representation. To interpret these changes in subspaces, we propose tuning vectors, a novel framework inspired by task vectors, which explicitly capture the directional parameter shifts induced by fine-tuning. We demonstrate that these vectors are critical for enhancing both instruction-following and generation quality. Furthermore, combining tuning vectors across different domains yields improved generalisation. Upon closer inspection of directional alignment, we find these vectors primarily write new directional information into the MLP layers of the model, while amplifying existing directions in attention heads. Our findings offer new insights into LLM adaptation and provide a general, interpretable framework for analysing specialisation in large language models.
format Preprint
id arxiv_https___arxiv_org_abs_2510_09359
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Understanding the Effects of Domain Finetuning on LLMs
Tanwar, Eshaan
Nathani, Deepak
Wang, William Yang
Chakraborty, Tanmoy
Computation and Language
Large Language Models (LLMs) fine-tuned for specific domains exhibit strong performance; however, the underlying mechanisms by which this fine-tuning reshapes their parametric space are not well understood. Prior works primarily focus on auto-regressive or general-purpose instruct models, leaving domain-specialised LLMs under-explored. We present the first systematic study of domain-specific fine-tuning in large medical language models. Our analysis reveals that fine-tuning modifies only a small subset of the representational subspace, essentially preserving the pre-trained model's representation. To interpret these changes in subspaces, we propose tuning vectors, a novel framework inspired by task vectors, which explicitly capture the directional parameter shifts induced by fine-tuning. We demonstrate that these vectors are critical for enhancing both instruction-following and generation quality. Furthermore, combining tuning vectors across different domains yields improved generalisation. Upon closer inspection of directional alignment, we find these vectors primarily write new directional information into the MLP layers of the model, while amplifying existing directions in attention heads. Our findings offer new insights into LLM adaptation and provide a general, interpretable framework for analysing specialisation in large language models.
title Understanding the Effects of Domain Finetuning on LLMs
topic Computation and Language
url https://arxiv.org/abs/2510.09359