arXiv:2510.09359cs.CL2025-10被引 4

首次系统研究医学大模型领域微调,发现仅改变小部分参数空间

Understanding the Effects of Domain Finetuning on LLMs

  • 提出'调优向量'框架,捕捉微调引发的参数方向变化
  • 微调主要改写MLP层方向,增强注意力头中已有方向
  • 跨领域调优向量组合可提升模型泛化能力,适合模型优化研究者

针对特定领域的大型语言模型(LLM)在微调后表现出优异性能,但其参数空间如何被重塑尚不明确。现有研究多聚焦自回归或通用指令模型,对领域专用模型的探索不足。本文首次系统研究了大型医学语言模型的领域微调机制。分析表明,微调仅修改了表示子空间的一小部分,基本保留了预训练模型的表征能力。为此,我们提出一种受任务向量启发的新框架——调优向量,显式捕捉微调带来的参数方向偏移。实验证明,这些向量对提升指令遵循与生成质量至关重要。进一步发现,不同领域的调优向量组合可实现更好的泛化效果。深入分析方向对齐后发现,这些向量主要将新方向写入MLP层,同时放大注意力头中的已有方向。研究成果为大模型适应机制提供了新见解,并构建了一个通用、可解释的领域专化分析框架。

原文摘要 · Abstract (English)

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.

大模型微调医学AI参数分析方向对齐

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。