Hypergraph Convolutional Networks for Weakly-Supervised Semantic Segmentation

Jhony H. Giraldo, Vincenzo Mariano Scarrica, Antonino Staiano, Francesco Camastra, Thierry Bouwmans

TL;DR

This paper introduces HyperGCN-WSS, a novel algorithm for semantic segmentation that significantly reduces the need for dense pixel-wise annotations by leveraging "weak signals" like scribbles or clicks. By constructing hypergraphs that capture both spatial and cross-image structural information, their method generates more accurate pseudo-labels, leading to competitive performance with state-of-the-art techniques.

What Problem Does This Paper Address?

Semantic segmentation, the task of classifying every pixel in an image, is crucial for many computer vision applications. While deep learning models have achieved impressive results, they typically demand vast amounts of meticulously annotated data. This annotation process is incredibly time-consuming and expensive. To overcome this bottleneck, researchers are exploring "weakly supervised learning," where models learn from less precise labels. Existing weakly supervised methods often rely on graph convolutional networks (GCNs) that primarily consider spatial relationships within individual images. However, this approach overlooks valuable structural information that could be gleaned from relationships between different images in a dataset. This paper aims to bridge this gap by proposing a method that effectively utilizes both intra-image spatial context and inter-image structural information.

Methods

The proposed HyperGCN-WSS algorithm is a multi-stage pipeline designed to generate accurate pseudo-labels for training a segmentation model. Here's a breakdown of the key components:

  1. Superpixel Segmentation: Images are first segmented into superpixels using the SLIC algorithm. These superpixels act as the fundamental nodes in the graph structures, grouping homogeneous regions for better representation.
  2. Feature Extraction: A pre-trained VGG16 network is used to extract features from the images. Intermediate layer outputs (specifically, the 10th ReLU layer) are employed, and average pooling is applied to superpixel regions to obtain a 512-dimensional feature vector for each node.
  3. Graph and Hypergraph Construction:
    • Spatial Graphs: For each image, a graph is constructed where nodes (superpixels) are connected if they are spatially adjacent. This results in a block-diagonal adjacency matrix, representing disconnected subgraphs for each image.
  4. k-NN Graphs: A k-Nearest Neighbor (k-NN) graph is built based on the feature representations of the superpixels in an embedding space. This captures similarity-based relationships.
  5. Hypergraph: The core innovation lies in constructing hypergraphs. These hypergraphs combine the spatial relationships from individual images with the structural relationships captured by the k-NN graphs across the dataset. This allows information to propagate not just within an image but also between different images.
  6. HyperGraph Convolutional Network (HyperGCN): A specialized HyperGCN architecture is employed. This network leverages both standard graph convolutions (for spatial relationships) and hypergraph convolutions (for combined spatial and structural relationships) to learn from the constructed hypergraphs.
  7. Pseudo-Label Generation: The HyperGCN outputs are used to generate "pseudo-labels." These are essentially predicted segmentation masks that serve as the ground truth for the next stage.
  8. DeepLabV3+ Segmentation: Finally, a DeepLabV3+ model is trained using these generated pseudo-labels. This allows the powerful DeepLab architecture to learn semantic segmentation with significantly reduced annotation effort.

The training is performed in three stages, each with a specific loss function, to mitigate the "over-smoothing" problem common in graph-based methods.

Datasets

The experiments are conducted on the PASCAL VOC 2012 dataset, a standard benchmark for semantic segmentation. The authors use an augmented version of the dataset, providing 10,582 training images and 1,449 validation images. They evaluate their method using two types of weak signals:

  • Scribbles: Annotations provided by the "ScribbleSup" dataset, where users draw lines over objects.
  • Random Clicks: A small percentage of pixels are randomly selected as labels.

Key Insights and Ideas

  • Hypergraphs for Cross-Image Learning: The most significant insight is the effective use of hypergraphs to capture and propagate information between different images in a dataset. This moves beyond the limitations of methods that only consider intra-image relationships.
  • Hypergraph Convolutions Outperform Graph Convolutions: The paper demonstrates that hypergraph convolutions are superior to standard graph convolutions for weakly supervised semantic segmentation, highlighting the benefit of the richer relational information captured by hypergraphs.
  • Impact of Superpixel Granularity: The results suggest that a smaller number of superpixels (denoted by ξ) leads to better performance. This is attributed to the fact that larger superpixels (smaller ξ) are harder to adequately represent with the intermediate layers of the VGG16 network.
  • Multi-Stage Training for Stability: The three-stage training process with distinct loss functions is crucial for preventing over-smoothing and ensuring stable propagation of information through the network.

Key Results

  • Competitive Performance: HyperGCN-WSS achieves competitive performance against previous weakly supervised semantic segmentation methods on the PASCAL VOC 2012 dataset.
  • Scribble Performance: Using scribbles as weak signals, the method achieves an mIoU of 65.3% on the validation set.
  • Click Performance: Using random clicks, the method achieves an mIoU of 65.4% on the validation set.
  • Information Propagation: Table 1 shows a consistent improvement in mIoU across the three training stages (L1, L2, L3) for both scribbles and clicks, demonstrating the effective propagation of information to unlabeled superpixels.
  • Comparison to Other Methods: Table 2 shows that HyperGCN-WSS outperforms methods like ScribbleSup, RAWKS, NormalizedCutLoss, and GraphNet when using scribbles, and achieves comparable results when using clicks.

Limitations and Future Work

  • Superpixel Granularity: The authors note that performance is sensitive to the number of superpixels, with smaller superpixels (larger ξ) yielding better results. This suggests that the feature representation might not be rich enough to capture information at very fine scales.
  • CRF Post-processing: The paper mentions that results with CRF post-processing were not reported due to space constraints, implying that further improvements might be possible with such techniques.
  • Limited Scope of Segmentation Models: The authors explicitly state that they did not perform an extensive search of semantic segmentation models, focusing instead on the HyperGCN architecture. This suggests that integrating HyperGCN-WSS with other advanced segmentation backbones could yield even better results.
  • Future Directions: While not explicitly detailed, the success of hypergraph convolutions opens avenues for exploring more complex hypergraph structures and their application to other weakly supervised learning tasks.

Summary updated

BibTeX
@inproceedings{giraldo2022hypergraph,
  author = {Jhony H. Giraldo and Vincenzo Mariano Scarrica and Antonino Staiano and Francesco Camastra and Thierry Bouwmans},
  title = {{Hypergraph Convolutional Networks for Weakly-Supervised Semantic Segmentation}},
  booktitle = {ICIP},
  year = {2022},
  url = {https://openreview.net/forum?id=mX_mgB5L6_f},
}
Figure