TRANSMISSION // 2611.31496v1

The Best Layer in a Language Model May Not Be the Last

Source published

A study of 25 text models finds that useful representations vary by task, architecture and pooling method. Its label-free selector often improves on choosing the final layer, but is not a universal solution.

AI-generated conceptual illustration for The Best Layer in a Language Model May Not Be the Last
AI-generated conceptual illustration; not documentary evidence.

When researchers use a pretrained language model for a new task, they often inspect its final layer. But useful information can appear earlier—and the best depth may depend on how the model was trained and how its outputs are combined. A new study tests whether the geometry of a model’s internal representations can help choose a layer without using task labels.

A language model does not produce just one representation of its input. Each layer transforms the information passed forward, creating a sequence of possible features for a downstream task. Researchers commonly evaluate the final layer, but that choice may miss useful signals in earlier layers. Finding a better one by testing every layer usually requires labeled examples—the resource a label-free selection method is meant to avoid.

In Reading Between the Layers, Arnesh Batra and colleagues ask two questions: how does the most useful layer vary across model types and tasks, and can the model’s internal geometry identify a promising layer without labels?

Testing layers across tasks

The team studied 25 pretrained models, including encoders, encoder–decoder models, decoder-only models and a state-space model. They evaluated representations on 13 datasets spanning classification, sentence-pair classification, semantic similarity and multiple-choice question answering. The researchers also varied how token-level representations were turned into a single feature vector—for example, by averaging across tokens or selecting a special or final token.

To measure a layer’s usefulness, they trained probes: classifiers that test how well information in that layer supports a task. The study used both linear probes and small nonlinear probes. Separately, the researchers calculated geometric statistics from unlabeled representations, including how broadly information is distributed across directions in the representation space, how well the spectrum fits a power law, and measures of stability and local spread.

They combined those signals into the Stable Geometry Index (SGI), a fixed scoring rule that selects a layer without fitting its weights to task labels. The researchers compared its choices with the last-layer default, other geometry-based selectors and, on a matched subset, a supervised method that learns how to combine layers.

No single depth fits every task

The best-performing layers varied systematically rather than clustering at one universal position. In the broad layer analysis, mean pooling often favored early layers, while a CLS-token readout more often favored late layers. Sequence-to-sequence models also shifted their peak depth with the task. Contrastive sentence encoders showed a striking dependence on readout: they tended to peak near the final layer with CLS or last-token representations, but early with mean pooling.

These are results about performance under the study’s probing setup, not proof that one layer contains all the information needed for a task. The practical lesson is that layer quality depends on the combination of model, task and readout—not just depth alone.

For the main selector evaluation, the paper reports 383 encoder evaluation groups. SGI improved the average task metric over the final-layer baseline by 1.20 percentage points. Its Hit@3—the share of cases where the selected layer was among the three best-performing layers—rose from 0.389 for the last-layer baseline to 0.517. The authors estimate that this recovers about 40% of the performance gap between the baseline and an oracle that knows the best layer from labeled evaluation.

The geometry score was not equally useful everywhere. Its gains were largest for some encoder–decoder settings and smallest for decoder-only models; multiple-choice question answering was close to the final-layer baseline. The paper also reports that, in 22% of encoder evaluations, SGI selected a layer within the earliest fifth of the model. Those cases suggest a possible opportunity to truncate computation, but they do not establish that pruning will preserve performance in other tasks or deployment settings.

A useful signal, not a guarantee

SGI combines several indicators rather than treating one geometric statistic as a reliable answer. In the authors’ ablations, power-law fit quality carried more predictive signal than the power-law exponent’s closeness to one—a finding that challenges an assumption in some spectral-decay work. Still, geometry is only a proxy: a representation can be broad or stable without separating the labels that matter for a particular task.

The authors describe the evidence beyond encoders as less secure than the main 383-group encoder result. The decoder-only gains were small, and the state-space result covered just one model across eight groups, too little to support a broad claim about that family. The additional larger-checkpoint experiments provide an extension test, not a controlled scaling law. The evaluation also relies on a finite set of English-language benchmarks and model checkpoints; results may differ for generation, retrieval or other tasks not studied here.

The work is an arXiv preprint, so its findings should be treated as research claims rather than settled consensus. The source is a paper extraction, which can lose detail in tables and equations, and search results are not a substitute for independent replication. The authors report making code available, offering a route for further checking. Overall, the study suggests that unlabeled geometry can help identify useful layers—but task-specific validation remains important, especially when performance or safety matters.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • Why EEG AI’s middle layers can be easier to read

    Supporting evidence: Both studies report that useful representations can occur before the final layer and that results depend on readout: the origin study finds peak probing layers vary by task, model objective and pooling, while the EEG study finds intermediate layers often add predictive utility after selecting a final-layer readout. This is compatible evidence for depth- and readout-dependent utility, not a direct replication: the studies concern different domains, models and evaluation protocols.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.31496v1 — Original paper

      Excerpt reference: static/papers/2611.31496v1.md:82-162
      Basis: Paper text
      Source SHA-256: 207b068ed77d846ee02827f7eec53320f6e938116fd087f96412dce50ff2fea6

    • 2611.31320v1 — Original paper

      Excerpt reference: static/papers/2611.31320v1.md:73-120
      Basis: Paper text
      Source SHA-256: c0bc1405759eaa53862a9a27875f77d444f8599f80baaebea470867bd5a3bccb

    • 2611.31320v1 — Original paper

      Excerpt reference: static/papers/2611.31320v1.md:1026-1069
      Basis: Paper text
      Source SHA-256: c0bc1405759eaa53862a9a27875f77d444f8599f80baaebea470867bd5a3bccb

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.