mlsanityData to 14 Oct 2026

Analyzing the Inner Workings of Transformers in Compositional Generalization

arXiv 2502.15277 ↗First posted 21 Feb 2025cs.CLcited by 6

Not on the map. Why?

Abstract (arXiv)

The compositional generalization abilities of neural models have been sought after for human-like linguistic competence. The popular method to evaluate such abilities is to assess the models' input-output behavior. However, that does not reveal the internal mechanisms, and the underlying competence of such models in compositional generalization remains unclear. To address this problem, we explore the inner workings of a Transformer model by finding an existing subnetwork that contributes to the generalization performance and by performing causal analyses on how the model utilizes syntactic features. We find that the model depends on syntactic features to output the correct answer, but that the subnetwork with much better generalization performance than the whole model relies on a non-compositional algorithm in addition to the syntactic features. We also show that the subnetwork improves its generalization performance relatively slowly during the training compared to the in-distribution one, and the non-compositional solution is acquired in the early stages of the training.

Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 22 of its 36 references that are in the map. First posted on arXiv 21 Feb 2025.

Builds on

22 of 36 references.

References · 22

  1. 2017Attention Is All You Needcited by 60,361
  2. 2023LEACE: Perfect linear concept erasure in closed formcited by 267
  3. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 263
  4. 2020CausaLM: Causal Model Explanation Through Counterfactual Language Modelscited by 117
  5. 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
  6. 2021Low-Complexity Probing via Finding Subnetworkscited by 64
  7. 2021Counterfactual Interventions Reveal the Causal Effect of Relative Clause Representations on Agreement Predictioncited by 59
  8. 2021The paradox of the compositionality of natural language: a neural machine translation case studycited by 59
  9. 2024CausalGym: Benchmarking causal interpretability methods on linguistic taskscited by 46
  10. 2023Break It Down: Evidence for Structural Compositionality in Neural Networkscited by 44
  11. 2022Characterizing Intrinsic Compositionality in Transformers with Tree Projectionscited by 41
  12. 2021What if This Modified That? Syntactic Interventions via Counterfactual Embeddingscited by 39
10 more
  1. 2021Systematic Generalization with Edge Transformerscited by 38
  2. 2021On Compositional Generalization of Neural Machine Translationcited by 34
  3. 2022Uncontrolled Lexical Exposure Leads to Overestimation of Compositional Generalization in Pretrained Modelscited by 26
  4. 2022Structural generalization is hard for sequence-to-sequence modelscited by 24
  5. 2023ReCOGS: How Incidental Details of a Logical Form Overshadow an Evaluation of Semantic Interpretationcited by 24
  6. 2024Learning Syntax Without Planting Trees: Understanding Hierarchical Generalization in Transformerscited by 24
  7. 2023SLOG: A Structural Generalization Benchmark for Semantic Parsingcited by 22
  8. 2017Universal Semantic Parsingcited by 21
  9. 2022Naturalistic Causal Probing for Morpho-Syntaxcited by 19
  10. 2024Evaluating Structural Generalization in Neural Machine Translationcited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 4.

6 papers.