atlas

Research map / Large language models / Reasoning and chain of thought

ReLU Strikes Back: Exploiting Activation Sparsity in Large Language Models

ICLR 2024 · Large language models › Reasoning and chain of thought · approach: Efficient LLM serving · 7 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.

Shows ReLU matches SiLU/GELU in LLM performance when trained from scratch or after finetuning ("relufication"), cutting inference FLOPS up to ~3x via activation sparsity, and proposes aggregated sparsity reuse and shifted ReLU for further gains.

Problem

LLM inference is computationally and memory-bound, and most modern LLMs use smooth non-ReLU activations (SiLU, GELU) that produce dense activations, forfeiting activation sparsity-based savings.

Approach

Replace SiLU/GELU with ReLU (relufication) in pretrained LLMs and briefly finetune to recover performance, then insert extra ReLUs after normalization layers to sparsify QKV and up-projection inputs; additionally exploit neuron reuse across tokens (aggregated sparsity) and shifted ReLU ReLU(x-b) to increase sparsity.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace GELU with ReLU in Falcon 7B FFN (stage 1) (ablation)Falcon 7B · Zero-shot tasks (average)FLOPS (G): 6.6 -> 4.1Helped
replace GELU with ReLU in Falcon 7B FFN (stage 1) (ablation)Falcon 7B · Zero-shot tasks (average)accuracy (%): 66.8 -> 65.2Hurt
add ReLU after normalization layers (stage 2) (ablation)Falcon 7B (s1) · Zero-shot tasks (average)FLOPS (G): 4.1 -> 2.2Helped
add ReLU after normalization layers (stage 2) (ablation)Falcon 7B (s1) · Zero-shot tasks (average)accuracy (%): 65.2 -> 64.8Hurt
replace SiLU with ReLU in Llama 7B FFN (stage 1) (ablation)Llama 7B · Zero-shot tasks (average)FLOPS (G): 6.6 -> 4.8Helped
add ReLU after normalization layers (stage 2) (ablation)Llama 7B (s1) · Zero-shot tasks (average)FLOPS (G): 4.8 -> 2.9Helped
replace SiLU with ReLU in Llama 7B FFN (stage 1) (ablation)Llama 7B · Zero-shot tasks (average)accuracy (%): 68.4 -> 67.1Hurt
add ReLU after normalization layers (stage 2) (ablation)Llama 7B (s1) · Zero-shot tasks (average)accuracy (%): 67.1 -> 66.4Hurt
use ReLU instead of SiLU or GELUFalcon 7B · MMLU five-shotaverage accuracy: 26.4; 27.7; 27.9No clear effect
use ReLU instead of SiLU or GELULlama 7B · MMLU five-shotaverage accuracy: 35.1; 35.9; 34.7No clear effect
use aggregated sparsity in speculative decoding rather than random sparsityOPT 6.7B speculative decoding, γ=16 · Speculative decodingspeedup over standard speculative decoding: 1.27x; 1.20xHelped
reuse previously activated neurons rather than randomly selected activationsReLU LLM token generation · PerplexityperplexityHelped

Surprising findings

Limitations

Experimental setup

Datasets: RefinedWeb WikiText

Benchmarks: ARC-Easy ARC-Challenge HellaSwag BoolQ PIQA LAMBADA TriviaQA WinoGrande SciQ MMLU

Metrics: zero-shot accuracy 5-shot accuracy FLOPS activation sparsity perplexity

Baselines: GELU SiLU original pretrained models (Llama 7B, Falcon 7B, OPT) dense smaller OPT models

Builds on: speculative decoding Deja Vu SwiGLU MoEfication

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