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

Compositional Semantic Parsing with Large Language Models

About

Humans can reason compositionally when presented with new tasks. Previous research shows that appropriate prompting techniques enable large language models (LLMs) to solve artificial compositional generalization tasks such as SCAN. In this work, we identify additional challenges in more realistic semantic parsing tasks with larger vocabulary and refine these prompting techniques to address them. Our best method is based on least-to-most prompting: it decomposes the problem using prompting-based syntactic parsing, then uses this decomposition to select appropriate exemplars and to sequentially generate the semantic parse. This method allows us to set a new state of the art for CFQ while requiring only 1% of the training data used by traditional approaches. Due to the general nature of our approach, we expect similar efforts will lead to new results in other tasks and domains, especially for knowledge-intensive applications.

Andrew Drozdov, Nathanael Sch\"arli, Ekin Aky\"urek, Nathan Scales, Xinying Song, Xinyun Chen, Olivier Bousquet, Denny Zhou• 2022

Related benchmarks

TaskDatasetResultRank
Semantic ParsingCFQ (MCD2)
Accuracy95.3
33
Semantic ParsingCFQ MCD3
Accuracy95.5
33
Semantic ParsingCFQ (MCD1)
Accuracy94.3
33
Semantic ParsingCOGS (generalization)
Accuracy (Generalization)99
25
Semantic ParsingCFQ MCD avg
Exact Match Accuracy95
22
Semantic ParsingCFQ (MCD1, MCD2, MCD3)
MCD1 Accuracy94.3
9
Showing 6 of 6 rows

Other info

Follow for update