English

What is the Best Sequence Length for BABYLM?

Computation and Language 2025-10-23 v1

Abstract

Transformer language models typically operate with a fixed-length context window, which has grown in step with large-scale pretraining datasets. In the BabyLM Challenge, however, many past submissions have defaulted to using much shorter sequence lengths. We examine the impact of sequence length on BabyLM pretraining, to answer the simple question: what sequence length should we be using when training Baby LMs? Using 100M-word training data and fixed compute budgets, we compare 125M-parameter Mamba and OPT models, finding that although longer is often better, the optimal length depends on both task and architecture. Shorter sequences are sufficient for grammatical generalization tasks whereas longer contexts benefit morphological analogical reasoning tasks.

Keywords

Cite

@article{arxiv.2510.19493,
  title  = {What is the Best Sequence Length for BABYLM?},
  author = {Suchir Salhan and Richard Diehl Martinez and Zébulon Goriely and Paula Buttery},
  journal= {arXiv preprint arXiv:2510.19493},
  year   = {2025}
}

Comments

Paper Accepted at the 2025 BabyLM Workshop @ EMNLP (Suzhou, China)

R2 v1 2026-07-01T06:59:34.745Z