Real-World Compositional Generalization with Disentangled Sequence-to-Sequence Learning
About
Compositional generalization is a basic mechanism in human language learning, which current neural networks struggle with. A recently proposed Disentangled sequence-to-sequence model (Dangle) shows promising generalization capability by learning specialized encodings for each decoding step. We introduce two key modifications to this model which encourage more disentangled representations and improve its compute and memory efficiency, allowing us to tackle compositional generalization in a more realistic setting. Specifically, instead of adaptively re-encoding source keys and values at each time step, we disentangle their representations and only re-encode keys periodically, at some interval. Our new architecture leads to better generalization performance across existing tasks and datasets, and a new machine translation benchmark which we create by detecting naturally occurring compositional patterns in relation to a training set. We show this methodology better emulates real-world requirements than artificial challenges.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Semantic Parsing | SMCalFlow-CS (16-C) | Accuracy50.6 | 20 | |
| Machine Translation | CoGnition compositional generalization (test) | Inst. Error Rate16 | 15 | |
| Semantic Parsing | SMCalFlow-CS (32-C) | Accuracy64.1 | 8 | |
| Semantic Parsing | SMCalFlow CS (8-C) | -- | 8 | |
| Machine Translation | CoGnition ind (test) | BLEU Score70.7 | 5 | |
| Machine Translation | ReaCT cg (test) | BLEU12.3 | 4 | |
| Machine Translation | ReaCT IWSLT 2014 (test) | BLEU36 | 4 |