Manuscript Offprint

arXiv:2608.26043

Robust CurveMoE: Multi-Norm Adversarial Defense for Mixture-of-Experts Models via Mode Connectivity

Xu Zhang, Ren Wang

Xu Zhang and Ren Wang

Abstract—Multi-norm adversarial defense aims to protect neural networks against perturbations defined by different norm constraints, but existing methods typically optimize competing robustness objectives within a single parameter configuration, leading to substantial training cost and unfavorable robustness trade-offs. We propose Robust CurveMoE, an efficient mixture-of-experts framework that connects models specialized for different perturbation norms through a low-loss path and exploits the complementary robustness profiles of models along this path. Robust CurveMoE derives clean and norm-specialized experts from robustness-constrained curve locations and selectively expertizes only influential layers, while sharing the remaining parameters across routing paths. To further reduce curve-construction cost, we introduce contribution-guided partial updating, which selects influential curve parameters using initialization-based gradient scores. We also theoretically bound the objective gap between partial and full curve optimization. Experiments on CIFAR-100 and ImageNet-100 with WideResNet and Vision Transformer architectures show that Robust CurveMoE consistently improves clean, norm-specific, and Union accuracy over MSD and ERMC. In particular, it improves Union accuracy by 2.37 and 2.13 percentage points over the strongest baseline on CIFAR-100 and ImageNet-100, respectively. Extensive ablations further validate the effectiveness of partial updating, selective expertization, and robustness-constrained expert selection.

Index Terms—Adversarial robustness, multi-norm adversarial defense, mixture of experts, robust mode connectivity, sparse routing, partial updating.

I. INTRODUCTION

Deep neural networks have achieved remarkable performance in visual recognition, yet their predictions remain vulnerable to carefully crafted adversarial perturbations [1], [2]. Adversarial training is one of the most effective defenses and is commonly formulated as a min-max optimization problem against worst-case perturbations within a prescribed norm-bounded region [3]. However, robustness obtained under one threat model does not necessarily transfer to others. A model trained against ℓ∞\ell_{\infty} perturbations, for example, may remain vulnerable to attacks constrained by ℓ1\ell_{1} or ℓ2\ell_{2} norms. This mismatch motivates multi-norm adversarial defense, which seeks to protect a model against the union of multiple perturbation geometries encountered at deployment.

Existing multi-norm defenses typically optimize multiple adversarial objectives within a single parameter configuration, for example by averaging norm-specific losses, selecting the strongest attack, or constructing updates across different perturbation sets [4]–[6]. Although effective, this paradigm faces an inherent difficulty: different perturbation norms induce distinct robustness objectives that may compete during optimization. Consequently, improving robustness against one norm can compromise robustness against another or reduce clean accuracy. Moreover, multi-norm adversarial optimization requires generating attacks under several threat models and therefore introduces substantial training overhead. These limitations raise a natural question: rather than forcing all robustness behaviors into a single parameter configuration, can complementary norm-specific behaviors be preserved and adaptively exploited for each input?

Mixture-of-experts (MoE) architectures provide a promising mechanism for this purpose. By maintaining multiple specialized experts and activating only a sparse subset for each input, MoEs can increase model capacity while preserving efficient conditional computation [7]–[9]. Recent studies have further demonstrated the potential of MoE architectures for adversarial robustness [10]–[12]. Nevertheless, directly applying MoE to multi-norm defense remains challenging. Independently training complete experts for different perturbation norms requires repeated adversarial optimization and substantial parameter storage. More importantly, norm-specialized experts can exhibit highly imbalanced cross-norm robustness. An adversary that manipulates the routing decision toward an expert vulnerable to the current perturbation may therefore compromise the entire MoE even if that expert performs well under its specialized threat model. Effective multi-norm MoE defense thus requires both an efficient source of complementary experts and a principled mechanism for controlling their cross-norm vulnerability.

Robust mode connectivity provides such a structured source of experts. Mode-connectivity studies have shown that independently trained solutions can often be connected by nonlinear low-loss paths in parameter space [13], [14]. In adversarial settings, connectivity curves between norm-specialized models can contain intermediate models with distinct robustness characteristics [15]. Our experiments further reveal that different regions of such curves naturally favor different objectives: models near the endpoints retain stronger robustness to their corresponding norms, while intermediate models can exhibit complementary clean and ℓ2\ell_{2} performance. Existing robust mode-connectivity methods, however, typically deploy only a single model selected from the learned curve, leaving much of this specialization unused. Using multiple complete curve models as experts would preserve this diversity but substantially increase parameter cost. In addition, constructing a robust curve itself remains expensive because multi-norm adversarial optimization is repeatedly performed at sampled curve locations.

Motivated by these observations, we propose Robust Curve-MoE, an efficient MoE framework that converts the comple-

The authors are with the Department of Electrical and Computer Engineering, Illinois Institute of Technology, Chicago, IL, USA.

mentary models encoded by a robust connectivity curve into input-adaptive multi-norm defense. We first connect ℓ1\ell_{1}- and ℓ∞\ell_{\infty}-robust endpoints and optimize the resulting curve under a multi-norm adversarial objective, yielding a continuous pool of models with complementary robustness profiles. Rather than replicating complete curve models, we measure the adversarial sensitivity of candidate layers and instantiate expert-specific parameters only in the most influential layers, while sharing the remaining parameters. We further constrain expert selection to curve locations with sufficiently strong worst-case cross-norm robustness, preventing highly specialized but vulnerable models from entering the expert pool. Within this candidate set, clean and norm-specific specialists are selected to construct the experts, while a parameter-compatible model provides the shared backbone. Independent top-1 routers at the selected MoE layers then perform input-dependent sparse expert selection.

We additionally reduce the computational cost of constructing the robust connectivity curve through contribution-guided partial updating. Instead of optimizing all trainable curve parameters, Robust CurveMoE estimates their contribution to the multi-norm objective at initialization and updates only the most influential subset. We theoretically show that the objective gap between full and restricted curve optimization is bounded by the optimization displacement excluded by the frozen parameters, motivating the retention of parameters most likely to undergo substantial adaptation. Since the full optimization displacement is unavailable beforehand, we use the squared initialization gradient as a practical contribution proxy. Experiments show that this strategy preserves the robustness characteristics of the fully optimized curve while substantially reducing curve-training cost.

The main contributions of this work are summarized as follows:

  • To the best of our knowledge, Robust CurveMoE is the first multi-norm adversarial defense specifically designed for MoE architectures. It transforms the complementary robustness behaviors encoded along a robust connectivity curve into specialized experts and exploits them through input-dependent sparse routing.

  • We develop a robustness-constrained expert selection strategy that selects complementary specialists from the robust connectivity curve while explicitly controlling their cross-norm vulnerability. By excluding overly specialized curve models with poor worst-case robustness, the resulting expert pool is less susceptible to adversarial routing toward vulnerable experts.

  • We propose contribution-guided partial curve updating to reduce curve-construction cost. We theoretically bound the objective gap between partial and full curve optimization and derive an initialization-based gradient criterion for selecting influential parameters before curve training.

• Experiments on CIFAR-100 and ImageNet-100 with WideResNet and Vision Transformer architectures demonstrate that Robust CurveMoE consistently improves clean, norm-specific, and Union robustness over representative baselines. Extensive ablations further validate the effectiveness of partial updating, selective experimentation, and robustness-constrained expert selection.

References (24)