Transformers demonstrate impressive performance on a range of reasoning benchmarks. To evaluate the degree to which these abilities are a result of actual reasoning, existing work has focused on developing sophisticated benchmarks for behavioral studies. However, these studies do not provide insights into the internal mechanisms driving the observed capabilities. To improve our understanding of the internal mechanisms of transformers, we present a comprehensive mechanistic analysis of a transformer trained on a synthetic reasoning task. We identify a set of interpretable mechanisms the model uses to solve the task, and validate our findings using correlational and causal evidence. Our results suggest that it implements a depth-bounded recurrent mechanisms that operates in parallel and stores intermediate results in selected token positions. We anticipate that the motifs we identified in our synthetic setting can provide valuable insights into the broader operating principles of transformers and thus provide a basis for understanding more complex models.
KG-TRACE: A Neuro-Symbolic Framework for Mechanistic Grounding in Antimicrobial Resistance Prediction
National Institute of Technology Kurukshetra(国立库鲁克舍特拉理工学院);Indian Institute of Information Technology Manipur(印度曼尼普尔信息技术学院);Purdue University(普渡大学);Indian Institute of Technology Indore(印度印多尔理工学院)
From Hybrid Mechanistic--Data-Driven Modeling Toward Neuro-Symbolic AI: What, Why, and How
Institute for Computational Biomedicine, RWTH Aachen University(计算生物医学研究所,亚琛工业大学);Center for Computational Life Sciences, RWTH Aachen University(计算生命科学中心,亚琛工业大学)
SymPlex: A Structure-Aware Transformer for Symbolic PDE Solving
Department of Mathematics, University of California, Los Angeles, Los Angeles, CA, USA(加州大学洛杉矶分校数学系);Mechanical and Aerospace Engineering, University of California, Los Angeles, Los Angeles, CA, USA(加州大学洛杉矶分校机械与航空航天工程系);Office of Advanced Research Computing (OARC), University of California, Los Angeles, Los Angeles, CA, USA(加州大学洛杉矶分校高级计算研究办公室)
Mechanistic Interpretability of Fine-Tuned Vision Transformers on Distorted Images: Decoding Attention Head Behavior for Transparent and Trustworthy AI
Krembil Research Institute, University Health Network(肯贝尔研究所,大学健康网络)
T-SHRED: Symbolic Regression for Regularization and Model Discovery with Transformer Shallow Recurrent Decoders
Electrical and Computer Engineering, University of Washington(华盛顿大学电气与计算机工程系);Applied Mathematics, University of Washington(华盛顿大学应用数学系);Computer Science & Engineering, University of Washington(华盛顿大学计算机科学与工程系)
Finite State Automata Inside Transformers with Chain-of-Thought: A Mechanistic Study on State Tracking
Key Laboratory of High Confidence Software Technology (PKU), MOE, China(高性能软件技术关键实验室(PKU),教育部,中国);School of Computer Science, Peking University, China(北京大学计算机学院,中国);The University of Hong Kong(香港大学);Shanghai AI Lab(上海人工智能实验室)
Interpretable Deep Learning for Polar Mechanistic Reaction Prediction
Department of Computer Science, University of California, Irvine(计算机科学系,加州大学伊文斯顿分校);Department of Chemistry, University of California, Irvine(化学系,加州大学伊文斯顿分校)
Contextual Counting: A Mechanistic Study of Transformers on a Quantitative Task
New York University(纽约大学);Flatiron Institute(弗莱伦研究所);Lawrence Berkeley National Laboratory(劳伦斯伯克利国家实验室);University of Cambridge(剑桥大学);The University of Tokyo(东京大学);University of Colorado Boulder(科罗拉多大学博尔德分校);Prescient Design, Genentech(基因泰克公司Prescient Design部门);Princeton University(普林斯顿大学)
NASP-T: A Fuzzy Neuro-Symbolic Transformer for Logic-Constrained Aviation Safety Report Classification
Faculty of Science and Technology (REALTEK)(科学与技术学院);Norwegian University of Life Sciences (NMBU)(挪威生命科学大学);Dresden International University (DIU)(德累斯顿国际大学)
UniSymNet: A Unified Symbolic Network Guided by Transformer
School of Mathematical Sciences, East China Normal University(东华大学数学科学学院);Institute of Artificial Intelligence, Beihang University(北航人工智能研究院);Shanghai Zhangjiang Institute of Mathematics(上海张江数学研究所);Institute of Applied Physics and Computational Mathematics(应用物理与计算数学研究所);Academy for Advanced Interdisciplinary Studies, Northeast Normal University(东北师范大学先进跨学科研究学院)