atlas

Research map / Large language models / Language, safety and interpretability

Remarkable Robustness of LLMs: Stages of Inference?

NeurIPS 2025 · Large language models › Language, safety and interpretability · approach: Pruning and circuits in LLMs · 0 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.

Deletes and swaps adjacent transformer layers at inference across Pythia, GPT-2, Qwen 2.5, LLaMA 3.2 and Phi models, finding robustness in middle layers and proposing a four-stage depth-wise framework of inference (detokenization, feature engineering, prediction ensembling, residual sharpening).

Problem

How LLMs tolerate structural interventions such as dropping or swapping layers at inference, and what depth-dependent computational structure this reveals about how decoder-only transformers perform inference.

Approach

Layer-wise deletion and adjacent-swap interventions show performance is localized to early and final layers while middle layers are robust; these signatures (CKA block structure, local attention, WiC probing, logit lens, prediction/suppression neurons, layer repetition) are synthesized into a four-stage hypothesis of inference.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Delete or swap the first layer during inference (ablation)GPT-2 and Pythia models · Layer intervention evaluationtop-1 prediction accuracyHurt
Delete or swap middle layers rather than early or final layers (ablation)GPT-2 and Pythia models · Layer intervention evaluationtop-1 prediction accuracyNo clear effect
Swap adjacent intermediate layers instead of ablating a layer (ablation)GPT-2 and Pythia models · Layer intervention evaluationtop-1 prediction accuracyHelped
Swap the last layer with the second-to-last layer (ablation)Some models · Layer intervention evaluationprediction entropyHurt
Swap the last layer with the second-to-last layer (ablation)GPT-2 models · Layer intervention evaluationtop-1 prediction consistencyNo clear effect
Repeat a block of layers in the latter half of the model (ablation)Language models · Layer-repetition experimentprediction entropyHelped
Repeat layers at the last 80-90% of model depth (ablation)Language models · Downstream benchmarksbenchmark performanceHelped
Use prediction-neuron ensemble probes instead of individual-neuron probesGPT-2 XL · Suffix “-ing” classificationprobe accuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: The Pile

Benchmarks: HellaSwag ARC-Easy LAMBADA WiC

Metrics: KL divergence top-1 prediction agreement (relative accuracy) entropy benchmark accuracy probe accuracy

Baselines: zero ablation

Builds on: logit lens iterative inference hypothesis universal neurons centered kernel alignment

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