Although transformers are remarkably effective for many tasks, there are some surprisingly easy-looking regular languages that they struggle with. Hahn shows that for languages where acceptance depends on a single input symbol, a transformer's classification decisions become less and less confident (that is, with cross-entropy approaching 1 bit per string) as input strings get longer and longer. We examine this limitation using two languages: PARITY, the language of bit strings with an odd number of 1s, and FIRST, the language of bit strings starting with a 1. We demonstrate three ways of overcoming the limitation suggested by Hahn's lemma. First, we settle an open question by constructing a transformer that recognizes PARITY with perfect accuracy, and similarly for FIRST. Second, we use layer normalization to bring the cross-entropy of both models arbitrarily close to zero. Third, when transformers need to focus on a single position, as for FIRST, we find that they can fail to generalize to longer strings; we offer a simple remedy to this problem that also improves length generalization in machine translation.
Overcoming Data Limitations in Internet Traffic Forecasting: LSTM Models with Transfer Learning and Wavelet Augmentation
Department of Computer Science, University of Northern British Columbia(北坎伯兰大学计算机科学系);Department of Computer Science, Western University(西部大学计算机科学系);Juniper Networks
Overcoming the Intrinsic Performance Limitations of MEMS IMU via Diffusion-Based Generative Learning
School of Geodesy and Geomatics, Wuhan University(武汉大学测绘学院);Hubei Luojia Laboratory, Wuhan University(湖北珞珈实验室);Chinese Antarctic Center of Surveying and Mapping, Wuhan University(中国极地测绘南极科考中心)
Overcoming the limitations of patch-based learning to detect cancer in whole slide images
University of Toronto(多伦多大学);University of British Columbia(不列颠哥伦比亚大学);Sunnybrook Health Science Center(森尼布鲁克健康科学中心);Sunnybrook Research Institute(森尼布鲁克研究所)
Apollo-Forecast: Overcoming Aliasing and Inference Speed Challenges in Language Models for Time Series Forecasting
Shanghai Research Institute for Intelligent Autonomous Systems, Tongji University(同济大学上海智能自主系统研究院);College of Electronics and Information Engineering, Tongji University(同济大学电子与信息工程学院);Ant Group(蚂蚁集团);Huazhong University of Science and Technology(华中科技大学);Macau University of Science and Technology(澳门科技大学)