mlsanityData to 7 Oct 2026

Shortcut Solutions Learned by Transformers Impair Continual Compositional Reasoning

arXiv 2605.05495 ↗First posted 6 May 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Identifying and exploiting common features across domains is at the heart of the human ability to make analogies, and is believed to be crucial for the ability to continually learn. To do this successfully, general and flexible computational strategies must be developed. While the extent to which Transformer neural network models can perform compositional reasoning has been the subject of intensive recent investigation, little work has been done to systematically understand how well these models can leverage their representations to learn new, related experiences. To address this gap, we expand the previously developed Learning Equality and Group Operations (LEGO) framework to a continual learning (CL) setting ("continual LEGO"). Using this continual LEGO experimental paradigm, we study the capability of feedforward and recurrent Transformer models to perform CL. We find that BERT, a canonical feedforward Transformer model, learns shortcut solutions that limits its ability to generalize and prevents strong forward transfer to new experiences. In contrast, we find evidence supporting the hypothesis that ALBERT, a recurrent version of BERT, learns a For loop-esque solution, which leads to better CL performance. When applying BERT and ALBERT models to a CL setting that requires composition across experiences, we find that both model families fail. Our investigation suggests that ALBERT models can have their performance drop rescued by use of training strategies that combine data across experiences, but this is not true for BERT models, where a detrimental shortcut solution becomes entrenched with initial training. Our results demonstrate that the recurrent ALBERT model may have an inductive bias better suited for CL and motivate future investigation of the interplay between Transformer architecture and computational solutions that emerge in modern models and tasks.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 26 of its 38 references that are in the map. First posted on arXiv 6 May 2026.

Builds on

26 of 38 references.

References · 26

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  4. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  5. 2020Knowledge Distillation: A Surveycited by 1,578
  6. 2016Progressive Neural Networkscited by 1,332
  7. 2017Continual Learning with Deep Generative Replaycited by 1,152
  8. 2020A Survey on Knowledge Graphs: Representation, Acquisition and Applicationscited by 643
  9. 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
  10. 2021Causal Abstractions of Neural Networkscited by 401
  11. 2019Revealing the Dark Secrets of BERTcited by 300
  12. 2022Transformers Learn Shortcuts to Automatacited by 260
14 more
  1. 2024Continual Learning of Large Language Models: A Comprehensive Surveycited by 228
  2. 2024Continual Learning for Large Language Models: A Surveycited by 144
  3. 2022Unveiling Transformers with LEGO: a synthetic reasoning taskcited by 105
  4. 2024Understanding Reasoning Ability of Language Models From the Perspective of Reasoning Paths Aggregationcited by 22
  5. 2021Improving Vision Transformers for Incremental Learningcited by 17
  6. 2022Lifelong Learning Metricscited by 13
  7. 2023A Domain-Agnostic Approach for Characterization of Lifelong Learning Systemscited by 13
  8. 2023Abstractors and relational cross-attention: An inductive bias for explicit relational reasoning in Transformerscited by 12
  9. 2024Towards an Understanding of Stepwise Inference in Transformers: A Synthetic Graph Navigation Modelcited by 9
  10. 2024Dynamic Transformer Architecture for Continual Learning of Multimodal Taskscited by 8
  11. 2024When can transformers compositionally generalize in-context?cited by 7
  12. 2025From Shortcut to Induction Head: How Data Diversity Shapes Algorithm Selection in Transformerscited by 6
  13. 2024Disentangling and Integrating Relational and Sensory Information in Transformer Architecturescited by 5
  14. 2024How Do Transformers "Do" Physics? Investigating the Simple Harmonic Oscillatorcited by 4

Built on by

Not cited yet.