Research map / Architectures and efficiency / Attention and transformers
Dissecting Transformers: A CLEAR Perspective Towards Green AI
Hemang Jain, Shailender Goyal, Divyansh Pandey, Karthik Vaidhyanathan
IIIT Hyderabad
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
This paper tried a common change: Larger batch size
increase batch size to 2 · Llama-3.2-3B · per-sample energy: approx. 40-45% reduction Improved
What 943 accepted papers report for this change
- 539 improved
- 126 no clear effect
- 61 mixed
- 217 hurt
- Predicting the Emergence of Induction Heads in Language Model Pretraining ICML 2026 · increase batch size (fixed context 1024) · Natural data (CC100) · induction head emergence point (updates): rho=-1.0, p<0.001Improved
- When RL Meets Adaptive Speculative Training: A Unified Training-Serving System ICML 2026 · Increase batch size from 1 to 32 · MiniMax M2.1 FP8 · speedup: 1.57x -> 1.25xHurt
- Untied Ulysses: Memory-Efficient Context Parallelism via Headwise Chunking ICML 2026 · increase per-device batch size to 10 using freed memory · Llama 3-8B, 128K · throughput (TPS): 2464.10 (Ulysses) -> 2526.77 (UPipe)Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| increase batch size to 2 (ablation) | Transformer components (Llama-3.2-3B) · Llama-3.2-3B | per-sample energy: approx. 40-45% reduction | Improved |
| increase to larger batch sizes (ablation) | Llama-3.2-3B components · Llama-3.2-3B | per-sample energy: up to 80% reduction | Improved |
| enable KV cache at long contexts (ablation) | Qwen2.5-3B attention · Qwen2.5-3B, long contexts | energy: >60% reduction | Improved |
| enable KV cache at short contexts (~50 tokens) (ablation) | Qwen2.5-3B attention · Qwen2.5-3B, ~50 tokens | energy: negligible gains | No clear effect |
| use Flash Attention instead of Eager Attention (ablation) | Attention block · Qwen2.5-3B and Gemma3-4B, 256 tokens | energy | Improved |
| apply torch.compile() (ablation) | Flash and Eager attention · Qwen2.5-3B and Gemma3-4B | energy | Improved |
| use Max Autotune or Reduced Overhead compile modes (ablation) | torch.compile attention · Qwen2.5-3B and Gemma3-4B | energy | Improved |
| increase MLP hidden dimension (ablation) | MLP block · hidden-dimension sweep | energy: approx. 0.7 mJ per 100 hidden dimensions | Hurt |
| add one attention head (ablation) | Attention block · head-count sweep, 256 hidden dim | energy: +3.27 mJ per head; constant 31.34 mJ | Hurt |
| increase input sequence length (ablation) | E/FLOP of all components · Gemma3-4B | E/FLOP: E/FLOP decreases with length | Improved |
| amplify by repeating the component execution N times (ablation) | CLEAR measurement · energy measurement | measurement failures and variance | Improved |
| compare attention against MLP, LM head and full model | Attention · component comparison | energy per FLOP | Hurt |
Open problems this paper states
- “Analysis does not cover a wide range of GPU families and generations, whose optimizations vary.” → Speed results come from one or two GPU families. (an open problem in block-sparse attention kernels)
Open problems in block-sparse attention kernels
When does block-sparse attention give real speedups, and how should its sparsity settings be chosen?
- Sparsity thresholds are fixed or tuned per model, with no adaptive rule. · 5 papers state it
- Real speedups need specialized kernels and the forward pass can be slower. · 4 papers state it
- Speed results come from one or two GPU families. · 4 papers state it
Closest papers by meaning
- CATransformers: Carbon Aware Transformers Through Joint Model-Hardware Optimization (NeurIPS 2025 · similarity 0.88)
- Energy-Based Transformers are Scalable Learners and Thinkers (ICLR 2026 · similarity 0.87)
- The ML.ENERGY Benchmark: Toward Automated Inference Energy Measurement and Optimization (NeurIPS 2025 · similarity 0.87)
- Do Efficient Transformers Really Save Computation? (ICML 2024 · similarity 0.85)
- Learning Rate Transfer for Hybrid Transformer-SSM Architectures (NeurIPS 2026 · similarity 0.85)
- On-the-Fly Adaptive Distillation of Transformer to Dual-State Linear Attention for Long-Context LLM Serving (ICML 2025 · similarity 0.85)
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.