Layer by Layer: Uncovering Where Multi-Task Learning Happens in Instruction-Tuned Large Language Models
摘要
Fine-tuning pre-trained large language models (LLMs) on a diverse array of tasks has become a common approach for building models that can solve various natural language processing (NLP) tasks. However, where and to what extent these models retain task-specific knowledge remains largely unexplored. This study investigates the task-specific information encoded in pre-trained LLMs and the effects of instruction tuning on their representations across a diverse set of over 60 NLP tasks. We use a set of matrix analysis tools to examine the differences between the way pre-trained and instruction-tuned LLMs store task-specific information. Our findings reveal that while some tasks are already encoded within the pre-trained LLMs, others greatly benefit from instruction tuning. Additionally, we pinpointed the layers in which the model transitions from high-level general representations to more task-oriented representations. This finding extends our understanding of the governing mechanisms of LLMs and facilitates future research in the fields of parameter-efficient transfer learning and multi-task learning. Our code is available at: https://github.com/zsquaredz/layerbylayer/
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- LoRA: Low-Rank Adaptation of Large Language Models 引用了 Language Models are Few-Shot Learners
- Measuring Massive Multitask Language Understanding 引用了 Language Models are Few-Shot Learners
- Multitask Prompted Training Enables Zero-Shot Task Generalization 引用了 Language Models are Few-Shot Learners
- The Flan Collection: Designing Data and Methods for Effective Instruction Tuning 引用了 LoRA: Low-Rank Adaptation of Large Language Models
- The Flan Collection: Designing Data and Methods for Effective Instruction Tuning 引用了 Measuring Massive Multitask Language Understanding
- The Flan Collection: Designing Data and Methods for Effective Instruction Tuning 引用了 Multitask Prompted Training Enables Zero-Shot Task Generalization
- The Flan Collection: Designing Data and Methods for Effective Instruction Tuning 引用了 Language Models are Few-Shot Learners
- Investigating the Representation of Backchannels and Fillers in Fine-tuned Language Models 引用了 LoRA: Low-Rank Adaptation of Large Language Models
- Alignment Quality Index (AQI) : Beyond Refusals: AQI as an Intrinsic Alignment Diagnostic via Latent Geometry, Cluster Divergence, and Layer wise Pooled Representations 引用了 LoRA: Low-Rank Adaptation of Large Language Models
- Alignment Quality Index (AQI) : Beyond Refusals: AQI as an Intrinsic Alignment Diagnostic via Latent Geometry, Cluster Divergence, and Layer wise Pooled Representations 引用了 Measuring Massive Multitask Language Understanding
- Alignment Quality Index (AQI) : Beyond Refusals: AQI as an Intrinsic Alignment Diagnostic via Latent Geometry, Cluster Divergence, and Layer wise Pooled Representations 引用了 Language Models are Few-Shot Learners
- Hybrid Routing for a Mixture of LoRA Experts 引用了 LoRA: Low-Rank Adaptation of Large Language Models
- Training Prompt Matters: State-Adaptive Optimization for Robust Fine-Tuning 引用了 Language Models are Few-Shot Learners
引用它的顶会 Paper10
- Old Habits Die Hard: How Conversational History Geometrically Traps LLMsAdi Simhi, Fazl Barez, Martin Tutek, Yonatan Belinkov 等ICML 2026 · 5 次引用
- Investigating the Representation of Backchannels and Fillers in Fine-tuned Language ModelsYu Wang, Leyi Lao, Langchu Huang, Gabriel Skantze 等ACL 2026 · 1 次引用
- Alignment Quality Index (AQI) : Beyond Refusals: AQI as an Intrinsic Alignment Diagnostic via Latent Geometry, Cluster Divergence, and Layer wise Pooled RepresentationsAbhilekh Borah, Chhavi Sharma, Danush Khanna, Utkarsh Bhatt 等EMNLP 2025
- Hybrid Routing for a Mixture of LoRA ExpertsYitong Huang, Ziqi Yang, Zihui Wang, Jianzhong Qi 等AAAI 2026
- Training Prompt Matters: State-Adaptive Optimization for Robust Fine-TuningWenhang Shi, Yiren Chen, Shuqing Bian, Zhe Zhao 等ICML 2026
它引用的 Paper11
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu 等ICLR 2022 · 18,833 次引用
- Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou 等ICLR 2021 · 7,905 次引用
- Multitask Prompted Training Enables Zero-Shot Task GeneralizationVictor Sanh, Albert Webson, Colin Raffel, Stephen H. Bach 等ICLR 2022 · 1,976 次引用
- The Flan Collection: Designing Data and Methods for Effective Instruction TuningShayne Longpre, Le Hou, Tu Vu, Albert Webson 等ICML 2023 · 908 次引用
相关 Paper
- How transfer learning impacts linguistic knowledge in deep NLP models?Nadir Durrani, Hassan Sajjad, Fahim DalviACL Findings 2021 · 39 次引用
- Fine-tuning Happens in Tiny Subspaces: Exploring Intrinsic Task-specific Subspaces of Pre-trained Language ModelsZhong Zhang, Bang Liu, Junming ShaoACL 2023 · 8 次引用
- Revealing the Inherent Instructability of Pre-Trained Language ModelsSeokhyun An, Minji Kim, Hyounghun KimEMNLP Findings 2025 · 1 次引用
- Specialist or Generalist? Instruction Tuning for Specific NLP TasksChufan Shi, Yixuan Su, Cheng Yang, Yujiu Yang 等EMNLP 2023 · 11 次引用
- Massive Supervised Fine-tuning Experiments Reveal How Data, Layer, and Training Factors Shape LLM Alignment QualityYuto Harada, Yusuke Yamauchi, Yusuke Oda, Yohei Oseki 等EMNLP 2025
