Language Models can Exploit Cross-Task In-context Learning for Data-Scarce Novel Tasks

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Chatterjee, Anwoy, Tanwar, Eshaan, Dutta, Subhabrata, Chakraborty, Tanmoy
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917691373125632
author Chatterjee, Anwoy
Tanwar, Eshaan
Dutta, Subhabrata
Chakraborty, Tanmoy
author_facet Chatterjee, Anwoy
Tanwar, Eshaan
Dutta, Subhabrata
Chakraborty, Tanmoy
contents Large Language Models (LLMs) have transformed NLP with their remarkable In-context Learning (ICL) capabilities. Automated assistants based on LLMs are gaining popularity; however, adapting them to novel tasks is still challenging. While colossal models excel in zero-shot performance, their computational demands limit widespread use, and smaller language models struggle without context. This paper investigates whether LLMs can generalize from labeled examples of predefined tasks to novel tasks. Drawing inspiration from biological neurons and the mechanistic interpretation of the Transformer architecture, we explore the potential for information sharing across tasks. We design a cross-task prompting setup with three LLMs and show that LLMs achieve significant performance improvements despite no examples from the target task in the context. Cross-task prompting leads to a remarkable performance boost of 107% for LLaMA-2 7B, 18.6% for LLaMA-2 13B, and 3.2% for GPT 3.5 on average over zero-shot prompting, and performs comparable to standard in-context learning. The effectiveness of generating pseudo-labels for in-task examples is demonstrated, and our analyses reveal a strong correlation between the effect of cross-task examples and model activation similarities in source and target input tokens. This paper offers a first-of-its-kind exploration of LLMs' ability to solve novel tasks based on contextual signals from different task examples.
format Preprint
id arxiv_https___arxiv_org_abs_2405_10548
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Language Models can Exploit Cross-Task In-context Learning for Data-Scarce Novel Tasks
Chatterjee, Anwoy
Tanwar, Eshaan
Dutta, Subhabrata
Chakraborty, Tanmoy
Computation and Language
Large Language Models (LLMs) have transformed NLP with their remarkable In-context Learning (ICL) capabilities. Automated assistants based on LLMs are gaining popularity; however, adapting them to novel tasks is still challenging. While colossal models excel in zero-shot performance, their computational demands limit widespread use, and smaller language models struggle without context. This paper investigates whether LLMs can generalize from labeled examples of predefined tasks to novel tasks. Drawing inspiration from biological neurons and the mechanistic interpretation of the Transformer architecture, we explore the potential for information sharing across tasks. We design a cross-task prompting setup with three LLMs and show that LLMs achieve significant performance improvements despite no examples from the target task in the context. Cross-task prompting leads to a remarkable performance boost of 107% for LLaMA-2 7B, 18.6% for LLaMA-2 13B, and 3.2% for GPT 3.5 on average over zero-shot prompting, and performs comparable to standard in-context learning. The effectiveness of generating pseudo-labels for in-task examples is demonstrated, and our analyses reveal a strong correlation between the effect of cross-task examples and model activation similarities in source and target input tokens. This paper offers a first-of-its-kind exploration of LLMs' ability to solve novel tasks based on contextual signals from different task examples.
title Language Models can Exploit Cross-Task In-context Learning for Data-Scarce Novel Tasks
topic Computation and Language
url https://arxiv.org/abs/2405.10548