Abstract
We explore the use of large language models (LLMs) for zero-shot semantic parsing. Semantic parsing involves mapping natural language utterances to task-specific meaning representations. LLMs are generally trained on publicly available text and code and cannot be expected to directly generalize to domain-specific parsing tasks in a zero-shot setting. In this work, we propose ZEROTOP, a zero-shot task-oriented parsing method that decomposes semantic parsing problem into a set of abstractive and extractive question-answering (QA) problems. For each utterance, we prompt the LLM with questions corresponding to its top-level intent and a set of slots and use the LLM generations to construct the target meaning representation. We observe that current LLMs fail to detect unanswerable questions; and as a result, cannot handle questions corresponding to missing slots. We address this by fine-tuning a language model on public QA datasets using synthetic negative samples. Experimental results show that our QA-based decomposition paired with the fine-tuned LLM can zero-shot parse ≈ 16% of utterances in the MTOP dataset.
Introduction
Semantic parsing—converting user requests like "Send a message to mom" into structured, machine-executable formats—is critical for virtual assistants. Traditionally, this task requires extensive human-annotated data for every new domain. While Large Language Models (LLMs) offer zero-shot potential, they suffer from two primary issues: Label Bias, where models favor common pre-training terms, and Helpful Hallucinations, where models struggle to leave missing slots empty, often inventing values instead.
Methodology: ZEROTOP Framework
ZEROTOP addresses these challenges by transforming hierarchical semantic parsing into a sequence of simple question-answering (QA) tasks.
The framework employs three core strategies:
- Unconstrained Intent Classification: Instead of constrained selection, the LLM describes the intent in plain English. A RoBERTa-based similarity model then maps this description to the closest valid schema label, mitigating label bias.
- The Abstainer Model: To prevent hallucinations, a T0-3B model was fine-tuned on public QA datasets augmented with synthetic negative samples. This trains the model to output "N/A" when a slot is not present in the utterance.
- Hierarchical Prompting: The system recursively identifies the top-level intent and then queries for associated slots and potential nested intents.
Experimental Setup
The framework was evaluated on the MTOP dataset, a complex benchmark covering 11 domains. The Abstainer model was trained on over 800,000 samples from various extractive and abstractive QA datasets, including SQuAD v2 and Adversarial QA, to improve its ability to recognize unanswerable questions.
Results and Analysis
ZEROTOP demonstrates significant improvements over standard LLM baselines. In top-level intent accuracy, ZEROTOP achieved 49.58%, surpassing GPT-3 (40.44%) and Codex (48.02%).
For full hierarchical parsing (Exact Match), ZEROTOP reached approximately 15.89% accuracy. While lower than supervised models, this represents a substantial leap over GPT-3 (3.00%) and Codex (5.40%), which are severely hampered by hallucinations in zero-shot settings. The Abstainer model proved crucial, increasing the abstention rate on unanswerable questions from 38% to 89%.
Conclusion
ZEROTOP highlights that the latent knowledge within LLMs is more effectively accessed via reading comprehension (QA) than direct classification. By prioritizing the ability to "abstain" from predicting missing information and using similarity-based mapping, ZEROTOP establishes a new baseline for zero-shot task-oriented parsing. Future work will explore bridging the performance gap with supervised models through few-shot learning.
Summary updated