[Paper Review] N-gram and Neural Language Models for Discriminating Similar Languages
This paper evaluates character-based n-gram and convolutional neural network with bidirectional LSTM (CLSTM) models for discriminating similar languages in the 2016 DSL shared task. The n-gram model achieved 88.45% accuracy, ranking 7th, while the CLSTM model reached 78.45% with minimal tuning, indicating that traditional n-gram models outperform early neural networks on this task with limited training data.
This paper describes our submission (named clac) to the 2016 Discriminating Similar Languages (DSL) shared task. We participated in the closed Sub-task 1 (Set A) with two separate machine learning techniques. The first approach is a character based Convolution Neural Network with a bidirectional long short term memory (BiLSTM) layer (CLSTM), which achieved an accuracy of 78.45% with minimal tuning. The second approach is a character-based n-gram model. This last approach achieved an accuracy of 88.45% which is close to the accuracy of 89.38% achieved by the best submission, and allowed us to rank #7 overall.
Motivation & Objective
- To evaluate the effectiveness of character-based n-gram and neural network models in discriminating similar languages.
- To assess whether deep neural networks like CLSTM can outperform traditional n-gram models in low-data regimes for language variety discrimination.
- To investigate the challenges in distinguishing closely related languages, particularly Spanish varieties and French dialects.
- To determine whether named entities significantly influence language identification performance.
- To explore the feasibility of using raw text without linguistic annotations for training language discrimination models.
Proposed method
- A character-based n-gram model with n=7 was trained on the DSL 2016 newspaper corpus (Set A) for closed-track submission.
- A hybrid CLSTM model was implemented using a 1D convolutional layer followed by a bidirectional LSTM layer, processing raw character sequences.
- The n-gram model used character-level frequency vectors as features, with SVM classification.
- The CLSTM model was trained end-to-end on character-level inputs without linguistic preprocessing.
- Both models were evaluated on the same held-out test set from the DSL 2016 shared task.
- Model performance was measured using macro F1 and accuracy on 12 language varieties, including regional Spanish, French, and other national variants.
Experimental results
Research questions
- RQ1Can character-based n-gram models achieve high accuracy in discriminating similar languages with limited training data?
- RQ2Does a CLSTM model outperform traditional n-gram models in language discrimination tasks when training data is scarce?
- RQ3How do misclassifications distribute across language groups, particularly for closely related varieties like Spanish and French?
- RQ4To what extent do named entities influence language identification performance in similar language discrimination?
- RQ5Is a two-stage hierarchical classification approach necessary for distinguishing similar language varieties?
Key findings
- The character-based n-gram model achieved 88.45% accuracy, ranking 7th among 17 participants in the closed track of the DSL 2016 shared task.
- The CLSTM model achieved 78.45% accuracy with minimal hyperparameter tuning, significantly underperforming the n-gram baseline.
- The n-gram model showed strong performance across all language groups, with F1 scores ranging from 0.70 to 0.95, and was most accurate for Malay and Indonesian (F1=0.99).
- The CLSTM model struggled most with Spanish varieties, particularly Mexican Spanish, achieving an F1 of only 0.46, indicating high confusion among Spanish dialects.
- Misclassifications across language groups were sparse and statistically insignificant, suggesting that a hierarchical two-stage approach may not be necessary.
- Surprisingly, removing named entities from the training data reduced accuracy by only 1–2 percentage points, indicating that named entities are not the primary discriminative signal.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.