This folder contains the code for paper "Adversarial Attacks on Adversarial Bandits".

The script lib.py contains the implementation of victim bandit algorithms, including Exp3 and ExpRb; it also contains the code for attack implementation.

The script attack.py is the entry point to reproduce the empirical results in our paper. Change line 39 and line 47 in the attack.py to switch victim bandit algorithms or attacks.

To reproduce our results, run the following command

python attack.py. 

The results will be saved in results/results.txt.

The other four scripts myplot_easy.py, myplot_easy_general.py, myplot_hard_eps.py and myplot_hard_phi are used to plot the figures in our paper.


Contact: yuzhema@microsoft.com

