Abstract
Discriminating between closely-related language varieties is considered a challenging and important task. This paper describes our submission to the DSL 2016 shared-task, which included two sub-tasks: one on discriminating similar languages and one on identifying Arabic dialects. We developed a character-level neural network for this task. Given a sequence of characters, our model embeds each character in vector space, runs the sequence through multiple convolutions with different filter widths, and pools the convolutional representations to obtain a hidden vector representation of the text that is used for predicting the language or dialect. We primarily focused on the Arabic dialect identification task and obtained an F1 score of 0.4834, ranking 6th out of 18 participants. We also analyze errors made by our system on the Arabic data in some detail, and point to challenges such an approach is faced with.
Introduction
While standard language identification (e.g., English vs. Chinese) is largely considered a solved problem, distinguishing between closely related varieties—such as Mexican vs. Argentinian Spanish or Egyptian vs. Levantine Arabic—remains a significant hurdle for NLP systems. These varieties often share substantial vocabulary and grammatical structures, with differences manifesting in subtle stylistic nuances or specific character n-gram patterns. Traditional approaches often rely on extensive feature engineering, such as curated "white-lists" of dialect-specific terms. This research explores a different path: how well can a model perform by treating text as a raw sequence of characters, effectively ignoring word boundaries?
Methodology
The core of the approach is a character-level Convolutional Neural Network (CNN). The architecture follows four main stages:
- Embedding: Each character in the input sequence is mapped to a learned vector representation.
- Parallel Convolutions: The sequence is processed through multiple convolutional layers with varying filter widths (1 to 7 characters). This allows the model to capture features ranging from individual characters to 7-grams simultaneously.
- Max-over-time Pooling: This layer extracts the most salient features from the convolutional outputs, condensing the variable-length sequence into a fixed-size hidden vector.
- Classification: A fully-connected layer followed by a softmax output predicts the final language or dialect label.
For the final submission (Run 3), an ensemble strategy was employed, where 10 models were trained on different data splits, and a plurality vote determined the final prediction.
Experimental Setup
The model was evaluated on the DSL 2016 Shared Task datasets:
- Sub-task 1 (Similar Languages): Journalistic texts across five language groups, including South Slavic (Bosnian, Croatian, Serbian), Malay/Indonesian, Portuguese (Brazil/Portugal), Spanish (Argentina/Mexico/Spain), and French (France/Canada).
- Sub-task 2 (Arabic Dialects): Transcriptions of spoken recordings for five varieties: Levantine (lav), Gulf (glf), Egyptian (egy), North African (nor), and Modern Standard Arabic (msa). These transcripts were generated via Automatic Speech Recognition (ASR), introducing significant noise.
Results and Discussion
The quantitative performance of the system is summarized in Table 1. In the Arabic dialect task (Test Set C), the ensemble model (Run 3) achieved an F1 (weighted) score of 0.4834, ranking 6th among 18 participants. Performance on the similar languages task (Test Set A) reached an accuracy of 83.07%.
Analysis of the confusion matrices (Figure 1) reveals distinct patterns of error. In Sub-task 1, the model rarely confuses languages from different groups but struggles with regional neighbors, particularly within the South Slavic group and Spanish varieties. In the Arabic task, Modern Standard Arabic (MSA) was the most accurately identified (F1 0.60), likely due to its formal nature. Conversely, Gulf Arabic was frequently misclassified as MSA, highlighting the challenge of "code-switching" where speakers mix local dialects with standard forms.
Conclusion and Future Work
The results demonstrate that sub-word patterns captured by a character-level CNN are highly diagnostic of linguistic variety. However, the reliance on ASR transcripts for the Arabic task presents a bottleneck; the transcription process often "normalizes" dialectal phonology into standard forms, stripping away the very features the CNN is designed to detect. Future research should explore hybrid models that combine character-level features with word-level lexicons or multimodal approaches that incorporate raw acoustic signals to preserve phonological nuances.
Summary updated