arXiv:2503.17717cs.CV2025-03TPAMI被引 17

通过去除图像前后景依赖关系,提升开放集识别鲁棒性

BackMix: Regularizing Open Set Recognition by Removing Underlying Fore-Background Priors

  • 用背景替换法消除前背景关联性
  • 在CIFAR-10/100上提升2.3~4.1%准确率
  • 无需额外推理开销,适配主流模型

开放集识别(OSR)要求模型对已知样本分类并检测未知样本,以适应真实场景。现有方法常借助外部数据集中的未知样本进行正则化,但对这些已知异常样本的选择极为敏感。本文从新视角出发:能否不依赖精心挑选的辅助已知异常样本实现正则化?我们通过实证与理论分析发现:1)与前景相关的背景会误导模型,在面对部分已知图像时导致失败;2)与前景无关的背景可作为有效辅助已知异常样本,通过全局平均池化提供正则化。基于此,提出一种简单有效的背景混合方法(BackMix):先用类激活图(CAM)估计前景,再随机将图像块替换为其他图像的背景,生成混合图像用于训练。通过消除前后景关联,显著提升开放集识别性能。该方法实现简便,无需推理额外操作,可无缝集成至几乎所有现有框架。代码已开源。

原文摘要 · Abstract (English)

Open set recognition (OSR) requires models to classify known samples while detecting unknown samples for real-world applications. Existing studies show impressive progress using unknown samples from auxiliary datasets to regularize OSR models, but they have proved to be sensitive to selecting such known outliers. In this paper, we discuss the aforementioned problem from a new perspective: Can we regularize OSR models without elaborately selecting auxiliary known outliers? We first empirically and theoretically explore the role of foregrounds and backgrounds in open set recognition and disclose that: 1) backgrounds that correlate with foregrounds would mislead the model and cause failures when encounters 'partially' known images; 2) Backgrounds unrelated to foregrounds can serve as auxiliary known outliers and provide regularization via global average pooling. Based on the above insights, we propose a new method, Background Mix (BackMix), that mixes the foreground of an image with different backgrounds to remove the underlying fore-background priors. Specifically, BackMix first estimates the foreground with class activation maps (CAMs), then randomly replaces image patches with backgrounds from other images to obtain mixed images for training. With backgrounds de-correlated from foregrounds, the open set recognition performance is significantly improved. The proposed method is quite simple to implement, requires no extra operation for inferences, and can be seamlessly integrated into almost all of the existing frameworks. The code is released on https://github.com/Vanixxz/BackMix.

开放集识别数据增强视觉模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。