Exploring Adaptor Grammars for Native Language Identification

Sze-Meng Jojo Wong, Mark Dras, Mark Johnson

Abstract

Native Language Identification (NLI) aims to determine an author's first language (L1) based on their writing in a second language (L2). Traditional methods rely on fixed-length n-grams, which often fail to capture complex syntactic patterns or suffer from data sparsity. This paper investigates the use of Adaptor Grammars (AGs) to automatically discover "quasi-syntactic collocations"—flexible, variable-length patterns of Part-of-Speech (PoS) tags and function words. Using a discriminative Maximum Entropy classifier, the researchers achieved a peak accuracy of 75.71% on the International Corpus of Learner English (ICLE), significantly outperforming standard n-gram baselines.

Introduction

NLI is a critical task in forensic linguistics, educational technology, and the study of second-language acquisition. The primary challenge lies in feature selection. Short n-grams (e.g., bigrams) are computationally efficient but lack the depth to represent complex stylistic habits. Conversely, long n-grams capture more detail but lead to extreme data sparsity, as most long sequences appear only once in a corpus. This study addresses the dilemma by employing a machine learning framework to automatically "discover" meaningful long-range sequences of arbitrary length, rather than relying on a fixed-length heuristic.

Methodology

The core of the proposed approach is the Adaptor Grammar (AG), a non-parametric Bayesian extension of Probabilistic Context-Free Grammars (PCFGs).

The Adaptor Mechanism

Unlike standard grammars that generate tokens independently, an AG "adapts" to a specific corpus by remembering and reusing entire subtrees (sequences). This is governed by the Pitman-Yor Process, a "rich-get-richer" mechanism where frequently used patterns are increasingly likely to be reused as single units. This allows the model to identify collocations of arbitrary length that are statistically significant within the data.

Feature Discovery and Classification

The authors explored two primary vocabulary types for feature discovery:

  1. Pure PoS: Sequences of grammatical categories (e.g., Noun Preposition Noun).
  2. Mixed PoS + Function Words (FW): A combination of categories and specific "glue" words (e.g., Noun of Noun).

Two classification paradigms were tested: a Discriminative (MaxEnt) approach, where discovered collocations serve as features, and a Generative (Language Modeling) approach, where separate grammars are induced for each L1.

Experimental Setup

The study utilized the International Corpus of Learner English (ICLE) version 2, consisting of 490 essays across seven native language groups: Bulgarian, Czech, French, Russian, Spanish, Chinese, and Japanese (70 essays per group). Evaluation was performed using 5-fold cross-validation.

Results and Discussion

The experimental results demonstrated that the discriminative MaxEnt classifier significantly outperformed the generative approach. The flexibility of AGs allowed the model to capture patterns up to 19 tokens long, identifying specific linguistic "fingerprints" characteristic of different L1 groups.

Table 2: Comparison of accuracy across different feature sets and baselines. Note the significant jump from the 56.12% baseline to AG-based features.

As shown in the results above, the AG-discovered features (AG-POS+FW) reached accuracies near 74.5%, a substantial improvement over the standard baseline of the top 200 PoS bigrams (56.12%). The model successfully "rediscovered" known linguistic interference patterns, such as the frequent omission of determiners by Chinese speakers (captured as NN NN sequences) and specific stylistic pronoun-verb combinations used by Japanese speakers.

Table 1: Accuracy results for combined feature sets, showing the peak performance of 75.71%.

The highest performance was achieved by combining mixed AG features with pure PoS features, reaching a top accuracy of 75.71%. In contrast, the generative language modeling approach struggled with the small dataset, peaking at only 50.15% accuracy.

Conclusion

This research demonstrates that Adaptor Grammars are highly effective at identifying the subtle, variable-length syntactic patterns that define native language interference. While the computational cost of MCMC sampling remains a hurdle for scaling, the ability to move beyond fixed-length n-grams provides a much richer feature set for NLI. Future work will focus on optimizing hyperparameters and exploring semi-supervised learning to leverage larger, unlabelled datasets.

Summary updated

BibTeX
@inproceedings{wong2012exploring,
  author = {Sze-Meng Jojo Wong and Mark Dras and Mark Johnson},
  title = {{Exploring Adaptor Grammars for Native Language Identification}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2012},
}
Figure