NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Theoretical Corrections and the Leveraging of Reinforcement Learning to Enhance Triangle Attack

Nicole Meng, Caleb Manicke, David Chen, Yingjie Lao, Caiwen Ding, Pengyu Hong, Kaleel MahmoodarXiv 2024 · DOI

Abstract

Decision-based black-box adversarial attacks are critical for evaluating model robustness in realistic scenarios where internal model parameters are unknown. This paper identifies a theoretical flaw in the state-of-the-art "Triangle Attack" (TA) regarding its heuristic update rule for search angles. We propose Triangle Attack with Reinforcement Learning (TARL), which replaces rigid geometric heuristics with a Q-learning agent that adaptively optimizes search parameters. Our results demonstrate that TARL achieves comparable or superior attack success rates while reducing the required number of model queries by 50%, significantly enhancing the efficiency of black-box evaluations.

Introduction

In adversarial machine learning, decision-based black-box attacks represent a highly realistic threat model. In this setting, an attacker only has access to the final predicted label of a model, necessitating repeated queries to map the decision boundary. The Triangle Attack (TA) has emerged as a leading method by optimizing perturbations in a 2D frequency subspace using geometric properties—specifically, forming triangles between the original image, the current adversarial example, and a candidate example.

However, TA relies on a hardcoded heuristic to update the search angle ($\alpha$). The authors of this work demonstrate that TA's underlying assumption—that decreasing $\alpha$ always facilitates finding an adversarial example—is theoretically flawed. As shown in Figure 1, modern neural networks possess highly non-linear and complex decision boundaries. In these scenarios, a rigid update rule can lead the algorithm in suboptimal directions, wasting queries or failing to converge.

Figure 1: Illustration of how different decision boundary geometries (wavy vs. convex) affect the search path and the validity of fixed geometric heuristics.

Methodology: From Heuristics to Reinforcement Learning

To address these limitations, we introduce TARL (Triangle Attack with Reinforcement Learning). TARL maintains the core strengths of the original TA, such as operating in a 2D low-frequency subspace via Discrete Cosine Transform (DCT) and using binary search for initial adversarial examples.

The key innovation lies in replacing the flawed $\alpha$ update rule with a Q-learning agent. As the attack progresses, the agent records historical data, including tried $\alpha$ values, resulting $L_2$ perturbation distances, and success indicators. Using an $\epsilon$-greedy strategy, the agent learns the unique geometric characteristics of the target model's decision boundary and adaptively suggests the optimal $\alpha$ for subsequent iterations.

Figure 2: The geometric foundation of the Triangle Attack, showing the relationship between the benign image $x$, adversarial examples $x^{adv}$, and the search angles $\alpha$ and $\beta$.

Experimental Evaluation

We evaluated TARL across ImageNet (using a robust set of 1,000 class-wise balanced images) and CIFAR-10.

Key Results

  • Query Efficiency: TARL operates on a strict 500-query budget, exactly half of the 1,000-query budget typically required by TA and other baselines like SignOPT, HSJA, and GeoDA.
  • Superior Performance at Scale: Despite the reduced budget, TARL outperformed all baseline methods on 3 out of 5 ImageNet models. When the perturbation limit was relaxed (RMSE $C=0.5$), TARL outperformed the original TA on every ImageNet model tested, with an average Attack Success Rate (ASR) increase of +0.62%.
  • Robustness Against Defenses: On CIFAR-10, TARL successfully bypassed state-of-the-art Diffusion Model Adversarial Training, achieving a 99.8% ASR.

Discussion and Limitations

While TARL offers significant efficiency gains, it faces challenges under extremely tight perturbation constraints (e.g., RMSE $C=0.01$), where the original TA maintains a slight edge. Furthermore, both TA and TARL show decreased effectiveness against attention-based architectures like Vision Transformers (ViT-L) compared to standard CNNs. This suggests that the decision boundaries of attention models possess unique properties that future decision-based attacks must specifically address.

Conclusion

By replacing flawed geometric heuristics with an adaptive Reinforcement Learning policy, TARL demonstrates that learning-based approaches can significantly improve the efficiency of black-box adversarial attacks. The 50% reduction in query volume makes TARL a more practical tool for evaluating the robustness of production-level machine learning systems.

Summary updated

BibTeX
@misc{meng2024theoretical,
  author = {Nicole Meng and Caleb Manicke and David Chen and Yingjie Lao and Caiwen Ding and Pengyu Hong and Kaleel Mahmood},
  title = {{Theoretical Corrections and the Leveraging of Reinforcement Learning to Enhance Triangle Attack}},
  year = {2024},
  eprint = {2411.12071},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.12071},
}
Figure