Abstract
The Linear Context Transform (LCT) block is a lightweight architectural unit designed to enhance channel-wise dependency modeling in neural networks. By identifying a negative correlation between global context and attention values, LCT replaces the computationally intensive fully-connected layers of Squeeze-and-Excitation (SE) blocks with a streamlined combination of group normalization and per-channel linear transforms. This approach achieves superior performance on ImageNet and COCO benchmarks with significantly fewer parameters.
Introduction
In modern computer vision, Squeeze-and-Excitation (SE) blocks have become the standard for channel attention, enabling networks to adaptively recalibrate channel-wise feature responses. However, SE blocks rely on two fully-connected (FC) layers to model dependencies across all channels. This approach faces two primary challenges: computational complexity that scales poorly with channel count, and a lack of interpretability regarding the learned attention weights. Furthermore, modeling every cross-channel dependency can introduce noise from irrelevant channels.
The authors of the Linear Context Transform (LCT) block address these issues by investigating the underlying mechanics of channel attention. Their analysis revealed a consistent negative correlation between global context (the average value of a channel) and the resulting attention weights, suggesting that channels with high-magnitude context often receive lower attention. LCT is designed to capture this relationship more efficiently and robustly.
Methods
The LCT block implements a three-step framework to refine feature maps:
- Context Aggregation: Similar to the SE block, LCT utilizes Global Average Pooling (GAP) to compress spatial information into a channel descriptor vector.
- Context Feature Transform: This core innovation replaces heavy FC layers with a more efficient sequence:
- Normalization: Channels are divided into groups, and a normalization operator (akin to Group Normalization) is applied. This stabilizes the distribution and mitigates interference from irrelevant channels.
- Linear Transform: A simple, per-channel linear transform ($y = w \cdot x + b$) is applied. This allows each channel to independently map its normalized context to an importance score.
- Feature Fusion: The resulting scores are passed through a Sigmoid function and multiplied back into the original feature map.
Unlike SE blocks that explicitly model cross-channel dependencies through a bottleneck of FC layers, LCT models them implicitly via group normalization and then treats channels independently for the final transform. This makes the block extremely lightweight, reducing the parameter count from $2C^2/r$ to just $C$.
Key Insights and Results
The Negative Correlation
The discovery that SE blocks naturally learn to suppress channels with high absolute global context values was a pivotal insight. These channels often contain noise or trivial information. LCT is engineered to learn this suppression directly, using normalization as a stabilizer to prevent the attention mechanism from being distracted by extreme values in unrelated channels.
Experimental Performance
The authors evaluated LCT across standard computer vision benchmarks, demonstrating significant improvements over baselines:
- ImageNet-1K Classification: LCT-ResNet50 achieved a 77.45% Top-1 accuracy, outperforming both the baseline ResNet50 (76.15%) and the SE-ResNet50 (77.31%). Notably, LCT-ResNet50 even surpassed the performance of the much deeper ResNet101 baseline.
- Object Detection and Segmentation (COCO): LCT provided consistent gains of 1.5% to 1.7% $AP^{bbox}$ across various backbones. It was particularly effective in improving the detection of small objects. For instance segmentation, LCT yielded a 1.0% to 1.2% $AP^{mask}$ improvement over baselines.
Conclusion
The Linear Context Transform block offers a highly efficient alternative to traditional channel attention mechanisms. By leveraging normalization and independent linear transforms, it achieves state-of-the-art results with minimal parameter overhead. Future work may explore more complex aggregation strategies beyond Global Average Pooling or further investigate independent attention mechanisms that rely on normalization rather than dense cross-channel modeling.
Summary updated