Skip to content
EventPast event

NVIDIA proposes NXDirection to defend against prompt injection

1 reports1 reporting sourcesLatest report

Start here

AI overview

NVIDIA research team proposes NXDirection, a method to defend against indirect prompt injection by removing instruction directions from external content. The method uses 175 short samples and 18 instruction categories to extract per-token instruction directions via mean difference, intervening only on externally sourced tokens while system prompts and user requests remain unchanged. On 9 open-source instruction models, BIPIA attack success rate drops from 38.1% to 0.1%, AgentDojo with tool calling drops from 28.4% to 3.7%, and normal task utility is 76.4%, close to unguarded levels.

Generated by AI from reports · Updated 28 days ago

Progress timeline

Oct 14
  1. NVIDIA: Trustworthy AI & CybersecuritySelected
    NVIDIA proposes NXDirection: making external content non-executable along the instruction direction

    NVIDIA research team proposes NXDirection, a method to defend against indirect prompt injection by removing instruction direction from external content. The method uses 175 short samples and 18 instruction types to extract the instruction direction for each token via mean difference, intervening only on tokens from external sources, leaving system prompts and user requests unchanged. On 9 open-source instruction models, BIPIA attack success rate drops from 38.1% to 0.1%, AgentDojo with tool calling drops from 28.4% to 3.7%, and normal task utility is 76.4%, close to the undefended 78.4%. The authors claim it outperforms prompt defenses like Sandwich and Spotlighting on two benchmarks, and unlike detectors, it does not require deleting entire tool outputs or extra GPT calls; however, the method requires access to model internal states, is only applicable to open-weight or self-hosted models, and some attacks still succeed.

Related discussion

Total 5 items