Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Learning Algebraic Recombination for Compositional Generalization

About

Neural sequence models exhibit limited compositional generalization ability in semantic parsing tasks. Compositional generalization requires algebraic recombination, i.e., dynamically recombining structured expressions in a recursive manner. However, most previous studies mainly concentrate on recombining lexical units, which is an important but not sufficient part of algebraic recombination. In this paper, we propose LeAR, an end-to-end neural model to learn algebraic recombination for compositional generalization. The key insight is to model the semantic parsing task as a homomorphism between a latent syntactic algebra and a semantic algebra, thus encouraging algebraic recombination. Specifically, we learn two modules jointly: a Composer for producing latent syntax, and an Interpreter for assigning semantic operations. Experiments on two realistic and comprehensive compositional generalization benchmarks demonstrate the effectiveness of our model. The source code is publicly available at https://github.com/microsoft/ContextualSP.

Chenyao Liu, Shengnan An, Zeqi Lin, Qian Liu, Bei Chen, Jian-Guang Lou, Lijie Wen, Nanning Zheng, Dongmei Zhang• 2021

Related benchmarks

TaskDatasetResultRank
Semantic ParsingCFQ (MCD2)
Accuracy89.2
33
Semantic ParsingCFQ MCD3
Accuracy91.7
33
Semantic ParsingCFQ (MCD1)
Accuracy91.7
33
Semantic ParsingGEO
Accuracy0.841
26
Semantic ParsingCOGS (generalization)
Accuracy (Generalization)99
25
Semantic ParsingCFQ MCD avg
Exact Match Accuracy90.9
22
Semantic ParsingCOGS
Accuracy97.7
9
Showing 7 of 7 rows

Other info

Code

Follow for update