NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning to Simulate Natural Language Feedback for Interactive Semantic Parsing

Hao Yan, Saurabh Srivastava, Yintao Tai, Sida I. Wang, Wen-tau Yih, Ziyu Yao

Abstract

Interactive semantic parsing allows users to correct model errors through natural language feedback. However, training these systems requires vast amounts of human-annotated data. This paper proposes a framework to simulate high-quality feedback and a specialized evaluator to ensure logical consistency. By leveraging simulated data, models can achieve performance comparable to full human datasets using only 10% of the original human annotations.

Introduction

Semantic parsing translates natural language into machine-executable code, such as SQL. Despite advancements, parsers often make errors. Interactive semantic parsing addresses this by incorporating user feedback to refine predictions. For instance, a user might specify, "Use 'support_rate' instead of 'consider_rate'."

Overview of feedback-driven error correction and the simulation framework.

The primary bottleneck in developing such systems is the scarcity of "Incorrect Code + Human Feedback -> Correct Code" triplets. Collecting these is labor-intensive and expensive. Furthermore, standard evaluation metrics like BLEU often fail to capture the logical correctness of feedback, rewarding fluency over accuracy.

Methodology

The authors introduce a two-pronged approach: a Feedback Simulator to generate training data and a Feedback Evaluator to validate it.

Feedback Evaluator

The Feedback Evaluator moves beyond surface-level text comparison. It compares simulated feedback against "template feedback"—a structured, programmatic description of the necessary correction. Using a RoBERTa-based model, it calculates token-level alignments between the candidate and the template. This ensures that the feedback correctly identifies the specific logical entities (e.g., columns, tables) involved in the error.

The Feedback Evaluator uses RoBERTa to align candidate feedback with a logical template.

Feedback Simulators

Three T5-based simulator variants were explored:

  1. CWQES: Directly uses Correct and Wrong logical forms.
  2. DQES: Uses the "diff" or edits between the wrong and correct code.
  3. TQES (Template-based): Uses edits described via a natural language template.

The TQES approach proved most effective, as it acts as a "language bridge," transforming structured logic into natural human-like phrasing.

Experimental Setup

The framework was evaluated using the Spider benchmark for text-to-SQL and the SPLASH dataset, which contains human-annotated feedback for the Seq2Struct parser. To test generalization, the authors used their simulator to generate feedback for a different parser, EditSQL.

Key Results

The study yielded several significant insights:

  • Efficiency: Models augmented with simulated data reached peak performance with only 10% of the human-annotated data typically required.
  • Accuracy: Adding simulated feedback improved the error correction accuracy of the EditSQL parser by 3.5% absolute.
  • Evaluation Quality: The proposed evaluator demonstrated a 0.19 Spearman correlation with human rankings, vastly outperforming BLEU (0.03) and BERTScore (0.08).

Conclusion

This research demonstrates that logical consistency is more critical than linguistic fluency in feedback simulation. By using templates as a bridge between code and natural language, the proposed framework significantly reduces the data burden for training interactive semantic parsers. Future work will explore simulating diverse user personas and applying these techniques to broader domains beyond SQL.

Summary updated

BibTeX
@inproceedings{yan2023learning,
  author = {Hao Yan and Saurabh Srivastava and Yintao Tai and Sida I. Wang and Wen-tau Yih and Ziyu Yao},
  title = {{Learning to Simulate Natural Language Feedback for Interactive Semantic Parsing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.177},
}
Figure