What Kind of Language Is Hard to Language-Model?

Sabrina J. Mielke, Ryan Cotterell, Kyle Gorman, Brian Roark, Jason Eisner

Abstract

How language-agnostic are current state-of-the-art NLP tools? Are there some types of language that are easier to model with current methods? In prior work (Cotterell et al., 2018) we attempted to address this question for language modeling, and observed that recurrent neural network language models do not perform equally well over all the high-resource European languages found in the Europarl corpus. We speculated that inflectional morphology may be the primary culprit for the discrepancy. In this paper, we extend these earlier experiments to cover 69 languages from 13 language families using a multilingual Bible corpus. Methodologically, we introduce a new paired-sample multiplicative mixed-effects model to obtain language difficulty coefficients from at-least-pairwise parallel corpora. In other words, the model is aware of inter-sentence variation and can handle missing data. Exploiting this model, we show that "translationese" is not any easier to model than natively written language in a fair comparison. Trying to answer the question of what features difficult languages have in common, we try and fail to reproduce our earlier (Cotterell et al., 2018) observation about morphological complexity and instead reveal far simpler statistics of the data that seem to drive complexity in a much larger sample.

Introduction

Most Natural Language Processing (NLP) research is historically "English-centric," leading to the development of tools that do not necessarily perform consistently across the world's 7,000+ languages. Previous research suggested that languages with rich morphology—such as Finnish or Turkish—are inherently harder for recurrent neural networks (RNNs) to model. However, these studies often struggled to control for content: if a Finnish sentence is harder to predict than an English one, is it due to the language's structural complexity or simply because the Finnish text discussed a more obscure topic?

This paper seeks to isolate "language difficulty" from "content difficulty." The authors also investigate the phenomenon of "translationese"—the idea that translated text is structurally simpler and thus easier to model—to see if it provides an unfair advantage in multilingual benchmarks.

Methodology: Isolating Language Difficulty

The study uses surprisal (negative log-likelihood) as the primary metric for difficulty. To ensure a fair comparison, the researchers utilize multitext (parallel corpora) where the same underlying meaning or "intent" is expressed across multiple languages.

The mixed-effects model estimates language difficulty ($d_j$) and intent difficulty ($n_i$) from sentence surprisal ($y_{i,j}$) in aligned multi-text.

The core technical contribution is a paired-sample multiplicative mixed-effects model. This statistical framework jointly estimates:

  1. Intent difficulty ($n_i$): The amount of information inherent in the specific thought being expressed.
  2. Language difficulty ($d_j$): A coefficient representing how hard language $j$ is for a model to process, independent of the content.

The researchers compared character-level models (Char-RNNLM) and Byte Pair Encoding models (BPE-RNNLM). Crucially, their "Model 2" accounts for heteroscedasticity—the fact that longer sentences naturally exhibit more variance in surprisal than shorter ones.

Datasets

The study utilizes two primary sources of parallel text:

  • Europarl: Proceedings of the European Parliament in 21 languages. While high-quality, it is linguistically narrow, focusing mostly on Indo-European languages.
  • The Bible: 106 different translations covering 62 languages from 13 language families. This provides the typological diversity necessary to make broad claims about linguistic difficulty across language families.

Key Insights and Results

The Morphology Myth

When using better-tuned models like BPE-RNNLMs, the supposed correlation between morphological complexity and difficulty largely vanishes. Languages like Finnish, previously thought to be outliers in difficulty, become much easier for models to handle once sub-word units are used. This suggests that the difficulty was not in the language's grammar, but in the model's inability to handle large vocabularies at the character level.

Comparison of language difficulty rankings across character-level and BPE-based models. The shift in rankings demonstrates how sub-word units change the relative difficulty of languages.

Vocabulary as the Primary Bottleneck

The strongest predictor of difficulty for BPE models is the size of the word inventory (vocabulary size). If a language has many unique word forms, the model must spread its probability mass thinner, making it harder to predict the next token accurately. This correlation was found to be highly significant ($p < 1e-11$ on the Bible corpus).

Translationese and String Length

After strictly controlling for content and training data, the authors found no evidence that translated text is easier for a language model to process than native text. Furthermore, while raw string length is a major driver of difficulty for character-level models, BPE models mitigate this by chunking data into more meaningful units.

Conclusion

This research demonstrates that language difficulty is driven more by simple data statistics, such as vocabulary size and sentence length, than by complex linguistic features like morphology. While the Bible is a specific domain, the stability of these difficulty estimates across datasets suggests they are robust. Future work will extend this framework to other NLP tasks beyond language modeling, such as parsing and machine translation, to further explore language-agnostic NLP.

Summary updated

BibTeX
@inproceedings{mielke2019what,
  author = {Sabrina J. Mielke and Ryan Cotterell and Kyle Gorman and Brian Roark and Jason Eisner},
  title = {{What Kind of Language Is Hard to Language-Model?}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  url = {https://openreview.net/forum?id=6aOhT7VHKgH},
}
Figure