Where to Adapt Matters: Layer-Selective Fine-Tuning for Capability Retention

📅 2026-10-08
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
This study addresses the inherent trade-off between task-specific performance gains and general capability degradation during large language model fine-tuning by proposing LS-LoRA. The method identifies inter-layer sensitivity variations and introduces input-output cosine similarity as a lightweight forward-pass proxy metric, effectively replacing computationally expensive empirical Fisher information calculations. Based on this metric, LS-LoRA selectively places LoRA adapters in low-sensitivity layers. Experimental results demonstrate that LS-LoRA substantially improves target performance on mathematical and coding tasks while largely preserving general capabilities such as commonsense reasoning. Overall, this work achieves an effective balance between task adaptation and capability preservation under parameter-efficient fine-tuning paradigms.
📝 Abstract
Parameter-efficient fine-tuning (PEFT) enables large language models (LLMs) to adapt to specialized tasks, but often at the cost of degrading general capabilities acquired during pretraining. Existing approaches primarily mitigate this trade-off through data replay or regularization, relying on additional data or explicit optimization constraints. We instead focus on a different question: where should adaptation be applied? We find that fine-tuning different Transformer layers produces different target-task gains and degrees of capability degradation, suggesting that not all layers are equally suitable for adaptation. To characterize this difference, we use layer-wise empirical Fisher information to measure target-task sensitivity. However, computing Fisher scores requires backward computation and becomes increasingly expensive for large models. We therefore introduce input--output cosine similarity as a lightweight, forward-only proxy for ranking layer sensitivity. Across models and tasks, layers with lower input--output similarity consistently exhibit higher empirical Fisher scores. Building on this observation, we propose Layer-Selective LoRA (LS-LoRA), which places trainable LoRA adapters only in layers with low input--output similarity. Experiments on mathematical reasoning and code generation show that LS-LoRA improves average target-task performance while retaining substantially more commonsense reasoning capability than standard all-layer LoRA, demonstrating that carefully choosing where to adapt can provide a simple and effective way to balance target-task adaptation and general capability retention.
Problem

Research questions and friction points this paper is trying to address.

Parameter-efficient fine-tuning
Capability retention
Layer-selective adaptation
Large language models
Catastrophic forgetting
Innovation

Methods, ideas, or system contributions that make the work stand out.

Parameter-Efficient Fine-Tuning
Layer-Selective LoRA
Empirical Fisher Information
Input-Output Cosine Similarity
Capability Retention
Z
Zhiqiang Pang
School of Mathematics and Statistics, Xi’an Jiaotong University, Xi’an, Shaanxi, China
Z
Zihong Sun
School of Mathematics and Statistics, Xi’an Jiaotong University, Xi’an, Shaanxi, China
Qi Xie
Qi Xie
Xi'an Jiaotong University
Machine LearningComputer Vision
J
Jun Shu
School of Mathematics and Statistics, Xi’an Jiaotong University, Xi’an, Shaanxi, China
Deyu Meng
Deyu Meng
Professor, Xi'an Jiaotong University
Machine LearningApplied MathematicsComputer VisionArtificial Intelligence
Z
Zongben Xu
School of Mathematics and Statistics, Xi’an Jiaotong University, Xi’an, Shaanxi, China