Few-Shot Adaptation for Parsing Contextual Utterances with LLMs

Kevin Lin, Patrick Xia, Hao Fang
9/18/2023
cs.CL

No official code found. Best implementation: microsoft/few_shot_adaptation_for_parsing_contextual_utterances_with_llms (7 stars, MIT, last commit 2023-10-17).

Abstract

We evaluate the ability of semantic parsers based on large language models (LLMs) to handle contextual utterances. In real-world settings, there typically exists only a limited number of annotated contextual utterances due to annotation cost, resulting in an imbalance compared to non-contextual utterances. Therefore, parsers must adapt to contextual utterances with a few training examples. We examine four major paradigms for doing so in conversational semantic parsing i.e., Parse-with-Utterance-History, Parse-with-Reference-Program, Parse-then-Resolve, and Rewrite-then-Parse. To facilitate such cross-paradigm comparisons, we construct SMCalFlow-EventQueries, a subset of contextual examples from SMCalFlow with additional annotations. Experiments with in-context learning and fine-tuning suggest that Rewrite-then-Parse is the most promising paradigm when holistically considering parsing accuracy, annotation cost, and error types.

View on arXivView PDF

Code Implementations(1)

MIT
71Shell, PythonApr 25, 20233 years agoMIT

Similar Papers

Cite this paper

@article{lin2023fewshot,
  title  = {Few-Shot Adaptation for Parsing Contextual Utterances with LLMs},
  author = {Kevin Lin and Patrick Xia and Hao Fang},
  year   = {2023},
  eprint = {2309.10168},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.10168v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.10168.svg)](https://codeofpaper.com/paper/2309.10168)

Discussion