TL;DR
This paper tackles the challenge of generating diverse and high-quality top-k semantic parses from non-autoregressive (NAR) models, which are typically faster but struggle with this task compared to autoregressive (AR) models. They introduce an "intent-conditioned" NAR decoder that decouples top-level intent prediction, leading to improved diversity and quality of top-k outputs while maintaining O(1) decoding complexity.
What Problem Does This Paper Address?
Semantic parsing (SP) is crucial for virtual assistants, converting natural language into structured meaning representations. While autoregressive (AR) models are common, they suffer from slow inference due to sequential decoding. Non-autoregressive (NAR) models offer faster, parallel decoding but struggle with generating a diverse set of top-k (k-best) outputs, often producing duplicates or invalid parses. This limitation hinders their adoption in applications requiring multiple plausible interpretations. This paper aims to bridge this gap by improving the top-k decoding capabilities of NAR semantic parsers.
Methods
The core innovation is intent conditioning. The authors decouple the prediction of the top-level intent from the rest of the semantic parse. This is inspired by traditional intent-and-slot tagging parsers. By conditioning the frame length and the subsequent parse generation on the top-level intent, the model gains better control over the beam search process.
Key methodological components include:
- Intent Module: A separate Transformer module predicts the top-level intent (represented by logits, not just a discrete class) from the encoded source.
- Frame Length Module: This module takes the intent logits and encoded source to predict the parse length.
- Decoder: A standard Transformer decoder generates the rest of the parse, conditioned on the intent logits, frame length, and encoded source.
- Hybrid Teacher Forcing: To stabilize training and inference, they propose a novel strategy that samples logits from both the teacher (ground truth) and model outputs during training, exposing the model to the inference-time hidden space.
- Scoring Method: A three-part scoring mechanism is used to select the best top-k parses, with a length penalty proving particularly effective.
Datasets
The paper evaluates their approach on two conversational semantic parsing datasets:
- TOP (Task Oriented Parsing): A dataset of human-generated queries and their corresponding semantic parses.
- TOPv2: An extension of TOP with six additional domains.
Key Insights and Ideas
- Intent as a Control Knob: The top-level intent is a strong signal for the overall structure and semantics of a semantic parse. Decoupling its prediction allows for more targeted control over the decoding process.
- Logits for Richer Conditioning: Using the logits of the top-level intent, rather than a one-hot encoded class, provides richer information about intent uncertainty, leading to better downstream performance.
- Hybrid Teacher Forcing is Crucial: The proposed hybrid teacher forcing strategy is key to stabilizing the training and inference of the intent-conditioned model, bridging the gap between training and testing procedures.
- NAR Beam Search Can Be Effective: By carefully conditioning the generation process, NAR models can achieve competitive top-k performance, overcoming a major limitation of previous NAR approaches.
Key Results
- Improved Top-K Quality: The proposed NAR model achieves a 2.4-point improvement in top-3 exact match (EM) over the baseline NAR on the TOP dataset.
- Faster Inference: The model maintains O(1) decoding complexity and offers significant speedups: 6.7x faster on CPU compared to AR baselines.
- Enhanced Diversity: The intent-conditioned NAR significantly improves diversity metrics, showing a 1.88x increase in unique top-level intents and substantial gains in distinct n-grams.
- Reduced Performance Gap: The proposed NAR model further closes the performance gap between NAR and AR models, especially in top-k scenarios.
Limitations and Future Work
- Computational Cost of Beam Search: While the core decoding is O(1), the beam search itself still involves multiple passes, increasing computation compared to greedy decoding.
- Hyperparameter Sensitivity: The paper notes that the ratio of loss terms (intent, length, output) is important and requires careful tuning.
- Future Work: The authors suggest exploring other pre-trained encoders (like RoBERTa) and further investigating the impact of different model configurations and hyperparameter settings. They also mention that the current work focuses on improving top-k outputs and does not explicitly address re-ranking or downstream applications of diverse parses.
Summary updated