NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

Mean BERTs make erratic language teachers: the effectiveness of latent bootstrapping in low-resource settings

David Samuel

Abstract

Modern language models typically rely on discrete token prediction, a method that may overlook the rich semantic information present in continuous latent spaces. This paper investigates the application of latent bootstrapping—a technique successful in computer vision—to natural language processing within the constraints of the BabyLM challenge. We introduce BootBERT, a model that learns by predicting the internal embeddings of a "Mean Teacher" version of itself. While BootBERT demonstrates superior performance on general natural language understanding (NLU) tasks in low-resource settings, it exhibits a surprising tendency to rely on surface-level statistical patterns rather than deep linguistic rules, suggesting a complex trade-off between semantic richness and structural integrity.

Introduction

In the quest for sample-efficient language acquisition, researchers have increasingly looked toward the developmental constraints of human children. The BabyLM challenge formalizes this by restricting pretraining data to roughly 10M to 100M words. Most contemporary models, such as BERT or GPT, utilize "hard targets" by predicting discrete subword tokens. However, human learning is rarely so categorical.

In computer vision, "latent bootstrapping" has allowed models to learn robust representations by matching the internal "thoughts" or embeddings of different model iterations. This paper explores whether providing a richer, continuous supervision signal through latent bootstrapping can help language models overcome the data-scarcity hurdle. We present BootBERT, which augments standard Masked Language Modeling (MLM) with a latent alignment objective.

Methodology

BootBERT utilizes a Masked Autoencoder (MAE) architecture integrated into a Teacher-Student feedback loop. The architecture is built upon the LTG-BERT backbone, which is optimized for efficiency through features like NormFormer and GEGLU activations.

The Student-Teacher Framework

  1. The Student: A masked autoencoder that processes sentences with hidden tokens. Its objective is twofold: predicting the identity of the missing tokens (standard MLM) and aligning its internal latent embeddings with those of the teacher for the same positions.
  2. The Mean Teacher: Unlike a standard ensemble, the teacher's weights are not updated via gradients. Instead, they are an Exponential Moving Average (EMA) of the student’s weights, representing a "slow-moving," stable version of the model.
  3. The Dual Loss Function: The model optimizes a composite loss. A standard cross-entropy loss is used for token prediction, while a "Smooth L1" loss minimizes the distance between the student’s predicted embedding and the teacher’s unmasked embedding.

This approach encourages the student to capture the contextual meaning of a word (the vector) rather than just its index in a vocabulary list.

Experimental Setup

Models were trained and evaluated using the BabyLM Challenge framework across two data scales:

  • STRICT-SMALL (10M words): A highly constrained set of child-directed speech and books.
  • STRICT (100M words): A larger corpus including Wikipedia and more diverse literature.

Evaluation Benchmarks

To assess the model's capabilities, we utilized three primary benchmarks:

  • (Super)GLUE: Measures general language understanding, including sentiment analysis and natural language inference.
  • BLiMP: A zero-shot benchmark for grammatical judgments, requiring the model to identify the more syntactically correct sentence in a pair.
  • MSGS (Mixed Signals Generalization Set): A diagnostic tool designed to determine if a model prefers linguistic generalizations (e.g., verb tense) or surface-level generalizations (e.g., word position).

Results

NLU Performance

BootBERT demonstrated a clear advantage in general understanding tasks. In the 100M word track, BootBERT achieved an average (Super)GLUE score of 79.2, outperforming the baseline LTG-BERT (77.8) and other established models like RoBERTa and T5. This suggests that latent bootstrapping effectively provides a "richer" signal for capturing semantic nuances.

The Linguistic Trade-off

Despite its NLU success, BootBERT struggled with deep linguistic consistency. On the MSGS benchmark, the model showed a significant preference for surface-level shortcuts. In the 100M track, its MSGS score was -67.9, compared to the baseline's -43.2. A lower score indicates a stronger bias toward statistical surface features over structural linguistic rules.

Grammaticality and Temperature

On BLiMP, BootBERT remained competitive but did not see the same performance leap observed in NLU tasks. Interestingly, the authors discovered that BLiMP scores are highly sensitive to the "temperature" of the model's output. They propose that standard evaluations may be misleading and suggest using "maximal average accuracy" across temperatures to ensure a fair comparison between different architectures.

Discussion and Conclusion

The title "Mean BERTs make erratic language teachers" reflects the central paradox of this research: while the Mean Teacher provides a signal that boosts downstream task performance, it simultaneously makes the model more "erratic" regarding linguistic logic. The student model learns to achieve high accuracy by taking statistical shortcuts provided by the teacher's latent space, potentially at the expense of syntactic rigor.

Limitations

Latent bootstrapping introduces a computational overhead, increasing pretraining time by approximately 50% due to the additional forward pass through the teacher network. Furthermore, the dual objectives—predicting discrete tokens while matching continuous embeddings—may create a "tug-of-war" that complicates the learning of structural linguistic features.

Future Work

While latent bootstrapping is a cornerstone of modern computer vision, its role in NLP remains nuanced. Subword tokens already provide a high-signal atomic unit that raw pixels lack. Future research should focus on balancing these objectives to retain the semantic benefits of latent bootstrapping without sacrificing the model's ability to learn deep, rule-based linguistic generalizations.

Summary updated

Abstract

This paper explores the use of latent bootstrapping, an alternative self-supervision technique, for pretraining language models.Unlike the typical practice of using self-supervision on discrete subwords, latent bootstrapping leverages contextualized embeddings for a richer supervision signal.We conduct experiments to assess how effective this approach is for acquiring linguistic knowledge from limited resources.Specifically, our experiments are based on the BabyLM shared task, which includes pretraining on two small curated corpora and an evaluation on four linguistic benchmarks.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
BabyLM · challengeBootBERTGLUE78.5Language Model Evaluation · params=100M · track=strict · training-data=100M words
Source quote
L291: Model │ BLiMP │ GLUE │ MSGS │ Average\\BootBERT │ \textsuperscript{ \#2 }82.2 │ \textsuperscript{ \#1 }78.5 │ \textsuperscript{ \#3 }27.7 │ \textsuperscript{ \#3 }70.2 \\[1em]
BabyLM · challengeBootBERTMSGS27.7Language Model Evaluation · params=100M · track=strict · training-data=100M words
Source quote
L291: Model │ BLiMP │ GLUE │ MSGS │ Average\\BootBERT │ \textsuperscript{ \#2 }82.2 │ \textsuperscript{ \#1 }78.5 │ \textsuperscript{ \#3 }27.7 │ \textsuperscript{ \#3 }70.2 \\[1em]
BabyLM · challengeBootBERTBLiMP75.9Language Model Evaluation · params=10M · track=strict-small · training-data=10M words
Source quote
L304: Model │ BLiMP │ GLUE │ MSGS │ Average\\BootBERT │ \textsuperscript{ \#1 }75.9 │ \textsuperscript{ \#2 }71.7 │ \textsuperscript{ \#9 }-9.7 │ \textsuperscript{ \#7 }57.5 \\[1em]
BabyLM · challengeBootBERTMSGS-9.7Language Model Evaluation · params=10M · track=strict-small · training-data=10M words
Source quote
L304: Model │ BLiMP │ GLUE │ MSGS │ Average\\BootBERT │ \textsuperscript{ \#1 }75.9 │ \textsuperscript{ \#2 }71.7 │ \textsuperscript{ \#9 }-9.7 │ \textsuperscript{ \#7 }57.5 \\[1em]
BibTeX
@misc{samuel2023mean,
  author = {David Samuel},
  title = {{Mean BERTs make erratic language teachers: the effectiveness of latent bootstrapping in low-resource settings}},
  year = {2023},
  eprint = {2310.19420},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.19420},
}
Figure