English

Task Generalization With AutoRegressive Compositional Structure: Can Learning From $D$ Tasks Generalize to $D^{T}$ Tasks?

Machine Learning 2025-06-10 v2 Machine Learning

Abstract

Large language models (LLMs) exhibit remarkable task generalization, solving tasks they were never explicitly trained on with only a few demonstrations. This raises a fundamental question: When can learning from a small set of tasks generalize to a large task family? In this paper, we investigate task generalization through the lens of autoregressive compositional structure, where each task is a composition of TT operations, and each operation is among a finite family of DD subtasks. This yields a total class of size DTD^T. We first show that generalization to all DTD^T tasks is theoretically achievable by training on only O~(D)\widetilde{O}(D) tasks. Empirically, we demonstrate that Transformers achieve such exponential task generalization on sparse parity functions via In-context Learning (ICL) and chain-of-thought (CoT) reasoning. We further show generalization in arithmetic and translation, beyond parity functions.

Keywords

Cite

@article{arxiv.2502.08991,
  title  = {Task Generalization With AutoRegressive Compositional Structure: Can Learning From $D$ Tasks Generalize to $D^{T}$ Tasks?},
  author = {Amirhesam Abedsoltan and Huaqing Zhang and Kaiyue Wen and Hongzhou Lin and Jingzhao Zhang and Mikhail Belkin},
  journal= {arXiv preprint arXiv:2502.08991},
  year   = {2025}
}
R2 v1 2026-06-28T21:42:37.191Z