mlsanityData to 7 Oct 2026

Small transformer architectures for task switching

arXiv 2508.04461 ↗First posted 6 Aug 2025cs.LG cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

The rapid progress seen in terms of large-scale generative AI is largely based on the attention mechanism. It is conversely non-trivial to conceive small-scale applications for which attention-based architectures outperform traditional approaches, such as multi-layer perceptrons or recurrent networks. We examine this problem in the context of 'task switching'. In this framework models work on ongoing token sequences with the current task being determined by stochastically interspersed control tokens. We show that standard transformers cannot solve a basic task switching reference model based on finite domain arithmetics which contains subtasks dedicated to increment / addition / reverse copy / context (IARC). We show that transformers, long short-term memory recurrent networks (LSTM), and plain multi-layer perceptrons (MLPs) achieve similar, but only modest prediction accuracies. We enlarge our comparative study by including an extension of the standard transformer architecture to its non-translational invariant counterpart, the cisformer, and an alternative attention mechanism, extensive attention. A combination of the latter is found to be the only model able to achieve considerable performance levels, of around 95%. Our results indicate that the workings of attention can be understood better, and even improved, when comparing qualitatively different formulations in task-switching settings.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 28 of its 29 references that are in the map. First posted on arXiv 6 Aug 2025.

Builds on

28 of 29 references.

References · 28

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Scaling Laws for Neural Language Modelscited by 6,411
  3. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  4. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  5. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  6. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  7. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  8. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  9. 2022Toy Models of Superpositioncited by 928
  10. 2017A Survey on Multi-Task Learningcited by 838
  11. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
  12. 2023A Comprehensive Overview of Large Language Modelscited by 639
16 more
  1. 2022Neural Networks and the Chomsky Hierarchycited by 214
  2. 2023Birth of a Transformer: A Memory Viewpointcited by 154
  3. 2023What Formal Languages Can Transformers Express? A Surveycited by 120
  4. 2022Unveiling Transformers with LEGO: a synthetic reasoning taskcited by 105
  5. 2021Reset-Free Reinforcement Learning via Multi-Task Learning: Learning Dexterous Manipulation Behaviors without Human Interventioncited by 90
  6. 2022Flowformer: Linearizing Transformers with Conservation Flowscited by 69
  7. 2021Multi-Task Learning in Natural Language Processing: An Overviewcited by 61
  8. 2021Dynamic Movement Primitives in Robotics: A Tutorial Surveycited by 45
  9. 2023RoboHive: A Unified Framework for Robot Learningcited by 42
  10. 2022Scaling Laws for a Multi-Agent Reinforcement Learning Modelcited by 37
  11. 2022Scaling Laws Under the Microscope: Predicting Transformer Performance from Small Scale Experimentscited by 23
  12. 2024Scaling Laws for Linear Complexity Language Modelscited by 15
  13. 2023Multi-Task Learning with Summary Statisticscited by 7
  14. 2024AlphaZero Neural Scaling and Zipf's Law: a Tale of Board Games and Power Lawscited by 7
  15. 2018Kick control: using the attracting states arising within the sensorimotor loop of self-organized robots as motor primitivescited by 1
  16. 2024Reorganizing attention-space geometry with expressive attentioncited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.