Distinct Computations Emerge From Compositional Curricula in In-Context Learning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Lee, Jin Hwa, Lampinen, Andrew K., Singh, Aaditya K., Saxe, Andrew M.
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915346487705600
author Lee, Jin Hwa
Lampinen, Andrew K.
Singh, Aaditya K.
Saxe, Andrew M.
author_facet Lee, Jin Hwa
Lampinen, Andrew K.
Singh, Aaditya K.
Saxe, Andrew M.
contents In-context learning (ICL) research often considers learning a function in-context through a uniform sample of input-output pairs. Here, we investigate how presenting a compositional subtask curriculum in context may alter the computations a transformer learns. We design a compositional algorithmic task based on the modular exponential-a double exponential task composed of two single exponential subtasks and train transformer models to learn the task in-context. We compare (a) models trained using an in-context curriculum consisting of single exponential subtasks and, (b) models trained directly on the double exponential task without such a curriculum. We show that models trained with a subtask curriculum can perform zero-shot inference on unseen compositional tasks and are more robust given the same context length. We study how the task and subtasks are represented across the two training regimes. We find that the models employ diverse strategies modulated by the specific curriculum design.
format Preprint
id arxiv_https___arxiv_org_abs_2506_13253
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Distinct Computations Emerge From Compositional Curricula in In-Context Learning
Lee, Jin Hwa
Lampinen, Andrew K.
Singh, Aaditya K.
Saxe, Andrew M.
Machine Learning
Artificial Intelligence
Computation and Language
In-context learning (ICL) research often considers learning a function in-context through a uniform sample of input-output pairs. Here, we investigate how presenting a compositional subtask curriculum in context may alter the computations a transformer learns. We design a compositional algorithmic task based on the modular exponential-a double exponential task composed of two single exponential subtasks and train transformer models to learn the task in-context. We compare (a) models trained using an in-context curriculum consisting of single exponential subtasks and, (b) models trained directly on the double exponential task without such a curriculum. We show that models trained with a subtask curriculum can perform zero-shot inference on unseen compositional tasks and are more robust given the same context length. We study how the task and subtasks are represented across the two training regimes. We find that the models employ diverse strategies modulated by the specific curriculum design.
title Distinct Computations Emerge From Compositional Curricula in In-Context Learning
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2506.13253