Adversarial Testing in LLMs: Insights into Decision-Making Vulnerabilities
Lili Zhang, Haomiaomiao Wang, Long Cheng, Libao Deng, Tomas Ward
TL;DR
The paper proposes an adversarial evaluation framework to diagnose LLM decision-making vulnerabilities by modeling LLMs as learners manipulated by a reinforcement-learning adversary. It implements a learner model as an RNN that predicts next actions from past actions, rewards, and observations, and trains an adversary via Deep Q-learning to perturb the environment. The framework is applied to two canonical tasks—the two-armed bandit and the Multi-Round Trust Task—across GPT-3.5, GPT-4, Gemini-1.5, and DeepSeek-V3, revealing model-specific patterns of exploitation, rigidity, and adaptability. The findings illustrate how adversarial strategies can steer decisions, underscore the importance of fairness recognition and flexible strategy use, and position the framework as a diagnostic tool for AI safety and alignment research.
Abstract
As Large Language Models (LLMs) become increasingly integrated into real-world decision-making systems, understanding their behavioural vulnerabilities remains a critical challenge for AI safety and alignment. While existing evaluation metrics focus primarily on reasoning accuracy or factual correctness, they often overlook whether LLMs are robust to adversarial manipulation or capable of using adaptive strategy in dynamic environments. This paper introduces an adversarial evaluation framework designed to systematically stress-test the decision-making processes of LLMs under interactive and adversarial conditions. Drawing on methodologies from cognitive psychology and game theory, our framework probes how models respond in two canonical tasks: the two-armed bandit task and the Multi-Round Trust Task. These tasks capture key aspects of exploration-exploitation trade-offs, social cooperation, and strategic flexibility. We apply this framework to several state-of-the-art LLMs, including GPT-3.5, GPT-4, Gemini-1.5, and DeepSeek-V3, revealing model-specific susceptibilities to manipulation and rigidity in strategy adaptation. Our findings highlight distinct behavioral patterns across models and emphasize the importance of adaptability and fairness recognition for trustworthy AI deployment. Rather than offering a performance benchmark, this work proposes a methodology for diagnosing decision-making weaknesses in LLM-based agents, providing actionable insights for alignment and safety research.
