Stop Diverse OOD Attacks: Knowledge Ensemble for Reliable Defense

Zhenbo Shi, Xiaoman Liu, Yuxuan Zhang, Shuchang Wang, Rui Shu, Zhidong Yu, Wei Yang, Liusheng Huang

Abstract

Deep learning models are highly susceptible to adversarial perturbations and Out-of-Distribution (OOD) inputs. Traditional static defenses often struggle against adaptive attacks that evolve to bypass security measures. This paper presents the Reliable Defense Ensemble (REE), a framework that leverages dynamic synergy amplification, kernel-based anomaly detection, and reinforcement learning to create a robust, adaptive defense. REE demonstrates significant improvements in robust accuracy across multiple architectures, including CNNs and Vision Transformers, outperforming existing state-of-the-art methods.

Introduction

Adversarial attacks—small, intentional perturbations to input data—can easily deceive deep learning models. While adversarial training provides some protection, it is often bypassed by adaptive attacks that exploit specific model weaknesses. Ensemble methods offer a potential solution by combining multiple models; however, simple aggregation techniques like averaging often fail to account for which model is best suited for a specific threat. The Reliable Defense Ensemble (REE) addresses this by enabling real-time knowledge sharing and strategic adjustment within the ensemble.

The REE Framework

The REE framework is built upon three core components designed to enhance ensemble intelligence and adaptability:

  1. Dynamic Synergy Amplification (DSA): REE moves beyond fixed weights by employing a quantified threat index. This allows the system to adjust the influence of individual models based on their real-time resilience to specific attacks. An iterative "unlearning and reinforcement" cycle ensures that effective strategies are prioritized.
  2. Kernel Anomaly Smoothing Detection (KASD): Serving as a proactive radar, KASD utilizes Gaussian kernel mean embedding and Deep Kernel Learning (DKL) to map inputs into a high-dimensional space. By analyzing spectral properties, it identifies coordinated adversarial patterns that standard detection methods might overlook.
  3. Collaborative Protocols via Reinforcement Learning (RL): The ensemble functions as a decentralized network where RL fine-tunes inter-model communication. This ensures the final output is not just a majority vote but a coherent, optimized consensus.

Additionally, the framework utilizes Elastic Morphism Mapping, which allows the ensemble to navigate non-differentiable adversarial landscapes by treating collective knowledge as a flexible convex hull that adapts to cover vulnerabilities.

Overview of the REE framework, showing the transition from static pre-defense boundaries to an adaptive ensemble pipeline.

Experimental Evaluation

The researchers evaluated REE on several benchmarks, including CIFAR-10, CIFAR-100, and ImageNet-1K/22K, using architectures such as ResNet, WideResNet, ViT, and ConvNeXt.

Key Results

REE consistently outperformed existing defenses like FDA and AdRob across various metrics:

  • Robust Accuracy (RA): On CIFAR-10 with WideResNet-28-10, REE achieved a Robust Accuracy of 89.63%, a substantial lead over previous methods like FDA (~82% in L2 attack scenarios).
  • Vision Transformer (ViT) Robustness: REE significantly boosted the performance of ViTs, which are traditionally vulnerable to OOD data. For instance, the accuracy of a ViT-B-16 model on CIFAR-10 improved from 34.53% (undefended) to 56.99%.
  • Resilience to Multi-Vector Attacks: REE maintained high performance against complex attacks like MORA, where other ensemble strategies like ADP or GAL typically see significant degradation.
Performance comparison of REE against state-of-the-art defenses and its impact on Vision Transformer (ViT) accuracy.

Discussion and Future Work

While REE provides a powerful defense, it introduces higher computational overhead due to dynamic weight recalibration and kernel-based detection. Future research could focus on optimizing these processes for real-time applications and scaling the framework to massive foundation models or multi-modal systems. Additionally, the current synergy estimation assumes a relatively stable adversarial environment; further work is needed to handle rapidly oscillating attack strategies.

Conclusion

The Reliable Defense Ensemble (REE) represents a significant step forward in AI security. By treating an ensemble as an adaptive, communicating network rather than a static collection of models, REE provides a proactive and resilient defense against the evolving landscape of adversarial and OOD attacks.

Summary updated

BibTeX
@inproceedings{shi2025stop,
  author = {Zhenbo Shi and Xiaoman Liu and Yuxuan Zhang and Shuchang Wang and Rui Shu and Zhidong Yu and Wei Yang and Liusheng Huang},
  title = {{Stop Diverse OOD Attacks: Knowledge Ensemble for Reliable Defense}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i19.34251},
}
Figure