TL;DR
This paper tackles the challenge of understanding code-switched (CS) utterances in task-oriented dialogue systems, specifically focusing on Spanglish. They introduce CSTOP, the first large-scale dataset for Spanglish semantic parsing, and propose novel data augmentation techniques to improve performance when only English data is available.
What Problem Does This Paper Address?
Task-oriented dialogue systems, like virtual assistants, are designed to understand user commands and fulfill requests. However, these systems often struggle with code-switching (CS), where speakers alternate between two or more languages within a single utterance or conversation. This is particularly common in regions with strong linguistic influence from another language, such as Spanglish (Spanish-English) in many parts of the world. Existing systems are typically trained on monolingual data, making them perform poorly on CS. Collecting and annotating CS data is difficult and expensive due to the need for bilingual annotators and the complex nature of CS. This paper aims to bridge this gap by developing methods for semantic parsing of Spanglish utterances, even when limited or no Spanglish training data is available, by leveraging readily available English data.
Methods
The authors explore several approaches to tackle Spanglish semantic parsing:
- Baseline Models: They evaluate standard bidirectional LSTMs with aligned word embeddings (MUSE) and state-of-the-art cross-lingual pre-trained models like XLM and XLM-R.
- Zero-Shot Learning: They investigate how well models trained on monolingual English (EN) data perform on Spanglish (CS) data.
- Data Augmentation Techniques:
- Translate and Align: This method involves machine translating English utterances to Spanish and then aligning the slot values between the translated Spanish and original English. They explore two alignment strategies: attention-based alignment from NMT models and unsupervised word alignment using fast-align.
- Generate by Match-and-Filter: This approach is designed for few-shot settings. It involves finding the closest English "neighbor" utterance for a given Spanglish utterance, fine-tuning a generative model (BART) on this parallel data, and then using it to generate synthetic Spanglish utterances. These generated utterances are then filtered to ensure quality and relevance.
Datasets
- CSTOP: A newly introduced dataset containing 5800 Spanglish utterances with corresponding semantic parses. This dataset covers two domains: Weather and Device.
- Task-Oriented Parsing dataset (Schuster et al., 2018): Used as the in-domain English (EN) monolingual dataset.
- In-domain ES dataset: An internal dataset of Spanish (ES) utterances for experiments.
Key Insights and Ideas
- Cross-lingual models are crucial: Even with only monolingual data from one language (e.g., English), cross-lingual pre-trained models like XLM-R show significantly better generalization to code-switched data compared to monolingual models.
- Translate-and-align is effective for zero-shot: Machine translating English data to Spanish and aligning slot values provides a substantial improvement in zero-shot performance on Spanglish, especially when compared to using only English data.
- Unsupervised alignment outperforms attention: For the translate-and-align method, unsupervised word alignment (fast-align) yields better results than attention-based alignment from NMT models, likely because it handles many-to-many alignments more effectively.
- Data augmentation boosts few-shot learning: In few-shot scenarios, generating synthetic Spanglish data using a model like BART and then filtering it significantly improves performance over just using a few real Spanglish examples.
- The dynamic nature of CS: The paper highlights that code-switching is a dynamic phenomenon, making it challenging to create static datasets and necessitating adaptable models and augmentation techniques.
Key Results
- Zero-shot performance: Using only in-domain English data, XLM-R achieves an accuracy of 65.8%. With the translate-and-align method using auto-translated and aligned ES data, this accuracy increases to 69.2%.
- Few-shot performance: With only a few CS instances, XLM-R fine-tuned on EN achieves 82.6% accuracy. Augmenting this with the "Generate by Match-and-Filter" approach brings the accuracy up to 83.7%.
- Full training: When trained on the full CSTOP dataset, XLM-R achieves 94.4% accuracy.
Limitations and Future Work
- Limitations:
- The "Translate and Align" method's effectiveness is dependent on the quality of machine translation and word alignment.
- The "Generate by Match-and-Filter" method relies on finding good English neighbors and the generative capabilities of the chosen model (BART).
- The paper primarily focuses on Spanglish, and the effectiveness of these methods on other code-switching language pairs is not explored.
- Future Work:
- Exploring and combining other data augmentation techniques.
- Investigating the performance of these methods on other code-switching language pairs.
- Further research into more robust and generic augmentation techniques that do not rely on specific linguistic rules.
Summary updated