Learning to Recognize Dialect Features

Dorottya Demszky, Devyani Sharma, Jonathan H. Clark, Vinodkumar Prabhakaran, Jacob Eisenstein

Abstract

Traditional Natural Language Processing (NLP) systems often struggle with linguistic diversity, treating dialects as monolithic labels rather than collections of specific features. This paper proposes a "minimalist" approach to dialect feature detection, leveraging small sets of hand-crafted "minimal pairs" to train robust models. By focusing on Indian English, the authors demonstrate that training on just a few dozen high-signal examples can outperform models trained on thousands of random corpus instances. We introduce Description-Aware Multitask Learning (DAMTL) to incorporate linguistic definitions directly into the model, paving the way for more inclusive and data-efficient NLP.

Introduction

Most current NLP systems are optimized for "standard" varieties of language, such as mainstream U.S. English. Consequently, these systems often fail or exhibit significant bias when encountering regional or minority dialects. Traditionally, researchers have treated dialect identification as a document-level classification task (e.g., "Is this Indian English or British English?").

However, linguists view dialects not as single categories, but as collections of correlated features—specific grammatical, syntactic, or phonological markers. The challenge is that annotating these features in the wild requires immense linguistic expertise and is prohibitively slow. Because most dialects are "low-resource," we lack the massive labeled datasets typically needed to train modern deep-learning models. This paper addresses the data scarcity problem by asking: Can we teach a model to recognize a dialect feature using only the definitions and examples found in a linguistics textbook?

Methodology

The authors frame the problem as dialect feature detection, fine-tuning a BERT-base model using two multitask architectures. The first is a standard Multihead approach with separate prediction heads for each feature. The second, DAMTL (Description-Aware Multitask Learning), prepends the natural language description of the feature (e.g., "article omission") to the input text, allowing the model to leverage semantic meaning to identify the feature.

The "secret sauce" of this research is the Minimal Pair training strategy. Instead of searching for examples in a massive corpus, the authors created tiny datasets of hand-crafted pairs. For example, to teach "Article Omission," they might use a positive instance ("Chair is black") and a negative instance ("The chair is black"). By showing the model exactly where a feature could have occurred but didn't (the "envelope of variation"), they provide a much cleaner signal than random corpus examples.

Input format for DAMTL using minimal pairs.

The study focuses on Indian English, utilizing the ICE-India corpus and existing feature sets from Lange (2012). The authors expanded these by annotating 18 additional features across 300 conversational turns and creating a new dataset of 321 unique minimal pair examples.

Key Results and Insights

The most striking finding was that information density matters more than volume. Training on roughly five minimal pairs per feature outperformed training on 5,000 random examples from a labeled corpus. Minimal pairs are high-signal because they isolate the specific grammatical change, allowing the model to learn the underlying rule rather than just correlating words.

Performance of minimal pairs vs. corpus examples.

Key performance metrics include:

  • High Accuracy: The best models achieved a macro-AUC of .848 across ten grammatical features using only minimal pairs for training.
  • Superior Discriminability: When used to distinguish between Indian English and U.S. English transcripts, the feature-based Dialect Density Measure (DDM) approach achieved a discriminability score ($D'$) of 1.85.
  • Zero-Shot Potential: The DAMTL model demonstrated that providing a natural language description helps the model generalize to features it hasn't seen during training.

Discussion and Limitations

While successful, the models faced challenges with transcripts lacking punctuation, as they struggled to identify clause boundaries where features like "left dislocation" typically occur. Furthermore, features requiring deep semantic understanding, such as "direct object pro-drop" (omitting "it" when context is clear), remain difficult for current models to master from small samples.

By detecting individual features rather than applying a binary label, this approach allows for a more nuanced Dialect Density Measure (DDM). This reflects how people actually speak—using varying degrees of dialectal markers. However, the authors warn that while this technology can make NLP more inclusive, it also carries ethical risks regarding "dialect profiling" or surveillance, necessitating careful oversight in its application.

Future work may explore "feature sharing" across dialects. Since many varieties share features (e.g., copula deletion in both AAVE and Indian English), models could potentially be trained on one dialect to help recognize another, further reducing the data burden for low-resource languages.

Summary updated

BibTeX
@inproceedings{demszky2021learning,
  author = {Dorottya Demszky and Devyani Sharma and Jonathan H. Clark and Vinodkumar Prabhakaran and Jacob Eisenstein},
  title = {{Learning to Recognize Dialect Features}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.184},
}
Figure