To CoT or To Loop? A Formal Comparison Between Chain-of-Thought and Looped Transformers
Kevin Xu, Issei Sato
TL;DR
This work formalizes a comparison between Chain-of-Thought (CoT) prompting and Looped Transformers, two approaches to enhancing reasoning in Transformer-based models. It shows that Looped Transformers inherently support parallel solutions for deterministic computations modeled as directed acyclic graphs, achieving efficiency through depth-scaled loops, while CoT with stochastic decoding excels at probabilistic inference for compositional problems, leveraging self-reducibility and sampling. The paper proves polylogarithmic-time separations between the two paradigms under carefully defined problem settings, and demonstrates concrete task instances illustrating Loop TF advantages, as well as probabilistic CoT advantages in approximate counting and sampling. The findings provide practical guidance on when to deploy depth-driven recursion versus iterative reasoning, and suggest directions for extending the analysis to evaluate practical FLOPs and space limitations.
Abstract
Chain-of-Thought (CoT) and Looped Transformers have been shown to empirically improve performance on reasoning tasks and to theoretically enhance expressivity by recursively increasing the number of computational steps. However, their comparative capabilities are still not well understood. In this paper, we provide a formal analysis of their respective strengths and limitations. We show that Looped Transformers can efficiently simulate parallel computations for deterministic tasks, which we formalize as evaluation over directed acyclic graphs. In contrast, CoT with stochastic decoding excels at approximate inference for compositional structures, namely self-reducible problems. These separations suggest the tasks for which depth-driven recursion is more suitable, thereby offering practical cues for choosing between reasoning paradigms.
