Tuning for Two Adversaries: Enhancing the Robustness Against Transfer and Query-Based Attacks using Hyperparameter Tuning

Pascal Zimmer, Ghassan Karame
11/17/2025
cs.LGcs.CRcs.CV

No official code found. Best implementation: RUB-InfSec/tuning_for_two_adversaries (1 star, last commit 2026-01-19).

Abstract

In this paper, we present the first detailed analysis of how training hyperparameters -- such as learning rate, weight decay, momentum, and batch size -- influence robustness against both transfer-based and query-based attacks. Supported by theory and experiments, our study spans a variety of practical deployment settings, including centralized training, ensemble learning, and distributed training. We uncover a striking dichotomy: for transfer-based attacks, decreasing the learning rate significantly enhances robustness by up to $64\%$. In contrast, for query-based attacks, increasing the learning rate consistently leads to improved robustness by up to $28\%$ across various settings and data distributions. Leveraging these findings, we explore -- for the first time -- the training hyperparameter space to jointly enhance robustness against both transfer-based and query-based attacks. Our results reveal that distributed models benefit the most from hyperparameter tuning, achieving a remarkable tradeoff by simultaneously mitigating both attack types more effectively than other training setups.

View on arXivView PDF

Code Implementations(1)

Source code for "Tuning for Two Adversaries: Enhancing the Robustness Against Transfer and Query-Based Attacks using Hyperparameter Tuning"

10Shell, PythonNov 10, 20259 months ago

Similar Papers

Cite this paper

@article{zimmer2025tuning,
  title  = {Tuning for Two Adversaries: Enhancing the Robustness Against Transfer and Query-Based Attacks using Hyperparameter Tuning},
  author = {Pascal Zimmer and Ghassan Karame},
  year   = {2025},
  eprint = {2511.13654},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.13654v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.13654.svg)](https://codeofpaper.com/paper/2511.13654)

Discussion