TL;DR
This paper tackles the challenge of creating synthetic data for task-oriented semantic parsing, especially for complex hierarchical representations. They leverage a pre-trained language model (BART) to generate realistic-looking utterances from templates, significantly improving parsing performance, particularly for underrepresented templates.
What Problem Does This Paper Address?
Modern conversational AI systems rely on understanding user requests, often expressed as intents and slots. While simple, flat structures suffice for many tasks, more sophisticated capabilities require hierarchical representations, where intents and slots can be nested. Training models for these hierarchical structures typically requires large amounts of labeled data, which can be expensive and time-consuming to create, especially for new domains. Furthermore, existing datasets often exhibit a long-tail distribution of templates, meaning many templates appear very infrequently, making it hard for models to learn them effectively. This paper aims to address this data scarcity and imbalance problem by generating synthetic data.
Methods
The core of their approach is to use a pre-trained sequence-to-sequence model, specifically BART (Bidirectional and Auto-Regressive Transformer), as a generator. The process involves two main steps:
- Template-based Generation:
- They first extract "templates" from existing labeled data. A template is essentially the hierarchical structure of an utterance with all its specific words replaced by a generic
[mask]token.
- They first extract "templates" from existing labeled data. A template is essentially the hierarchical structure of an utterance with all its specific words replaced by a generic
- They then fine-tune BART on these template-annotation pairs. BART, originally trained for denoising tasks like text infilling, is well-suited to fill in the
[mask]tokens in a template to generate a complete, synthetic utterance and its corresponding hierarchical annotation. - To ensure diversity in the generated data, they use top-p sampling during generation, rather than standard beam search.
- Auxiliary Parser Filtering:
- Recognizing that generated data can be noisy, they employ an "auxiliary parser" (AP) to filter out low-quality synthetic samples.
- This AP is trained on the original, real data. Synthetic samples are kept only if the AP parses them and produces an output that exactly matches the synthetic annotation. This ensures that the generated data adheres to the expected structure and content.
Datasets
The primary dataset used in this work is the Facebook TOP dataset. This dataset is described as the largest publicly available dataset for hierarchical semantic parsing, containing over 44,000 annotated queries. The authors note its significant imbalance in template frequencies, which motivates their synthetic data generation approach. They also mention simulating low-resource scenarios by sub-sampling this dataset.
Key Insights and Ideas
- Leveraging Pre-trained Models for Structured Data: The paper demonstrates that powerful pre-trained language models like BART, originally designed for text generation, can be effectively adapted for generating structured outputs like semantic parse trees.
- Template-based Generation is Effective: Using templates as a scaffold for generation provides a strong inductive bias, guiding the model to produce syntactically and semantically coherent outputs that align with the desired hierarchical structure.
- Data Imbalance is a Real Problem: The analysis of the Facebook TOP dataset clearly shows a long-tail distribution of templates, highlighting the need for methods that can specifically address the underrepresentation of rare templates.
- Filtering is Crucial for Quality: The auxiliary parser filtering step is essential. Without it, the generated data can degrade performance, underscoring the importance of quality control in synthetic data generation.
Key Results
- Performance Boost: Adding synthetic data, filtered by an auxiliary parser, led to performance improvements on the Facebook TOP dataset. Specifically, they observed gains of 0.89% for a BART-based parser and 0.88% for an s2s-pointer parser in exact-match accuracy.
- Benefit for Low-Frequency Templates: The synthetic data had a more pronounced positive impact on templates with low frequencies. For templates appearing less than 5 times (
f < 5), accuracy increased by 1.36%. For unseen templates (f = 0), there was a gain of 0.67%, suggesting potential for generating truly novel data. - Low-Resource Performance: In a simulated low-resource setting (6K training examples), their approach boosted accuracy by over 2% absolute.
- BART as a Strong Baseline: The BART-based parser performed comparably to state-of-the-art models, indicating the effectiveness of pre-training for this task.
Limitations and Future Work
- Template Generation: The current approach relies on sampling templates from existing ones. The authors acknowledge that the possibility of generating new templates (beyond those seen in the training data) is an avenue for future work, which could further improve performance on unseen templates.
- Auxiliary Parser Choice: While they explore different configurations for the auxiliary parser and target parser, the optimal choice might be domain-specific.
- Generalizability: While promising, the approach is evaluated on a single dataset. Further validation on diverse domains and hierarchical parsing tasks would be beneficial.
The paper opens up exciting possibilities for applying this synthetic data generation technique to other problems in Natural Language Processing that involve complex, structured outputs.
Summary updated