mlsanityData to 14 Oct 2026

Can Transformers Really Do It All? On the Compatibility of Inductive Biases Across Tasks

arXiv 2607.17624 ↗First posted 20 Jul 2026cs.LGcited by 2

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2016Gaussian Error Linear Units (GELUs)cited by 3,502
  3. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  4. 2020Shortcut Learning in Deep Neural Networkscited by 1,969
  5. 2020GLU Variants Improve Transformercited by 1,804
  6. 2016Neural Architecture Search with Reinforcement Learningcited by 1,499
  7. 2022Are Transformers Effective for Time Series Forecasting?cited by 1,424
  8. 2018On the Spectral Bias of Neural Networkscited by 1,341
  9. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
  10. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
  11. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  12. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
38 more
  1. 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 503
  2. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
  3. 2017Progressive Neural Architecture Searchcited by 487
  4. 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 449
  5. 2019Implicit Regularization in Deep Matrix Factorizationcited by 405
  6. 2019Frequency Principle: Fourier Analysis Sheds Light on Deep Neural Networkscited by 368
  7. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
  8. 2020Inductive Biases for Deep Learning of Higher-Level Cognitioncited by 275
  9. 2020Gradient Starvation: A Learning Proclivity in Neural Networkscited by 267
  10. 2023WIRE: Wavelet Implicit Neural Representationscited by 220
  11. 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 216
  12. 2022Exploring Length Generalization in Large Language Modelscited by 206
  13. 2019SGD on Neural Networks Learns Functions of Increasing Complexitycited by 204
  14. 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
  15. 2018Deep learning generalizes because the parameter-function map is biased towards simple functionscited by 183
  16. 2023A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicitycited by 182
  17. 2017Searching for Activation Functionscited by 169
  18. 2021Primer: Searching for Efficient Transformers for Language Modelingcited by 164
  19. 2020The Hardware Lotterycited by 160
  20. 2021Activation Functions in Deep Learning: A Comprehensive Survey and Benchmarkcited by 155
  21. 2023Neural Architecture Search: Insights from 1000 Paperscited by 139
  22. 2020What shapes feature representations? Exploring datasets, architectures, and trainingcited by 126
  23. 2023Teaching Arithmetic to Small Transformerscited by 123
  24. 2022Scaling Laws vs Model Architectures: How does Inductive Bias Influence Scaling?cited by 103
  25. 2022What Artificial Neural Networks Can Tell Us About Human Language Acquisitioncited by 99
  26. 2024Arithmetic Without Algorithms: Language Models Solve Math With a Bag of Heuristicscited by 97
  27. 2023ReLU Strikes Back: Exploiting Activation Sparsity in Large Language Modelscited by 94
  28. 2017Regularization for Deep Learning: A Taxonomycited by 91
  29. 2020A survey on modern trainable activation functionscited by 89
  30. 2024Transformers Can Achieve Length Generalization But Not Robustlycited by 86
  31. 2021Evading the Simplicity Bias: Training a Diverse Set of Models Discovers Solutions with Superior OOD Generalizationcited by 83
  32. 2021Gradient Descent on Two-layer Nets: Margin Maximization and Simplicity Biascited by 83
  33. 2024Why are Sensitive Functions Hard for Transformers?cited by 74
  34. 2022Simplicity Bias in Transformers and their Ability to Learn Sparse Boolean Functionscited by 70
  35. 2023The No Free Lunch Theorem, Kolmogorov Complexity, and the Role of Inductive Biases in Machine Learningcited by 63
  36. 2025How Linguistics Learned to Stop Worrying and Love the Language Modelscited by 51
  37. 2020Is SGD a Bayesian sampler? Well, almostcited by 50
  38. 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

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.