Chain-of-Thought (CoT) has been shown to empirically improve Transformers' performance, and theoretically increase their expressivity to Turing completeness. However, whether Transformers can learn to generalize to CoT traces longer than those seen during training is understudied. We use recent theoretical frameworks for Transformer length generalization and find that -- under standard positional encodings and a finite alphabet -- Transformers with CoT cannot solve problems beyond $TC^0$, i.e. the expressivity benefits do not hold under the stricter requirement of length-generalizable learnability. However, if we allow the vocabulary to grow with problem size, we attain a length-generalizable simulation of Turing machines where the CoT trace length is linear in the simulated runtime up to a constant. Our construction overcomes two core obstacles to reliable length generalization: repeated copying and last-occurrence retrieval. We assign each tape position a unique signpost token, and log only value changes to enable recovery of the current tape symbol through counts circumventing both barriers. Further, we empirically show that the use of such signpost tokens and value change encodings provide actionable guidance to improve length generalization on hard problems.
Transformers Can Overcome the Curse of Dimensionality: A Theoretical Study from an Approximation Perspective
School of Artificial Intelligence, Wuhan University(武汉大学人工智能学院);Hubei Key Laboratory of Computational Science, Wuhan University(湖北省计算科学重点实验室);Department of Mathematics, The Hong Kong University of Science and Technology(香港科技大学数学系)
SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Norm
Leap Lab, Tsinghua University(清华大学 Leap 实验室);Qwen Large Model Application Team, Alibaba(阿里巴巴 Qwen 大模型应用团队);Institute for Interdisciplinary Information Sciences, Tsinghua University(清华大学交叉信息学研究院)
Can Transformers overcome the lack of data in the simulation of history-dependent flows?
ESI Group-UZ Chair of the National Strategy on Artificial Intelligence(ESI集团-乌兹国家人工智能战略主席);Aragon Institute of Engineering Research (I3A)(阿拉贡工程研究所(I3A));Universidad de Zaragoza(萨拉戈萨大学);ESI Group Chair(ESI集团主席);PIMM lab., ENSAM Arts et Métiers Institute of Technology(PIMM实验室,ENSAM艺术与工艺技术学院)
Gradient-estimator design overcomes trainability barriers in neural-network-based variational optimization
Nanjing University(南京大学);University of Massachusetts(马萨诸塞大学);Collaborative Innovation Center of Advanced Microstructures, Nanjing University(南京大学人工微结构科学与技术协同创新中心);Jiangsu Physical Science Research Center(江苏物理科学研究中心);Hefei National Laboratory(合肥国家实验室);A. Alikhanyan National Science Laboratory(A.阿利哈尼亚国家科学实验室)
DamFormer: Generalizing Morphologies in Dam Break Simulations Using Transformer Model
College of Artificial Intelligence, Dalian Maritime University(大连海事大学人工智能学院);Zhejiang University-Westlake University Joint Training, Zhejiang University(浙江大学-西湖大学联合培养项目(浙江大学));School of Engineering, Westlake University(西湖大学工程学院);Institute of Advanced Technology, Westlake Institute for Advanced Study(西湖高等研究院先进技术研究所);Research Center for Industries of the Future, Westlake University(西湖大学未来产业研究中心)