Official implementation of our ECCV 2026 paper:
RoME: Robust Mixture of Low-Rank Experts against Multiple Adversarial Perturbations
Woo Jae Kim¹, Kyle Min², Suhyeon Ha¹, Joonsung Jeon¹, Sung-eui Yoon¹
¹KAIST, ²Oracle
Multi-perturbation adversarial training (MAT) seeks robustness against multiple adversarial threats at once, but suffers from robustness trade-offs across threats. RoME routes each threat through a distinct model pathway via a Mixture of Experts, using three components:
- Robust low-rank experts — experts are low-rank additive updates over a shared backbone, so the backbone captures threat-common features while experts learn threat-specific ones.
- Threat-distinguishing dual-scale gating — gating fuses local patch-level and global image-level features to better tell threats apart.
- Threat-guided gating diversification — a regularizer that pushes different threats to distinct expert combinations, avoiding threat-agnostic routing.
conda create -n rome python=3.11 -y
conda activate rome
pip install -r requirements.txtdatasets/
├── cifar-10-batches-py/ # auto-downloaded
├── imagenet_100/{train,val}/ # one folder per class
└── imagenet/{train,val}/ # one folder per class
Override the root with DATA_DIR=/path/to/datasets or --data-dir.
Download from Google Drive
and unpack into checkpoints/:
checkpoints/
├── ViT_CIFAR10/{MAX,RANDOM}_apgd_cifar10.pth
├── ViT_ImageNet100/{MAX,RANDOM}_apgd_imagenet100.pth
└── ViT_ImageNet1K/{MAX,RANDOM}_apgd_imagenet1k.pth
Override the root with CKPT_DIR=/path/to/checkpoints or --ckpt.
./scripts/train_cifar10.sh max # or: random
./scripts/train_imagenet100.sh max
./scripts/train_imagenet1k.sh maxSecond argument is the GPU index. Each script holds the hyper-parameters for its dataset;
per-threat budgets live in utils/config.py. Checkpoints and log_train.txt go to
runs/<strategy>_<dataset>/, and an interrupted run resumes from the latest epoch.
To override anything, call train.py directly:
python train.py --dataset cifar10 --strategy max --data-dir ./datasets
python train.py --helpAutoAttack (standard) under ℓ∞, ℓ2 and ℓ1; reports clean, per-threat, average and union accuracy.
./scripts/eval_final.sh cifar10_max
./scripts/eval_final.sh imagenet100_random
./scripts/eval_final.sh imagenet1k_max 1 # second argument = GPU indexResults are written to logs/<mode>.txt.
python evaluate.py --dataset cifar10 \
--ckpt checkpoints/ViT_CIFAR10/MAX_apgd_cifar10.pth --data-dir ./datasets
python evaluate.py --helptrain.py adversarial training
evaluate.py AutoAttack evaluation
attacks/apgd.py APGD
models/vit.py ViT-B/16 backbone
models/lora_moe_mlp.py LoRA-MoE adapter, MLP gates
models/lora_moe_linear.py LoRA-MoE adapter, linear gates
loss/gate_diversity.py gating diversification loss
data/loaders.py dataset loaders
utils/config.py per-dataset geometry and ε
scripts/ entry points
@inproceedings{kim2026rome,
title = {RoME: Robust Mixture of Low-Rank Experts against Multiple Adversarial Perturbations},
author = {Kim, Woo Jae and Min, Kyle and Ha, Suhyeon and Jeon, Joonsung and Yoon, Sung-eui},
booktitle = {European Conference on Computer Vision (ECCV)},
year = {2026}
}Low-rank experts build on LoRA. We thank the authors of the MAT baselines and evaluation suites whose code and protocols we build upon.