How does Multi-Task Training Affect Transformer In-Context Capabilities? Investigations with Function Classes

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Bhasin, Harmon, Ossowski, Timothy, Zhong, Yiqiao, Hu, Junjie
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917630112169984
author Bhasin, Harmon
Ossowski, Timothy
Zhong, Yiqiao
Hu, Junjie
author_facet Bhasin, Harmon
Ossowski, Timothy
Zhong, Yiqiao
Hu, Junjie
contents Large language models (LLM) have recently shown the extraordinary ability to perform unseen tasks based on few-shot examples provided as text, also known as in-context learning (ICL). While recent works have attempted to understand the mechanisms driving ICL, few have explored training strategies that incentivize these models to generalize to multiple tasks. Multi-task learning (MTL) for generalist models is a promising direction that offers transfer learning potential, enabling large parameterized models to be trained from simpler, related tasks. In this work, we investigate the combination of MTL with ICL to build models that efficiently learn tasks while being robust to out-of-distribution examples. We propose several effective curriculum learning strategies that allow ICL models to achieve higher data efficiency and more stable convergence. Our experiments reveal that ICL models can effectively learn difficult tasks by training on progressively harder tasks while mixing in prior tasks, denoted as mixed curriculum in this work. Our code and models are available at https://github.com/harmonbhasin/curriculum_learning_icl .
format Preprint
id arxiv_https___arxiv_org_abs_2404_03558
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle How does Multi-Task Training Affect Transformer In-Context Capabilities? Investigations with Function Classes
Bhasin, Harmon
Ossowski, Timothy
Zhong, Yiqiao
Hu, Junjie
Computation and Language
Machine Learning
Large language models (LLM) have recently shown the extraordinary ability to perform unseen tasks based on few-shot examples provided as text, also known as in-context learning (ICL). While recent works have attempted to understand the mechanisms driving ICL, few have explored training strategies that incentivize these models to generalize to multiple tasks. Multi-task learning (MTL) for generalist models is a promising direction that offers transfer learning potential, enabling large parameterized models to be trained from simpler, related tasks. In this work, we investigate the combination of MTL with ICL to build models that efficiently learn tasks while being robust to out-of-distribution examples. We propose several effective curriculum learning strategies that allow ICL models to achieve higher data efficiency and more stable convergence. Our experiments reveal that ICL models can effectively learn difficult tasks by training on progressively harder tasks while mixing in prior tasks, denoted as mixed curriculum in this work. Our code and models are available at https://github.com/harmonbhasin/curriculum_learning_icl .
title How does Multi-Task Training Affect Transformer In-Context Capabilities? Investigations with Function Classes
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2404.03558