mlsanityData to 7 Oct 2026

Adaptivity and Modularity for Efficient Generalization Over Task Complexity

arXiv 2310.08866 ↗First posted 13 Oct 2023cs.LG cs.AIcited by 7

Not on the map. Why?

Abstract (arXiv)

Can transformers generalize efficiently on problems that require dealing with examples with different levels of difficulty? We introduce a new task tailored to assess generalization over different complexities and present results that indicate that standard transformers face challenges in solving these tasks. These tasks are variations of pointer value retrieval previously introduced by Zhang et al. (2021). We investigate how the use of a mechanism for adaptive and modular computation in transformers facilitates the learning of tasks that demand generalization over the number of sequential computation steps (i.e., the depth of the computation graph). Based on our observations, we propose a transformer-based architecture called Hyper-UT, which combines dynamic function generation from hyper networks with adaptive depth from Universal Transformers. This model demonstrates higher accuracy and a fairer allocation of computational resources when generalizing to higher numbers of computation steps. We conclude that mechanisms for adaptive depth and modularity complement each other in improving efficient generalization concerning example complexity. Additionally, to emphasize the broad applicability of our findings, we illustrate that in a standard image recognition task, Hyper- UT's performance matches that of a ViT model but with considerably reduced computational demands (achieving over 70% average savings by effectively using fewer layers).

Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 37 of its 41 references that are in the map. First posted on arXiv 13 Oct 2023.

Builds on

37 of 41 references.

References · 37

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  5. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
  6. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  7. 2022Emergent Abilities of Large Language Modelscited by 2,483
  8. 2017FiLM: Visual Reasoning with a General Conditioning Layercited by 2,286
  9. 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,601
  10. 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
  11. 2016HyperNetworkscited by 1,003
  12. 2021GLaM: Efficient Scaling of Language Models with Mixture-of-Expertscited by 890
25 more
  1. 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
  2. 2018Universal Transformerscited by 613
  3. 2016Adaptive Computation Time for Recurrent Neural Networkscited by 479
  4. 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 331
  5. 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 246
  6. 2019Recurrent Independent Mechanismscited by 219
  7. 2022Exploring Length Generalization in Large Language Modelscited by 204
  8. 2021PonderNet: Learning to Pondercited by 156
  9. 2020Resolution Adaptive Networks for Efficient Inferencecited by 146
  10. 2021Deep Learning Through the Lens of Example Difficultycited by 139
  11. 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
  12. 2022Unveiling Transformers with LEGO: a synthetic reasoning taskcited by 105
  13. 2020Estimating Example Difficulty Using Variance of Gradientscited by 96
  14. 2021Sparse is Enough in Scaling Transformerscited by 86
  15. 2023Modular Deep Learningcited by 82
  16. 2021Adaptive Inference through Early-Exit Networks: Design, Challenges and Directionscited by 74
  17. 2023Generalization on the Unseen, Logic Reasoning and Degree Curriculumcited by 73
  18. 2023Length Generalization in Arithmetic Transformerscited by 64
  19. 2020Transferring Inductive Biases through Knowledge Distillationcited by 41
  20. 2021Pointer Value Retrieval: A new benchmark for understanding the limits of neural network generalizationcited by 29
  21. 2023Adaptive Computation with Elastic Input Sequencecited by 22
  22. 2017Recurrent Scene Parsing with Perspective Understanding in the Loopcited by 16
  23. 2022HyperMixer: An MLP-based Low Cost Alternative to Transformerscited by 13
  24. 2023Learning Multi-Step Reasoning by Solving Arithmetic Taskscited by 12
  25. 2022Understanding the Robustness of Multi-Exit Models under Common Corruptionscited by 4

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 3; 2025: 3.

7 papers.