cs.CVOct 27, 2026

RePAIR: Inverting Backdoor Attacks in Semantic Segmentation

Authors: Arnold Brosch, Kira Maag

Organizations: Heinrich Heine University Düsseldorf

Abstract

Despite significant advances in computer vision, semantic segmentation models remain vulnerable to backdoor attacks, posing a security risk. These attacks redirect pixels of a chosen victim class to an attacker-specified target class when a trigger is present, while preserving clean predictions. Existing defenses are largely derived from image classification, while dedicated segmentation defenses remain scarce and typically require retraining or model modification. We introduce RePAIR, a post-hoc, label-free, attack-unaware defense based on the observation that backdoor-induced shifts can be stronger in the classifier head than in internal representations, leaving recoverable victim-class semantics. RePAIR infers the victim-target relation from an unlabeled, potentially contaminated image pool, constructs a safety-approved semantic reference, and localizes suspicious pixels by comparing head predictions with internal semantic evidence. It then applies feature-space and output corrections toward the inferred victim semantics, while conservative localization and output constraints limit changes to benign predictions. We model the attack as adversarial probability transport and repair as its approximate reversal, deriving bounds and sufficient conditions for localization, residual attack success, clean-side changes, defense-induced target predictions, and attack-unaware pair identification. Experiments across segmentation architectures and attack settings show that RePAIR substantially reduces attack success while largely preserving clean performance.

Figures & tables

Appendix figures & tables6 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. SemPurify: Semantics-Aware Data Purification for Black-box Backdoor Defense

    Oct 16, 2026Jiawei Yu, Syed Irfan Ali Meerza, Yi Wu +2Backdoor Defense

  2. OmniPatch: A Universal Adversarial Patch for ViT-CNN Cross-Architecture Transfer in Semantic Segmentation

    Mar 21, 2026Aarush Aggarwal, Akshat Tomar, Amritanshu Tiwari +1Adversarial Patch AttacksAdversarial Attacks

  3. Beyond Small Patches: Black-Box Detection and Purification of Diverse Backdoor Triggers

    Sep 2, 2026Ahmed Abdelnaby, Mohamed ElmahallawyBackdoor DetectionBackdoor Defense