mlsanityData to 7 Oct 2026

Inducing Systematicity in Transformers by Attending to Structurally Quantized Embeddings

arXiv 2402.06492 ↗First posted 9 Feb 2024cs.CL cs.AI cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Transformers generalize to novel compositions of structures and entities after being trained on a complex dataset, but easily overfit on datasets of insufficient complexity. We observe that when the training set is sufficiently complex, the model encodes sentences that have a common syntactic structure using a systematic attention pattern. Inspired by this observation, we propose SQ-Transformer (Structurally Quantized) that explicitly encourages systematicity in the embeddings and attention layers, even with a training set of low complexity. At the embedding level, we introduce Structure-oriented Vector Quantization (SoVQ) to cluster word embeddings into several classes of structurally equivalent entities. At the attention level, we devise the Systematic Attention Layer (SAL) and an alternative, Systematically Regularized Layer (SRL) that operate on the quantized word embeddings so that sentences of the same structure are encoded with invariant or similar attention patterns. Empirically, we show that SQ-Transformer achieves stronger compositional generalization than the vanilla Transformer on multiple low-complexity semantic parsing and machine translation datasets. In our analysis, we show that SoVQ indeed learns a syntactically clustered embedding space and SAL/SRL induces generalizable attention patterns, which lead to improved systematicity.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 49 of its 84 references that are in the map. First posted on arXiv 9 Feb 2024.

Builds on

49 of 84 references.

References · 49

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  4. 2017Neural Discrete Representation Learningcited by 4,650
  5. 2021Zero-Shot Text-to-Image Generationcited by 4,276
  6. 2019Generating Diverse High-Fidelity Images with VQ-VAE-2cited by 1,376
  7. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  8. 2015Deep Learning and the Information Bottleneck Principlecited by 793
  9. 2016Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependenciescited by 350
  10. 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 280
  11. 2019Compositionality decomposed: how do neural networks generalise?cited by 264
  12. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
37 more
  1. 2019Good-Enough Compositional Data Augmentationcited by 158
  2. 2017Soft-to-Hard Vector Quantization for End-to-End Learning Compressible Representationscited by 149
  3. 2020Compositional Generalization and Natural Language Variation: Can a Semantic Parsing Approach Handle Both?cited by 147
  4. 2018On the Practical Computational Power of Finite Precision RNNs for Language Recognitioncited by 117
  5. 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
  6. 2019Compositional generalization through meta sequence-to-sequence learningcited by 98
  7. 2020Compositional Generalization in Semantic Parsing: Pre-training vs. Specialized Architecturescited by 95
  8. 2019Do Attention Heads in BERT Track Syntactic Dependencies?cited by 87
  9. 2018Linguistically-Informed Self-Attention for Semantic Role Labelingcited by 71
  10. 2020Learning to Recombine and Resample Data for Compositional Generalizationcited by 65
  11. 2021Meta-Learning to Compositionally Generalizecited by 62
  12. 2021Unlocking Compositional Generalization in Pre-trained Models Using Intermediate Representationscited by 55
  13. 2018Rearranging the Familiar: Testing Compositional Generalization in Recurrent Networkscited by 51
  14. 2019Compositional Generalization for Primitive Substitutionscited by 48
  15. 2020Do Syntax Trees Help Pre-trained Transformers Extract Information?cited by 47
  16. 2020Improving Compositional Generalization in Semantic Parsingcited by 42
  17. 2022Compositional Generalization in Unsupervised Compositional Representation Learning: A Study on Disentanglement and Emergent Languagecited by 42
  18. 2022Transformer Grammars: Augmenting Transformer Language Models with Syntactic Inductive Biases at Scalecited by 40
  19. 2022Characterizing Intrinsic Compositionality in Transformers with Tree Projectionscited by 40
  20. 2016Linguistic Input Features Improve Neural Machine Translationcited by 38
  21. 2021On Compositional Generalization of Neural Machine Translationcited by 34
  22. 2020Compositional Generalization via Semantic Taggingcited by 32
  23. 2021Sequence-to-Sequence Learning with Latent Neural Grammarscited by 30
  24. 2021Disentangled Sequence to Sequence Learning for Compositional Generalizationcited by 30
  25. 2018Jump to better conclusions: SCAN both left and rightcited by 29
  26. 2021Lexicon Learning for Few-Shot Neural Sequence Modelingcited by 28
  27. 2023Transformer-VQ: Linear-Time Transformers via Vector Quantizationcited by 26
  28. 2021Structural Guidance for Transformer Language Modelscited by 25
  29. 2019CNNs found to jump around more skillfully than RNNs: Compositional generalization in seq2seq convolutional networkscited by 22
  30. 2021Inducing Transformer's Compositional Generalization Ability via Auxiliary Sequence Prediction Taskscited by 19
  31. 2023Pushdown Layers: Encoding Recursive Structure in Transformer Language Modelscited by 18
  32. 2018Mutual Information Maximization for Simple and Accurate Part-Of-Speech Inductioncited by 17
  33. 2020*-CFQ: Analyzing the Scalability of Machine Learning on a Compositional Taskcited by 16
  34. 2020Universal Dependencies according to BERT: both more specific and more generalcited by 11
  35. 2022Mutual Exclusivity Training and Primitive Augmentation to Induce Compositionalitycited by 8
  36. 2018Information Theoretic Co-Trainingcited by 7
  37. 2022Syntactic Substitutability as Unsupervised Dependency Syntaxcited by 4

Built on by

Cited by year

Citing papers per year: 2024: 1.

1 paper.