TL;DR
Researchers have developed Disco (Diversity Induced Stochastic Obfuscation), a defense that thwarts black-box adversarial attacks by randomly switching between a set of diverse, high-performing models for every query. By breaking the attacker's assumption of a "fixed" target, this method significantly increases the computational cost for an attacker to find a successful perturbation while maintaining high accuracy for legitimate users.
What Problem Does This Paper Address?
In the world of Machine Learning as a Service (MLaaS), models are often "black boxes." You send an image to an API, and it sends back a prediction or a confidence score. Attackers exploit this by sending thousands of slightly different queries to "probe" the model’s decision boundaries. By analyzing how the outputs change, they can estimate the model's gradients and craft "adversarial examples"—inputs that look normal to humans but cause the AI to fail catastrophically.
Existing defenses usually try to hide this information by adding random noise to the input or the internal features. However, these methods often hurt the model's accuracy on clean data or can be bypassed by sophisticated attackers who simply average out the noise. The authors of this paper identify a fundamental vulnerability: attackers rely on the model parameters being fixed between queries. If the target keeps changing, the attacker's "map" of the decision boundary becomes a useless, blurry mess.
Methods
The authors propose a framework called Disco. Its core strategy is "function-space randomization." Instead of one model, they train an ensemble of models that are intentionally "pushed apart" to be as diverse as possible while remaining accurate.
- Stein Variational Gradient Descent (SVGD): They use this Bayesian technique to ensure the models in their set are diverse in their parameter space. This ensures that each model "sees" the decision boundary slightly differently.
- The "Sample Loss" Objective: A common problem with training ensembles is "model collapse," where the group is smart but individual models are weak. The authors introduced a new joint training objective that forces every individual model to be high-performing on its own.
- Randomized Response: For every incoming query, the system randomly selects a subset of models (e.g., 5 out of 10) and averages their outputs. Because the subset changes with every query, the relationship between successive responses is obfuscated.
- Efficiency via LoRA: To make this practical for massive models like OpenCLIP, they use Low-Rank Adaptation (LoRA). This allows them to create a diverse "model set" with less than a 1% increase in trainable parameters and storage.
Datasets
The team evaluated Disco across a wide range of benchmarks to prove its versatility:
- MNIST: Handwritten digits (standard baseline).
- CIFAR-10 & STL-10: Small to mid-sized image datasets.
- ImageNet: The gold standard for large-scale computer vision, tested using the OpenCLIP architecture.
Key Insights and Ideas
- The "Moving Target" Advantage: The most important "aha" moment is that diversity acts as a query-complexity multiplier. Their theoretical analysis (Proposition 3.1) proves that as model diversity increases, the number of queries an attacker needs to get a reliable gradient estimate grows significantly.
- Parameter Space vs. Input Space: Most defenses mess with the image (input) or the math (noise). Disco messes with the identity of the model itself. This is much harder for an attacker to circumvent because there is no single "true" gradient to find.
- Individual Excellence Matters: They discovered that simply having a diverse ensemble isn't enough for a defense. If you randomly pick a "dumb" model from the set, the defense fails. Their "Sample Loss" ensures that no matter which model is picked, the user gets a high-quality answer, but the attacker gets confusing data.
Key Results
Disco was tested against 7 state-of-the-art black-box attacks and consistently outperformed existing defenses like Random Noise Defense (RND) and Randomize Features (RF).
- Robustness Boost: On ImageNet with OpenCLIP, Disco achieved a 9.6% increase in robustness over the next best defense method.
- Clean Accuracy: Unlike many defenses that significantly degrade performance, Disco actually improved clean accuracy in some cases (e.g., a +0.87% boost on CIFAR-10) because the underlying ensemble acts as a powerful regularizer.
- Adaptive Attack Resistance: Even when the researchers gave the "attacker" knowledge of the defense (Adaptive EOT attacks), Disco remained more resilient than noise-based alternatives, forcing the attacker to use 10x more queries to achieve similar success.
Limitations and Future Work
While the use of LoRA makes the storage overhead marginal, the computational cost is still a factor. Running multiple models (even small adapters) sequentially increases latency. While this can be mitigated by parallelizing the models on a GPU, it still requires more hardware resources than a single model.
The authors also acknowledge that while they've blocked current query-based attacks, the "arms race" continues. Future work will likely explore whether even more sophisticated adaptive attacks—perhaps using Integer Linear Programming (ILP) to "unmask" the individual models—could eventually find a way through the Disco defense. For now, however, Disco provides a practical and theoretically grounded shield for MLaaS providers.
Summary updated