Manuscript Offprint

arXiv:2609.02440

Towards One-for-All Robustness Across a Continuum of Threat Levels

Zhichao Hou, Xiaorui Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Adversarially robust models often overfit to a specific attack budget, necessitating multiple specialized models for diverse and dynamic adversarial environments, a strategy that becomes fundamentally intractable as the threat space grows. This raises an open challenge: can we achieve strong robustness across a continuum of threat levels within a single model? We propose the Threat Conditional Network (TCN), grounded in a representation factorization framework that decomposes representation learning into a threat-invariant shared backbone and a lightweight threat-conditional adaptor. TCN conditions a single model on the perturbation level via Fourier-based embeddings and channel-wise affine modulation, and is trained against a distribution over perturbation budgets, enabling flexible and seamless adaptation across an infinite continuum of threat levels during inference. Extensive experiments on CIFAR-10, CIFAR-100, and Tiny-ImageNet show that TCN matches or surpasses a full ensemble of budget-specialized models with a single set of parameters, generalizes to unseen perturbation budgets, and transfers robustly under mismatched threat conditions, with only 4.6% parameter overhead. These contributions chart a promising path toward adaptive and generalizable robustness in dynamic and diverse threat environments.

1 Introduction

Modern machine learning systems are increasingly deployed in diverse and dynamic environments, yet prevailing training paradigms assume a static data distribution, which rarely holds in practice. This fundamental mismatch between training and deployment conditions leads to substantial performance degradation when the underlying distribution shifts at test time (Koh et al., 2021; Li et al., 2023). This phenomenon is particularly pronounced in adversarial robustness. In practice, different deployment environments correspond to different threat types or levels. Models trained under a specific threat exhibit strong specialization: each model performs well in its training seen threat but degrades significantly under mismatched conditions (Kang et al., 2019; Tramer & Boneh, 2019).

To address this, numerous endeavors have been proposed, including redesigning the training objective to achieve a better accuracy-robustness trade-off (Zhang et al., 2019; Wang et al., 2019), scaling model capacity (Rice et al., 2020), exposing models to multiple threat types during training (Tramer & Boneh, 2019; Maini et al., 2020; Laidlaw et al., 2020), and ensemble-based methods (Pang et al., 2019; Strauss et al., 2017; Cheng et al., 2021). However, performance gains across diverse threats remain limited across all these approaches, as the inherent conflict among different threat objectives fundamentally constrains generalization.

Therefore, the conventional method to train and maintain a collection of specialized models becomes necessary when real-world systems demand optimal performance across diverse threat conditions. While managing a small number of models may be feasible, this approach becomes fundamentally

*Corresponding author.

Preprint.

intractable as the threat space grows increasingly large or even extends to a continuous spectrum, as illustrated in Section 2. This raises a fundamental open challenge: Can we achieve strong and consistent robustness across a continuum of threat levels within a single model?

To this end, we propose a novel representation factorization framework that explicitly decomposes the embedding mapping into a threat-invariant shared component and a lightweight threat-conditional component. Building on this principle, we design the Threat Conditional Network (TCN), a single unified model that achieves smooth and consistent adaptation across a continuous spectrum of threat levels without the overhead of maintaining multiple specialized models. Our contributions are summarized as follows. First, we conduct a systematic preliminary study on adversarial defenses across various threat settings, revealing the inherent inconsistency and scalability limitations of existing approaches (Section 2). Second, starting from a representation learning perspective, we reveal the underlying limitations of existing methods and propose a novel representation factorization framework. Building on this, we introduce a unified threat-conditional network (TCN) that enables a single model to adapt and generalize robustly across a continuum of perturbation budgets (Section 3). Finally, we present extensive experiments to demonstrate that TCN achieves strong one-for-all robustness and across-threat transferability. Additional ablation studies further validate the working mechanism and practical advantages of our design (Section 4). Together, these contributions chart a promising path toward adaptive and generalizable robustness in dynamic and diverse threat environments.

References (30)