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.
In Syntology repository known, no verified implementation (declared_code; repositories: 2 listed of 2 in the graph, strongest link: official). The lookup matched a paper by its title, arXiv:1611.05594, not a method entry. This answer is about arXiv:1611.05594, the paper the archive credits with this method.
Origin paper of this answer, arXiv:1611.05594 (its page on this site · its page on Syntology).
Syntology's have check for this name (free, it answers coverage only), read 2026-10-05; ask it again live. A level is the served verification level of that one answer; nothing here is summed across methods.
Papers archive 2025-07-28
archive papers tagged: 2 · with a code link: 2 · where Syntology ran a sample: 0 (0 with a run with no instrument failure, 0 where every run was a failure of Syntology's instrument) Syntology
Show: all tagged papersonly where code ran: none of the 2 tagged papers has a Syntology run on record
Page 1 of 1: papers 1 to 2 of 2, newest first by the archive's date (ties by slug), in archive order.
Repository counts are the archive's code-links table. A Syntology line states what Syntology ran from that paper's harvested code, as “N ran (of which C constructed an object rather than computing a result; K with no instrument failure: H honoured, V violated, P with no contract checked; I where Syntology's instrument failed) · U unverified”; the instrument figure counts failures of Syntology's instrument, not of the code. It is per sample and not a correctness claim. When the archive marks a repository official for the paper, the line starts with that repository's state (the archive's flag, not a verdict on who wrote the code; “community repositories only” when every sample that ran came from a community repository, “official: no sample here; runs from other or unrecorded repositories” when some came from a repository the paper names or has in its text, or from none recorded); hover it for the repositories the samples that ran came from.
-
Aesthetic Attributes Assessment of Images 11 Jul 2019 · 2 repositories · arXiv:1907.04983Syntology official: not harvested · 0 ran · 1 unverified (of 1 harvested sample) · 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