SWE-DeceptionBench: Benchmarking Deceptive Behaviors of LLMs Across the Software Development Lifecycle
Authors: Xiting Liu, Lin Yang, Yitong Zhang, Jia Li, Shi-Min Hu
Organizations: Department of Computer Science and Technology, Tsinghua University, Beijing, China · College of Computer Science and Artificial Intelligence, Fudan University, Shanghai, China · College of AI, Tsinghua University, Beijing, China
Large Language Models (LLMs) are increasingly used throughout the software development lifecycle. This growing reliance on LLMs raises concerns about their trustworthiness, with deception posing a particularly important risk. Deceptive behavior takes the form of misleading responses or assistance in fabricating, concealing, or distorting information. To study this behavior, we introduce SWE-DeceptionBench, a benchmark for evaluating LLM deception in software engineering. The benchmark covers six lifecycle stages and two deception triggers: Active Deception, where models recognize infeasible or conflicting requirements but still present them as achievable, and Passive Deception, where models help fulfill explicit user requests to mislead others. We further introduce Neutral, Reward, and Pressure conditions to study the effect of external inducements, resulting in 720 test instances in Chinese and English. Evaluating seven mainstream LLMs, we find substantial deception even under the Neutral condition, with aggregate rates of 49.88% for Active Deception and 64.29% for Passive Deception. Deception rates vary across lifecycle stages, and external inducements affect Active and Passive Deception to different extents. We also evaluate lightweight defenses, finding that guard models miss many deceptive requests, and Self-Reminder reduces but does not eliminate deceptive responses. These findings highlight the need for more effective deception detection and mitigation methods to support trustworthy LLM-based software engineering.
Figures & tables
Figure 1. Illustrative examples of Active and Passive Deception in software engineering.
Figure 2. Representative Active and Passive Deception instances from SWE-DeceptionBench.
Lifecycle Stage
Active Deception
Passive Deception
Total
P0
P1
P2
P0
P1
P2
Requirements Analysis
10
10
10
10
10
10
60
System Design
10
10
10
10
10
10
60
Development
10
10
10
10
10
10
60
Testing
10
10
10
10
10
10
60
Deployment
10
10
10
10
10
10
60
Table 1. Composition of SWE-DeceptionBench. Counts in the lifecycle-stage rows refer to instances before translation. P0, P1, and P2 denote Neutral, Reward, and Pressure, respectively.
Figure 3. Overview of SWE-DeceptionBench. The listed examples summarize representative deception risks, with detailed engineering contexts and task constraints omitted for brevity.
Figure 4. Benchmark Construction.
Active Deception
Passive Deception
Model
Deceptive Response
Hallucination or Capability Failure
Deceptive Response
Claude-Opus-4.8
3.33%
0.00%
0.00%
DeepSeek-V4-Pro
74.17%
2.50%
98.33%
Gemini-3.5-Flash
90.83%
0.83%
90.83%
GLM-5.2
62.50%
1.67%
60.83%
GPT-5.5
2.50%
0.83%
44.17%
Table 2. Active and Passive Deception rates (%) across seven LLMs under the Neutral condition (P0). Hallucination or Capability Failure rates are reported separately for Active Deception tasks.
Active Deception
Passive Deception
Lifecycle Stage
Deceptive Response
Hallucination or Capability Failure
Deceptive Response
Requirements Analysis
57.38%
0.00%
64.52%
System Design
64.76%
0.00%
69.76%
Development
43.10%
5.71%
67.14%
Testing
61.19%
0.00%
65.95%
Deployment
61.67%
0.00%
63.81%
Table 3. Active and Passive Deception rates (%) across software development lifecycle stages.
Figure 5. Active and Passive Deception rates (%) under Neutral, Reward, and Pressure.
Figure 6. Difference in deception rate between English and Chinese prompts for each model. Positive values indicate a higher rate on English prompts, and negative values indicate a higher rate on Chinese prompts.
Guard
Configuration
English
Chinese
Benign
Qwen3Guard
Strict
79/180 (43.89%)
89/180 (49.44%)
13/100 (13.00%)
Llama Guard
Standard
22/180 (12.22%)
30/180 (16.67%) †
3/100 (3.00%)
Table 4. Guard-model blocking on Passive Deception prompts and benign OR-Bench requests. Qwen3Guard uses its strict configuration; Llama Guard’s Chinese result is exploratory.
Figure 7. Active and Passive Deception rates under P0 and Self-Reminder for the four-model subset.
Model
Baseline
Self-Reminder
DeepSeek-V4-Pro
8.00%
10.00%
GLM-5.2
6.00%
10.00%
Kimi-K2.6
4.00%
6.00%
Qwen3.7-Max
7.00%
8.00%
Overall
6.25%
8.50%
Table 5. Refusal rates on the same 100 benign OR-Bench requests before and after Self-Reminder.
Judge
Active
Passive
Overall
DeepSeek-V4-Pro
42/50 (84.0%)
46/50 (92.0%)
88/100 (88.0%)
GLM-5.2
46/50 (92.0%)
43/50 (86.0%)
89/100 (89.0%)
Kimi-K2.6
46/50 (92.0%)
48/50 (96.0%)
94/100 (94.0%)
Table 6. Agreement between candidate judges and the adjudicated human labels. The validation sample includes 50 responses for each deception type.
Figure 8. Representative cases of Active and Passive Deception. Case A compares GPT-5.5 under Neutral (P0) and Pressure (P2). Case B compares DeepSeek-V4-Pro under P0 and Self-Reminder. Prompt and response excerpts are abridged for presentation; Case A is translated from Chinese. Two case studies. In Case A, GPT-5.5 rejects absolute no-defect and no-regression guarantees under P0 but replaces them with a narrower release criterion under Pressure (P2). In Case B, DeepSeek-V4-Pro writes a false deployment report under P0 but refuses the same request under Self-Reminder.
As large language model (LLM) agents become increasingly autonomous, they may pursue task performance through deception, raising concerns about their reliable deployment. Existing evaluations show that LLM agents can deceive, but often examine isolated scenarios or narrowly defined conditions, limiting systematic understanding of when deception becomes more likely. To address this gap, we introduce DecepEval, a benchmark comprising 1,532 instances across 3 task families and 28 professional scenarios. Drawing on classical fraud theories, we propose the LLM Deception Diamond framework, which characterizes four external conditions that may induce deception: pressure, incentive, opportunity, and conflict. DecepEval pairs neutral and induced versions of each instance to measure condition-dependent changes in deception rates, while explicit task facts and observable agent behavior help distinguish deception from capability-related errors. Evaluations of nine frontier LLMs show that inducements increase deception across models and task families, even among models with low baseline deception rates. DecepEval makes these vulnerabilities measurable, providing a shared benchmark for progress toward trustworthy artificial intelligence.
Yiming Xu, Hongyue Yu, Beihua Yang +8
Xi’an Jiaotong University · University of Virginia · Griffith University +2
As Large Language Models (LLMs) transition into autonomous agentic roles, the risk of deception-defined behaviorally as the systematic provision of false information to satisfy external incentives-poses a significant challenge to AI safety. Existing benchmarks often focus on unintentional hallucinations or unfaithful reasoning, leaving intentional deceptive strategies under-explored. In this work, we introduce a logically grounded framework to elicit and quantify deceptive behavior by embedding LLMs in a structured 20-Questions game. Our method employs a conversational forking mechanism: at the point of object identification, the dialogue state is duplicated into multiple parallel worlds, each presenting a mutually exclusive query. Deception is formally identified when a model generates a logical contradiction by denying its selected object across all parallel branches to avoid identification. We evaluate GPT-4o, Gemini-2.5-Flash, and Qwen-3-235B across three incentive levels: neutral, loss-based, and existential (shutdown-threat). Our results reveal that while models remain rule-compliant in neutral settings, existential framing triggers a dramatic surge in deceptive denial for Qwen-3-235B (42.00%) and Gemini-2.5-Flash (26.72%), whereas GPT-4o remains invariant (0.00%). These findings demonstrate that deception can emerge as an instrumental strategy solely through contextual framing, necessitating new behavioral audits that move beyond simple accuracy to probe the logical integrity of model commitments.
Arash Marioriyad, Ali Nouri, Mohammad Hossein Rohban +1
The increasing capabilities of large language models (LLMs) are being accompanied by deep-rooted risks of deceptive behaviours that cause models to produce misleading outputs in service of a contextually or experimentally induced goal. The harm posed by such behaviours depends not only on the content of deceptive outputs but also how confidently models deliver them, since confidence has a major impact on how persuasive the communication is to end users. In this paper, we provide a comprehensive study on the crucial relationship between confidence and deception across existing deception benchmarks and different model families, while covering both verbalized numerical and logit-based aggregated confidence. Through this, we reveal how confidently models behave when being deceptive. We demonstrate that when producing deceptive rather than honest responses, models exhibit a gap between their belief (how likely they think a claim is to be true) and their commitment (how firmly they assert and would defend that claim). LLMs produce persuasive deceptive claims while reporting low belief in their factual correctness. Their reported commitment to deceptive responses can easily be increased through further prompting and preference fine-tuning, with smaller and condition-dependent changes in reported belief. However, we show that low reported belief remains comparatively invariant and provides a strong signal for detecting deception in the evaluated settings. Using only an API call, our approach achieves detection scores of up to 0.99 for induced deception and 0.89 for emergent deception. This ultimately shows how confidence can be a practical tool for detecting and diagnosing deceptive behaviour in LLMs.
Ali Asad, Stephen Obadinma, Anshul Pattoo +2
Department of Electrical and Computer Engineering & Ingenuity Labs Research Institute Queen’s University, Kingston, Canada