paper-with-me

홈 › Papers

Inducing Transformer's Compositional Generalization Ability via Auxiliary Sequence Prediction Tasks

2021-09-30 · Yichen Jiang, Mohit Bansal

Systematic compositionality is an essential mechanism in human language, allowing the recombination of known parts to create novel expressions. However, existing neural models have been shown to lack this basic ability in learning symbolic structures. Motivated by the failure of a Transformer model on the SCAN compositionality challenge (Lake and Baroni, 2018), which requires parsing a command into actions, we propose two auxiliary sequence prediction tasks that track the progress of function and argument semantics, as additional training supervision. These automatically-generated sequences are more representative of the underlying compositional symbolic structures of the input data. During inference, the model jointly predicts the next action and the next tokens in the auxiliary sequences at each step. Experiments on the SCAN dataset show that our method encourages the Transformer to understand compositional structures of the command, improving its accuracy on multiple challenging splits from <= 10% to 100%. With only 418 (5%) training instances, our approach still achieves 97.8% accuracy on the MCD1 split. Therefore, we argue that compositionality can be induced in Transformers given minimal but proper guidance. We also show that a better result is achieved using less contextualized vectors as the attention's query, providing insights into architecture choices in achieving systematic compositionality. Finally, we show positive generalization results on the groundedSCAN task (Ruis et al., 2020). Our code is publicly available at: https://github.com/jiangycTarheel/compositional-auxseq

📄 PDF Abstract BibTeX arXiv:2109.15256

Code (1)

jiangyctarheel/compositional-auxseq 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Multi-Head Attention 설명 없음

Similar Papers 제목 키워드 기반

Inducing Transformer’s Compositional Generalization Ability via Auxiliary Sequence Prediction Tasks

2021-11-01 · EMNLP 2021 11 · Yichen Jiang, Mohit Bansal

Systematic compositionality is an essential mechanism in human language, allowing the recombination of known parts to create novel expressions. However, existing neural models have been shown to lack this basic ability i…

Making Transformers Solve Compositional Tasks

2021-11-16 · ACL ARR September 2021 9 · Anonymous

Several studies have reported the inability of Transformer models to generalize compositionally, a key type of generalization in many NLP tasks such as semantic parsing. In this paper we explore the design space of Trans…

Semantic Parsing

Making Transformers Solve Compositional Tasks

2021-08-09 · ACL 2022 5 · Santiago Ontañón, Joshua Ainslie, Vaclav Cvicek, Zachary Fisher

Several studies have reported the inability of Transformer models to generalize compositionally, a key type of generalization in many NLP tasks such as semantic parsing. In this paper we explore the design space of Trans…

Semantic Parsing

Compositional Learning in Transformer-Based Human-Object Interaction Detection

2023-08-11 · Zikun Zhuang, Ruihao Qian, Chi Xie, Shuang Liang

Human-object interaction (HOI) detection is an important part of understanding human activities and visual scenes. The long-tailed distribution of labeled instances is a primary challenge in HOI detection, promoting rese…

Human-Object Interaction DetectionObjectZero-Shot Learning

What Drives Compositional Generalization in Visual Generative Models? The Importance of Continuous Training Objectives

2025-10-03 · Karim Farid, Rajat Sahay, Yumna Ali Alnaggar, Simon Schrodi 외 arxiv

Compositional generalization, the ability to generate novel combinations of known concepts, is a key ingredient for visual generative models. Yet, not all mechanisms that enable or inhibit it are fully understood. In thi…

Video Generation