Fine-tuning often leads to catastrophic forgetting. Where the model loses its ability to generalize across other tasks
This paper proposes a smarter way to stop that by scaling neural network layer updates by depth to prevent forgetting while keeping performance.
Original Problem π―:
Current solutions to catastrophic forgetting require complex training modifications or computational overhead.
Solution in this Paper π οΈ:
β’ LiNeS (Layer-increasing Network Scaling) applies linear scaling to parameter updates based on layer depth
β’ Shallow layers get minimal updates to preserve general features
β’ Deep layers retain full updates for task-specific learning
β’ Scaling factor: Ξ»(β) = Ξ± + Ξ²(β-1)/(L-1) for layer β in L total layers
β’ Works as post-training technique - no additional training needed
β’ Requires only 1-2 hyperparameters (Ξ±, Ξ²)
Key Insights π:
β’ Shallow layer updates minimally impact target task performance
β’ Preserving shallow layer weights maintains generalization ability
β’ Simple linear scaling achieves similar results as complex optimization
β’ Method works across vision, NLP, and LLM domains
Results π:
β’ Maintains 99.8% target task performance while preserving 97.9% pre-trained performance
β’ Improves multi-task merging baselines by 3.1-4.0%
β’ Enhances OOD generalization across 5 different distribution shifts
β’ Works with models from ViT-B/32 to LLaMA-7B scale
π‘ The LiNeS method exploits the fact that shallow layers in neural networks capture general features while deeper layers contain task-specific representations.
By scaling down parameter updates in shallow layers post-training while preserving updates in deeper layers, LiNeS maintains broad generalization capabilities while retaining task-specific performance gains.
π§ LiNeS layer scaling approach
Given a task vector Ο (difference between fine-tuned and pre-trained weights) with L layers, LiNeS applies a linear scaling factor Ξ»(β) = Ξ± + Ξ²(β-1)/(L-1) to each layer β.
This progressively scales parameter updates from factor Ξ± for the first layer to Ξ±+Ξ² for the last layer, with intermediate layers scaled linearly based on depth.



