Flattening the Parent Bias: Hierarchical Semantic Segmentation in the Poincar\'e Ball

Simon Weber, Baris Zöngür, Nikita Araslanov, Daniel Cremers · DOI

TL;DR

This paper challenges the assumption that hierarchical structures inherently improve semantic segmentation. They demonstrate that flat classifiers, which infer parent categories from children, generalize better to new domains than traditional hierarchical methods. Furthermore, by leveraging the Poincaré ball model from hyperbolic geometry, they achieve even better calibration and competitive accuracy, suggesting hyperbolic spaces can mitigate a "parent bias" present in Euclidean representations.

What Problem Does This Paper Address?

Semantic segmentation, a task of assigning a label to every pixel in an image, often benefits from hierarchical label structures (e.g., "car" is a type of "vehicle"). Recent work has shown that incorporating these hierarchies can improve segmentation accuracy. However, this paper questions why this improvement occurs. They hypothesize that the benefits might not stem from the semantic relationships themselves but from other factors. The core problem they address is understanding the true source of accuracy gains in hierarchical segmentation and finding a more robust and generalizable approach, especially when models are applied to domains different from their training data.

Methods

The authors propose and evaluate three main approaches:

  1. Hierarchical Semantic Segmentation (HSSN): They use a representative hierarchical approach (HSSN) as a baseline, which explicitly models parent and child nodes.
  2. Flat Euclidean Classifier: They introduce a "flat" classifier where parent labels are inferred after predicting child labels using a standard Euclidean network. This serves as a strong baseline to isolate the effect of explicit hierarchy.
  3. Flat Hyperbolic Classifier (Poincaré Ball): This is their main novel contribution. They embed pixel features in the Poincaré ball, a model of hyperbolic space. This allows them to perform classification using hyperbolic geometry. They hypothesize that the intrinsic properties of hyperbolic space can naturally mitigate a "parent bias" observed in Euclidean embeddings.

Datasets

The models were trained on the Cityscapes dataset. Evaluation was performed on a diverse set of six datasets:

  • Cityscapes
  • Mapillary
  • IDD
  • ACDC
  • BDD
  • Wilddash

The latter four datasets represent more challenging visual domain shifts compared to Cityscapes.

Key Insights and Ideas

  • Hierarchy isn't always the hero: The paper's central finding is that explicit hierarchical training doesn't necessarily lead to better generalization. Flat classifiers, which infer parent labels from child predictions, often outperform hierarchical methods on unseen domains.
  • The "Parent Bias" in Euclidean Space: In Euclidean space, class embeddings tend to form clusters. The distances between these clusters are not uniform, leading to a bias where certain groupings of child classes into parent classes are favored, potentially hindering generalization.
  • Hyperbolic Geometry to the Rescue: The Poincaré ball model of hyperbolic space exhibits properties that naturally lead to more uniform distances between class embeddings. This "flattens" the parent bias, making the model more robust.
  • Calibration Matters: Beyond accuracy, the hyperbolic approach shows significantly better calibration (how well predicted probabilities reflect actual likelihoods), especially for parent nodes on challenging datasets. This suggests the model's confidence is more trustworthy.

Key Results

  • Generalization: Flat classifiers (both Euclidean and hyperbolic) consistently outperformed the hierarchical HSSN model on cross-domain tests, especially on challenging datasets like BDD and Wilddash. For instance, Flat-Hyp achieved +2.21/+3.93 mIoU improvement over HSSN on BDD/Wilddash.
  • Hyperbolic Advantage: The Flat-Hyp model was on par with the Flat-Euc baseline in terms of segmentation accuracy but significantly outperformed it in calibration quality, particularly for parent nodes on challenging datasets. For example, on Wilddash, Flat-Hyp achieved -5.43 cwECE improvement over HSSN.
  • Qualitative Improvements: Visualizations show that the hyperbolic model produces smoother confidence maps and is less prone to misclassifications, especially in challenging scenarios like occlusions or domain shifts.

Limitations and Future Work

  • Limited to Traffic Scenes: The evaluation was primarily conducted on datasets focused on traffic scenes. The authors acknowledge that testing on datasets with different taxonomic structures and visual complexities would be valuable.
  • Poincaré Ball Specificity: The study focused on the Poincaré ball model. Future work could explore other conformal models of hyperbolic space.
  • Further Exploration of Hyperbolic Properties: The paper suggests that the concavity of hyperbolic distance is key to its benefits. Further theoretical and empirical investigations into these properties could yield deeper insights.

Summary updated

Abstract

Hierarchy is a natural representation of semantic taxonomies, including the ones routinely used in image segmentation. Indeed, recent work on semantic segmentation reports improved accuracy from supervised training leveraging hierarchical label structures. Encouraged by these results, we revisit the fundamental assumptions behind that work. We postulate and then empirically verify that the reasons for the observed improvement in segmentation accuracy may be entirely unrelated to the use of the semantic hierarchy. To demonstrate this, we design a range of cross-domain experiments with a representative hierarchical approach. We find that on the new testing domains, a flat (non-hierarchical) segmentation network, in which the parents are inferred from the children, has superior segmentation accuracy to the hierarchical approach across the board. Complementing these findings and inspired by the intrinsic properties of hyperbolic spaces, we study a more principled approach to hierarchical segmentation using the Poincar\'e ball model. The hyperbolic representation largely outperforms the previous (Euclidean) hierarchical approach as well and is on par with our flat Euclidean baseline in terms of segmentation accuracy. However, it additionally exhibits surprisingly strong calibration quality of the parent nodes in the semantic hierarchy, especially on the more challenging domains. Our combined analysis suggests that the established practice of hierarchical segmentation may be limited to in-domain settings, whereas flat classifiers generalize substantially better, especially if they are modeled in the hyperbolic space.
BibTeX
@inproceedings{weber2024flattening,
  author = {Simon Weber and Baris Zöngür and Nikita Araslanov and Daniel Cremers},
  title = {{Flattening the Parent Bias: Hierarchical Semantic Segmentation in the Poincar\textbackslash\{\}'e Ball}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  url = {https://openreview.net/forum?id=miTNpZu9eU},
}
Figure