Methods › General › Attention Mechanisms › SCA-CNN
Spatial and Channel-wise Attention-based Convolutional Neural Network
SCA-CNN
Introduced by Long Chen et al. in SCA-CNN: Spatial and Channel-wise Attention in Convolutional Networks for Image Captioning
archive 2025-07-28 Description, source and code snippet are the archive's method entry.
As CNN features are naturally spatial, channel-wise and multi-layer, Chen et al. proposed a novel spatial and channel-wise attention-based convolutional neural network (SCA-CNN). It was designed for the task of image captioning, and uses an encoder-decoder framework where a CNN first encodes an input image into a vector and then an LSTM decodes the vector into a sequence of words. Given an input feature map X and the previous time step LSTM hidden state hₜ₋₁ ∈ℝᵈ, a spatial attention mechanism pays more attention to the semantically useful regions, guided by LSTM hidden state hₜ₋₁. The spatial attention model is:
a(hₜ₋₁, X) = tanh(Conv₁^(1 ×1)(X) ⊕W₁ hₜ₋₁)
Φₛ(hₜ₋₁, X) = Softmax(Conv₂^(1 ×1)(a(hₜ₋₁, X)))
where ⊕ represents addition of a matrix and a vector. Similarly, channel-wise attention aggregates global information first, and then computes a channel-wise attention weight vector with the hidden state hₜ₋₁: b(hₜ₋₁, X) = tanh((W₂GAP(X)+b₂)⊕W₁hₜ₋₁) Φ_c(hₜ₋₁, X) = Softmax(W₃(b(hₜ₋₁, X))+b₃) Overall, the SCA mechanism can be written in one of two ways. If channel-wise attention is applied before spatial attention, we have Y = f(X,Φₛ(hₜ₋₁, X Φ_c(hₜ₋₁, X)), Φ_c(hₜ₋₁, X)) and if spatial attention comes first: Y = f(X,Φₛ(hₜ₋₁, X), Φ_c(hₜ₋₁, X Φₛ(hₜ₋₁, X))) where f(·) denotes the modulate function which takes the feature map X and attention maps as input and then outputs the modulated feature map Y.
Unlike previous attention mechanisms which consider each image region equally and use global spatial information to tell the network where to focus, SCA-Net leverages the semantic vector to produce the spatial attention map as well as the channel-wise attention weight vector. Being more than a powerful attention model, SCA-CNN also provides a better understanding of where and what the model should focus on during sentence generation.
Papers archive 2025-07-28
2 shown of 2, newest first. Repository counts are the archive's code-links table. A Syntology line states what Syntology ran from that paper's harvested code; it is per sample and not a correctness claim.
-
Aesthetic Attributes Assessment of Images 11 Jul 2019 · 2 repositories · arXiv:1907.04983Syntology ran 0 of 1 samples · 1 unverified · 1 pointer-only (licence)
-
SCA-CNN: Spatial and Channel-wise Attention in Convolutional Networks for Image Captioning 17 Nov 2016 · 2 repositories · arXiv:1611.05594
Tasks archive 2025-07-28
4 tasks the archive attaches to papers tagged with this method, by distinct papers. A task without a page in the catalog is plain text.
| Task | Papers |
|---|---|
| Image Captioning | 2 |
| Attribute | 1 |
| Sentence | 1 |
| Transfer Learning | 1 |
Usage over time archive 2025-07-28
Components: the archive holds no method-to-method composition, so PwC's Components table cannot be rebuilt; the Papers list carries no Results column for the same reason (the archive does not join its leaderboard rows to method tags).
Categories archive 2025-07-28
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections