Abstract
Semantic parsing, the task of mapping natural language queries to machine-executable logical forms, is often hindered by the scarcity of annotated data and the strict structural requirements of target languages. This paper proposes a dual learning framework that treats semantic parsing and its inverse—generating queries from logical forms—as a symmetric game. By leveraging reinforcement learning with reconstruction and validity rewards, the approach achieves state-of-the-art performance on the ATIS dataset and demonstrates strong semi-supervised capabilities, significantly reducing reliance on human-annotated data.
Introduction
Converting a natural language query like "flights from London to Paris" into a structured format such as SQL or lambda calculus is a core challenge in natural language processing. Traditional supervised methods face two primary obstacles: the high cost of expert annotation for logical forms and the "hard" structural constraints of these forms, where a single syntax error renders the output invalid. Standard sequence-to-sequence models often fail to capture these rigid rules effectively.
Methodology
The proposed framework utilizes two agents in a closed-loop system:
- Primal Model (Q2LF): Translates a natural language query into a logical form.
- Dual Model (LF2Q): Translates a logical form back into a natural language query.
These models provide mutual supervision through a reconstruction reward, measuring how well the original input is recovered after a "round-trip" translation. Additionally, a validity reward ensures structural integrity. For the primal model, this involves a hard check against the domain's grammar and ontology. For the dual model, a Language Model evaluates the fluency of the generated query. The system is pre-trained with Maximum Likelihood Estimation and fine-tuned using Policy Gradient methods.
Data Augmentation and Datasets
The framework was evaluated on the ATIS (Air Travel Information Service) and OVERNIGHT datasets. A key advantage of the dual approach is its ability to utilize unlabeled data. The authors synthesized 4,592 new logical forms for ATIS by applying entity and predicate replacement based on the domain ontology, allowing the model to explore the mapping space more effectively.
Results and Discussion
The dual learning model achieved a state-of-the-art accuracy of 89.1% on ATIS and an average of 80.2% across the OVERNIGHT domains. Notably, in semi-supervised settings with only 50% labeled data, the model significantly outperformed supervised baselines.
Key Insights
- Symmetry as Supervision: Round-trip consistency serves as a powerful proxy for semantic accuracy in the absence of gold labels.
- Hard Constraints: Binary validity checks (grammar/type checking) are more effective reward signals for logical forms than soft probabilistic models.
- Data Efficiency: The ability to learn from synthesized or unlabeled data makes this framework highly suitable for low-resource domains.
Conclusion and Future Work
While highly effective, the dual learning approach faces risks of "equilibrium drift," where models might satisfy reconstruction rewards by developing a non-semantic "private language." Future research may explore Graph Neural Networks to better represent the inherent tree structures of logical forms and investigate more computationally efficient training loops.
Summary updated