Robust Experts: the Effect of Adversarial Training on CNNs with Sparse Mixture-of-Experts Layers

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Pavlitska, Svetlana, Fan, Haixi, Ditschuneit, Konstantin, Zöllner, J. Marius
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915481468796928
author Pavlitska, Svetlana
Fan, Haixi
Ditschuneit, Konstantin
Zöllner, J. Marius
author_facet Pavlitska, Svetlana
Fan, Haixi
Ditschuneit, Konstantin
Zöllner, J. Marius
contents Robustifying convolutional neural networks (CNNs) against adversarial attacks remains challenging and often requires resource-intensive countermeasures. We explore the use of sparse mixture-of-experts (MoE) layers to improve robustness by replacing selected residual blocks or convolutional layers, thereby increasing model capacity without additional inference cost. On ResNet architectures trained on CIFAR-100, we find that inserting a single MoE layer in the deeper stages leads to consistent improvements in robustness under PGD and AutoPGD attacks when combined with adversarial training. Furthermore, we discover that when switch loss is used for balancing, it causes routing to collapse onto a small set of overused experts, thereby concentrating adversarial training on these paths and inadvertently making them more robust. As a result, some individual experts outperform the gated MoE model in robustness, suggesting that robust subpaths emerge through specialization. Our code is available at https://github.com/KASTEL-MobilityLab/robust-sparse-moes.
format Preprint
id arxiv_https___arxiv_org_abs_2509_05086
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Robust Experts: the Effect of Adversarial Training on CNNs with Sparse Mixture-of-Experts Layers
Pavlitska, Svetlana
Fan, Haixi
Ditschuneit, Konstantin
Zöllner, J. Marius
Computer Vision and Pattern Recognition
Machine Learning
Robustifying convolutional neural networks (CNNs) against adversarial attacks remains challenging and often requires resource-intensive countermeasures. We explore the use of sparse mixture-of-experts (MoE) layers to improve robustness by replacing selected residual blocks or convolutional layers, thereby increasing model capacity without additional inference cost. On ResNet architectures trained on CIFAR-100, we find that inserting a single MoE layer in the deeper stages leads to consistent improvements in robustness under PGD and AutoPGD attacks when combined with adversarial training. Furthermore, we discover that when switch loss is used for balancing, it causes routing to collapse onto a small set of overused experts, thereby concentrating adversarial training on these paths and inadvertently making them more robust. As a result, some individual experts outperform the gated MoE model in robustness, suggesting that robust subpaths emerge through specialization. Our code is available at https://github.com/KASTEL-MobilityLab/robust-sparse-moes.
title Robust Experts: the Effect of Adversarial Training on CNNs with Sparse Mixture-of-Experts Layers
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2509.05086