arXiv:2610.33517cs.CLOct 2026

Manuscript Offprint

arXiv:2610.33517

One Model, Two Paths: Balancing Single-Pass and Looped Performance in Language Models

Jiarun Shen, Lei Zhao, Xiao Li

Abstract

Repeating Transformer layers can improve language-model performance without adding parameters. A pretrained model can be adapted to support both single-pass and looped inference by reusing middle-layer weights for additional computation. Because both paths share weights, training to improve looped predictions can degrade single-pass quality. We study joint training strategies using weighted losses on both outputs, with guidance from the frozen original model. Joint supervision substantially reduces single-pass degradation compared to looped-only training, while preserving looped gains over ordinary continued training. Most of this benefit comes from adjusting the single-pass loss weight, with guidance from the frozen original model further improving the looped output. With validation-selected weights, our method preserves single-pass quality within a predefined tolerance of ordinary continued training while improving looped predictions.

1 Introduction

Repeating Transformer layers gives a language model additional computation without requiring another set of layer weights. Recent work has shown that pretrained models can be adapted to benefit from such repeated computation (Koishekenov et al., 2025; McLeish et al., 2025; Marchenko et al., 2026). The adapted model retains its single-pass path, which applies each layer once, alongside a looped path that reuses the same weights to repeat a subset of layers. The same model can then use the single-pass path when computation is limited and the looped path when additional computation is available.

We study adaptation that preserves all pretrained layers and the original output head. Because both paths share all weights and remain trainable, updating the model to improve looped predictions also changes the weights used by the single-pass path. The training challenge is to preserve single-pass quality while making the looped path useful.

Evaluating whether adaptation succeeds requires comparing against two baselines: the starting checkpoint and the alternative of continuing to train the original model without looping. We call the latter ordinary continued training. Keeping the starting quality is not enough if the same budget would improve the original model further.

A natural training approach is to supervise both outputs with next-token labels. We also consider adding a teacher signal: using one prediction's probability distribution to guide the other prediction during training. This resembles distillation in standard teacher-student setups, adapted here to two paths that share all weights. We compare weighted label losses on both outputs with and without this teacher signal, starting either from the initial checkpoint or after an initial period of training only the looped path. The staged setting allows us to examine how single-pass quality can be recovered while preserving useful looped predictions.

Adding a teacher signal introduces a different supervision target for one output. An improvement over training both paths with labels alone might also be achievable by giving that output's label loss more weight. We include a stronger label-only baseline to test this possibility, with its weight chosen to account for the added teacher term ( §3.2\S3.2). This comparison measures how much of the observed benefit the teacher signal provides beyond stronger label supervision.

Training cost also matters, because computing the teacher signal takes time even when two methods execute the same number of model layers. We therefore compare methods under separate budgets based on layer evaluations and measured training time, including any teacher computation.

The teacher signal can come from different sources. One option uses the current looped output as teacher for the single-pass output, recomput-ing its distribution at each training step. Another option uses a frozen copy of the original model, which provides a fixed reference throughout adaptation. We compare these two sources and examine whether the teacher signal primarily benefits the output that receives it directly or also improves the other output through their shared weights.

We make three main contributions:

• Joint supervision reduces single-pass degradation and supports recovery. We find that applying a small loss weight to the single-pass output substantially reduces the degradation caused by training only the looped path. During recovery, supervising both outputs preserves more looped quality than returning to single-pass training alone, although it recovers less single-pass quality.

• Increasing the single-pass loss weight reproduces most of the benefit from adding a teacher signal to guide the single-pass output. Without a teacher signal, adjusting the loss weight on the single-pass output alone recovers most of the observed improvement. After validation-based weight selection, adding the teacher signal shows no additional mean improvement over the selected label-only baseline at matched training time.

• A frozen teacher from the original model can preserve single-pass quality while improving the looped output. We call this method Frozen-original KD. With a validation-selected label weight, it uses the original model's predictions to guide the single-pass output. In the main setting, this method preserves single-pass quality within a predefined tolerance of ordinary continued training while improving looped predictions over that baseline.

The results separate two training choices: the loss weight on each output and the source of the teacher signal. With validation-selected label weights, Frozen-original KD preserves single-pass quality within the predefined tolerance of ordinary continued training while improving looped predictions over that baseline in the main setting. This joint result does not extend to the secondary WikiText corpus. Evaluating both outputs against ordinary continued training is necessary to distinguish a useful supervision choice from successful retention of both prediction paths.

References (88)