arXiv:2606.09536cs.CV2026-06

用哈达玛编码提升目标检测与分割的抗攻击能力与异常检测精度

Adversarial Attack and Disturbance Detection by Hadamard-Coded Output Representations for Object Detection and Semantic Segmentation

  • 提出新解码方法,优化哈达玛码输出的概率估计
  • 首次实现单次推理下对扰动和对抗攻击的精准检测
  • 框架兼容分割与检测任务,性能接近基准模型

传统one-hot编码导致模型校准不足,在攻击下过于自信,使基于熵的检测方法失效。已有研究证明哈达玛编码可增强分类任务的鲁棒性,但在语义分割中仍落后于先进模型,而目标检测领域尚未有相关探索。本文首次提出针对哈达玛码的最优解码方法,通过概率单纯形投影求解优化问题,获得更准确的类别概率;该过程同时生成预测不一致度量;进一步首次展示如何利用不一致性进行对抗攻击与扰动检测;提出HadamardNet框架,将哈达玛码作为语义分割与目标检测的输出表示。在扰动与对抗攻击场景下进行全面评估,仅需一次检测即可达到当前最优的扰动检测性能,且在干净数据上保持与基线相当的性能。代码已公开。

原文摘要 · Abstract (English)

Conventional one-hot encodings often yield poorly calibrated models, being overconfident under attack, and letting entropy-based detection algorithms fail. Previous image classification works have demonstrated that Hadamard-coded output representations can improve adversarial robustness. However, attempts to integrate Hadamard codes into semantic segmentation fall far behind state-of-the-art models in mean intersection-over-union performance. Regarding object detection, such output encodings have not yet been investigated at all. Further, no prior art addressed intrinsic codeword inconsistencies or actually exploited intrinsic codeword redundancy. Accordingly, we first derive a novel decoding procedure for Hadamard codewords towards optimal class-wise probabilities, solving the underlying optimization problem by using the projection onto the probability simplex. Second, our optimization delivers a measure of prediction inconsistency. Third, we are the first to show how to exploit these inconsistencies for adversarial attack and disturbance detection. Fourth, we introduce HadamardNet, a framework employing Hadamard codes as output representations for semantic segmentation and object detection models and tasks. We conduct a comprehensive evaluation both on disturbances and adversarial attacks, achieving state-of-the-art perturbation detection performance for both tasks in only a single detection pass, while delivering equivalent or close-by reference performance on clean data. Code is available at https://github.com/ifnspaml/HadamardPerturbationDetection.

目标检测语义分割对抗攻击哈达玛码

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