Can Transformers Really Do It All? On the Compatibility of Inductive Biases Across Tasks
Not on the map. Why?
Abstract (arXiv)
Transformers are remarkably versatile and their design is largely consistent across a variety of applications. But are they optimal for any given task or dataset? The answer may be key for pushing AI beyond merely scaling current designs. *Method.* We present a method to optimize a transformer architecture for a given dataset, which we use as a tool to study optimal task-specific inductive biases. This method replaces the most important non-linearities (GeLUs,;softmax) with functions learned on held-out data. We then train the resulting architectures on other datasets, as a way to evaluate the compatibility between pairs of tasks. Findings. On algorithmic toy tasks, we identify new architectures with dramatic improvements in learning speed, in- and out-of-distribution generalization, and stability across seeds. The new designs prove very task-specific however, and indicate that these tasks require inductive biases very different from those of standard transformers. On code and language modeling datasets, we also find architectures with consistent, yet smaller improvements. These designs transfer much better across datasets and domains (English & computer code). Implications. Our results show that standard transformers are rarely a local optimum in the space of architectures. Simple alternatives can perform much better but sacrifice universality. This suggests that there may be room for improved architectures that better support multiple capabilities simultaneously, such as fluency and robust reasoning.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 88 of its 112 references that are in the map. First posted on arXiv 20 Jul 2026.
Builds on
88 of 112 references.
References · 88
- 2017Attention Is All You Needcited by 60,361
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2020Shortcut Learning in Deep Neural Networkscited by 1,969
- 2020GLU Variants Improve Transformercited by 1,804
- 2016Neural Architecture Search with Reinforcement Learningcited by 1,499
- 2022Are Transformers Effective for Time Series Forecasting?cited by 1,424
- 2018On the Spectral Bias of Neural Networkscited by 1,341
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
38 more
- 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 503
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
- 2017Progressive Neural Architecture Searchcited by 487
- 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 449
- 2019Implicit Regularization in Deep Matrix Factorizationcited by 405
- 2019Frequency Principle: Fourier Analysis Sheds Light on Deep Neural Networkscited by 368
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
- 2020Inductive Biases for Deep Learning of Higher-Level Cognitioncited by 275
- 2020Gradient Starvation: A Learning Proclivity in Neural Networkscited by 267
- 2023WIRE: Wavelet Implicit Neural Representationscited by 220
- 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 216
- 2022Exploring Length Generalization in Large Language Modelscited by 206
- 2019SGD on Neural Networks Learns Functions of Increasing Complexitycited by 204
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
- 2018Deep learning generalizes because the parameter-function map is biased towards simple functionscited by 183
- 2023A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicitycited by 182
- 2017Searching for Activation Functionscited by 169
- 2021Primer: Searching for Efficient Transformers for Language Modelingcited by 164
- 2020The Hardware Lotterycited by 160
- 2021Activation Functions in Deep Learning: A Comprehensive Survey and Benchmarkcited by 155
- 2023Neural Architecture Search: Insights from 1000 Paperscited by 139
- 2020What shapes feature representations? Exploring datasets, architectures, and trainingcited by 126
- 2023Teaching Arithmetic to Small Transformerscited by 123
- 2022Scaling Laws vs Model Architectures: How does Inductive Bias Influence Scaling?cited by 103
- 2022What Artificial Neural Networks Can Tell Us About Human Language Acquisitioncited by 99
- 2024Arithmetic Without Algorithms: Language Models Solve Math With a Bag of Heuristicscited by 97
- 2023ReLU Strikes Back: Exploiting Activation Sparsity in Large Language Modelscited by 94
- 2017Regularization for Deep Learning: A Taxonomycited by 91
- 2020A survey on modern trainable activation functionscited by 89
- 2024Transformers Can Achieve Length Generalization But Not Robustlycited by 86
- 2021Evading the Simplicity Bias: Training a Diverse Set of Models Discovers Solutions with Superior OOD Generalizationcited by 83
- 2021Gradient Descent on Two-layer Nets: Margin Maximization and Simplicity Biascited by 83
- 2024Why are Sensitive Functions Hard for Transformers?cited by 74
- 2022Simplicity Bias in Transformers and their Ability to Learn Sparse Boolean Functionscited by 70
- 2023The No Free Lunch Theorem, Kolmogorov Complexity, and the Role of Inductive Biases in Machine Learningcited by 63
- 2025How Linguistics Learned to Stop Worrying and Love the Language Modelscited by 51
- 2020Is SGD a Bayesian sampler? Well, almostcited by 50
- 2024To Code, or Not To Code? Exploring Impact of Code in Pre-trainingcited by 47
50 most cited of 88 All 88 (JSON)
Built on by
Citing papers per year: 2026: 2.
2 papers.
- 2026Making Transformers Logicalcited by 1
- 2026Lasting Effects of Abstract Pretraining Beyond Perplexitycited by 0
- 2026Lasting Effects of Abstract Pretraining Beyond Perplexity30 Sep 2026
- 2026Making Transformers Logical1 Aug 2026