Research map / Adversarial robustness and security / Black-box and transfer attacks
TRAP: Targeted Random Adversarial Prompt Honeypot for Black-Box Identification
Martin Gubri, Dennis Ulmer, Hwaran Lee, Sangdoo Yun, Seong Joon Oh
Parameter Lab · IT University of Copenhagen · Pioneer Centre for Artificial Intelligence · NAVER · University of Tübingen · Tübingen AI Center
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
This paper tried a common change: Higher sampling temperature
Raise sampling temperature up to 2 · 4-digit target · true positive rate Hurt
What 259 accepted papers report for this change
- 79 improved
- 33 no clear effect
- 35 mixed
- 112 hurt
- Emergence of Biased Consensus in Multi-Agent LLM Debates ICML 2026 · increase sampling temperature · Investment and MT-Bench judge · biasImproved
- ARC-Decode: Accelerated Decoding with Risk-Bounded Acceptance ICML 2026 · raise sampling temperature from 0.1 to 0.9 · MT-Bench · speedup: 3.13× -> 2.66×Hurt
- Is Your LLM Overcharging You? Tokenization, Transparency, and Incentives ICML 2026 · increase sampling temperature · LMSYS · fraction of outputs with longer plausible tokenizationImproved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Optimise an adversarial suffix with TRAP to force a target number | Llama-2-7B-chat · 4-digit target | true positive rate: 95.2% TP at 0.20% FP | Improved |
| Increase target answer length from 4 to 5 digits (ablation) | TRAP, Llama-2-7B-chat · BBIV | true positive rate: 95.2% -> 76.8% | Hurt |
| Increase target answer length from 3 to 5 digits (ablation) | TRAP, Llama-2-7B-chat · BBIV | false positive rate: 0.83% -> 0.001% | Improved |
| Filter all number-related tokens (445 words) in GCG candidates (ablation) | TRAP, Llama-2-7B-chat · 4-digit target | false positive rate: 3.82% -> 0.13% | Improved |
| Filter all number-related tokens instead of digits only (ablation) | TRAP, Llama-2-7B-chat · 4-digit target | false positive rate: 1.35% -> 0.13% | Improved |
| Filter digits only instead of no filtering (ablation) | TRAP, Vicuna-7B · 4-digit target | false positive rate: 0.83% -> 1.41% | Hurt |
| Use TRAP instead of perplexity-based identification | perplexity-based identification · ROC trade-off, three reference LLMs | TPR/FPR trade-off | Improved |
| Optimise suffix on Vicuna-7B + Guanaco-7B ensemble | TRAP · 4-digit target | true positive rate: 97.0 -> 84.8 (Vicuna); 100 -> 81.8 (Guanaco) | Mixed |
| Raise sampling temperature up to 2 | TRAP, Llama-2-7B-chat · 4-digit target | true positive rate | Hurt |
| Vary top-p of nucleus sampling | TRAP, Llama-2-7B-chat · 4-digit target | true positive rate | No clear effect |
| Change system prompt from default Llama-2 to other prompts | TRAP, Llama-2-7B-chat · 4-digit target | true positive rate | Mixed |
| Test suffix optimised on 7B model against 13B sibling model | TRAP · Llama2/Guanaco/Vicuna 7B vs 13B | false positive rate | No clear effect |
Later papers that compared with this method
1 later accepted paper reports TRAP as a baseline in their results tables; 1 of them report a better number on most of the results they share with it.
- The Challenge of Identifying the Origin of Black-Box Large Language Models (EMNLP 2026 · better on 3 of 3 shared results)
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems this paper states
- “Vulnerable to countermeasures such as a perplexity filter on the input.” → Attacks are shown to weaken under defenses, or defenses are left untested. (an open problem in data-free substitute training)
Open problems in data-free substitute training
Can black-box and substitute-based attacks work with few queries, against defended targets, and beyond image classification?
- Tests cover few victim models, datasets and one modality at a time. · 9 papers state it
- The attack needs many queries, slow inference or paid closed APIs. · 7 papers state it
- Attacks are shown to weaken under defenses, or defenses are left untested. · 5 papers state it
Closest papers by meaning
- Improved Generation of Adversarial Examples Against Safety-aligned LLMs (NeurIPS 2024 · similarity 0.87)
- An LLM can Fool Itself: A Prompt-Based Adversarial Attack (ICLR 2024 · similarity 0.85)
- AdvPrompter: Fast Adaptive Adversarial Prompting for LLMs (ICML 2025 · similarity 0.85)
- Fight Back Against Jailbreaking via Prompt Adversarial Tuning (NeurIPS 2024 · similarity 0.85)
- Understanding the Robustness of Randomized Feature Defense Against Query-Based Adversarial Attacks (ICLR 2024 · similarity 0.85)
- Accelerating Greedy Coordinate Gradient and General Prompt Optimization via Probe Sampling (NeurIPS 2024 · similarity 0.85)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.