atlas

Research map / Architectures and efficiency / Attention and transformers

Towards Equipping Transformer with the Ability of Systematic Compositionality

AAAI 2024 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes CAT, a BERT-style encoder with a multi-primitive composition module (sparse-attention over a learned sememe-like codebook) and two pre-training tasks (sememe-guided decomposition and semantics composition), evaluated on phrase/sentence compositionality, OOD generalization, noise robustness, and GLUE.

Problem

Transformers such as BERT struggle to generalize to composed, unseen combinations of seen primitives (systematic compositionality), e.g., distinguishing phrases built from the same words in different orders.

Approach

Equip a Transformer encoder with a learnable discrete codebook of primitives and a differentiable sparse-attention decomposition that composes multiple codes into a compositional representation, mixed with the contextual representation, and supervise the codebook with OpenHowNet sememes plus new pre-training losses.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use CAT_mix instead of BERTCAT with mixed representation · PAWS (SO)accuracy: 88.22 -> 89.32Helped
Use CAT_comp instead of BERTCAT with compositional representation · BiRDPearson correlation: 19.50 -> 34.44Helped
Use CAT_mix instead of BERTCAT with mixed representation · BiRD-ABBAPearson correlation: 1.64 -> 6.25Helped
Use mixed representation instead of contextual representation (ablation)CAT · BiRDPearson correlation: 20.19 -> 27.72Helped
Use compositional representation instead of mixed representation (ablation)CAT · BiRDPearson correlation: 27.72 -> 34.44Helped
Use CAT_mix instead of BERTCAT with mixed representation · SST2 OODaccuracy: 76.61 -> 79.36Helped
Use CAT_mix instead of BERTCAT with mixed representation · MNLI-Letters OODaccuracy: 72.79 -> 73.96Helped
Use CAT_mix instead of BERTCAT with mixed representation · AMAZON-Video OODaccuracy: 65.16 -> 67.44Helped
Use compositional representation instead of contextual representation (ablation)CAT · GLUE averageaverage score: 76.60 -> 73.48Hurt
Use mixed representation instead of contextual representation (ablation)CAT · GLUE averageaverage score: 76.07 -> 76.16No clear effect
Rely on compositional representation rather than mixed representation (ablation)CAT · SQuAD-adversarialaccuracyHelped
Vary fine-tuning sample size using compositional representations (ablation)CAT_comp · IMDB and SST2accuracyMixed

Surprising findings

Limitations

Experimental setup

Datasets: BooksCorpus English Wikipedia OpenHowNet PAWS-QQP PAWS (swap-only) BiRD BiRD-ABBA IMDB SST2 STSB MNLI AMAZON reviews

Benchmarks: PAWS (swap-only) BiRD BiRD-ABBA IMDB/SST2 OOD STSB image/MSRvid OOD MNLI telephone/letters OOD AMAZON music/video OOD SQuAD-adversarial GLUE

Metrics: accuracy Pearson correlation F1 Spearman correlation

Baselines: BERT RoBERTa DistilBERT

Builds on: BERT RoBERTa DistilBERT vector quantization rectified linear attention

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy