Extracting Lexical Features from Dialects via Interpretable Dialect Classifiers

Roy Xie, Orevaoghene Ahia, Yulia Tsvetkov, Antonios Anastasopoulos

Introduction

Identifying the subtle linguistic "fingerprints" that distinguish dialects—often referred to as "shibboleths"—traditionally requires extensive manual effort from expert dialectologists. As Natural Language Processing (NLP) expands to cover under-resourced regional variations, the need for automated tools to identify these markers becomes critical. This paper introduces an automated pipeline that leverages interpretable neural classifiers to extract distinctive lexical features across diverse language groups, including Mandarin, Italian, and Low Saxon.

Methodology

The researchers propose a multi-stage workflow designed to transition from sentence-level classification to corpus-level linguistic insights. The process begins with training a dialect classifier based on the XLM-RoBERTa architecture. Once the model achieves high performance, the team applies interpretability techniques to understand the underlying decision-making process.

Two primary methods are compared:

  1. Post-hoc (Leave-One-Out / LOO): This method measures the change in prediction probability after removing a specific token. A significant drop indicates high relevance.
  2. Intrinsic (SelfExplain): This approach incorporates a specialized "Local Interpretability Layer" during training to quantify token relevance through internal activation differences.
The proposed workflow: (1) Input text is processed by (2) an interpretable classifier, (3) relevant features are extracted via attribution, and (4) unique dialectal markers are output.

To synthesize these insights into a global list of dialect features, the pipeline filters for tokens from correct predictions and applies TF-IDF (Term Frequency-Inverse Document Frequency) to the resulting explanations, highlighting the most salient markers for each dialect.

Experimental Setup and Datasets

The methodology was evaluated across three distinct language continua:

  • Mandarin: Comparing Mainland (CN) and Taiwan (TW) varieties using the FRMT dataset.
  • Italian: Utilizing the ITDI shared task data (covering 11 dialects like Sicilian/SCN) alongside Standard Italian from the Europarl corpus.
  • Low Saxon: Using the LSDC dataset, which encompasses 16 West-Germanic dialects across Germany and the Netherlands.

Results and Analysis

The interpretable classifiers demonstrated exceptional performance, achieving an average classification accuracy of 98.7% across all language pairs. This high accuracy suggests that the models are indeed identifying meaningful linguistic markers rather than relying on statistical noise.

Interpretability Comparison

A key finding of the study is the superiority of the Leave-One-Out (LOO) method for human-centric explanation. Human evaluators consistently found that LOO provided more "plausible" and justifiable explanations for model predictions compared to the intrinsic SelfExplain method across all tested dialects.

Human evaluation results showing that the LOO method consistently provides more adequate justifications for model predictions than the SelfExplain method.

Feature Validation

In validation tests for Mandarin (CN-TW), the proposed method captured approximately 90% of language-unique features, significantly outperforming a standard TF-IDF baseline (60-70%). In the more complex Sicilian (SCN) vs. Standard Italian (IT) task, the method remained effective, with 45% of SCN features and 63.2% of IT features being human-validated as unique markers. While the method is highly precise, the researchers noted it has lower "recall," as it focuses on the most salient features rather than every possible dialectal marker.

Conclusion and Future Work

This research demonstrates that high-performing neural models can serve as "automated linguists," successfully identifying culturally and regionally unique shibboleths. Current limitations include a focus on unigrams (single words) and binary classification setups. Future work will aim to expand the pipeline to handle sub-word features, syntactic structures, and multi-dialectal environments, providing a robust toolset for automated dialectology.

Summary updated

BibTeX
@inproceedings{xie2024extracting,
  author = {Roy Xie and Orevaoghene Ahia and Yulia Tsvetkov and Antonios Anastasopoulos},
  title = {{Extracting Lexical Features from Dialects via Interpretable Dialect Classifiers}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.naacl-short.5},
}
Figure