FAI-Seminar官网:www.fai-seminar.ac.cn
Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective
讲座摘要:Recent studies have discovered that Chain-of-Thought prompting (CoT) can dramatically improve the performance of Large Language Models (LLMs), particularly when dealing with complex tasks involving mathematics or reasoning. Despite the enormous empirical success, the underlying mechanisms behind CoT and how it unlocks the potential of LLMs remain elusive. In this talk, we take a first step towards theoretically answering these questions. Specifically, we examine the expressivity of LLMs with CoT in solving fundamental mathematical and decision-making problems. By using circuit complexity theory, we first give impossibility results showing that bounded-depth Transformers are unable to directly produce correct answers for basic arithmetic/equation tasks unless the model size grows super-polynomially with respect to the input length. In contrast, we then prove by construction that autoregressive Transformers of constant size suffice to solve both tasks by generating CoT derivations using a commonly used math language format. Moreover, we show LLMs with CoT can handle a general class of decision-making problems known as Dynamic Programming, thus justifying their power in tackling complex real-world tasks. Finally, an extensive set of experiments show that, while Transformers always fail to directly predict the answers, they can consistently learn to generate correct solutions step-by-step given sufficient CoT demonstrations.
讲者信息:张博航是北京大学博士五年级学生,导师是王立威教授。张博航在博士期间的研究方向是机器学习,主要研究兴趣聚焦神经网络表达能力,并从表达能力的角度探索鲁棒性、图神经网络、大模型等相关领域的基础性问题。张博航在博士期间以(共同)第一作者身份在ICLR, ICML, NeurIPS三大机器学习国际顶会上发表9篇论文并3次获得口头报告,其中ICLR 2023的论文获得杰出论文奖 (Outstanding Paper Award)。