Compositional Generalization for Primitive Substitutions
About
Compositional generalization is a basic mechanism in human language learning, but current neural networks lack such ability. In this paper, we conduct fundamental research for encoding compositionality in neural networks. Conventional methods use a single representation for the input sentence, making it hard to apply prior knowledge of compositionality. In contrast, our approach leverages such knowledge with two representations, one generating attention maps, and the other mapping attended input words to output symbols. We reduce the entropy in each representation to improve generalization. Our experiments demonstrate significant improvements over the conventional methods in five NLP tasks including instruction learning and machine translation. In the SCAN domain, it boosts accuracies from 14.0% to 98.8% in Jump task, and from 92.0% to 99.7% in TurnLeft task. It also beats human performance on a few-shot learning task. We hope the proposed approach can help ease future research towards human-level compositional language learning.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Semantic Parsing | CFQ (MCD1) | Accuracy4.81 | 33 | |
| Semantic Parsing | CFQ (MCD2) | Accuracy1.04 | 33 | |
| Semantic Parsing | CFQ MCD3 | Accuracy1.82 | 33 | |
| Semantic Parsing | SCAN around right | Exact-match Accuracy83.2 | 16 | |
| Semantic Parsing | SCAN (MCD1) | Exact-match Accuracy0.012 | 12 | |
| Semantic Parsing | SCAN (MCD2) | Exact Match Accuracy1.7 | 12 | |
| Semantic Parsing | SCAN MCD3 | Exact Match Accuracy0.6 | 12 | |
| Semantic Parsing | SCAN jump | Exact-match Accuracy98.8 | 11 | |
| Semantic Parsing | SCAN 2x augmented (ADDJUMP) | Accuracy98.8 | 5 |