Squeeze-and-Excitation Networks (SENet)
- Paper: Squeeze-and-Excitation Networks
- Authors: Jie Hu, Li Shen, Gang Sun (CVPR 2018); the extended journal version on arXiv (TPAMI) adds Samuel Albanie and Enhua Wu
- Lab, year: Momenta & University of Oxford, 2017
- Video: Watch the YouTube Short on Backprop Daily
Summary
A convolution layer produces many channels, and each channel is a different kind of feature. A normal network treats all of them the same way, whatever the image.
The Squeeze-and-Excitation (SE) block lets the network turn each channel up or down for each image. It first squeezes every channel into one number (its average over the whole image). It then excites: two small fully connected layers turn those numbers into one weight between 0 and 1 per channel. Finally it multiplies every channel by its weight.
SE blocks can be added to existing networks such as ResNet, Inception and VGG with little extra cost. SE-ResNet-50 has 6.62% top-5 error on ImageNet against 7.48% for ResNet-50, close to the much deeper ResNet-101 (6.52%) (Table 2). An ensemble of SENets won the ILSVRC 2017 classification competition with 2.251% top-5 error, about 25% better than the 2016 winner (Section 5.4).
What Problem Does It Solve
Think of a sound mixing desk with one slider for each instrument. A normal convolutional network has its sliders glued in place: every channel gets the same volume for every image.
An SE block gives each channel a slider that moves for each image. The network first takes a quick look at the whole image (the squeeze), then decides which channels to turn up and which to turn down (the excitation). The paper’s experiments show this makes networks more accurate for very little extra work.
Core Idea
- Channels, not space: most earlier work improved how networks handle space; this paper models the relationships between channels (Section 1).
- Squeeze: global average pooling turns each channel of the feature map U (H×W×C) into one number, giving a vector z with C values (Section 3.1, Eq. 2).
- Excitation: s = σ(W₂ δ(W₁ z)), two fully connected layers with a ReLU (δ) between them and a sigmoid (σ) at the end, so every channel gets a weight between 0 and 1 and several channels can be emphasised at once (Section 3.2, Eq. 3).
- Scale: each channel u_c is multiplied by its weight s_c (Section 3.2, Eq. 4).
Key Method Details
- Bottleneck: W₁ reduces C channels to C/r and W₂ brings them back to C, “to limit model complexity and aid generalisation” (Section 3.2). The default is r = 16 (Section 5.1).
- Where SE blocks go: in VGG-style networks, after the non-linearity that follows each convolution; in Inception, on each whole Inception module; in ResNet, on the residual branch before it is added to the identity branch (Section 3.3, Figures 2 and 3).
- Cost: SE-ResNet-50 needs about 3.87 GFLOPs instead of 3.86 (0.26% more) and about 2.5 million extra parameters on top of ResNet-50’s 25 million (about 10% more) (Section 4).
- Accuracy: SE blocks lowered the error of every network in Table 2, including ResNet-50 (top-5 error 7.48% → 6.62%), ResNet-152, ResNeXt, VGG-16, BN-Inception and Inception-ResNet-v2. They also helped on CIFAR-10 and CIFAR-100, for example ResNet-110 on CIFAR-10: 6.37% → 5.21% error (Table 4).
- Reduction ratio: for SE-ResNet-50, top-1 error stays between 22.25% and 22.29% for r = 2 to 16 and rises to 22.72% at r = 32, so r = 16 is a good balance between accuracy and size (Section 6.1, Table 10).
- What the weights do: in early layers the weights are similar for different classes; in later layers they become class-specific (Section 7.2).
Simplifications in This Notebook
- Small network, small data: a 3-block CNN (32, 64 and 128 channels) on CIFAR-10 (32×32 images, 10 classes), instead of ResNet, Inception and other large networks on ImageNet.
- Very short training: 4 epochs with SGD (learning rate 0.05, cosine annealing), instead of 100 epochs on ImageNet (Section 5.1).
- Tiny bottlenecks: r = 16, the paper’s default, but on only 32, 64 and 128 channels. So the bottlenecks are 2, 4 and 8 units wide, and the first SE block has only 2 hidden units.
- One placement, no ablations: an SE block after the ReLU of each convolution (the paper’s VGG-style placement, Section 3.3), no residual connections, and one run with one seed.
What the Notebook Result Shows
- Cost: the SE blocks add 2,926 parameters (94,986 → 97,912, 3.1% more).
- Accuracy: after 4 epochs the baseline’s best test accuracy was 66.74% and the SE model’s 65.95%, so the SE model was 0.79 points worse in this run. Both were still improving at epoch 4. One short run of a tiny CNN cannot show that SE blocks hurt; the paper’s gains come from full training of large networks.
- Channel weights: the first SE block gives different weights to different channels (mean 0.4954, 17 of 32 channels above 0.5), but almost the same weights to every image: each channel’s standard deviation over 128 test images is below 0.0001. So here it worked like a fixed per-channel scale. The paper also found early SE blocks to be mostly class-agnostic (Section 7.2); the 2-unit bottleneck and the short training may add to this.
Influence
OpenAlex lists about 45,200 citations for the CVPR version (45,172 when checked on 2 December 2026) and about 8,100 for the TPAMI version (8,128). SE blocks were built into later efficient networks: MobileNetV3 adds squeeze-and-excite to its building block (its Section 3), and EfficientNet adds squeeze-and-excitation optimization to its baseline (its Section 4). Follow-up attention modules built on the idea: CBAM adds spatial attention next to channel attention, ECA-Net removes the dimensionality reduction, and the authors’ own Gather-Excite gathers context over a larger area. The authors’ Caffe code and models are on GitHub.
Resources
| File | Description |
|---|---|
| README.md | This overview — a 5-minute read covering the paper’s summary, core idea, key method details, influence, and a plain-English explanation of the problem it solves |
| solution.ipynb | From-scratch PyTorch implementation of the SE block in a small CNN on CIFAR-10, compared with the same CNN without SE blocks |
| CODE_ARCHITECTURE.md | Section-by-section breakdown of the notebook — what each cell does, data flow, tensor shapes, and key design decisions |
| TALK.md | Press coverage, Q&A (answers from the paper), citations, and common misconceptions about the paper |