Counting and Algorithmic Generalization with Transformers
Lab42 AI Research Institute(Lab42 人工智能研究院)
Simon Ouellette, Rolf Pfister, Hansueli Jud
备注:
Applied AAAI 2024 reviewer comments. We clarified notation in the main algorithm pseudo-code (alg. 1). Removed superfluous experiments on Universal Transformers which did not yield interesting results and added confusion to the main insights of the paper. The paper is now more concise and straight to the point. Clarified our main contributions
Algorithmic generalization in machine learning refers to the ability to learn the underlying algorithm that generates data in a way that generalizes out-of-distribution. This is generally considered a difficult task for most machine learning algorithms. Here, we analyze algorithmic generalization when counting is required, either implicitly or explicitly. We show that standard Transformers are based on architectural decisions that hinder out-of-distribution performance for such tasks. In particular, we discuss the consequences of using layer normalization and of normalizing the attention weights via softmax. With ablation of the problematic operations, we demonstrate that a modified transformer can exhibit a good algorithmic generalization performance on counting while using a very lightweight architecture.
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(普林斯顿大学)
NYU Center for Data Science(纽约大学数据科学中心);School of Computer Science, Tel Aviv University(特拉维夫大学计算机科学学院);Google Research(谷歌研究);Bar-Ilan University(巴伊兰大学);Google DeepMind(谷歌DeepMind)
A Transformer-based Multimodal Fusion Model for Efficient Crowd Counting Using Visual and Wireless Signals
School of Electrical and Electronic Engineering, University College Dublin(都柏林大学电子与电气工程学院);College of Electrical Engineering and Automation, Shandong University of Science and Technology(山东科技大学电气工程与自动化学院)
Depth-Width tradeoffs in Algorithmic Reasoning of Graph Tasks with Transformers
Courant Institute of Mathematical Sciences, New York University(纽约大学应用数学科学研究所);Google Research(谷歌研究);Meta AI;Bar-Ilan University(巴伊兰大学);Department of Bio-Medical Engineering, Edmond J. Safra Center for Bioinformatics, Tel-Aviv University(生物医学工程系,埃德蒙·J·萨法中心,特拉维夫大学);Tel Aviv University(特拉维夫大学)
AlgoFormer: An Efficient Transformer Framework with Algorithmic Structures
National University of Singapore(新加坡国立大学);Chinese University of Hong Kong(香港中文大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室);Hong Kong Baptist University(香港浸会大学);University of Electronic Science and Technology of China(电子科技大学)