Unsupervised Out-of-Distribution Dialect Detection with Mahalanobis Distance
Sourya Dipta Das, Yash Vadi, Abhishek Unnam, Kuldeep Yadav
TL;DR
This work tackles open-set dialect identification by proposing an unsupervised OOD detection method that leverages Mahalanobis distance features derived from latent embeddings across all transformer layers of a wav2vec 2.0 dialect classifier. By computing layer-wise means and covariances from close-set training data and concatenating per-layer Mahalanobis scores, the approach forms a rich feature vector $V_{MD}(x)$ that feeds a KNN-based outlier detector to produce a class rejection score $G_D(x)$ with a threshold $\delta$. The method preserves strong close-set performance while significantly improving OOD detection, outperforming several state-of-the-art detectors on English and Spanish dialect datasets. The findings highlight the effectiveness of multi-layer representations for open-world dialect classification and suggest potential gains from adversarial and contrastive learning in future work.
Abstract
Dialect classification is used in a variety of applications, such as machine translation and speech recognition, to improve the overall performance of the system. In a real-world scenario, a deployed dialect classification model can encounter anomalous inputs that differ from the training data distribution, also called out-of-distribution (OOD) samples. Those OOD samples can lead to unexpected outputs, as dialects of those samples are unseen during model training. Out-of-distribution detection is a new research area that has received little attention in the context of dialect classification. Towards this, we proposed a simple yet effective unsupervised Mahalanobis distance feature-based method to detect out-of-distribution samples. We utilize the latent embeddings from all intermediate layers of a wav2vec 2.0 transformer-based dialect classifier model for multi-task learning. Our proposed approach outperforms other state-of-the-art OOD detection methods significantly.
