Source-linked AI summary
Learning to Simulate Natural Language Feedback for Interactive Semantic Parsing
Hao Yan, Saurabh Srivastava, Yintao Tai, Sida I. Wang, Wen-tau Yih, Ziyu Yao
TL;DR
Interactive semantic parsing lets users provide natural-language feedback to correct parser mistakes, but training correction models relies on costly human annotations. This paper proposes simulating that feedback and evaluating it against templates; text-to-SQL experiments show improved correction and comparable performance in low-data settings.
Problem
Training models to understand feedback relies on many costly human annotations, and feedback collected for one parser may not generalize to others.
Source: §1 · p. 2Method
The paper proposes generating natural-language correction feedback from task context and logical forms, and evaluating simulated feedback against template feedback for consistency with correction intent.
Source: §1 · p. 2, §2.2.1 · p. 3Results
On SPLASH text-to-SQL experiments, simulated feedback improves correction for Seq2Struct and EditSQL, while low-data training achieves performance comparable to using the full SPLASH set.
Source: §1 · p. 2Takeaways & Limitations
Simulated feedback shows promise for reducing human-annotation effort in interactive semantic parsing.
Source: §1 · p. 2, §5 · p. 9Experiments evaluate the methods only on text-to-SQL, and applying them to other NLP tasks may require defining logical forms for ground truth and model predictions.
Source: Limitations · p. 9
Abstract
from arXiv · showhide
Interactive semantic parsing based on natural language (NL) feedback, where users provide feedback to correct the parser mistakes, has emerged as a more practical scenario than the traditional one-shot semantic parsing. However, prior work has heavily relied on human-annotated feedback data to train the interactive semantic parser, which is prohibitively expensive and not scalable. In this work, we propose a new task of simulating NL feedback for interactive semantic parsing. We accompany the task with a novel feedback evaluator. The evaluator is specifically designed to assess the quality of the simulated feedback, based on which we decide the best feedback simulator from our proposed variants. On a text-to-SQL dataset, we show that our feedback simulator can generate high-quality NL feedback to boost the error correction ability of a specific parser. In low-data settings, our feedback simulator can help achieve comparable error correction performance as trained using the costly, full set of human annotations.
1 Introduction
Interactive semantic parsing lets users guide corrections through natural-language feedback, but collecting that feedback is costly and may not transfer across parsers. The paper proposes simulating feedback and evaluating it, then reports improved correction and promising low-data performance on text-to-SQL.
1 Introduction
- Interactive semantic parsing allows users to give feedback after a parser presents its result, whereas single-turn models produce an output and terminate the task.Semantic parsing translates natural-language sentences into logical forms; the feedback describes errors and how to correct them.Source: §1 · pp. 1–2
- Prior feedback collection used 10 crowd workers and took six minutes per annotation; because it is parser-specific, the collected feedback may not generalize to other parsers.Source: §1 · p. 2
- The paper formulates feedback simulation as generating a natural-language correction from the command, incorrect and ground-truth logical forms, and contextual information.The simulator is intended to extend feedback to different parsers at scale, starting from a small set of human annotations.Source: §1 · p. 2
- The proposed evaluator assesses whether simulated feedback matches correction intent by comparing it with template feedback, and the authors use it to select among T5-based simulators.Source: §1 · p. 2
- Simulated feedback improves error correction for both Seq2Struct and EditSQL, and low-data training reaches performance comparable to training with the full SPLASH set.The experiments use SPLASH, which contains human-annotated feedback for Seq2Struct mistakes.Source: §1 · p. 2
2 Simulating Natural Language Feedback for Interactive Semantic Parsing
The paper frames feedback simulation as a way to reduce reliance on human annotations in interactive semantic parsing. It introduces a template-referenced evaluator and three simulator variants that represent correction intent differently.
2.1 Overview
- The simulator is intended to generate high-quality feedback at scale from a small set of human annotations, then support error-correction-model training.The interactive parser presents an initial logical form explanation and receives NL feedback describing errors and corrections; the explanation uses NL templates in this work.Source: §2.1 · pp. 2–3
2.2 Feedback Evaluation
- The evaluator scores whether simulated feedback is logically consistent with the correction intent, using template feedback rather than human feedback as its reference.The template is described as a cleaner standard than human annotations, which may contain inaccurate or incomplete error descriptions, and can be generated automatically at scale.Source: §2.2.1 · p. 3
2.2.1 Task Formulation & Architecture
- Its architecture compares contextualized candidate and reference tokens, aggregates token similarities into sentence-level precision and recall, and trains with a contrastive hinge loss.It also uses task-derived token-alignment supervision with a mask that excludes tokens whose correct alignments cannot be derived; negative feedback is created by replacing values or schema items.Source: §2.2.1 · pp. 3–4
2.3 Feedback Simulation
- CWQES supplies correct and incorrect logical forms, DQES supplies linearized edits, and TQES supplies template descriptions of the edits as simulation inputs.TQES frames simulation as paraphrasing template feedback into language closer to how real users speak.Source: §2.3 · pp. 4–5
3 Experiments
The experiments test simulated feedback across parsers, evaluate feedback-quality metrics and simulator variants, and examine performance with limited human annotations. Simulated feedback improves error correction, and the low-data results approach performance trained with the full SPLASH set.
3.1 Experimental Setup
- The experiments use SPLASH feedback for Seq2Struct and test simulated feedback on EditSQL, with roughly 2,400 simulated examples augmenting the original SPLASH training set.In the low-data setting, only 5%, 10%, or 20% of SPLASH training examples are used to construct the simulator and evaluator; the remainder is simulated.Source: §3.1 · p. 5
3.2 Can the Feedback Simulator Generate Useful Feedback for a Specific Parser?
- Adding simulated feedback for EditSQL improves its correction accuracy by 3.5% absolute and improves partial-correction metrics by 5–8%.On the SPLASH test set, it also yields around 2% gain on correction accuracy and 2.5–3.5% on other metrics; the authors suggest the smaller gains may reflect that the simulated feedback is based on EditSQL.Source: §3.2 · p. 6, Table 1 · p. 6
3.3 Can the Feedback Evaluator Properly Assess Each Simulator?
- The proposed evaluator substantially outperforms BLEU and BERTScore on both feedback-ranking metrics, better assessing logical consistency and distinguishing feedback quality.Table 2 reports MRR for ranking positive feedback on SPLASH-dev and Spearman ranking correlations with human judgments.Source: Table 2 · p. 6, §3.3 · p. 7
3.4 How Does Each Feedback Simulator Variant Perform?
- TQES achieves the best performance according to the proposed evaluator, so the authors use it as their default feedback simulator.TQES directly includes edit information and translates it into text, which the authors say better fits T5’s textual pre-training than the alternatives.Source: §3.4 · p. 7, Table 3 · p. 7
3.5 Can the Feedback Simulator Work Well in the Low-data Setting?
- With only a small amount of training data, simulated feedback yields error-correction performance comparable to training with the full SPLASH set.Performance increases as the amount of human-annotated data grows; template feedback also helps in low-data settings, but its gains are smaller than those from simulated feedback.Source: §3.5 · pp. 7–8, Figure 4 · p. 7
4 Related Work
Prior work studies interactive semantic parsing through structured choices and natural-language feedback, while related research uses human feedback in broader NLP and user simulation in dialogue systems. This work focuses on simulating corrective NL feedback and leaves other dimensions of user simulation for future work.
Interactive Semantic Parsing
- Interactive semantic parsing has used selectable logical-form components or paraphrases, while NL feedback lets users describe and correct parsing errors.Prior work showed that an error-correction model can learn from NL feedback; this paper complements that work by simulating feedback rather than changing the correction-model architecture.Source: §4 · p. 8
General NLP Research with Human Feedback
- Other NLP work uses feedback such as chatbot responses, ratings, explanations, or expert rankings, whereas this work targets corrective NL feedback.The authors describe corrective NL feedback as still largely under-explored and leave improving parsers from such feedback as future work.Source: §4 · p. 8
User Simulation in Dialogue Systems
- Dialogue-system user simulators model utterances and often user goals or agendas, while this work targets utterance generation for correcting parsing mistakes.Other dimensions of user simulation, including the agenda of error correction, are left for future work.Source: §4 · p. 8
Text Evaluation
- The authors report that surface-form metrics such as BLEU miss semantic modifications and that general-purpose neural metrics fail to identify subtler logical differences.They therefore train a text evaluator to assess whether simulated feedback is logically consistent.Source: §4 · pp. 8–9
5 Conclusions
The paper introduces NL feedback simulation for interactive semantic parsing alongside models for evaluating and simulating feedback. Experiments demonstrate both models’ effectiveness and the promise of reducing human-annotation effort.
- The work proposes the task of simulating NL feedback for interactive semantic parsing.Source: §5 · p. 9
- It presents models for both feedback evaluation and feedback simulation.Source: §5 · p. 9
- Experiments demonstrate the effectiveness of both models and the promise of saving human-annotation effort with simulated feedback.Source: §5 · p. 9
Limitations
The authors identify room to improve both models and note that evaluation has so far been limited to text-to-SQL. Applying the simulator beyond interactive parsing may require additional effort to define meaning representations.
- Both the feedback simulator and evaluator can be further improved.Suggested directions include specialized simulator architectures, evaluator-guided training, finer-grained user behavior modeling, and continually improving parsers from feedback.Source: Limitations · p. 9
- Experiments evaluate the approaches only on text-to-SQL, although they make no assumptions about logical-form type.Source: Limitations · p. 9
- Applying the simulator to other NLP tasks may require meaning representations for both gold and model predictions.For retrieval-based QA, the authors say representations of the retrieval processes would need defining; for open-ended story generation, doing so would take non-trivial effort.Source: Limitations · p. 9
Ethics Statement
The ethics discussion says simulated feedback is used to train the error-correction model rather than shown to users. The appendix describes template feedback edits and a weighted, one-to-one-alignment similarity calculation for feedback evaluation.
Ethics Statement
- Generated feedback is used to train the error-correction model and is not exposed to real users, though it may not perfectly match the intended correction.The authors therefore do not anticipate ethical issues and note the potential positive impact of feedback-driven human-AI interaction.Source: Ethics Statement · p. 9
A.1 Template Feedback
- Template feedback represents SQL corrections through replace, add, and remove operations, using placeholders for schema items.Subscripts distinguish wrong and correct items in replacements, new and old items in additions, and multiple items in a template.Source: §A.1 · p. 13
A.2 Post-processing of Feedback Evaluation
- The evaluator weights primary feedback spans more heavily than secondary spans because they contribute differently to describing correction intent.The method uses one-to-one bipartite matching before calculating similarity and normalizes for span weighting.Source: §A.2 · p. 13
A.3 Error Correction Model
The error-correction model fine-tunes pre-trained T5 to generate a gold logical form from feedback and contextual inputs. Implementation details specify the evaluator and simulator training configurations, runtimes, and use of a single random seed.
A.3 Error Correction Model
- Fine-tuned pre-trained T5 generates the gold logical form from feedback, explanation, the initial question, and contextual information.The model corrects the initial logical form; investigating more advanced error-correction architectures is left for future work.Source: §A.3 · pp. 13–14
B.1 Implementation Details
- The evaluator’s best configuration used learning rate 1e-8, batch size 64, m = 0.1, and λ = γ = 1e-3; its primary-span weight was 0.9.It was trained for at most 200 epochs, with model selection based on dev-set MRR.Source: §B.1 · p. 14
- The T5-large simulator used learning rate 1e-4, batch size 5, and up to 10,500 training steps.Training took roughly 10 hours for the simulator and 48 hours for the evaluator on one NVIDIA A100 80GB GPU; experiments used one random seed.Source: §B.1 · p. 14
B.2 Dataset and Prepossessing
The SPLASH feedback data comes from anonymized crowd workers and is in English. The experiments exclude structural errors because the authors found feedback for these errors noisy and inaccurate.
B.2 Dataset and Prepossessing
- SPLASH is an English dataset whose feedback was collected from anonymized Amazon Mechanical Turk crowd workers.The dataset is distributed under CC BY-SA 4.0.Source: §B.2 · p. 14
- 652 train, 61 dev, and 92 test examples were filtered as structural errors involving an entire missed or incorrect subquery.The authors report that feedback for errors requiring an entire subquery to be added or removed is noisy and inaccurate.Source: §B.2 · pp. 14–15, Table 6 · p. 15
B.3 Error Correction Model Implementation
The authors implement a T5-base error correction model and compare it with prior SPLASH models. They also report examples of simulated feedback and describe a human evaluation procedure for feedback metrics.
B.3 Error Correction Model Implementation
- The error correction model is based on T5-base; comparisons include reported results for EditSQL+Feedback and NL-Edit, which are not publicly available.EditSQL+Feedback is distinct from the EditSQL model used in the main experiments.Source: §B.3 · p. 15
- A 10% gap separates the authors’ model from NL-Edit, while their performances are very comparable in all other metrics.The authors attribute the gap partly to strict full-correction scoring and noisy or incomplete human feedback, which can leave only partial corrections.Source: §B.3 · p. 15
C.1 Example of Feedback Simulation
- For an uncommon SPLASH error pattern also present in EditSQL, training correction with both datasets fixes an error that SPLASH-only training cannot fix.The authors describe the simulated feedback for this example as high quality, although not perfect.Source: §C.1 · p. 16
C.2 Human Evaluation
- Human evaluators rated 50 SPLASH dev examples on a five-level Likert scale, and metric quality was assessed by Spearman rank correlation with those ratings.The evaluation targeted whether metrics could rank feedback sentences similarly to humans; Table 8 reports that the evaluator correctly ranks the three simulated feedbacks in two examples.Source: §C.2 · pp. 16–17, Table 8 · p. 17, Table 9 · p. 17
C.3 Case Study of Evaluation Metrics
In two examples, the proposed evaluator distinguishes feedback quality more accurately than BLEU and BERTScore, which fail on the reported comparisons.
C.3 Case Study of Evaluation Metrics
- In the easy and complex examples, the evaluator makes the reported distinctions among simulated feedback, while BLEU and BERTScore fail on the comparisons described.For the easy example, BLEU ranks CWQES highest; for the complex example, both baselines fail to detect the logical inconsistencies described for CWQES and TQES.Source: §C.3 · p. 17
- Figures 5 and 6 show token-level similarity matrices generated by BERTScore and the evaluator; the evaluator’s matrix is reported as sparser and more accurate.Source: §C.3 · p. 17
- The feedback simulator produces high-quality feedback in the TQES setting for both reported examples.Source: §C.3 · p. 17
C.4 Feedback Simulation in Low-data Settings
The authors report that a simulator trained with only 20% of SPLASH training data can retain comparable generation quality. In low-data experiments, simulator selection uses an evaluator trained on the same data amount.
C.4 Feedback Simulation in Low-data Settings
- 20% of SPLASH training data yields a simulator with comparable generation quality, according to the authors.The low-data simulators are evaluated with an evaluator trained on full SPLASH.Source: §C.4 · p. 18
- For selecting the best simulator in each low-data setting, the evaluator is trained using the same small amount of SPLASH data.Source: §C.4 · p. 18
- The authors connect the comparable generation quality at 20% data with the small gap between error correction models trained on full SPLASH and simulated feedback.Source: §C.4 · p. 18