- Rating
- 4
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper studies whether LLM hidden states linearly encode an estimate of remaining output length. The authors train linear probes on frozen residual-stream activations from three 7B to 8B instruction-tuned models across synthetic and natural-language completion datasets. They show that total response length can be decoded from the prompt’s final hidden state, and that per-position remaining length can often be decoded better than constant-median and exact-countdown baselines. The paper also studies cross-dataset transfer and presents qualitative examples where probe predictions increase near retraction tokens.
Strengths and weaknesses
Strengths
- The paper asks a clear and interesting mechanistic question: whether LLMs internally encode an approximate estimate of remaining generation length.
- The methodology is simple and interpretable. Using linear probes, a constant-median baseline, and an exact-countdown baseline makes the main comparison easy to understand.
- The cross-dataset transfer analysis is useful. It helps test whether the probe learns a general length-related direction rather than only fitting one dataset’s length distribution.
- The paper is relatively careful about limitations. It acknowledges that decodability does not prove causal use, and that the retraction-token evidence is qualitative rather than aggregate.
Weaknesses
- The “plan-like representation” interpretation is somewhat overextended. Linear decodability shows that remaining length information is available in hidden states, but it does not show that the model uses this information to control generation length. A causal intervention is needed to support this stronger claim.
- The retraction-spike evidence is weak as currently presented. The examples are selected from high-MAE completions, are not evaluated in aggregate, and the absolute predictions are often far from the true remaining length. The directional spike is suggestive, but it is not yet strong evidence of dynamic re-planning.
- The baselines may be insufficient to rule out simpler explanations. The exact-countdown baseline is helpful, but stronger controls could include position-only nonlinear predictors, prefix-length predictors, prompt-template-aware predictors, and probes trained on shuffled hidden states or shuffled labels.
- The indexing and leakage setup should be clarified. The authors extract hidden states from a full forward pass over the prompt and completion. With correct causal masking this should not leak future tokens, but the paper should explicitly clarify whether (h_t) includes the current token, how the target (r_t = T - t) is aligned, and whether EOS handling is consistent.
- The result is conditional on naturally terminated generations. Since the paper trains and evaluates only on completions that emit EOS before the maximum-length cutoff, it does not address overrun cases where the model fails to stop. This selection may bias the observed length-estimation behavior.
- The model scope is limited. The main experiments use 7B to 8B instruction-tuned models, so it is unclear whether the same behavior holds for base models, larger models, or frontier-scale systems.
Questions
- Can the authors add causal interventions, such as activation patching, steering, or ablation along the probe direction, and measure whether realized output length changes? My evaluation would improve if the decoded direction has a measurable causal effect.
- Can the authors add stronger controls, such as position-only nonlinear predictors, prefix-length or prompt-template predictors, and probes trained on shuffled hidden states or shuffled labels?
- Can the retraction-token result be evaluated in aggregate over all retraction events and compared with length-matched non-retraction controls? This is needed before treating the spike as evidence of dynamic re-planning.
- Can the authors clarify the indexing and target alignment? In particular, does (h_t) include the current token, is the target (r_t = T - t) aligned before or after observing token (t), and is EOS counted consistently?
- What happens on cutoff or overrun generations that do not naturally emit EOS? The current findings are conditional on successful termination.
Limitations
yes
Paper formatting concerns
NA
Final justification
I think the authors have addressed my concerns, and overall this is a good work. I would recommend weak acceptance.
We thank the reviewer for the precise review; we address every point below, five with new experiments or measurements.
Thank you for this suggestion — we ran the steering experiment. We add α⋅w/∥w∥ (the count probe's weight slice for one layer, normalized) to the residual stream at every position during generation, and measure the realized completion length as a function of α: on Llama-3.1-8B / GSM8K over the full test set (n = 1,318), at layers 8, 16, and 24, for α∈[−8,+8], with the same prompts and sampling seed in every arm so all comparisons are paired per prompt. The decoded direction has a measurable causal effect — steering bidirectionally and monotonically controls realized output length. At layer 24:
Every arm differs from α=0 at paired sign-flip p < 10⁻⁴; across α∈[−8,+8] the length moves ×0.65 to ×1.21 with generation quality preserved (NLL 0.18→0.31 under the unsteered model), and the clean steering regime coincides with the layers where the probe reads best. The same effect replicates at layers 8 and 16 but degenerates at smaller ∣α∣; the revision includes the full three-layer tables and a figure.
We implemented three new controls, in addition to the existing position-based baseline:
We ran the aggregate analysis as you specify: we searched all 1,287 GSM8K eval completions for the trigger token
Wait(fixed in advance, not selected by MAE) and found 55 events across 45 completions. At these tokens the probe's prediction jumps by +72.8 on average (median +73.0), versus −0.7 (median −1.1) for control tokens matched on position within the completion, per-completion MAE quartile, and dataset, excluding a ±10-token window around each event (95% of retraction steps upward vs 48% of control steps; d = 3.10, cluster-safe permutation p < 10⁻⁴). The spike also persists within the worst-MAE quartile against controls from that same quartile (d = 3.12), so it is a property of the retraction token, not of the probe being noisy on hard completions. We use Qwen3-4B for this experiment because retraction requires errors, which the 7–8B models rarely make. The histogram of directional deltas at retraction versus control positions that you suggest has been produced and will be added to the revision; the statistics above summarize both distributions.To clarify (and we added it to §3.2): ht is the post-token-t residual state; causal masking excludes tokens >t; teacher-forced re-encoding is position-wise identical to generation-time states; rt=T−t counts tokens after t (never token t itself); EOS is counted in T and rt=0 exactly at the EOS position; truncated (no-EOS) sequences are fully masked rather than given lower-bound targets, to avoid biasing the probe toward underestimation. We verified each statement against the released extraction code and its unit tests.
On a cutoff generation the total length T is never observed, so the target rt=T−t is undefined at every position — these sequences are right-censored, and any assigned label would be a guess (a lower bound would bias the probe to underestimate). We therefore mask them, and we measured what this filter removes. We computed the exclusion rates for Llama-3.1-8B; all exclusions are cutoff hits:
You are right that this selection is not innocuous everywhere: it is negligible on the short-form and synthetic sets but removes a substantial minority on the long-form reasoning sets, and the revision will quantify this in §6 rather than only note it. Under any finite generation budget some sequences are censored and can never receive exact targets; we set the completion budget to 1024 tokens (
max_new_tokens) for computational reasons.We extended the scope during the rebuttal: we ran the full pipeline (extraction → probe training → evaluation) on Qwen3-32B (4× the headline scale; GSM8K). The signal holds at 32B, and the per-token signal sharpens. Per-token, the Remaining Count Probe reaches MAE 32.8 against a constant-median floor of 85.8 — a ratio of 0.38, versus 0.52 for Llama-3.1-8B. At the prompt end it reaches 49.5 against a floor of 69.9 — a ratio of 0.71, versus 0.72 for Llama, i.e., stable across scale. The probe also beats the exact-countdown predictor by a wider margin at 32B (35% below it, versus 17% for Llama-8B), so mid-completion updating strengthens rather than weakens with scale. Together with Qwen3-4B (retraction analysis), our evidence now spans 4B–32B (an 8× range) across four model families. The revision now states base (non-instruction-tuned) and frontier-scale models as future work, but the 32B result rules out the specific concern that the behavior fails to hold for larger models.
We hope this addresses your questions, in particular the causal intervention you highlighted, and we remain available for further discussion or additional experiments during the discussion period.