Lune

ICML2024Top-tier venue

On the Emergence of Cross-Task Linearity in Pretraining-Finetuning Paradigm

Zhanpeng Zhou, Zijun Chen, Yilan Chen, Bo Zhang, Junchi Yan

Abstract

The pretraining-finetuning paradigm has become the prevailing trend in modern deep learning. In this work, we discover an intriguing linear phenomenon in models that are initialized from a common pretrained checkpoint and finetuned on different tasks 1 , termed as Cross-Task Linearity (CTL). Specifically, we show that if we linearly interpolate the weights of two finetuned models, the features in the weight-interpolated model are often approximately equal to the linear interpolation of features in two finetuned models at each layer. We provide comprehensive empirical evidence supporting that CTL consistently occurs for finetuned models that start from the same pretrained checkpoint. We conjecture that in the pretraining-finetuning paradigm, neural networks approximately function as linear maps, mapping from the parameter space to the feature space. Based on this viewpoint, our study unveils novel insights into explaining model merging/editing, particularly by translating operations from the parameter space to the feature space. Furthermore, we delve deeper into the root cause for the emergence of CTL, highlighting the role of pretraining. We released our source code at https://github.com/zzp1012/ Cross-Task-Linearity .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • TIES-Merging: Resolving Interference When Merging Models cites Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
  • TIES-Merging: Resolving Interference When Merging Models cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • TIES-Merging: Resolving Interference When Merging Models cites Linear Mode Connectivity and the Lottery Ticket Hypothesis
  • Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time cites Linear Mode Connectivity and the Lottery Ticket Hypothesis
  • Leveraging Submodule Linearity Enhances Task Arithmetic Performance in LLMs cites TIES-Merging: Resolving Interference When Merging Models
  • Leveraging Submodule Linearity Enhances Task Arithmetic Performance in LLMs cites Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
  • Leveraging Submodule Linearity Enhances Task Arithmetic Performance in LLMs cites Linear Mode Connectivity and the Lottery Ticket Hypothesis
  • Disentangling Consensus and Value-Specific Representations for Controllable Pluralistic Value Alignment of LLMs cites TIES-Merging: Resolving Interference When Merging Models
  • Disentangling Consensus and Value-Specific Representations for Controllable Pluralistic Value Alignment of LLMs cites Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
  • Disentangling Consensus and Value-Specific Representations for Controllable Pluralistic Value Alignment of LLMs cites Training language models to follow instructions with human feedback
  • Revisiting the Role of Pretrained Weights in Model Merging: On Near-Optimality within the Core Subspace cites TIES-Merging: Resolving Interference When Merging Models
  • Exploring and Leveraging Class Vectors for Classifier Editing cites TIES-Merging: Resolving Interference When Merging Models
  • Exploring and Leveraging Class Vectors for Classifier Editing cites Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
  • Exploring and Leveraging Class Vectors for Classifier Editing cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Exploring and Leveraging Class Vectors for Classifier Editing cites Linear Mode Connectivity and the Lottery Ticket Hypothesis
  • Exploring and Leveraging Class Vectors for Classifier Editing cites Training language models to follow instructions with human feedback
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. Breaking the Aggregation Bottleneck in Federated Recommendation: A Personalized Model Merging ApproachJundong Chen, Honglei Zhang, Chunxu Zhang, Fangyuan Luo et al.AAAI 2026 · 4 citations
  2. Exploring and Leveraging Class Vectors for Classifier EditingJaeik Kim, Jaeyoung DoNeurIPS 2025 · 1 citation
  3. Leveraging Submodule Linearity Enhances Task Arithmetic Performance in LLMsRui Dai, Sile Hu, Xu Shen, Yonggang Zhang et al.ICLR 2025
  4. Disentangling Consensus and Value-Specific Representations for Controllable Pluralistic Value Alignment of LLMsJianKui Zhou, Jing Yao, Xiaoyuan Yi, Peng Zhang et al.ICML 2026
  5. Revisiting the Role of Pretrained Weights in Model Merging: On Near-Optimality within the Core SubspaceWenju Sun, Qingyong Li, Tiancheng Li, Yangliao Geng et al.ICML 2026

Builds on31

  1. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  2. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  3. Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timeMitchell Wortsman, Gabriel Ilharco, Samir Yitzhak Gadre, Rebecca Roelofs et al.ICML 2022 · 1,464 citations
  4. TIES-Merging: Resolving Interference When Merging ModelsPrateek Yadav, Derek Tam, Leshem Choshen, Colin A. Raffel et al.NeurIPS 2023 · 999 citations
  5. Linear Mode Connectivity and the Lottery Ticket HypothesisJonathan Frankle, Gintare Karolina Dziugaite, Daniel M. Roy, Michael CarbinICML 2020 · 750 citations

Related papers

  1. Distilling Linearized Behavior into Non-linear Fine-Tuning for Effective Task ArithmeticThomas Sommariva, Francesca Morandi, Simone Calderara, Angelo PorrelloICML 2026 · 2 citations
  2. LiNeS: Post-training Layer Scaling Prevents Forgetting and Enhances Model MergingKe Wang, Nikolaos Dimitriadis, Alessandro Favero, Guillermo Ortiz-Jiménez et al.ICLR 2025
  3. Mitigating Parameter Interference in Model Merging via Sharpness-Aware Fine-TuningYeoreum Lee, Jinwook Jung, Sungyong BaikICLR 2025
  4. Features are fate: a theory of transfer learning in high-dimensional regressionJavan Tahir, Surya Ganguli, Grant M. RotskoffICML 2025
  5. Fine-Tuning Attention Modules Only: Enhancing Weight Disentanglement in Task ArithmeticRuochen Jin, Bojian Hou, Jiancong Xiao, Weijie J. Su et al.ICLR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines