Channel Attention Networks

Alexei Bastidas, Hanlin TangWorkshops @ CVPR 2019

Introduction

In modern computer vision, the standard paradigm is "RGB-native," designed primarily for the three-channel visible spectrum. However, critical applications such as satellite imagery, autonomous driving, and medical imaging frequently utilize multi-spectral data, including infrared, depth, or hyperspectral bands.

The conventional approach to handling these additional data streams is simple concatenation—stacking all channels into a single input volume. This method is inherently suboptimal for two primary reasons. First, it creates a vulnerability to noise: if a single sensor or spectral band is compromised by weather or hardware failure, the entire network's performance can degrade because it lacks the mechanism to isolate the corrupted data. Second, there is a domain mismatch; models optimized for three channels do not necessarily scale their internal logic effectively when presented with dozens of channels simultaneously.

The Channel Attention Network (CAN) Architecture

To address these limitations, we introduce Channel Attention Networks (CAN). Unlike monolithic architectures, CAN employs a multi-stream approach that treats different spectral bands as distinct information sources.

The multi-stream architecture of CAN, featuring separate encoder-decoder paths and a central Attention Module for dynamic feature fusion.

The architecture consists of three core components:

  1. Stream Splitting: Input channels are partitioned into logical subsets, such as a "visible" stream and an "infrared" stream.
  2. Backbone Streams: Each stream is processed independently by its own encoder-decoder network (a modified U-Net). This allows the model to extract specialized features relevant to each spectral domain.
  3. The Attention Module: Acting as the system's "brain," this module receives feature maps from all streams and computes dynamic weights (attention masks). These weights determine the relative contribution of each stream to the final pixel-level prediction.

To further refine performance, we utilize Extra Supervision (CAN-ES). By adding a loss term for each individual stream during training, we force each branch to solve the segmentation task independently before the attention module merges their outputs. This ensures that the fusion process is combining high-quality, specialized features.

Experimental Setup: The SpaceNet Dataset

We evaluated the CAN architecture using the SpaceNet dataset, a benchmark for satellite imagery analysis. The dataset includes 8-band multi-spectral imagery covering four major cities: Las Vegas, Paris, Shanghai, and Khartoum. The task involves the semantic segmentation of building footprints across over 5,555 square kilometers, encompassing more than 300,000 labeled building polygons.

Key Insights: Dynamic Fusion and Robustness

The primary advantage of CAN is its dynamic robustness. The model learns to adapt to environmental shifts in real-time. For instance, if clouds obscure the visible spectrum, the attention module automatically reweights the infrared stream to maintain accuracy.

A visual breakdown of the fusion process, showing how visible and infrared streams are weighted and combined to produce the final prediction.

Qualitative analysis reveals an interesting division of labor: the model often utilizes the visible stream to define sharp building edges while relying on the infrared stream to "fill in" the building's interior. This "soft attention" mechanism allows the model to "turn down the volume" on noisy or unhelpful spectral bands, providing a level of interpretability and stability that standard concatenation lacks.

Performance Results

Our experiments demonstrate that intelligent fusion significantly outperforms simple stacking. The CAN-ES model achieved a mean $F_1$ score of 66.17, surpassing both the single-stream U-Net (65.00) and the standard concatenation approach (64.40).

The model's noise resistance is particularly noteworthy. In perturbation experiments simulating lighting shifts via gamma correction, the CAN model remained stable. When noise was introduced to the infrared band, CAN's $F_1$ score only dipped to 0.63, whereas the concatenation model plummeted to 0.42 and the single-stream model failed entirely.

Conclusion and Future Work

While CAN represents a significant step forward in multi-spectral fusion, challenges remain. Like many segmentation models, it still struggles with very small building footprints due to feature downsampling in the U-Net backbone. Future research will explore alternative supervision techniques and extend this attention-based fusion to other multi-modal tasks, such as merging LiDAR with RGB data or combining video frames with optical flow. By moving away from simple concatenation toward intelligent, weighted fusion, we can build computer vision systems that are both more accurate and significantly more robust in real-world conditions.

Summary updated

BibTeX
@inproceedings{bastidas2019channel,
  author = {Alexei Bastidas and Hanlin Tang},
  title = {{Channel Attention Networks}},
  booktitle = {Workshops @ CVPR},
  year = {2019},
  doi = {10.1109/cvprw.2019.00117},
}
Figure