Skip to main navigation Skip to search Skip to main content

Layer by layer: Uncovering where multi-task learning happens in instruction-tuned large language models

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution

Abstract

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/
Original languageEnglish
Title of host publicationProceedings of the 2024 Conference on Empirical Methods in Natural Language Processing
EditorsYaser Al-Onaizan, Mohit Bansal, Yun-Nung Chen
Place of PublicationKerrville, TX, USA
PublisherAssociation for Computational Linguistics
Pages15195-15214
Number of pages20
ISBN (Electronic)9798891761643
DOIs
Publication statusPublished - 1 Nov 2024
Event2024 Conference on Empirical Methods in Natural Language Processing - Hyatt Regency Miami Hotel, Miami, United States
Duration: 12 Nov 2024 → 16 Nov 2024
https://2024.emnlp.org/

Conference

Conference2024 Conference on Empirical Methods in Natural Language Processing
Abbreviated titleEMNLP 2024
Country/TerritoryUnited States
CityMiami
Period12/11/24 → 16/11/24
Internet address

Fingerprint

Dive into the research topics of 'Layer by layer: Uncovering where multi-task learning happens in instruction-tuned large language models'. Together they form a unique fingerprint.

Cite this