atlas

Research map / Architectures and efficiency / Attention and transformers

Transformer Layers as Painters

AAAI 2025 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 10 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.

Empirical study of frozen pretrained transformers (mainly Llama2-7B and BERT-Large) showing middle layers share a representation space and tolerate skipping, reordering, and parallel execution, with graceful degradation.

Problem

Understanding how the layers of pretrained transformers interact, and whether they can be skipped, reordered, or run in parallel without retraining.

Approach

Treats transformer layers as "painters" on a residual canvas and tests frozen pretrained models under interventions (skipping, repeating, reversing, randomizing, parallelizing, looping middle layers) without any weight updates, measuring graceful vs catastrophic degradation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
skip middle layers (ablation)Llama2-7B · Llama2 benchmarksnormalized medianHurt
skip middle layers (ablation)BERT-Large · GLUEunnormalized averageHurt
replace middle layers with copies of the center layer (ablation)Llama2-7B · Llama2 benchmarksnormalized medianHurt
replace middle layers with copies of the center layer (ablation)BERT-Large · GLUEunnormalized averageHurt
reverse the order of middle layers (ablation)Llama2-7B · Llama2 benchmarksnormalized performanceHurt
reverse the order of middle layers (ablation)BERT-Large · GLUEunnormalized averageHurt
randomize the order of middle layers (ablation)Llama2-7B · Llama2 benchmarksnormalized performanceHurt
randomize the order of middle layers (ablation)BERT-Large · GLUEunnormalized averageHurt
randomize middle-layer order instead of reversing it (ablation)Llama2-7B · Llama2 benchmarksnormalized performanceHelped
run middle layers in parallel (ablation)Llama2-7B · GSM8KperformanceHurt
run middle layers in parallel (ablation)Llama2-7B · Llama2 benchmarksnormalized performanceHurt
loop the parallelized layer 3 times instead of once (ablation)Llama2-7B · Llama2 benchmarksnormalized performanceHelped

Surprising findings

Limitations

Experimental setup

Datasets: LAMBADA GLUE

Benchmarks: ARC HellaSwag GSM8K WinoGrande LAMBADA GLUE

Metrics: normalized median accuracy unnormalized average score perplexity average cosine similarity

Baselines: Skip layers Middle Repeat Reversed order Random order Parallel layer Looped parallel

Builds on: residual connections ShortGPT ShortenedLlama

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