Adaptivity and Modularity for Efficient Generalization Over Task Complexity
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
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2017FiLM: Visual Reasoning with a General Conditioning Layercited by 2,286
- 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,601
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
- 2016HyperNetworkscited by 1,003
- 2021GLaM: Efficient Scaling of Language Models with Mixture-of-Expertscited by 890
25 more
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
- 2018Universal Transformerscited by 613
- 2016Adaptive Computation Time for Recurrent Neural Networkscited by 479
- 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 331
- 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 246
- 2019Recurrent Independent Mechanismscited by 219
- 2022Exploring Length Generalization in Large Language Modelscited by 204
- 2021PonderNet: Learning to Pondercited by 156
- 2020Resolution Adaptive Networks for Efficient Inferencecited by 146
- 2021Deep Learning Through the Lens of Example Difficultycited by 139
- 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
- 2022Unveiling Transformers with LEGO: a synthetic reasoning taskcited by 105
- 2020Estimating Example Difficulty Using Variance of Gradientscited by 96
- 2021Sparse is Enough in Scaling Transformerscited by 86
- 2023Modular Deep Learningcited by 82
- 2021Adaptive Inference through Early-Exit Networks: Design, Challenges and Directionscited by 74
- 2023Generalization on the Unseen, Logic Reasoning and Degree Curriculumcited by 73
- 2023Length Generalization in Arithmetic Transformerscited by 64
- 2020Transferring Inductive Biases through Knowledge Distillationcited by 41
- 2021Pointer Value Retrieval: A new benchmark for understanding the limits of neural network generalizationcited by 29
- 2023Adaptive Computation with Elastic Input Sequencecited by 22
- 2017Recurrent Scene Parsing with Perspective Understanding in the Loopcited by 16
- 2022HyperMixer: An MLP-based Low Cost Alternative to Transformerscited by 13
- 2023Learning Multi-Step Reasoning by Solving Arithmetic Taskscited by 12
- 2022Understanding the Robustness of Multi-Exit Models under Common Corruptionscited by 4
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 3.
7 papers.
- 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approachcited by 372
- 2024Limits of Deep Learning: Sequence Modeling through the Lens of Complexity Theorycited by 19
- 2024Limits of Transformer Language Models on Learning to Compose Algorithmscited by 13
- 2025Efficient Parallel Samplers for Recurrent-Depth Models and Their Connection to Diffusion Language Modelscited by 7
- 2023Adaptive Computation Modules: Granular Conditional Computation For Efficient Inferencecited by 6
- 2025Composing Linear Layers from Irreduciblescited by 1
- 2024Evaluating Long Range Dependency Handling in Code Generation LLMscited by 0
- 2025Efficient Parallel Samplers for Recurrent-Depth Models and Their Connection to Diffusion Language Models16 Oct 2025
- 2025Composing Linear Layers from Irreducibles15 Jul 2025
- 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach7 Feb 2025
- 2024Evaluating Long Range Dependency Handling in Code Generation LLMs23 Jul 2024
- 2024Limits of Deep Learning: Sequence Modeling through the Lens of Complexity Theory26 May 2024
- 2024Limits of Transformer Language Models on Learning to Compose Algorithms8 Feb 2024
- 2023Adaptive Computation Modules: Granular Conditional Computation For Efficient Inference15 Dec 2023