FlashRT speeds up optimization-based prompt injection attacks 2-7× and cuts GPU memory 2-4×
FlashRT provides 2x-7x faster runtime and 2x-4x lower GPU memory usage for optimization-based prompt injection and knowledge corruption attacks on long-context LLMs
Security & privacy arXiv 30 Apr 2026 Method Prototype evidence
Published as “FlashRT: Towards Computationally and Memory Efficient Red-Teaming for Prompt Injection and Knowledge Corruption”
Why it matters
FlashRT makes systematic red-team evaluation of long-context LLMs feasible for academic labs, enabling faster and cheaper discovery of prompt-injection and knowledge-corruption vulnerabilities.
Summary
FlashRT speeds up optimization-based prompt injection and knowledge-corruption attacks on long-context LLMs by 2×-7× and cuts GPU memory use by 2×-4× versus the nanoGCG baseline, while also raising attack success rate by about 10% on NarrativeQA; the evidence comes from direct runtime, memory, and success-rate measurements reported in the paper.
Caveats 2
- Even after reduction, FlashRT still needs 65.7 GB GPU memory for a 32K-token context, which may exceed many academic GPUs (quote: "reducing from 264.1 GB to 65.7 GB GPU memory for a 32K token context").
- The attack success rate improvement is modest (10%) despite the large efficiency gains (quote: "FlashRT increases the attack success rate by 10%, while reducing memory usage from 164.8 GB to 53.7 GB and computation time from 2736.9 s to 1039.5 s.")
What’s new here 4
- Selective recomputation of only a subset of context tokens based on attention-derived influence scores
- Approximate gradient computation to lower backward-pass memory requirements
- A unified framework that can accelerate both white-box (e.g., GCG) and black-box (e.g., TAP, AutoDAN) red-teamers
- Compatibility with existing GCG variants and other best-practice tricks