Pre-Training a Language Model Without Human Language

David Cheng-Han Chiang, Hung-yi LeearXiv 2020

Abstract

In this paper, we study how the intrinsic nature of pre-training data contributes to the fine-tuned downstream performance. To this end, we pre-train different transformer-based masked language models on several corpora with certain features, and we fine-tune those language models on GLUE benchmarks. We find that models pre-trained on unstructured data beat those trained directly from scratch on downstream tasks. Our results also show that pre-training on structured data does not always make the model acquire ability that can be transferred to natural language downstream tasks. To our great astonishment, we uncover that pre-training on certain non-human language data gives GLUE performance close to performance pre-trained on another non-English language.

Introduction

The massive success of models like BERT and RoBERTa is usually attributed to pre-training on enormous corpora of human language. However, it remains unclear exactly what about that data makes the models so effective. Is it the semantic knowledge? The specific statistical distribution of words? Or is it a more fundamental ability to model structure? This research seeks to isolate the factors in pre-training data that contribute to downstream success by testing "alien" datasets—including biological sequences, code, and synthetic data—to determine if the inductive bias required for natural language processing can be acquired from non-linguistic sources.

Methods

The researchers employed a standard RoBERTa-base architecture (a 12-layer Transformer). The experimental pipeline consisted of three distinct stages to evaluate the transferability of features learned from a "First Language" (L1) to English tasks.

The three-stage experimental pipeline: L1 MLM pre-training, GLUE fine-tuning, and GLUE testing.
  1. Stage 1 (Pre-training): The model is trained using Masked Language Modeling (MLM) on an L1 dataset which is not English.
  2. Stage 2 (Fine-tuning): The entire model is fine-tuned on the English-based GLUE benchmark.
  3. Stage 3 (Testing): Performance is evaluated on the GLUE tasks.

To ensure results were not merely due to vocabulary size, a "50-substitute" method was used to force the model to reuse a small set of embeddings, testing if the intrinsic property of the data mattered more than the number of unique tokens.

Datasets

The models were pre-trained on a diverse array of L1 datasets:

  • Baselines: A Random baseline (uniform distribution) and a Zipf baseline (tokens following English statistical distribution but in random order).
  • Biological: Amino acid sequences (protein structures).
  • Programming: Java script (source code with comments removed).
  • Human (Non-English): Kannada, a Dravidian language with SOV grammar.
  • Artificial: A synthetic dataset generated by a stack-based grammar to create hierarchical nesting, mimicking recursive dependency structures in human language.

Key Results and Insights

The quantitative results, summarized in the table below, highlight the unexpected power of hierarchical structure over semantic content.

Quantitative GLUE benchmark results for various pre-training L1 datasets.
  • The "Hierarchical" Secret Sauce: The artificial dataset—which contained zero semantic meaning but featured recursive, hierarchical nesting—performed almost as well as a real human language (Kannada), achieving an average GLUE score of 0.66 vs 0.67. This suggests that learning to navigate nested dependencies is a critical component of pre-training success.
  • Structure is not a monolith: Surprisingly, pre-training on amino acids or Java code performed barely better than training from scratch (0.55-0.56 vs 0.54). Simply having any structure is insufficient; it must be relevant to human linguistic organization.
  • Nonsense is better than nothing: Even unstructured, random data (Random/Zipf baselines) outperformed training from scratch (0.58-0.59). This implies that pre-training helps the model's weights reach a better initialization point for optimization, regardless of the data's "meaning."
  • Token distribution is a distraction: Whether tokens followed a uniform distribution or a Zipfian "power law" made very little difference in downstream performance.

Conclusion

This study demonstrates that the hierarchical structure of data, rather than its "human-ness" or specific token distribution, is a primary driver of a model's ability to generalize to natural language tasks. While it remains unclear why inherently hierarchical data like Java code failed to provide a significant boost, the success of simple synthetic nested structures opens new avenues for pre-training strategies, particularly for low-resource languages where human-labeled data is scarce.

Summary updated

BibTeX
@misc{chiang2020pre,
  author = {David Cheng-Han Chiang and Hung-yi Lee},
  title = {{Pre-Training a Language Model Without Human Language}},
  year = {2020},
  eprint = {2012.11995},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.11995},
}
Figure