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

Weakly Supervised Semantic Segmentation by Knowledge Graph Inference

Jia Zhang, Bo Peng, Xi Wu · DOI

TL;DR

This paper introduces a novel graph reasoning framework to improve Weakly Supervised Semantic Segmentation (WSSS). By integrating external knowledge graphs into both the classification and segmentation stages, the method enhances the understanding of inter-class dependencies, leading to more accurate pseudo-labels and ultimately state-of-the-art segmentation performance.

What Problem Does This Paper Address?

Semantic segmentation, the task of assigning a class label to every pixel in an image, typically requires a massive amount of pixel-level annotated data. Acquiring such data is expensive and time-consuming. Weakly Supervised Semantic Segmentation (WSSS) aims to overcome this by using weaker forms of supervision, most commonly image-level labels (i.e., knowing which objects are present in an image but not their exact locations).

Existing WSSS methods often focus heavily on improving the initial pseudo-label generation from a classification network, neglecting the downstream segmentation network. Furthermore, standard Convolutional Neural Networks (CNNs) struggle to capture complex, long-range dependencies between different object categories within an image. This paper addresses these limitations by proposing a holistic approach that leverages external knowledge to reason about these inter-category relationships, thereby improving both pseudo-label quality and the final segmentation accuracy.

Methods

The proposed approach enhances WSSS in two main stages:

  1. Multi-label Classification Network:
    • Knowledge Graph Integration: An external knowledge graph (specifically, ConceptNet) is used to represent semantic relationships between object classes. This graph is then used to build a semantic relationship matrix.
  2. Graph Convolutional Networks (GCNs): This matrix is fed into GCNs to perform global reasoning about inter-class dependencies. This helps the network identify features in less salient regions and refine the completeness of generated pseudo-labels.
  3. Improved Loss Function: An improved Focal Loss is used to balance multi-class samples, and the overall loss combines classification loss with this focal loss.
  4. Segmentation Network:
    • Graph Reasoning Mapping (GRM) Module: This novel module is introduced to leverage the knowledge gained from the classification stage and textual databases. It enhances feature representation by incorporating contextual reasoning.
  5. Joint Reasoning: The GRM module combines visual features with semantic graph representations derived from the GCNs, allowing for more informed pixel-wise predictions. It learns a compatibility matrix to map class nodes to local visual features.

Datasets

The proposed method is evaluated on two widely used datasets:

  • PASCAL VOC 2012: Contains 20 object classes (plus background).
  • MS COCO 2014: Contains 80 object classes (plus background).

Both datasets are used with image-level class labels for training, which is a challenging setting for WSSS.

Key Insights and Ideas

  • Holistic Improvement: The paper argues that improving WSSS requires enhancing both the pseudo-label generation (classification) and the final segmentation stages, rather than focusing solely on one.
  • External Knowledge is Crucial: Integrating structured knowledge from external sources like ConceptNet is highly effective for understanding complex inter-class relationships that are hard to learn from image data alone.
  • GCNs for Global Reasoning: GCNs are well-suited to capture long-range, global dependencies between object categories, which is a significant advantage over local CNN convolutions.
  • GRM for Contextual Segmentation: The proposed GRM module effectively bridges the gap between semantic knowledge and visual features, leading to more contextually aware segmentation.
  • High Generality of GRM: The GRM module demonstrates robustness and can be seamlessly transferred to other WSSS tasks, highlighting its adaptability.

Key Results

  • State-of-the-Art Performance: The method achieves new state-of-the-art results on both PASCAL VOC 2012 and MS COCO 2014 datasets.
  • PASCAL VOC 2012: Achieves an mIoU of 70.2% on the validation set, a significant improvement.
  • MS COCO 2014: Achieves an mIoU of 46.1% on the validation set, an improvement of 1.1% over the baseline.
  • Pseudo-label Improvement: The graph reasoning approach leads to a 0.6% enhancement in seed accuracy and a 0.9% enhancement in pseudo-label accuracy on PASCAL VOC 2012.
  • Segmentation Improvement: Integrating the GRM module into the segmentation network further boosts accuracy, with gains of 1.7% and 1.9% on PASCAL VOC 2012 validation and test sets, respectively, compared to the baseline.

Limitations and Future Work

  • Future Exploration: The authors hope to further explore more detailed fusion of semantic relationship knowledge and visual images in future work.
  • Dataset Limitations: While state-of-the-art results are achieved, the performance on complex datasets like MS COCO still has room for improvement.
  • Hyperparameter Tuning: The paper mentions ablation studies on hyperparameters like $\lambda$ and $\gamma$, indicating that their optimal values are crucial for performance.

Summary updated

BibTeX
@misc{zhang2023weakly,
  author = {Jia Zhang and Bo Peng and Xi Wu},
  title = {{Weakly Supervised Semantic Segmentation by Knowledge Graph Inference}},
  year = {2023},
  eprint = {2309.14057},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.14057},
}

Loading related content...

Figure