← Lab /Security & privacy

Set-level poisoning can force RAG to output target answers while any subset fails

LENS can construct document sets that achieve high attack success rates in retrieval-augmented generation, with proper subsets showing near-zero success

Security & privacy arXiv 28 Sep 2026 Attack Prototype evidence Threat model

Published as “LENS: The Sum Is Worse Than the Parts for Set-Level Poisoning in Retrieval-Augmented Generation”

Why it matters

LENS reveals a previously unaddressed attack surface in RAG systems and offers a concrete benchmark for developing defenses that inspect cross-document dependencies.

Summary

LENS achieves a full-set attack success rate of 0.852 while keeping the strongest proper-subset success at only 0.069, demonstrating that set-level composition can reliably steer RAG outputs. Across four benchmarks and three target generators, it raises all-attempt E2E-Strict@5 from 0.244 to 0.363, a 48.8% relative gain, and outperforms all tested defenses. The evidence is based on extensive 20-generation stochastic evaluation on 4,000 query-target attempts, with human audits confirming that 68.3% of returned packets meet the intended semantic shift criteria. The paper provides detailed quantitative results and ablations, but the strict-success metric remains modest (≈36%) and not all packets pass human validity checks.

What they found 2

  1. Full-set attack success reaches 0.852 while proper-subset success stays at 0.069

    “Across four benchmarks and three generators, returned packets achieve 0.852 full-set ASR and 0.784 post-retrieval ASR@5, while their strongest proper subsets reach only 0.069.”

  2. LENS improves all-attempt E2E-Strict@5 from 0.244 to 0.363, a 48.8% relative gain

    “LENS improves all-attempt E2E-Strict@5 from 0.244 to 0.363, a 48.8% relative gain.”

Caveats 2

  • Strict end-to-end success is limited to 0.363 (36.3%) of attempts, indicating many packets do not achieve the full-set steering under realistic retrieval.
  • Only 68.3% of returned packets satisfy the SemValid criteria, showing that a substantial fraction lack the intended semantic shift.

What’s new here 4

  • Introduces set-level compositional poisoning, where only the full retrieved set triggers the target answer.
  • Presents LENS, a generator-black-box multi-agent pipeline that plans an interpretation lens and synthesizes complementary documents.
  • Uses counterexample-guided repair with exhaustive proper-subset checking to enforce subset safety.
  • Provides a stress-test framework for evaluating defenses that reason over document sets rather than individual passages.

Threat model stated by the source

Adversaryuntrusted contributor who can insert a small packet of documents into the retrievable corpus
Capabilitycan add up to k (2-3) documents, has black-box access to a local surrogate generator for construction, but cannot modify the query, original corpus, retrieval pipeline, or target generators
Assumesthe RAG pipeline is frozen at inference time; target generators provide no feedback before packet freezing; the attacker uses only a surrogate model to estimate success