Skip to main content
QUICK REVIEW

[Paper Review] Generate-and-Retrieve: use your predictions to improve retrieval for semantic parsing

Yury Zemlyanskiy, Michiel de Jong|arXiv (Cornell University)|Sep 29, 2022
Natural Language Processing TechniquesComputer Science8 citations
TL;DR

This paper proposes Generate-and-Retrieve (GandR), a novel retrieval method for low-resource semantic parsing that improves model performance by retrieving training exemplars not only based on input similarity but also on similarity between the model's preliminary prediction and exemplar outputs. GandR first generates a preliminary prediction using input-based retrieval, then retrieves exemplars with similar outputs to refine the final prediction, achieving state-of-the-art results on MTOP and TOPv2 benchmarks.

ABSTRACT

A common recent approach to semantic parsing augments sequence-to-sequence models by retrieving and appending a set of training samples, called exemplars. The effectiveness of this recipe is limited by the ability to retrieve informative exemplars that help produce the correct parse, which is especially challenging in low-resource settings. Existing retrieval is commonly based on similarity of query and exemplar inputs. We propose GandR, a retrieval procedure that retrieves exemplars for which outputs are also similar. GandRfirst generates a preliminary prediction with input-based retrieval. Then, it retrieves exemplars with outputs similar to the preliminary prediction which are used to generate a final prediction. GandR sets the state of the art on multiple low-resource semantic parsing tasks.

Motivation & Objective

  • To address the limitation of existing retrieval methods in low-resource semantic parsing, which rely solely on input similarity and may miss semantically relevant exemplars.
  • To investigate whether output similarity provides a complementary signal to input similarity in retrieving informative training exemplars.
  • To improve model generalization and prediction accuracy in low-resource settings by incorporating output-based retrieval into the sequence-to-sequence generation pipeline.
  • To demonstrate that output space similarity, especially in structured outputs like semantic parses, enables more effective retrieval than lexical input similarity alone.

Proposed method

  • GandR first performs input-based retrieval to generate a preliminary prediction using a sequence-to-sequence model.
  • It then computes a hybrid relevance score balancing input similarity (via TF-IDF) and output similarity (between the preliminary prediction and exemplar outputs).
  • Exemplars are retrieved based on this hybrid score, combining both input and output signal to improve retrieval quality.
  • The final prediction is generated by augmenting the input with the top-k retrieved exemplars (input-output pairs) and feeding the augmented input to the model.
  • During training, retrievals are sampled according to a geometric distribution over relevance rank, with a temperature hyperparameter controlling exploration.
  • The method uses T5 as the base model and applies retrieval-augmented generation to improve generalization in low-resource settings.

Experimental results

Research questions

  • RQ1Can incorporating output similarity into the retrieval process improve performance in low-resource semantic parsing?
  • RQ2Is output-based retrieval a complementary signal to input-based retrieval, especially when inputs are lexically dissimilar but outputs are semantically similar?
  • RQ3Does using a preliminary prediction to guide retrieval lead to more informative exemplars and better final predictions?
  • RQ4How does hybrid retrieval compare to input-only or output-only retrieval in terms of template recall and exact match accuracy?
  • RQ5In what scenarios does output-based retrieval lead to incorrect predictions, and what are the failure modes?

Key findings

  • GandR achieves state-of-the-art performance on the MTOP and TOPv2 benchmarks, with an exact match score of 80.1% on MTOP 25% and 80.5% on TOPv2 W.
  • On the MTOP boot benchmark, GandR achieves 76.4% exact match, outperforming the previous SOTA method (CASPER) by 3.1 percentage points.
  • Hybrid similarity (input + output) leads to higher template recall compared to input-only retrieval, indicating better coverage of relevant semantic patterns.
  • The method is most effective in low-resource settings, with diminishing returns in high-resource settings like full MTOP and TOPv2.
  • Error analysis shows that GandR successfully retrieves semantically relevant exemplars even when lexical overlap is low, such as in cases where input TF-IDF retrieves irrelevant examples due to word overlap.
  • Despite some failure cases where output similarity distracts from better input-similar exemplars, the overall performance gain demonstrates the value of output-based retrieval.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.