paper-with-me

Papers

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

2024-02-06 · Zhanpeng Zhou, Zijun Chen, Yilan Chen, Bo Zhang, Junchi Yan

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, 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.

📄 PDF Abstract BibTeX arXiv:2402.03660

Code (1)

zzp1012/cross-task-linearity 공식 구현 pytorch

Similar Papers 제목 키워드 기반

Understanding Contextual Recall in Transformers: How Finetuning Enables In-Context Reasoning over Pretraining Knowledge

2026-03-21 · Bhavya Vasudeva, Puneesh Deora, Alberto Bietti, Vatsal Sharan 외 arxiv

Transformer-based language models excel at in-context learning (ICL), where they can adapt to new tasks based on contextual examples, without parameter updates. In a specific form of ICL, which we refer to as \textit{con…

Predicting Emergent Capabilities by Finetuning

2024-11-25 · Charlie Snell, Eric Wallace, Dan Klein, Sergey Levine

A fundamental open challenge in modern LLM scaling is the lack of understanding around emergent capabilities. In particular, language model pretraining loss is known to be highly predictable as a function of compute. How…

CoLAGSM8KMMLU

When Does Contrastive Learning Preserve Adversarial Robustness from Pretraining to Finetuning?

2021-11-01 · NeurIPS 2021 12 · Lijie Fan, Sijia Liu, Pin-Yu Chen, Gaoyuan Zhang 외

Contrastive learning (CL) can learn generalizable feature representations and achieve the state-of-the-art performance of downstream tasks by finetuning a linear classifier on top of it. However, as adversarial robustnes…

Adversarial RobustnessContrastive Learningimage-classificationImage Classification+1

ActiveDC: Distribution Calibration for Active Finetuning

2023-11-13 · CVPR 2024 1 · Wenshuai Xu, Zhenghui Hu, Yu Lu, Jinzhou Meng 외

The pretraining-finetuning paradigm has gained popularity in various computer vision tasks. In this paradigm, the emergence of active finetuning arises due to the abundance of large-scale data and costly annotation requi…

image-classificationImage Classification

Location-Aware Self-Supervised Transformers for Semantic Segmentation

2022-12-05 · Mathilde Caron, Neil Houlsby, Cordelia Schmid

Pixel-level labels are particularly expensive to acquire. Hence, pretraining is a critical step to improve models on a task like semantic segmentation. However, prominent algorithms for pretraining neural networks use im…

Contrastive Learningimage-classificationImage ClassificationSegmentation+2