Low-Resource Compositional Semantic Parsing with Concept Pretraining

Subendhu Rongali, Mukund Sridhar, Haidar Khan, Konstantine Arkoudas, Wael Hamza, Andrew McCallum

TL;DR

This paper introduces CONCEPT-SEQ2SEQ, a novel semantic parsing architecture that significantly improves performance in low-resource settings (few-shot and zero-shot learning) by leveraging a "concept encoder" and a unique pretraining strategy on Wikidata. This approach allows voice assistants to adapt to new domains with minimal or no annotated data, making them more flexible and efficient.

What Problem Does This Paper Address?

Voice assistants like Alexa and Siri rely on semantic parsing to understand user commands, mapping natural language to structured intents and slots. However, extending these assistants to new domains typically requires thousands of annotated examples, a process that is both time-consuming and expensive. Existing few-shot learning methods often depend on handcrafted knowledge or massive language models, which can be impractical for production environments. This paper tackles the challenge of achieving effective semantic parsing in low-resource scenarios (zero-shot and few-shot) without relying on extensive manual effort or overly complex models.

Methods

The core of the proposed solution is the CONCEPT-SEQ2SEQ architecture, which builds upon the existing SEQ2SEQ-PTR model. The key innovations are:

  • Concept Encoder: This new component takes descriptive metadata (like intent and slot names) from a new domain and encodes them into vector representations. These representations are then used to condition the decoder, allowing it to understand and generate parses for new, unseen concepts.
  • Decoder-Focused Pretraining: To further enhance the model's ability to handle unseen concepts, the authors propose a novel pretraining scheme. This involves using an entity-centric processed version of Wikidata (WikiWiki) to teach the model general concept parsing knowledge. This pretraining helps the model better encode concepts and parse effectively, even without direct training data for a specific new domain.
  • Zero-Shot and Few-Shot Adaptation: For zero-shot learning, the pre-trained model is fine-tuned on existing domains, and then inference is performed on new domains by encoding their intent/slot tags. For few-shot learning, the zero-shot model is further fine-tuned on a small number of available examples from the target domain.

Datasets

  • TOPv2: A large-scale, compositional semantic parsing dataset with eight domains. It was used for both zero-shot and few-shot evaluation.
  • SNIPS: A smaller dataset with flat, disjoint slots, used for evaluating performance in few-shot settings.
  • WikiWiki: A dataset derived from Wikidata, used for the concept pretraining phase. It curates mentions, entities, and entity types from Wikipedia documents.

Key Insights and Ideas

  • Metadata is Powerful: The paper demonstrates that even simple textual descriptions of intents and slots (like "begin get distance intent") can be highly informative for a model, enabling it to generalize to new concepts.
  • Pretraining for Generalization: Pretraining on a large, diverse knowledge base like Wikidata significantly boosts the model's ability to handle unseen concepts, highlighting the importance of general linguistic and conceptual understanding.
  • Production-Viable Architecture: The proposed model maintains a similar time complexity to existing seq2seq models, making it suitable for practical deployment in voice assistant systems.
  • Unified Approach: CONCEPT-SEQ2SEQ handles both compositional and flat semantic parsing tasks, showcasing its versatility.

Key Results

  • Zero-Shot Performance: The model achieves commendable zero-shot performance on the TOPv2 dataset, particularly in the alarm and weather domains, and matches or outperforms a strong slot-filling baseline on the SNIPS dataset.
  • Few-Shot Performance: In few-shot settings (1, 5, and 25 samples per intent/slot), CONCEPT-SEQ2SEQ consistently outperforms or matches prior state-of-the-art models on TOPv2, especially in the challenging 1 SPI setting.
  • Effectiveness of Pretraining: Results show a noticeable performance drop when CONCEPT-SEQ2SEQ is used without Wikiwiki pretraining, underscoring its effectiveness.
  • Near Full-Resource Performance: On the SNIPS dataset, the model with 25 SPIs (samples per intent/slot) approaches the performance of a fully trained model.

Limitations and Future Work

  • Description Quality: The authors acknowledge that the quality of the descriptions used for concept encoding can impact performance, as seen with the timer domain on TOPv2 where a specific slot tag was consistently missed due to an inadequate description. Future work could explore better ways to generate or refine these descriptions.
  • Real-World Workflow: The current few-shot experiments involve random sampling of examples. A more realistic scenario might involve developers carefully crafting a small set of examples for better semantic coverage.
  • Large Models: The current evaluation focuses on base-sized models (roberta-base, bert-base-uncased). Comparing with larger models is left for future work, though the authors expect trends to generalize.
  • Inference Memory: While inference performance is comparable to traditional seq2seq models, the initial training of the concept encoder requires GPUs with at least 20GB of memory.

Summary updated

BibTeX
@inproceedings{rongali2023low,
  author = {Subendhu Rongali and Mukund Sridhar and Haidar Khan and Konstantine Arkoudas and Wael Hamza and Andrew McCallum},
  title = {{Low-Resource Compositional Semantic Parsing with Concept Pretraining}},
  booktitle = {EACL},
  year = {2023},
  url = {https://openreview.net/forum?id=OZ-Muxn7GC},
}
Figure