A Network Structure to Explicitly Reduce Confusion Errors in Semantic Segmentation

Qichuan Geng, Xinyu Huang, Zhong Zhou, Ruigang YangarXiv 2018

Abstract

Semantic segmentation models frequently struggle with visually similar classes, leading to persistent "confusion errors." This paper proposes a novel architecture that explicitly addresses these errors by ensembling specialized subnets and employing a modified cross-entropy loss. By targeting specific clusters of confusing classes identified through confusion matrix analysis, the method achieves significant performance gains on Cityscapes and PASCAL VOC 2012 benchmarks without requiring changes to the underlying feature encoders.

The Problem of Confusion Errors

In semantic segmentation, the goal is to assign a class label to every pixel in an image. Despite advancements in deep learning, models often fail to distinguish between classes with similar visual appearances, such as trucks and buses or sidewalks and roads. These "confusion errors" are often treated as a byproduct of low resolution or data imbalance. However, this research argues that confusion patterns are remarkably consistent across different architectures, suggesting they can be addressed directly through architectural design.

Confusion matrices illustrating consistent patterns of misclassification across different models.

The authors observed that even when using different backbones (e.g., ResNet-101 vs. ResNet-38), the resulting confusion matrices remain similar. This indicates that visual similarity is a primary driver of error. Traditional cross-entropy loss focuses on the correct class but does not explicitly penalize the specific incorrect classes that the model is most likely to pick.

Proposed Methodology

The proposed framework introduces two primary components: specialized subnets and a confusion-aware loss function.

The proposed network architecture featuring specialized subnets for confusing class groups.

1. Discriminative Confusing Groups (Subnets)

By analyzing pre-trained confusion matrices, classes are grouped into "confusing clusters." For each cluster, a specialized "subnet" is created. For example, a subnet might focus exclusively on distinguishing between cars, trucks, buses, and trains. These subnets operate on the shared feature map and are eventually fused to produce the final segmentation map. This specialization allows the model to learn fine-grained features necessary for difficult distinctions without overwhelming the main network.

2. Improved Cross-Entropy Loss

To further "untangle" similar classes, the authors modified the standard cross-entropy loss. The new loss function not only rewards the correct classification but also applies a specific penalty to the classes most likely to be confused with the ground truth. This "push-pull" mechanism increases the decision margin between visually similar categories.

Experimental Results

The method was evaluated on the Cityscapes and PASCAL VOC 2012 datasets. On Cityscapes, using a ResNet-101 backbone, the approach improved the mean Intersection-over-Union (mIoU) from 74.70% to 77.75%, a substantial 3.05% gain. Notable improvements were seen in difficult categories: the IoU for "truck" increased by over 7%, and "motorcycle" saw a gain of nearly 7%. Similar trends were observed on PASCAL VOC 2012, where mIoU increased from 75.43% to 76.91%.

Conclusion and Future Work

By explicitly modeling and penalizing confusion, this research provides a modular way to enhance existing semantic segmentation models. While the current implementation relies on manual class grouping and simple fusion techniques, it demonstrates that addressing the symptoms of visual similarity—the confusion itself—is a highly effective strategy for improving model accuracy. Future work may focus on automating the grouping process and developing more sophisticated learned fusion modules to reduce computational overhead.

Summary updated

BibTeX
@misc{geng2018network,
  author = {Qichuan Geng and Xinyu Huang and Zhong Zhou and Ruigang Yang},
  title = {{A Network Structure to Explicitly Reduce Confusion Errors in Semantic Segmentation}},
  year = {2018},
  eprint = {1808.00313},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1808.00313},
}
Figure