Chain of Thought Empowers Transformers to Solve Inherently Serial Problems

Instructing the model to generate a sequence of intermediate steps, a.k.a., a chain of thought (CoT), is a highly effective method to improve the accuracy of large language models (LLMs) on arithmetics and symbolic reasoning tasks. However, the mechanism behind CoT remains unclear. This work provides a theoretical understanding of the power of CoT for decoder-only transformers through the lens of expressiveness. Conceptually, CoT empowers the model with the ability to perform inherently serial computation, which is otherwise lacking in transformers, especially when depth is low. Given input length $n$, previous works have shown that constant-depth transformers with finite precision $\mathsf{poly}(n)$ embedding size can only solve problems in $\mathsf{TC}^0$ without CoT. We first show an even tighter expressiveness upper bound for constant-depth transformers with constant-bit precision, which can only solve problems in $\mathsf{AC}^0$, a proper subset of $ \mathsf{TC}^0$. However, with $T$ steps of CoT, constant-depth transformers using constant-bit precision and $O(\log n)$ embedding size can solve any problem solvable by boolean circuits of size $T$. Empirically, enabling CoT dramatically improves the accuracy for tasks that are hard for parallel computation, including the composition of permutation groups, iterated squaring, and circuit value problems, especially for low-depth transformers.

Adam: A Method forStochastic OptimizationAdam: A Method for Stochastic OptimizationLayer NormalizationLayer NormalizationOn the TuringCompleteness of Modern…On the Turing Completeness of Modern Neural Network ArchitecturesTraining Verifiers toSolve Math Word ProblemsTraining Verifiers to Solve Math Word ProblemsScalingInstruction-Finetuned…Scaling Instruction-Finetuned Language ModelsTransformers LearnShortcuts to AutomataTransformers Learn Shortcuts to AutomataTowards Revealing theMystery behind Chain of…Towards Revealing the Mystery behind Chain of Thought: A Theoretical PerspectiveLooped Transformers asProgrammable ComputersLooped Transformers as Programmable ComputersLlama 2: Open Foundationand Fine-Tuned Chat…Llama 2: Open Foundation and Fine-Tuned Chat ModelsPaLM 2 Technical ReportPaLM 2 Technical ReportInterpretability in theWild: a Circuit for…Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 SmallGPT-4 Technical ReportGPT-4 Technical ReportAutoregressive + Chainof Thought = Recurrent…Autoregressive + Chain of Thought = Recurrent: Recurrence's Role in Language Models' Computability and a Revisit of Recurrent TransformerTraining Large LanguageModels to Reason in a…Training Large Language Models to Reason in a Continuous Latent SpaceTransformers Learn toImplement Multi-step…Transformers Learn to Implement Multi-step Gradient Descent with Chain of ThoughtFrom Sparse Dependenceto Sparse Attention…From Sparse Dependence to Sparse Attention: Unveiling How Chain-of-Thought Enhances Transformer Sample EfficiencyReasoning bySuperposition: A…Reasoning by Superposition: A Theoretical Perspective on Chain of Continuous ThoughtUnderstandingChain-of-Thought in LLM…Understanding Chain-of-Thought in LLMs through Information TheoryRevisiting Test-TimeScaling: A Survey and a…Revisiting Test-Time Scaling: A Survey and a Diversity-Aware Method for Efficient ReasoningLearning CompositionalFunctions with…Learning Compositional Functions with Transformers from Easy-to-Hard DataWhy Does Your CoT Prompt(Not) Work? Theoretical…Why Does Your CoT Prompt (Not) Work? Theoretical Analysis of Prompt Space Complexity, its Interaction with Answer Space During CoT Reasoning with LLMs: A Recurrent PerspectiveLearning LinearAttention in Polynomial…Learning Linear Attention in Polynomial TimeSelf-Improvement inLanguage Models: The…Self-Improvement in Language Models: The Sharpening MechanismA Survey on LatentReasoningA Survey on Latent ReasoningChain of ThoughtEmpowers Transformers t…Chain of Thought Empowers Transformers to Solve Inherently Serial Problems過去の参考文献中心の論文この論文を引用する論文古い新しい

ノードをクリックするとフォーカスを固定、空白をクリックすると本論文に戻ります。ホバーで一時的にプレビューできます。各ノードのページはタイトルから開けます。