Layer by Layer: Uncovering Where Multi-Task Learning Happens in Instruction-Tuned Large Language Models

Zheng Zhao, Yftah Ziser, Shay B. Cohen
10/25/2024
cs.CLcs.LG

No official code found. Best implementation: zsquaredz/layer_by_layer (10 stars, MIT, last commit 2024-11-12).

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.

View on arXivView PDF

Code Implementations(1)

MIT

This repository contains code for the paper "Layer by Layer: Uncovering Where Multi-Task Learning Happens in Instruction-Tuned Large Language Models" which appears in EMNLP2024 Main Conference

100Shell, PythonSep 29, 20241 years agoMIT

Similar Papers

Cite this paper

@article{zhao2024layer,
  title  = {Layer by Layer: Uncovering Where Multi-Task Learning Happens in Instruction-Tuned Large Language Models},
  author = {Zheng Zhao and Yftah Ziser and Shay B. Cohen},
  year   = {2024},
  eprint = {2410.20008},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.20008v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.20008.svg)](https://codeofpaper.com/paper/2410.20008)

Discussion