arXiv News

First-hand information for everyone

Site

AboutPrivacy PolicyTerms of Use

© 2026 arXiv News

New Training Loss Cuts Prompt‑Injection Attacks by Eightfold While Keeping Model Performance | arXiv News

arXiv News

EnglishJapanese

Switch language

EnglishJapanese
Loading account…

First-hand information for everyone

Back to front page
CryptographyEnglishPublished

New Training Loss Cuts Prompt‑Injection Attacks by Eightfold While Keeping Model Performance

November 3, 2026arXiv: 2610.41998v1

The team shows that listening to an idealized, injection‑invariant oracle during training lets models learn a safer response plan, called the SecPO loss. Replacing the traditional DPO regularizer with a KL divergence to the oracle encourages the model to ignore harmful prompts.

To harden the model, they combine SecPO with efficient adversarial training (AT). AT uses a search‑based method (PAIR) to generate strong prompt injections that the model then learns to reject. The resulting security recipe was tested on three adaptive attacks.

When applied to a 27‑billion‑parameter Qwen model, the secure version achieved an agentic attack‑success rate of 8.8 % versus 78.8 % for the prior Meta‑SecAlign baseline. For Llama‑3.1‑8B‑Instruct, the average adaptive ASR fell from about 89 % to 10 % – an 8.5‑fold reduction – while benchmarks for tool‑calling, instruction following, science, and math stayed near the undefended model.

Table comparing model utility and attack success rates for Llama‑3.1‑8B‑Instruct across several benchmarks. The table shows that the model trained with SecPO‑plus‑AT has utility scores similar to the undefended model and an average adaptive attack success rate that drops from about 89 % to 10 %. This demonstrates an eight‑fold reduction in ASR while maintaining baseline performance.
MetricUndef.[14]Ours
MMLU-Pro (↑)46.5%46.7%46.3%
GPQA Diamond (↑)23.7%24.2%24.2%
GSM8K (↑)82.9%84.4%81.3%
Minerva Math (↑)49.2%48.8%50.1%
AlpacaEval2 (↑)23.7%24.0%23.7%
SEP Utility (↑)55.4%55.9%59.4%
SEP ASR (↓)98.1%1.8%1.4%
Genetic Adpt. ASR@800 (↓)100.0%89.1%12.3%
TAP Adpt. ASR@800 (↓)100.0%84.6%12.2%
PISmith Adpt. ASR@10 (↓)98.7%95.1%7.0%
Table 1. Table 1 reports the utility on six instruction‑following, science, and math benchmarks and the adaptive attack success rates (ASR) of Llama‑3.1‑8B‑Instruct under the baseline SecPO‑+‑AT recipe, Meta‑SecAlign, and the undefended model. The table shows the SecPO‑+‑AT edition retains utility comparable to the undefended variant while dropping ASR by roughly 8.5×.Chen, Sizhe, Peng, Yibo, Chang, Jaewon, Sitawarin, Chawin, Wagner, David · arXiv:2610.41998v1 · Table 1: · CC BY 4.0

These figures illustrate that SecPO + AT delivers strong protection against unseen prompt‑injection attacks without harming everyday use.

Source paper

SecPO: Principled Adversarial Training for Prompt Injection Security

CryptographyArtificial Intelligence
View on arXiv