NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Task Generalization with Autoregressive Compositional Structure: Can Learning from $D$ Tasks Generalize to $D^T$ Tasks?

Amirhesam Abedsoltan, Huaqing Zhang, Kaiyue Wen, Hongzhou Lin, Jingzhao Zhang, Mikhail Belkin

Introduction

Large Language Models (LLMs) have demonstrated remarkable capabilities in "In-Context Learning" (ICL), yet they often struggle to generalize to entirely new task types not encountered during pre-training. A classic example is the "parity function" problem, where models typically fail unless they have seen nearly every possible variation of the task. This research introduces the AutoRegressive Compositional (ARC) framework to explain how models can overcome this barrier and generalize to an exponential number of unseen tasks.

Generalization to unseen tasks with and without Chain-of-Thought (CoT).

The authors demonstrate that by leveraging Chain-of-Thought (CoT) to decompose complex tasks into sequential steps, a model can generalize to a massive library of $D^T$ possible tasks after being trained on only a small, linear fraction—roughly $\tilde{O}(D)$—of them.

The AutoRegressive Compositional (ARC) Framework

The ARC framework posits that complex tasks often possess a modular, compositional structure. In this model:

  1. Modularity: A task is broken down into $T$ sequential steps.
  2. Breadth ($D$): At each step, the model selects one of $D$ possible sub-operations.
  3. Exponential Growth: This structure creates a total task space of $D^T$ combinations.

The core theoretical finding, Theorem 3.3, states that a learner only needs to observe approximately $D \log D$ tasks to master the underlying sub-tasks. Once these $D$ building blocks are learned, the model can theoretically solve any of the $D^T$ combinations. CoT is the critical mechanism here; it transforms a "flat" task (high $D$, low $T$) into a sequence of simple operations (low $D$, high $T$), drastically reducing the sample complexity required for generalization.

Empirical Validation and Scaling Laws

The researchers tested this theory using three synthetic benchmarks: Sparse Parity Functions, Arithmetic Tasks, and Multi-Step Language Translation.

In the parity experiments ($d=30, k=15$), the model achieved over 98% accuracy on 155 million unseen tasks after training on just 306 tasks. This exponential leap in performance confirms that the number of tasks required for generalization scales with the number of unique operations ($D$), rather than the total number of task combinations ($D^T$).

Test accuracy scales with the theoretical prediction of $D \ln D$ across different parameters.

As shown in the figures above, the empirical results closely match the theoretical prediction that training tasks should scale with $D \ln D$. This behavior was consistent across arithmetic and translation tasks as well. For instance, in translation, training on a few hundred chains allowed the model to generalize to a space of approximately $10^6$ possible translation paths.

Key Insights

  • Representation as Complexity Reduction: CoT fundamentally changes the mathematical complexity of a task, making generalization efficient by exposing its compositional structure.
  • Positional Diversity: Generalization depends on the training set covering all sub-operations across different steps. If a specific operation is never seen at a particular step during training, the model will likely fail on test tasks requiring it at that position.
  • Internal Mechanics: Linear probing revealed that Transformers identify the specific sub-task required at each CoT step before executing it, suggesting they internally map the task's structure.

Limitations and Future Work

While the ARC framework provides a powerful explanation for task generalization, several challenges remain. For very long sequences ($T$), errors in early CoT steps can compound, leading to lower final accuracy. Additionally, the theory assumes training tasks are sampled somewhat uniformly; adversarial selection of training data can still prevent generalization. Finally, while the framework holds for structured arithmetic and translation, applying it to more "fuzzy" real-world reasoning tasks is an ongoing area of research.

Summary updated

BibTeX
@inproceedings{abedsoltan2025task,
  author = {Amirhesam Abedsoltan and Huaqing Zhang and Kaiyue Wen and Hongzhou Lin and Jingzhao Zhang and Mikhail Belkin},
  title = {{Task Generalization with Autoregressive Compositional Structure: Can Learning from $D$ Tasks Generalize to $D^T$ Tasks?}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=iZdGZSWe1A},
}
Figure