Optimal Autoregressive Chain-of-Thought Learning via Bagging

Awni Altabaa, John Lafferty, Omar Montasser
11/16/2026
cs.LGstat.ML

No confident code implementation found for this paper.

Abstract

We study how to learn an autoregressive next-token generator $f\colonΣ^\star\toΣ$ from a class $\mathcal{F}$, given chain-of-thought (CoT) demonstrations of length $T$ generated by $f$. We present a simple algorithm based on bagging, which outputs a majority vote of generators that are trained to be CoT-consistent on bootstrap samples of the training data.

Show full abstract

For binary token sets, it achieves the optimal sample complexity of $O((d_{\mathrm{VC}}+\log(1/δ))/ε)$, independent of the CoT length $T$, where $d_{\mathrm{VC}}$ is the VC dimension of $\mathcal{F}$. For finite token sets $Σ$, the VC dimension is replaced by a multiclass analogue, the Graph dimension $d_{\mathrm{G}}$, and the sample complexity is optimal up to a $\log|Σ|$ factor. The number of generators in the majority-vote ensemble is $O(\log(T/δ))$, and we show that the ensemble can be distilled into a single generator in $\mathcal{F}$ at the expense of $n\log(nT)$ unlabeled prompts.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{altabaa2026optimal,
  title  = {Optimal Autoregressive Chain-of-Thought Learning via Bagging},
  author = {Awni Altabaa and John Lafferty and Omar Montasser},
  year   = {2026},
  eprint = {2611.21597},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.21597v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.21597.svg)](https://codeofpaper.com/paper/2611.21597)

Discussion