Multilingual Spoken Words Corpus

Mark Mazumder, Sharad Chitlangia, Colby Banbury, Yiping Kang, Juan Manuel Ciro, Keith Achorn, Daniel Galvez, Mark Sabini, Peter Mattson, David Kanter, Greg Diamos, Pete Warden, Josh Meyer, Vijay Janapa Reddi

TL;DR

This paper introduces the Multilingual Spoken Words Corpus (MSWC), a massive dataset of spoken words across 50 languages, designed to democratize keyword spotting (KWS) research and applications. By automating the extraction process from existing crowd-sourced data, MSWC offers unprecedented scale and multilingual coverage, addressing a critical gap in current KWS resources.

What Problem Does This Paper Address?

Keyword spotting (KWS) is the technology behind "wake words" like "Hey Siri" or "Okay Google," enabling voice-activated devices. While KWS has seen significant advancements, its progress is hampered by a lack of large, diverse, and multilingual datasets. Existing datasets are often limited to a single language (typically English), contain only a handful of keywords, and are manually curated, making them expensive and time-consuming to create and expand. This scarcity particularly affects under-represented languages, hindering the global reach and inclusivity of voice technology. The paper aims to bridge this gap by providing a scalable, automated method for generating a comprehensive multilingual KWS dataset.

Methods

The core of the MSWC creation process is an automated data extraction pipeline. This pipeline takes sentence-level audio and transcriptions from the Mozilla Common Voice dataset as input. The key steps involve:

  1. Forced Alignment: Using the Montreal Forced Aligner, per-word timing estimates are generated for each sentence. This is a standard technique, but the paper emphasizes training it from scratch on the Common Voice data itself, without relying on external acoustic models.
  2. Word Extraction: Based on the forced alignments, individual 1-second spoken word samples are extracted. Heuristic thresholds are applied, such as a minimum character length for words (with an exception for Chinese) and a minimum occurrence count in the source data.
  3. Data Splits: The extracted data is split into train, development, and test sets (80:10:10 ratio) per keyword, prioritizing speaker diversity and gender balance.
  4. Outlier Detection: A novel self-supervised anomaly detection method is introduced to identify and potentially filter out low-quality extractions caused by issues like alignment errors, mispronunciations, or background noise. This method uses clustering and nearest-neighbors on feature vectors derived from audio samples.

Datasets

  • Training/Source Data: Mozilla Common Voice (version 3) is the primary source for sentence audio and transcriptions across 50 languages.
  • Newly Introduced Benchmark: The Multilingual Spoken Words Corpus (MSWC) is the main contribution. It contains over 340,000 unique keywords, totaling 23.4 million 1-second spoken examples (over 6,000 hours) across 50 languages. All forced alignments are included.
  • For Comparison: Google Speech Commands (GSC) dataset is used for evaluating domain gap and comparing model performance.

Key Insights and Ideas

  • Automated Extraction is Scalable: The paper demonstrates that a fully automated pipeline can generate a massive, multilingual dataset, overcoming the bottleneck of manual curation. This approach is crucial for expanding KWS to low-resource languages.
  • Outlier Detection is Crucial for Quality: Crowd-sourced data, even when validated, can contain errors. The proposed outlier detection method is vital for improving the quality of automatically extracted samples and can help users choose between a larger, noisier dataset or a smaller, cleaner one.
  • Domain Gap is Manageable: While there's a performance drop when training on automatically extracted data (MSWC) and testing on manually recorded data (GSC), the gap is not insurmountable, suggesting MSWC is a viable resource for KWS development.
  • Low-Resource Languages Benefit Greatly: MSWC provides the first publicly available spoken word datasets for many languages, enabling research and applications that were previously impossible.

Key Results

  • Dataset Size: MSWC contains over 23.4 million 1-second spoken examples across 50 languages, with over 340,000 unique keywords.
  • Multilingual Coverage: It includes high-resource, medium-resource, and low-resource languages, with 46 languages reportedly having no other open-source spoken word datasets.
  • Model Performance: Baseline evaluations showed that models trained on MSWC achieved competitive accuracy, with a relatively small domain gap compared to models trained on the manually curated Google Speech Commands dataset. For instance, a DSCNN model trained on MSWC and tested on GSC achieved 78.6% accuracy, compared to 85.2% when trained and tested on GSC. Filtering MSWC data using the outlier metric improved performance, demonstrating its utility.
  • Outlier Metric Effectiveness: Listening tests showed that samples with lower outlier metric values (closer to the cluster centers) had significantly lower Word Error Rates (WER) compared to samples with higher outlier metric values. For example, in English, nearest 50 samples had a WER of 1.67±0.19, while farthest 50 had 3.96±0.3.

Limitations and Future Work

  • Bias Propagation: The dataset inherits biases present in the Common Voice data, such as gender or accent bias. The authors acknowledge the need to be mindful of biases as MSWC expands to other datasets.
  • Alignment Quality: Forced alignment quality can be lower for low-resource languages and shorter words, potentially introducing errors. The optional outlier metric aims to mitigate this but might inadvertently introduce its own biases.
  • Future Work:
    • Expanding the dataset with more languages and data from other sources (e.g., The People's Speech, Multilingual LibriSpeech).
  • Improving alignment quality as the Montreal Forced Aligner is updated.
  • Further research into closing the domain gap between automatically extracted and manually recorded data.
  • Regular updates and maintenance of the dataset through collaboration with MLCommons.

Summary updated

BibTeX
@inproceedings{mazumder2021multilingual,
  author = {Mark Mazumder and Sharad Chitlangia and Colby Banbury and Yiping Kang and Juan Manuel Ciro and Keith Achorn and Daniel Galvez and Mark Sabini and Peter Mattson and David Kanter and Greg Diamos and Pete Warden and Josh Meyer and Vijay Janapa Reddi},
  title = {{Multilingual Spoken Words Corpus}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
}
Figure