Skip to content

FlashRT: An Efficient Red-Teaming Framework for Prompt Injection and Knowledge Poisoning in Long-Context LLMsFlashRT: Towards Computationally and Memory Efficient Red-Teaming for Prompt Injection and Knowledge Corruption

Paper Tracker· arXiv:2604.28157· Yanting Wang, Chenlong Yin, Ying Chen, Jinyuan JiaThe Pennsylvania State UniversityIndexed by this site · 2026-10-09· Originally publishedTools

Translation in progress — untranslated text is omitted.

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

AI summaryThe researchers propose the FlashRT framework to improve the efficiency of optimization-based prompt injection and knowledge poisoning attacks on long-context LLMs while reducing computation and GPU memory overhead. According to the paper, compared with the SOTA baseline nanoGCG, FlashRT achieves 2x-7x speedup (for example, runtime reduced from one hour to under ten minutes) and 2x-4x GPU memory reduction (for example, 32K token context reduced from 264.1 GB to 65.7 GB). The framework can be broadly applied to black-box optimization methods such as TAP and AutoDAN; the authors hope it can serve as a red-teaming tool to support systematic evaluation of long-context LLM safety. Code has been released.

Questions
Optimization-based prompt injection and knowledge corruption attacks on long-context LLMs incur high compute and memory overhead; the authors believe this hinders systematic evaluation of the safety risks and defense effectiveness of long-context models.
Methods
Proposes FlashRT: during forward evaluation of candidates, selectively recompute some tokens according to attention influence scores to approximate the loss; during backpropagation, randomly subsample the context to approximate the gradient, together with gradient resampling.
Experiments and results
On Llama-3.1-8B, the authors report that FlashRT's ASR is on par with nanoGCG-OPT, with time reduced to about 1/3–1/7 and memory reduced to about 1/2–1/3; it can also red-team Llama-3.1-70B and Meta-SecAlign-70B on 4 H100 GPUs, which the baseline cannot run.
Limitations and future work
The authors state that the technique is designed for prompt injection and knowledge corruption and is not applicable to jailbreak attacks with shorter inputs; the efficiency gain is larger when the injected text is located at the beginning or middle of the context; only the first 50 test samples are used for each dataset.

Related papers

Read originalarxiv.org