TL;DR
Knowledge-Guided Adversarial Training (KGAT) significantly improves the robustness of infrared object detectors by embedding thermodynamic physical laws directly into the training loop. By enforcing a stable, environment-invariant rank order of thermal radiation between different object classes, KGAT successfully defends against both adversarial attacks and common environmental corruptions without sacrificing clean accuracy.
What Problem Does This Paper Address?
Infrared (thermal) object detection is critical for safety-critical applications like autonomous driving and night-time surveillance because it can "see" through low-light, fog, and smoky conditions. However, these deep learning models are highly vulnerable to both common corruptions (like salt-and-pepper noise or blur) and malicious adversarial attacks (such as custom-patterned thermal clothing or heat-emitting patches designed to blind detectors).
Current defense strategies rely almost entirely on data-driven adversarial training. While these methods force the network to fit perturbed training data, they only do so superficially. They ignore the intrinsic physical properties of infrared imagery, leading to poor generalization when encountering unseen real-world corruptions or sophisticated physical attacks.
Methods
The authors introduce KGAT (Knowledge-Guided Adversarial Training), a framework that forces object detection models to comply with actual physical laws.
- Modeling Thermal Radiation Relations: While the absolute gray values (brightness) of objects fluctuate wildly depending on weather, time of day, or humidity, the relative brightness order between classes remains remarkably stable. For example, humans are almost always warmer than cars, which are warmer than the background. KGAT models this physical knowledge by calculating the rank order of class-wise mean gray values and uses the Spearman rank correlation coefficient ($\rho$) to measure how well a model's predictions match this physical hierarchy.
- Quantifying Relation Stability: Not all inter-class relationships are equally stable across every scene. The authors develop a statistical framework to quantify the stability ($S_x$) of these thermal relations across the entire dataset, ensuring the model prioritizes highly reliable physical constraints.
- Indirect Optimization via Loss Reweighting: Because rank operations and correlation coefficients are non-differentiable, they cannot be optimized directly using standard backpropagation. KGAT elegantly bypasses this by using an indirect reweighting strategy. It dynamically adjusts the standard detection loss weight ($w^\rho$) using a logarithmic function of the physical discrepancy: images with physically inconsistent predictions receive higher weights (forcing the model to correct its physical logic), which are further scaled by the relation's historical stability ($w^S$).
Datasets
The authors evaluated KGAT across three distinct infrared datasets:
- M3FD: A multi-class dataset containing 4,200 co-registered infrared and RGB images featuring 6 classes (people, cars, buses, motorcycles, trucks, lights).
- FLIR-ADAS: A large-scale automotive dataset containing over 9,700 infrared images annotated across 15 classes.
- KAIST: A large-scale pedestrian detection dataset consisting of 95,328 aligned color-thermal frame pairs.
Key Insights and Ideas
- Ordinal Invariance over Absolute Values: Trying to model absolute blackbody radiation in the wild is incredibly difficult due to environmental noise. Shifting the focus to rank order provides a naturally resilient, non-linear filter that is invariant to zero-mean noise and moderate adversarial shifts.
- Bridging the Differentiability Gap: Physical constraints are often discrete or rule-based, making them notoriously difficult to integrate into deep learning. Converting a non-differentiable physical metric into a continuous, bounded loss-reweighting factor is a powerful blueprint for injecting domain knowledge into neural networks.
- Combating Texture-Based Attacks: Adversarial patches often fool models by introducing confusing local textures. By enforcing a macro-level physical hierarchy across the entire image, KGAT forces the model to reject local perturbations that violate global thermodynamic realities.
Key Results
KGAT was thoroughly tested across six mainstream object detection architectures (including YOLO-v8, Faster R-CNN, SSD, and DINO) against 9 different adversarial attacks and common corruptions.
- Adversarial Robustness: On the M3FD dataset, integrating KGAT with the baseline defense method (SALC) boosted the model's robustness against multi-task adversarial attacks ($A_{mtd}$) from 58.2% to 66.5% mAP50.
- Physical Attack Defense: When subjected to real-world physical threats like the Adversarial Infrared Patches (AIP) attack, SALC+KGAT achieved the highest Average Precision (35.61%) and the lowest Attack Success Rate (65.63%), significantly outperforming purely data-driven baselines.
- No Accuracy Trade-off: Standard adversarial training typically degrades performance on clean, unperturbed images. KGAT breaks this trend, maintaining or even slightly improving clean accuracy across multiple models.
Limitations and Future Work
- Extreme Scenarios: KGAT's performance degrades in extreme conditions where the underlying thermal radiation relations naturally break down, such as large-area occlusions by highly heated objects or extreme ambient temperatures that invert typical grayscale relationships.
- Class Diversity Dependency: The method relies on cross-class relationships. On single-class datasets (like KAIST, which only looks for pedestrians against a background), the lack of diverse category interactions limits the richness of the physical priors the model can exploit.
- Future Directions: The authors suggest that explicitly incorporating ambient temperature and weather data as conditional inputs could allow the model to dynamically adapt its physical constraints to extreme environments.
Summary updated