Transformer-based models excel in various tasks but their generalization capabilities, especially in arithmetic reasoning, remain incompletely understood. Arithmetic tasks provide a controlled framework to explore these capabilities, yet performance anomalies persist, such as inconsistent effectiveness in multiplication and erratic generalization in modular addition (e.g., modulo 100 vs. 101). This paper develops a unified theoretical framework for understanding the generalization behaviors of transformers in arithmetic tasks, focusing on length generalization. Through detailed analysis of addition, multiplication, and modular operations, we reveal that translation invariance in addition aligns with relative positional encoding for robust generalization, while base mismatch in modular operations disrupts this alignment. Experiments across GPT-family models validate our framework, confirming its ability to predict generalization behaviors. Our work highlights the importance of task structure and training data distribution for achieving data-efficient and structure-aware training, providing a systematic approach to understanding of length generalization in transformers.
PnP-DA: Towards Principled Plug-and-Play Integration of Variational Data Assimilation and Generative Models
Department of Earth and Environmental Engineering, Columbia University, New York, USA(哥伦比亚大学地球与环境工程系);NSF Center for Learning the Earth with Artificial Intelligence and Physics (LEAP), New York, USA(国家科学基金会学习地球与人工智能和物理中心(LEAP));Pasteur Labs, New York, USA(帕斯特实验室);Courant Institute for Mathematical Science, New York University, New York, USA(纽约大学Courant数学科学研究所)
Generative Modeling under Non-Monotone MAR Missingness via Approximate Wasserstein Gradient Flows
Department of Mathematics(数学系);Research Institute for Statistics and Information Science(统计与信息科学研究所);University of Geneva(日内瓦大学);University of Hamburg(汉堡大学)