[论文解读] Contextrast: Contextual Contrastive Learning for Semantic Segmentation
Contextrast 提出了一种用于语义分割的对比学习框架,通过上下文对比学习(CCL)融合多尺度局部与全局上下文,增强特征判别能力,并通过边界感知负样本(BANE)采样提升边界分割性能。该方法在 Cityscapes、CamVid、PASCAL-C、COCO-Stuff 和 ADE20K 上实现了最先进性能,且未增加推理复杂度。
Despite great improvements in semantic segmentation, challenges persist because of the lack of local/global contexts and the relationship between them. In this paper, we propose Contextrast, a contrastive learning-based semantic segmentation method that allows to capture local/global contexts and comprehend their relationships. Our proposed method comprises two parts: a) contextual contrastive learning (CCL) and b) boundary-aware negative (BANE) sampling. Contextual contrastive learning obtains local/global context from multi-scale feature aggregation and inter/intra-relationship of features for better discrimination capabilities. Meanwhile, BANE sampling selects embedding features along the boundaries of incorrectly predicted regions to employ them as harder negative samples on our contrastive learning, resolving segmentation issues along the boundary region by exploiting fine-grained details. We demonstrate that our Contextrast substantially enhances the performance of semantic segmentation networks, outperforming state-of-the-art contrastive learning approaches on diverse public datasets, e.g. Cityscapes, CamVid, PASCAL-C, COCO-Stuff, and ADE20K, without an increase in computational cost during inference.
研究动机与目标
- 为解决现有对比学习方法在语义分割中捕捉与关联局部和全局上下文方面的局限性。
- 通过利用误分类边界区域中的更难负样本,提升分割精度,尤其是物体边界处的精度。
- 通过避免增加网络模块或参数,保持推理效率。
- 通过编码器各层的代表性锚点融合,实现更好的特征判别能力。
- 在不增加计算成本的前提下,证明在多样化基准上的一致性能提升。
提出的方法
- 上下文对比学习(CCL)从编码器各层聚合多尺度特征,并使用高层代表锚点更新低层锚点,使每一层都能捕捉局部与全局上下文。
- 通过最后一层的全局上下文更新每类的代表性锚点,确保跨尺度关系的一致理解。
- 边界感知负样本(BANE)采样从物体边界处误分类区域中选择嵌入特征作为负样本,提升梯度的信息量。
- 使用加权融合高阶与低阶锚点,其中超参数 $ w_h $ 和 $ w_l $ 之和为 1,以平衡全局与局部上下文表征。
- 边界采样比率 $ K $ 经调优以优化负样本选择,Cityscapes 上 50% 比率表现最佳。
- 该框架使用包含 CCL 和 BANE 的对比损失进行训练,推理时分离优化模块以保持速度。
实验结果
研究问题
- RQ1通过锚点融合实现多尺度特征聚合,能否改善语义分割中局部与全局上下文关系的理解?
- RQ2从误分类区域的边界区域采样更难负样本,是否能带来更好的特征判别能力与分割精度?
- RQ3所提方法能否在不增加推理时间计算成本的前提下实现最先进性能?
- RQ4该方法对锚点融合权重与采样比率等超参数的选择有多鲁棒?
- RQ5CCL 与 BANE 的集成在多样化基准上对 mIoU 的提升程度如何?
主要发现
- Contextrast 在 Cityscapes、CamVid、PASCAL-C、COCO-Stuff 和 ADE20K 上超越了最先进对比学习方法,且未增加推理成本。
- 在使用 HRNet 的 Cityscapes 上,该方法达到 82.20% 的 mIoU,较基线 ContrastiveSeg 提升 +3.72%。
- 在使用 OCRNet 的 CamVid 上,该方法达到 84.33% 的 mIoU,较基线提升 +2.16%。
- 消融实验表明,CCL 与 BANE 联合使用在 Cityscapes 上带来最高的 mIoU 提升(+3.72%),优于单一组件。
- 该方法对超参数调优具有鲁棒性,在不同锚点融合权重 ($ w_h $) 下表现稳定,且在 50% 采样比率时达到最优。
- 可视化分析证实,边界特征为更难负样本,其与错误预测锚点的余弦相似度更高,验证了 BANE 采样策略的有效性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。