arXiv:2609.09691cs.CLSep 2026

Manuscript Offprint

arXiv:2609.09691

Looped GPT-BERT: Trading Parameters for Computation in Small Language Modeling

Tingshuo Fan, Hongtao Mu, Tianyu Zhou, Hansen Liu, Tao Ji

Abstract

When training data are limited, increasing parameter count is not the only way to improve language-model performance. A small parameter set, when repeatedly applied, can also deliver comparable performance. We study Looped GPT-BERT in the BabyLM 2026 Strict-small setting, combining GPT-BERT's masked next-token and causal language-modeling objectives with depth-wise parameter sharing. We train on a preprocessed 7.48M-word English corpus and compare objective ratios, non-looped and looped architectures, and loop counts. Our final 4×124 \times 12 model uses four physical layers for twelve recurrent traversals and contains 12.18M parameters. The BabyLM 2026 leaderboard reports an Overall Average of 35.42 and an NLP Average of 48.48. Compared with public BabyLM 10M Strict-small GPT-2 and GPT-BERT baselines, it achieves comparable performance on selected linguistic and downstream metrics, including BLiMP and GLUE, with fewer parameters. The loop ablations show that additional recurrent computation can improve training and preserve strong performance on selected linguistic tasks, whereas poorer performance on other tasks may reveal an inherent limitation of the looped design: using only a few physical layers restricts the model's representational space.

1 Introduction

Language-model performance has commonly improved through jointly scaling model size, data, and training computation. Scaling-law studies describe predictable power-law relations between loss, parameter count, data, and compute (Kaplan et al., 2020), while compute-optimal analyses emphasize that parameter and token budgets should be allocated jointly (Hoffmann et al., 2022). These results largely concern much larger autoregressive models, where model capacity and per-example computation grow together. Under constrained data and

parameter budgets, however, they need not: repeatedly applying the same parameters can create a deeper computational path without proportionally increasing the number of learned weights. We therefore ask whether recurrent computation induced by shared parameters can compensate for reduced physical depth and parameter capacity in low-resource language-model pretraining.

The BabyLM Challenge provides a controlled setting for this question by restricting pretraining text to a developmentally plausible scale and evaluating linguistic, downstream, and human-like behavior (Warstadt et al., 2023). We work in the BabyLM 2026 Strict-small track on a cleaned 7.48M-word English corpus. Our starting point is GPT-BERT (Charpentier and Samuel, 2024), which trains masked next-token prediction (MNTP) and causal language modeling (CLM) in one Transformer parameter stack. It consequently supports both bidirectional masked prediction and autoregressive scoring or generation. This hybrid objective gives a further dimension to study: when the backbone is looped, does the relative amount of masked and causal supervision change the capabilities the architecture acquires?

We introduce depth-wise recurrent parameter sharing on top of GPT-BERT. Universal Transformers repeatedly share transformations along depth (Dehghani et al., 2019), and ALBERT shows that cross-layer sharing can substantially reduce encoder parameters (Lan et al., 2020). Most directly, Looped Transformers inject a fixed input and the prior loop state into a shared backbone, increasing effective computational depth through iteration (Yang et al., 2024). Their strongest evidence, however, comes from in-context algorithm-learning tasks such as linear functions, decision trees, and neural-network regression. Natural-language pretraining must simultaneously acquire lexical knowledge, syntactic regularities, world knowledge, and discourse state; whether those computations can

Corresponding author.

be supported by repeated shared layers remains an open empirical question.

We address three questions: how the BERT:GPT training ratio changes the training objective and downstream abilities; whether effective depth formed by repeatedly applying a small number of physical layers can retain language ability with substantially fewer parameters; and whether training and downstream tasks continue to benefit as the number of loops increases. We summarize our contributions as follows:

  • We introduce Looped GPT-BERT, combining GPT-BERT's hybrid MNTP/CLM objective with depth-wise recurrent parameter sharing.

  • We study how the BERT:GPT objective ratio affects training and downstream behavior in the looped architecture.

  • We compare a 12-layer non-looped model with four physical layers applied 1/3/6/12 times, showing how recurrent computation closes the gap from fewer learned layers and where additional loops yield diminishing returns.

  • We evaluate the final model in the BabyLM Challenge, where its 12.18M parameters achieve comparable performance to public Strict-small baselines on linguistic and downstream tasks.