atlas

Research map / Architectures and efficiency / Attention and transformers

Layer-Wise Representation Fusion for Compositional Generalization

AAAI 2024 · Architectures and efficiency › Attention and transformers · approach: Language model pretraining and induction · 1 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 LRF, which adds a fuse-attention module to each encoder and decoder layer of the Transformer so layers can attend to all previous layers' outputs, improving compositional generalization on CoGnition (MT) and CFQ (semantic parsing).

Problem

Neural seq2seq models fail at compositional generalization because syntactic and semantic representations in the top encoder and decoder layers are entangled, which the authors attribute to shallow residual connections that forget earlier layers' information.

Approach

Insert a fuse-attention module in every encoder and decoder layer that attends over all previous layers' outputs (localness enforced by masks), letting each layer adaptively fuse information from earlier layers instead of relying on shallow residual paths or fixed accumulation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add layer-wise fuse-attention to the TransformerCoGnition CG-test · CoGnition CG-testInstance-level CTER: 28.4% -> 20.0%Helped
Add layer-wise fuse-attention to the TransformerCoGnition CG-test · CoGnition CG-testAggregate-level CTER: 62.9% -> 50.3%Helped
Add layer-wise fuse-attention to RoBERTaCFQ · CFQ MCD-MeanExact-match accuracy: 43.4 -> 52.4Helped
Add fuse-attention on the encoder side only (ablation)Transformer · CoGnition CG-testInstance-level CTER: -7.2%Helped
Add fuse-attention on the decoder side only (ablation)Transformer · CoGnition CG-testInstance-level CTER: -2.6%Helped
Add fuse-attention on both encoder and decoder sides (ablation)Transformer · CoGnition CG-testAggregate-level CTER: -12.6%Helped
Accumulate previous-layer representations instead of adaptively fusing them (ablation)Transformer · CoGnition CG-testInstance-level CTER: 28.4% -> 37.3%Hurt
Apply fuse-attention only in the top encoder and decoder layers instead of each layer (ablation)LRF · CoGnition CG-testInstance-level CTER: 20.0% -> 22.1%Hurt
Increase Transformer depth to 8 encoder and 8 decoder layers (ablation)Transformer · CoGnition CG-testAggregate-level CTER: -2.7%Helped
Replace absolute with relative positional embeddings (ablation)Transformer · CoGnition CG-testAggregate-level CTER: +1.6%Hurt
Use dynamic linear combination of layersTransformer · CoGnition CG-testAggregate-level CTER: +5.0%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: CoGnition CFQ

Benchmarks: CoGnition CFQ

Metrics: compound translation error rate (instance-level) compound translation error rate (aggregate-level) BLEU exact match accuracy

Baselines: Transformer Transformer-Rela Transformer-Small Transformer-Deep Bow SeqMix Dangle Proto-Transformer Transformer+CReg DLCL LSTM+attention Universal Transformer

Builds on: Transformer DLCL RoBERTa Fairseq

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