HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Compositional Semantic Parsing with Large Language Models

Andrew Drozdov Nathanael Schärli Ekin Akyürek Nathan Scales Xinying Song Xinyun Chen Olivier Bousquet Denny Zhou

Compositional Semantic Parsing with Large Language Models

Abstract

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.

Benchmarks

BenchmarkMethodologyMetrics
semantic-parsing-on-cfqDynamic Least-to-Most Prompting
Exact Match: 95.0

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp