并非所有像素都同等重要:学习语义分割中的像素难度
Not All Pixels Are Equal: Learning Pixel Hardness for Semantic Segmentation
AI总结:
本文提出学习像素难度(HL图)用于语义分割,通过最大化难度加权损失,在Cityscapes上平均提升1.37% mIoU,且几乎无额外成本。
摘要:
语义分割近年来取得了显著进展。尽管总体结果令人印象深刻,但在一些困难区域(如小物体或细小部分)的分割性能仍不尽如人意。一个直接的解决方案是困难样本挖掘,这在目标检测中被广泛使用。然而,现有的语义分割困难像素挖掘策略大多依赖于像素的损失值,而该值在训练过程中往往会减小。直观上,分割的像素难度主要取决于图像结构,并预期是稳定的。在本文中,我们提出学习语义分割中的像素难度,利用全局和历史损失值中包含的难度信息。更具体地,我们增加了一个与梯度无关的分支,通过最大化难度加权的分割损失来学习难度等级(HL)图,该损失对于分割头是最小化的。这鼓励在困难区域产生大的难度值,从而得到适当且稳定的HL图。尽管方法简单,但所提出的方法可以应用于大多数分割方法,在推理和训练期间分别几乎没有或仅有微小的额外成本。无需花哨的技巧,所提出的方法在Cityscapes数据集上对最流行的语义分割方法实现了一致且显著的改进(平均mIoU提升1.37%),并展示了跨领域的良好泛化能力。源代码可在 https://github.com/Menoly-xin/Hardness-Level-Learning 获取。
英文摘要:
Semantic segmentation has recently witnessed great progress. Despite the impressive overall results, the segmentation performance in some hard areas (e.g., small objects or thin parts) is still not promising. A straightforward solution is hard sample mining, which is widely used in object detection. Yet, most existing hard pixel mining strategies for semantic segmentation often rely on pixel's loss value, which tends to decrease during training. Intuitively, the pixel hardness for segmentation mainly depends on image structure and is expected to be stable. In this paper, we propose to learn pixel hardness for semantic segmentation, leveraging hardness information contained in global and historical loss values. More precisely, we add a gradient-independent branch for learning a hardness level (HL) map by maximizing hardness-weighted segmentation loss, which is minimized for the segmentation head. This encourages large hardness values in difficult areas, leading to appropriate and stable HL map. Despite its simplicity, the proposed method can be applied to most segmentation methods with no and marginal extra cost during inference and training, respectively. Without bells and whistles, the proposed method achieves consistent/significant improvement (1.37% mIoU on average) over most popular semantic segmentation methods on Cityscapes dataset, and demonstrates good generalization ability across domains. The source codes are available at https://github.com/Menoly-xin/Hardness-Level-Learning .
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。