TL;DR
Training semantic parsers typically requires expensive gold-standard queries or exact answers. This paper introduces a framework that transforms complex machine-readable queries into simple, human-understandable statements, allowing non-expert users to quickly "proofread" and flag errors. By combining token-level rewards with a novel "one-step-late" counterfactual learning objective, the authors show that parsers can be significantly improved using only weak, logged human feedback.
What Problem Does This Paper Address?
Semantic parsing—the task of translating natural language questions into machine-readable queries (like SQL or database code)—is crucial for modern virtual assistants. However, training these models is notoriously difficult. Traditional reinforcement learning relies on having a "gold answer" to check the model's output against.
This assumption breaks down for complex, open-domain, or geographical queries (e.g., queries against OpenStreetMap). For a question like "How many hotels are there in Paris?", the answer is a dynamic list of hundreds of items, making gold answers expensive to compile and prone to fuzziness. Furthermore, hiring experts to manually write or verify machine code is cost-prohibitive.
The authors address this bottleneck by exploring counterfactual (off-policy) learning from human bandit feedback, where a model learns from historical logs of single system outputs that have been evaluated by everyday users.
Methods
The authors propose a complete pipeline spanning a novel user interface and new optimization objectives:
- Human-Understandable Proofreading: Instead of showing users raw code or massive answer lists, the system automatically breaks a query down into a block of simple true/false statements based on its components (e.g., identifying the Town, Point of Interest, or Proximity). Users simply click "Yes" or "No" to flag errors.
- Token-Level Rewards ($DPM+T$): Sequence-level feedback (correct vs. incorrect) is inefficient because an entire query is penalized for a single token error. The authors decompose the feedback to the token level, allowing the parser to learn from partially correct queries.
- One-Step-Late (OSL) Reweighting: Counterfactual learning often suffers from mathematical degeneracies (like overfitting to the historical logging policy). While multiplicative control variates (reweighting) fix this, they require calculating statistics over the entire log, making them incompatible with the minibatches used in deep learning. The authors introduce a "one-step-late" approach that decouples the reweighting from the current parameter updates by using parameters from a previous iteration ($w'$), enabling stable stochastic gradient descent (SGD).
The underlying parser uses a standard sequence-to-sequence neural network with an attention mechanism, optimized via ADADELTA.
Datasets
- NLMAPS V2: An extended corpus pairing English questions with machine-readable queries designed for the OpenStreetMap (OSM) database using the Overpass query language.
- Human Feedback Log ($D_{human}$): A dataset of 995 model outputs evaluated by 9 non-expert human users using the proposed proofreading interface.
- Simulated Log ($D_{log}$): A larger dataset consisting of 22,765 questions used to simulate large-scale feedback and evaluate how well the method scales.
Key Insights and Ideas
- Code Debugging for Non-Experts: You don't need to know how to code to debug a semantic parser. Translating abstract machine execution steps into natural language concepts allows anyone to act as a supervisor.
- Don't Throw the Baby out with the Bathwater: Decomposing rewards to the token level ensures that if a model gets 90% of a complex query right, it is rewarded for that 90%, rather than being penalized entirely for the 10% it missed.
- Bridging the Batch Gap: The "one-step-late" trick elegantly solves a fundamental tension in counterfactual machine learning: the need for global data normalization vs. deep learning's practical requirement for small, randomized minibatches.
Key Results
- High Efficiency: Non-expert users were incredibly fast, taking an average of just 16.4 seconds to proofread an entire query, with the vast majority completed in under 10 seconds.
- Performance Gains (Human Data): With a tiny log of just 995 human-reviewed outputs, the best counterfactual model ($DPM+T+OSL$) improved the baseline answer F1 score from 57.45% to 58.44%, significantly outperforming a simple bandit-to-supervised baseline.
- Excellent Scalability (Simulated Data): When tested on the larger simulated log of ~22k queries, the $DPM+T+OSL$ objective boosted the F1 score by 7.45 percentage points (reaching 64.41%), demonstrating that the method scales effectively with larger deployment logs.
Limitations and Future Work
- Static Feedback Interface: In this study, feedback was collected via offline forms. The authors note that the next step is integrating this seamlessly into live, online user interfaces for virtual assistants.
- Passive vs. Active Correction: Currently, users can only mark statements as wrong. The authors suggest extending the interface to allow active corrections (e.g., selecting the correct option from a drop-down menu or letting the system automatically suggest the next-best alternative from an $n$-best list when an error is flagged).
Summary updated