NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Neuron-level Selective Context Aggregation for Scene Segmentation

Zhenhua Wang, Fanglin Gu, Dani Lischinski, Daniel Cohen-Or, Changhe Tu, Baoquan ChenarXiv 2017

Abstract: Contextual information provides important cues for disambiguating visually similar pixels in scene segmentation. In this paper, we introduce a neuron-level Selective Context Aggregation (SCA) module for scene segmentation, comprised of a contextual dependency predictor and a context aggregation operator. The dependency predictor is implicitly trained to infer contextual dependencies between different image regions. The context aggregation operator augments local representations with global context, which is aggregated selectively at each neuron according to its on-the-fly predicted dependencies. The proposed mechanism enables data-driven inference of contextual dependencies, and facilitates context-aware feature learning. The proposed method improves strong baselines built upon VGG16 on challenging scene segmentation datasets, which demonstrates its effectiveness in modeling context information.

Introduction

In scene segmentation, assigning a category label to every pixel is a fundamental challenge where local information is often ambiguous. For instance, a patch of blue pixels could represent either "sea" or "sky" depending on the surrounding environment. Contextual cues—such as the presence of "sand" nearby—are vital for resolving these ambiguities.

Existing deep learning approaches typically handle context in two ways: fixed/uniform aggregation (e.g., global average pooling or dilated convolutions) or sequential modeling via Recurrent Neural Networks (RNNs). However, fixed methods treat all regions as equally important regardless of content, while RNNs can suffer from vanishing gradients and computational inefficiency. This paper proposes a Selective Context Aggregation (SCA) module that is input-dependent, global in scope, and efficient to compute.

The Selective Context Aggregation Module

The SCA module dynamically determines which parts of an image are relevant to each other during the segmentation process. It consists of two primary components: the Contextual Dependency Predictor and the Context Aggregation Operator.

Overview of the Selective Context Aggregation (SCA) module within the segmentation pipeline.
  1. Contextual Dependency Predictor (CDP): This auxiliary sub-network takes a feature map and predicts a dependency matrix $A$. Each entry $a_{ij}$ represents the weight of the $j$-th neuron's contribution to the $i$-th neuron's context. To compute this efficiently, the authors employ a "replication trick" where 1D feature vectors are expanded into 2D maps via horizontal and vertical replication, allowing $1 \times 1$ convolutions to process all possible neuron pairs in parallel.
  2. Context Aggregation Operator: This operator uses the predicted weights to mix features. For every neuron, it combines its local "identity feature" with a weighted sum of "context features" from all other neurons. Because the entire module is differentiable, the CDP learns to identify relevant relationships (e.g., "sea" and "beach") implicitly through backpropagation.

Experimental Results

The SCA module was evaluated on major benchmarks including PASCAL Context, COCO Stuff, and SIFT Flow. The results demonstrate that making context aggregation selective prevents local features from being "polluted" by irrelevant global noise.

Qualitative results on PASCAL Context dataset comparing the baseline to the SCA method, alongside learned dependency maps.

On PASCAL Context, the SCA-enhanced model achieved 42.0% mIoU, significantly outperforming the non-contextual baseline (39.3%) and standard global average pooling (41.1%). Qualitatively, the model showed a superior ability to correct misclassifications—for example, reclassifying "car" pixels as "bus" by recognizing the larger surrounding structure. On COCO Stuff, it reached 42.5% Class Average Accuracy, surpassing established models like FCN-8s and DeepLab.

Conclusion

The SCA module provides a powerful, feed-forward mechanism for modeling global dependencies in scene segmentation. By learning to selectively aggregate context, the network focuses on the most informative cues for each individual pixel. Future work may explore applying this mechanism to modern backbones like ResNet or extending it to model cross-image dependencies for co-segmentation tasks.

Summary updated

BibTeX
@misc{wang2017neuron,
  author = {Zhenhua Wang and Fanglin Gu and Dani Lischinski and Daniel Cohen-Or and Changhe Tu and Baoquan Chen},
  title = {{Neuron-level Selective Context Aggregation for Scene Segmentation}},
  year = {2017},
  eprint = {1711.08278},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.08278},
}
Figure