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