atlas

Research map / Architectures and efficiency / RNNs and normalization

Layer by Layer: Uncovering Hidden Representations in Language Models

ICML 2025 · Architectures and efficiency › RNNs and normalization · approach: Layer-wise analysis of language models · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Analyzes layer-wise representations of LLMs and vision transformers with a unified matrix-based-entropy framework of compression, geometry, and invariance metrics, showing intermediate layers often beat final layers on 32 MTEB tasks.

Problem

Final-layer representations of LLMs are assumed to be the best for downstream embedding tasks, but it is unclear whether earlier or intermediate layers may be better and why.

Approach

Unifies information-theoretic (prompt/dataset matrix-based entropy), geometric (curvature, effective rank), and augmentation-invariance (InfoNCE, LiDAR, DiME) metrics under matrix-based entropy, and uses them to probe every layer of several models, showing mid-depth layers often provide the best embeddings and that autoregressive objectives produce a mid-layer compression valley.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
select the layer with minimum DiME instead of using the last layerPythia-410M · MTEB (32 tasks)average MTEB performance (%): 45.5 -> 48.5Helped
select the layer with minimum dataset entropy instead of using the last layerPythia-410M · MTEB (32 tasks)average MTEB performance (%): 45.5 -> 48.1Helped
select the layer with minimum InfoNCE instead of using the last layerPythia-410M · MTEB (32 tasks)average MTEB performance (%): 45.5 -> 46.2Helped
select the layer with minimum InfoNCE instead of using the last layerLLM2Vec-8B · MTEB (32 tasks)average MTEB performance (%): 63.9 -> 64.3Helped
select the layer with minimum DiME instead of using the last layerLLM2Vec-8B · MTEB (32 tasks)average MTEB performance (%): 63.9 -> 60.0Hurt
select the layer with minimum dataset entropy instead of using the last layerLLM2Vec-8B · MTEB (32 tasks)average MTEB performance (%): 63.9 -> 50.4Hurt
use an intermediate layer instead of the final layerlanguage models evaluated on MTEB tasks · MTEB (32 tasks)downstream task performanceHelped
use DiME-based unsupervised layer selection instead of using the last layerPythia-410M · MTEB (32 tasks)average MTEB score: 3%Helped
fine-tune with LLM2Vec-mntp-unsup-simcseLlama3 · input augmentationsaugmentation invarianceHelped
fine-tune with LLM2Vec-mntp-supervisedLlama3 · input augmentationsaugmentation invarianceHelped
add math pretraining and CoT finetuningQwen 2.5 · token sequencesprompt entropyHelped
increase token repetitionPythia-410M · extreme promptsprompt entropyHurt

Surprising findings

Limitations

Experimental setup

Datasets: WikiText-103 MTEB (32 tasks) ImageNet-1k ImageNet-100

Benchmarks: MTEB (32 tasks) ImageNet-1k WikiText-103

Metrics: average MTEB score distance correlation Spearman Kendall prompt entropy dataset entropy curvature InfoNCE LiDAR DiME

Baselines: final-layer embeddings LLM2Vec-8B Pythia-410M last layer

Builds on: LiDAR DiME InfoNCE RankMe LLM2Vec

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy