Native Language Identification With Classifier Stacking and Ensembles

Shervin Malmasi, Mark Dras

Introduction

Native Language Identification (NLI) is a specialized task in computational linguistics that aims to determine a writer's native language (L1) based solely on their writing in a second language (L2). This field has significant practical applications, ranging from educational tools that provide feedback tailored to specific L1 interference patterns to forensic linguistics.

The primary obstacle in NLI is generalization. Models frequently "overfit" to the specific topics or prompts within a dataset rather than capturing the underlying linguistic "fingerprint" of the author's native language. While previous research utilized ensemble methods to combine multiple models, there lacked a rigorous, systematic comparison of different ensemble architectures—such as simple voting versus complex "stacking"—across different languages and cross-corpus settings.

Methodology: From Fusion to Stacking

The authors evaluated three increasingly sophisticated ensemble architectures to determine the most effective method for aggregating classifier predictions:

  1. Parallel Ensembles (Fusion): Independent classifiers are trained on distinct feature sets (e.g., word n-grams, POS tags, or dependency parses). Their outputs are then combined using fixed rules, such as Plurality Voting, Mean Probability, or Borda Count.
  2. Meta-Classifiers (Stacking): Instead of a fixed rule, the outputs of the first-layer classifiers are used as input features for a second-layer "meta-learner." This model learns to weight the base classifiers, identifying which are most reliable for specific linguistic contexts.
  3. Hybrid Ensembles: To further reduce variance and improve stability, the authors applied Bagging (Bootstrap Aggregating) to the meta-classifiers, creating an ensemble of ensembles.

A key technical insight from the study is that meta-learners perform significantly better when fed the continuous probability distributions (confidence scores) of the base classifiers rather than their discrete predicted labels.

Experimental Framework

To ensure the findings were not specific to a single language or dataset, the approach was tested on four major corpora:

  • TOEFL11: The standard NLI benchmark featuring 12,100 essays from 11 L1 backgrounds.
  • EFCAMDAT: A large-scale, multi-genre English L2 corpus used for cross-corpus evaluation.
  • ASK Corpus: A Norwegian L2 learner corpus covering 10 L1s.
  • Jinan Chinese Learner Corpus (JCLC): A large-scale Chinese L2 corpus covering 11 L1s.

Key Insights and Results

The Resurgence of LDA

While Linear Discriminant Analysis (LDA) is often overlooked in modern NLP, it proved to be the most effective meta-classifier in this study. The authors suggest that because the meta-feature space is relatively small and low-dimensional, the simple, stable decision boundaries provided by LDA are less prone to overfitting than more complex models like SVMs.

State-of-the-Art Performance

The best-performing system—a Bagged LDA Meta-classifier—achieved 87.1% accuracy on the TOEFL11 test set, outperforming all previous shared task winners. Notably, the LDA meta-classifier was the top performer across all three target languages (English, Chinese, and Norwegian), demonstrating its versatility.

Cross-Corpus Robustness

Stacking architectures showed remarkable resilience in cross-corpus experiments. When trained on one dataset (TOEFL11) and tested on another (EFCAMDAT), the meta-classifier improved accuracy by up to 10.2% over the best previous ensemble baselines. This suggests that stacking captures genuine linguistic transfer rather than just topic-specific noise.

Conclusion and Future Work

This research demonstrates that "depth" in traditional machine learning—achieved through stacking—can provide significant gains in NLI. By learning the biases and errors of base models, meta-classifiers provide a more robust and accurate identification of a writer's native language.

Future work will address the computational costs associated with training dozens of base classifiers and explore the "learning curve" to determine the minimum amount of data required for optimal meta-classifier performance. Additionally, the authors suggest further investigation into the decision space of LDA to better understand why it excels in this specific meta-learning context.

Summary updated

BibTeX
@article{malmasi2018native,
  author = {Shervin Malmasi and Mark Dras},
  title = {{Native Language Identification With Classifier Stacking and Ensembles}},
  journal = {Comput. Linguistics},
  year = {2018},
  doi = {10.1162/coli\_a\_00323},
}
Figure