Seedlabs
Source research

LiNeS: Post-training Layer Scaling Prevents Forgetting and Enhances Model Merging

Wang, Ke, Dimitriadis, Nikolaos, Favero, Alessandro, Guillermo Ortiz-Jiménez, François Fleuret, Pascal Frossard · 2024 · 22 citationsRead the paper

Fine-tuning pre-trained models has become the standard approach to endow them with specialized knowledge, but it poses fundamental challenges. In particular, \textit{(i)} fine-tuning often leads to catastrophic forgetting, where improvements on a target domain degrade generalization on other tasks, and \textit{(ii)} merging fine-tuned checkpoints from disparate tasks can lead to significant performance loss. To address these challenges, we introduce LiNeS, Layer-increasing Network Scaling, a post-training editing technique designed to preserve pre-trained generalization while enhancing fine-tuned task performance. LiNeS scales parameter updates linearly based on their layer depth within the network, maintaining shallow layers close to their pre-trained values to preserve general features while allowing deeper layers to retain task-specific representations. In multi-task model merging scenarios, layer-wise scaling of merged parameters reduces negative task interference. LiNeS demonstrates significant improvements in both single-task and multi-task settings across various benchmarks in vision and natural language processing. It mitigates forgetting, enhances out-of-distribution generalization, integrates seamlessly with existing multi-task model merging baselines improving their performance across benchmarks and model sizes, and can boost generalization when merging LLM policies aligned with different rewards via RLHF. Our method is simple to implement, computationally efficient and complementary to many existing techniques. Our source code is available at https://github.com/wang-kee/LiNeS

What the full text shows

Working prototype
  • LiNeS improves multi-task merging performance for ViT-B/32 on an 8-task benchmark across multiple baselines. — 4.5% increase for Task Arithmetic, 3.6% for Ties-Merging, and 3.1% for Consensus Merging (ViT-B/32 on 8-task image classification benchmark)
  • LiNeS improves multi-task merging for ViT-L/14 on a 20-task benchmark. — 3.1% increase for Task Arithmetic, 4.0% for Ties-Merging, and 2.3% for Consensus Merging (ViT-L/14 on 20-task image classification benchmark)
  • LiNeS enhances multi-task performance for T5-large on NLP benchmarks. — 4.5 point increase for Task Arithmetic on 7 NLP tasks; 3.0% increase for Ties-Merging on 8-QA tasks (T5-large-LM-Adapt applied only to the decoder)
  • LiNeS improves single-task model merging (Model Soups) on ImageNet. — 0.48% increase for Uniform soup and 0.15% for Greedy soup (70 CLIP ViT-B/32 checkpoints)
  • LiNeS improves the merging of LLM policies fine-tuned on different rewards. — Pareto dominates vanilla Rewarded Soups (LLaMA-2 7B on Reddit Summary task using LoRA)
Setup
Evaluated on CLIP (ViT-B/32, ViT-B/16, ViT-L/14), T5-large, and LLaMA-2 7B across image classification (8, 14, 20 tasks), NLP (7, 8, 11 tasks), and reward-based LLM merging.
How
LiNeS linearly rescales parameter updates (task vectors) based on layer depth, keeping shallow layers closer to pre-trained values and deeper layers closer to fine-tuned values. It is applied as a post-training edit to either single-task residuals or merged multi-task vectors.
Limitations
Requires tuning of hyperparameters (alpha and beta) to balance target performance and generalization. · In T5-large, applying scaling to the encoder leads to performance degradation on target tasks.

Summarized by Gemma 4 from the open-access full text · 10 Nov 2026. Read it