Abstract
Semantic parsing and natural language generation (NLG) are inherently inverse operations: one maps natural language (NL) to formal meaning representations (MR), while the other performs the reverse. Despite this duality, these models are typically trained in isolation, neglecting the potential for mutual reinforcement. We introduce Dual Information Maximization (DIM), a framework that jointly trains both models by regularizing their joint distributions to match an underlying target distribution. Our approach provides significant performance improvements in both supervised and semi-supervised settings by allowing the parser and generator to act as critics for one another.
Introduction
In natural language processing, semantic parsing (e.g., converting "show me flights to Boston" into a SQL query) and NLG (e.g., converting that SQL query back into a human-readable sentence) are two sides of the same coin. However, the scarcity of high-quality, parallel NL-MR data remains a major bottleneck. Traditional methods often fail to exploit the structural connection between these tasks.
This paper addresses this gap by proposing a joint learning framework that leverages the duality of parsing and generation. By forcing the models to find a consistent joint distribution, we create a closed-loop system where the models can "teach" each other, effectively utilizing unlabeled data to boost performance.
Methodology
The Duality Principle
The core of the DIM framework is the observation that the joint distribution of NL ($x$) and MR ($y$) can be decomposed in two ways: $P(x, y) = P(x)P(y|x)$ (the parser's view) and $P(x, y) = P(y)P(x|y)$ (the generator's view). DIM regularizes the training process by minimizing the divergence between these two views and an empirical joint distribution.
Optimization via REINFORCE
Since the mapping between NL and MR involves discrete sequences, the authors employ a policy gradient approach (REINFORCE). When the parser generates a candidate MR, it is passed to the generator. The generator evaluates how likely it is to reconstruct the original NL from that MR. This likelihood serves as a reward signal: if the generator can easily reconstruct the source, the parser's output is deemed high-quality and the model is rewarded.
Semi-supervised Learning (SEMIDIM)
The framework naturally extends to unlabeled data through SEMIDIM. For instance, given only a piece of code (MR), the generator creates a "pseudo-text." The parser then attempts to map this pseudo-text back to the original code. Unlike standard self-training, which can amplify model errors, SEMIDIM uses the dual model to weight these pseudo-samples, giving less influence to noisy or unlikely pairs.
Experimental Results
The DIM framework was evaluated on three datasets: ATIS (flight queries), DJANGO (Python code), and CoNaLa (Stack Overflow snippets).
Performance Gains
DIM consistently outperformed single-task baselines across all metrics. On the ATIS dataset, parsing accuracy improved from 84.6% to 85.3% in supervised settings. The impact was even more pronounced in semi-supervised scenarios; using only 25% of the labeled data, accuracy jumped from 64.7% to 71.9%.
As shown in the figure above, SEMI-DIM demonstrates superior scalability as it incorporates more iterations or data, particularly in the challenging CoNaLa dataset. Furthermore, the authors observed a high Pearson correlation (up to 0.922) between parser and generator performance, confirming that improvements in one task directly benefit the other.
Discussion and Conclusion
While DIM provides a robust framework for joint learning, it is not without challenges. The use of REINFORCE introduces training variance that requires careful stabilization. Additionally, the current implementation linearizes code into sequences, potentially ignoring the rich tree-like structure of formal languages.
Future work will explore more sophisticated architectures, such as Transformers or Graph Neural Networks, to better capture structural dependencies. Nevertheless, DIM represents a significant step forward in utilizing task duality to overcome data scarcity in semantic parsing and natural language generation.
Summary updated