# Decision Models as Retrieval Gates Against Injection and Pollution

주입과 오염에 맞선 검색 게이트로서의 의사결정 모델

Mahdi Ghadamyari, Reza Habibi · arXiv · 2026년 11월 5일

- **연구 문제** 검색된 웹 구절에 숨겨진 주입 지시와 합성 오염 페이지가 RAG 답변을 해칠 수 있으며, 이를 걸러낼 가벼운 방법이 필요합니다.
- **연구 방법** 공개된 Kev-4B 결정 모델을 fine-tuning 없이 구절마다 세 질문에 답하게 하여, 드롭과 인용 요청 정책의 게이트로 사용합니다.

## 검색 증강 생성이 놓이는 두 가지 위협

검색 증강 생성(RAG) 시스템은 운영자가 쓰지 않은 웹 텍스트를 읽습니다. 이 텍스트에는 HTML 속에 숨겨져 언어 모델을 향하는 간접 프롬프트 주입 지시가 들어 있을 수 있고, 검색 순위를 노리고 답변을 오도하도록 만들어진 합성 페이지가 섞일 수 있습니다. 원문은 이 두 위협을 함께 다루며, 기존 연구들이 방어 방법을 제안했지만 검색된 구절을 걸러내는 가벼운 필터를 직접 만들지는 않았다고 짚습니다.

이 논문이 묻는 질문은 공개된 결정 모델을 fine-tuning 없이 검색 구절의 게이트로 쓸 수 있는지입니다. 결정 모델은 텍스트와 고정된 답 집합의 질문을 받아 생성 없이 각 답의 점수를 돌려주는 모델 부류입니다. 따라서 답을 길게 생성하지 않고도 구절마다 짧은 판정을 얻을 수 있습니다.

## 구절마다 세 질문에 답하는 게이트

제안된 게이트는 검색된 각 구절을 한 번 읽고 세 가지 질문에 답합니다. Q1은 구절이 AI에게 지시하는지, Q2는 구절이 채움 글이거나 오도하도록 만들어졌는지, Q3는 질의와 관련이 있는지를 묻습니다. Kev-4B는 이 세 질문을 한 번의 순방향 패스로 처리합니다. 게이트는 HTML 입력을 8,000자까지 읽으며, 평문 청크를 읽는 대조 입력도 함께 평가합니다.

정책은 점수에 따라 갈립니다. Q1 또는 Q2 점수가 드롭 임계값을 넘으면 구절을 버리고, Q1 점수가 중간 구간에 있으면 구절은 남기되 전체 답변을 문장마다 인용을 요구하는 프롬프트로 생성합니다. Q3는 재순위를 위해 사전 등록되었으나 이 연구에서는 향후 과제로 남겨졌고 지연 시간에만 포함됩니다.

![Figure 1: The gate between retriever and generator. A decision model reads each retrieved passage once, on its HTML, and answers three questions. A high Q1 or…](https://refivu.com/papers/bd8c9c31-9e0d-4aa7-b98c-344a751f593c/figures/figure-f1cd31ea00831a45b2029765d5e22aed.png?thumb=512)

**Figure 1** : The gate between retriever and generator. A decision model reads each retrieved passage once, on its HTML, and answers three questions. A high Q1 or Q2 score drops the passage. A middle Q1 score keeps it, but the whole answer is then generated under a prompt that asks for a citation per sentence. Q3 is kept for future re-ranking. On Corpus B the gate can also screen the candidate pool before ranking. All results use BM25 retrieval.

[원문](https://arxiv.org/abs/2611.08325v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mahdi Ghadamyari, Reza Habibi · Decision Models as Retrieval Gates Against Injection and Pollution · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

Corpus B에서는 같은 오염 질문이 후보 풀 전체에 적용됩니다. 이때 BM25가 순위를 매기기 전에 오염 문서를 제거하면, 상위 10개는 남은 후보에서 다시 채워집니다. 이 배치는 상위 10개 안에서만 제거하는 방식과 구분됩니다.

## 주입 공격에 대한 Corpus A 검증

Corpus A는 Reddit 질문 스레드로 포럼형 HTML 페이지를 만들고, 그 안에 주입 지시를 아홉 가지 숨김 위치 가운데 하나로 넣어 구축되었습니다. 질의는 1,000개이며, 공격 페이지와 대조 페이지, 무관한 페이지, 하드 네거티브, 포이즌 페이지가 포함됩니다. 생성기는 Llama-3.1-8B-Instruct이며 가드 프롬프트를 사용합니다. 공격 성공률은 문자열 일치나 언어 감지로 자동 측정되고, 986개 질의에서 공격 페이지가 검색된 경우만 셉니다.

![Table 4: Attack success (%) per carrier, 8B generator, guard prompt. Carriers are visible text, hidden span, off-screen CSS, alt text, ARIA, SVG title, zero-wi…](https://refivu.com/papers/bd8c9c31-9e0d-4aa7-b98c-344a751f593c/figures/figure-a6ef761d0b2c4e9fc9033187075ca011.png?thumb=512)

**Table 4** : Attack success (%) per carrier, 8B generator, guard prompt. Carriers are visible text, hidden span, off-screen CSS, alt text, ARIA, SVG title, zero-width, homoglyphs and code block.

[원문](https://arxiv.org/abs/2611.08325v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mahdi Ghadamyari, Reza Habibi · Decision Models as Retrieval Gates Against Injection and Pollution · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

기준 공격 성공률은 27.9%(275/986)입니다. 결합 완화를 적용하면 13.6%(134/986)로 낮아지고, 여기에 Kev 게이트를 드롭 임계값 0.5로 추가하면 5.7%(56/986)가 됩니다. 같은 결합 완화 기준에서 게이트 없이 두었을 때와 비교하면 게이트는 86개의 성공을 제거하고 8개를 추가했습니다. 응답성은 undefended 87.3%, 결합 완화 85.6%, Kev 0.5에서 86.2%로 크게 움직이지 않았습니다.

![Figure 2: ASR per carrier on retrieved attack pages, 8B gener- ator. The Kev gate uses𝑡 drop =0.5](https://refivu.com/papers/bd8c9c31-9e0d-4aa7-b98c-344a751f593c/figures/figure-a1f64848840ed4095bdfd054d331a611.png?thumb=512)

**Figure 2** : ASR per carrier on retrieved attack pages, 8B gener- ator. The Kev gate uses𝑡 drop =0.5.

[원문](https://arxiv.org/abs/2611.08325v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mahdi Ghadamyari, Reza Habibi · Decision Models as Retrieval Gates Against Injection and Pollution · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

![Table 2: Corpus A with the 8B generator and guard prompt. ASR (%) on the 986 queries with the attack page retrieved, mean ASR over the four rewritten variants,…](https://refivu.com/papers/bd8c9c31-9e0d-4aa7-b98c-344a751f593c/figures/figure-58cd27114da207dca7f8e598bd84014c.png?thumb=512)

**Table 2** : Corpus A with the 8B generator and guard prompt. ASR (%) on the 986 queries with the attack page retrieved, mean ASR over the four rewritten variants, FPR on retrieved hard negatives, and responsiveness on 1,000 clean queries. Gates read HTML and TF-IDF reads plain text. Bold marks the headline comparison and the judge trade-off.

[원문](https://arxiv.org/abs/2611.08325v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mahdi Ghadamyari, Reza Habibi · Decision Models as Retrieval Gates Against Injection and Pollution · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

Kev의 오탐률은 186개 하드 네거티브 중 4개를 제거한 2.2%입니다. 원문은 공격 성공률이 행동 순응의 대리 지표이며, 인용되거나 거부된 지시도 패턴과 일치할 수 있다고 밝힙니다. 따라서 이 수치는 순응의 완전한 측정이 아니라 자동 판정에 따른 값입니다.

## LLM 심판과의 비용 및 정확도 비교

Llama-3.3-70B와 DeepSeek V4.1 Flash를 심판으로 쓴 경우 HTML에서 AUROC는 각각 0.992와 0.998로, Kev의 0.938보다 높습니다. 다만 비용과 지연은 더 큽니다. 원문은 강한 심판이 구절당 약 1.15초와 0.65초가 걸리고 1,000개 구절당 약 0.15달러가 든다고 보고하며, Kev는 한 GPU에서 구절당 76 ms, 1,000개당 약 0.015달러로 측정되었습니다.

![Table 1: Q1 AUROC for retrieved attack passages against all other retrieved passages, median latency per passage for three questions, and cost per 1,000 passag…](https://refivu.com/papers/bd8c9c31-9e0d-4aa7-b98c-344a751f593c/figures/figure-fb36096dffad57b42d9ee2d442fcb284.png?thumb=512)

**Table 1** : Q1 AUROC for retrieved attack passages against all other retrieved passages, median latency per passage for three questions, and cost per 1,000 passages (gates on one RTX PRO 4500 at $0.72/h from median latency, judges as billed). The input is the page’s HTML or its plain-text chunk. †Subsets of 324 HTML and 326 text queries for Tev1, 332 for Von and 300 for the 8B judge.‡Scores parsed from JSON. Bold marks values discussed in the text.

[원문](https://arxiv.org/abs/2611.08325v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mahdi Ghadamyari, Reza Habibi · Decision Models as Retrieval Gates Against Injection and Pollution · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

결합 완화에 70B 심판을 드롭 임계값 0.5로 쓰면 공격 성공률은 0.4%까지 내려가지만 오탐률은 18.3%입니다. 이는 Kev의 2.2%보다 크게 높고, 깨끗한 질의 구절의 22%를 버리는 결과입니다. 따라서 이 비교에서 심판의 장점은 분류 순위에 있고, 적용 비용과 과잉 제거가 함께 드러납니다.

![Figure 3: ASR on retrieved attack pages against clean-query responsiveness as the drop threshold varies. “Text” means the plain-text input and “combined” the c…](https://refivu.com/papers/bd8c9c31-9e0d-4aa7-b98c-344a751f593c/figures/figure-0ac275fd4ae5292ab6d447d6eaffc76e.png?thumb=512)

**Figure 3** : ASR on retrieved attack pages against clean-query responsiveness as the drop threshold varies. “Text” means the plain-text input and “combined” the combined mitigations. Labels give the drop threshold at the ends of each curve (TF- IDF at 0.85, the 70B judge at 0.5).

[원문](https://arxiv.org/abs/2611.08325v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mahdi Ghadamyari, Reza Habibi · Decision Models as Retrieval Gates Against Injection and Pollution · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

![Table 7: Attack success (%) conditional on retrieval at every gate operating point, share of retrieved passages dropped on attack queries, and topical responsi…](https://refivu.com/papers/bd8c9c31-9e0d-4aa7-b98c-344a751f593c/figures/figure-df75974cd06ee8eec9f291744224ad75.png?thumb=512)

**Table 7** : Attack success (%) conditional on retrieval at every gate operating point, share of retrieved passages dropped on attack queries, and topical responsiveness (%) on clean queries.

[원문](https://arxiv.org/abs/2611.08325v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mahdi Ghadamyari, Reza Habibi · Decision Models as Retrieval Gates Against Injection and Pollution · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

Table 1의 AUROC와 지연은 Q1 기준으로 측정되었습니다. Tev1과 Von의 일부 비교는 질의 부분집합에서 계산되었으므로 전체 질의 결과로 일반화하지 않습니다.

## 오염 후보 풀에서의 배치 비교

Corpus B는 MS MARCO 질의 200개와 질의당 생성된 클릭베이트 문서 20개를 사용합니다. 생성기는 Llama-3.1-8B-Instruct이며, BM25 상위 10개 문서로 답합니다. 오염 비율은 라운드 r에서 r/(10+r)로 정의되며, 원문 표는 라운드 5와 20의 PCR, ECR, CCR과 정확도를 보고합니다. 깨끗한 풀의 정확도는 84%입니다.

게이트가 없을 때 2/3 오염에서 검색된 상위 10개와 인용 문서의 92%가 합성 문서였고 정확도는 28%로 떨어졌습니다. 상위 10개 안에서만 제거하면 노출은 낮아지지만 질의당 남는 문서가 0.8개에 그쳐 정확도는 23%였습니다. 반면 순위 매기기 전 전체 풀에서 Kev 0.5로 거르면 노출은 0.5%, 정확도는 83%로 유지되었습니다. 이 수치는 깨끗한 풀의 84%와 1포인트 안에 있습니다.

![Table 3: Corpus B (200 queries, 20 generated documents each, BM25 top ten, 8B answerer). Contamination of the pool as built (PCR), of what the generator receiv…](https://refivu.com/papers/bd8c9c31-9e0d-4aa7-b98c-344a751f593c/figures/figure-f9f9400d0eb9dff9081ef0c5c8225342.png?thumb=512)

**Table 3** : Corpus B (200 queries, 20 generated documents each, BM25 top ten, 8B answerer). Contamination of the pool as built (PCR), of what the generator receives (ECR) and of what it cites (CCR), and accuracy (%) at rounds 5 and 20, without a gate and with the pollution question at two placements. Clean-pool accuracy is 84%.

[원문](https://arxiv.org/abs/2611.08325v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mahdi Ghadamyari, Reza Habibi · Decision Models as Retrieval Gates Against Injection and Pollution · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

이 결과는 Corpus B의 설정에서 얻은 것이며, 다른 생성기나 다른 오염 방식에 그대로 적용되었다는 보고는 없습니다.

## 적용 범위와 남은 한계

원문은 몇 가지 한계를 밝힙니다. 하드 네거티브는 여덟 개 템플릿에서 나와 질의들에 반복되며, TF-IDF 기준선의 오탐률은 같은 템플릿으로 학습되어 낙관적입니다. 부트스트랩 구간은 임계값 선택과 라벨 잡음을 반영하지 않습니다. 0.35 인용 임계값은 보고된 질의에서 골랐으나 헤드라인 결과를 바꾸지 않는다고 저자들이 밝힙니다.

또 응답성은 질문에 답하는지를 판정한 것이며 정답성 자체가 아닙니다. 이 수치는 조잡한 대리 지표입니다.

원문은 더 많은 질의, 더 강한 재작성기, 게이트 가중치 접근은 다음 실험으로 남긴다고 밝힙니다.

## 논문 정보

- **저자**: Mahdi Ghadamyari, Reza Habibi
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 5일
- **등록일**: 2026년 11월 7일
- **수정일**: 2026년 11월 5일
- **버전**: v1
- **arXiv**: 2611.08325
- **분류**: cs.CR · cs.IR
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.08325v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.08325v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Retrieved web text can carry instructions aimed at the language model, or synthetic pages written to mislead. We test whether released open-weight decision models, which answer typed questions about a text without generating tokens, can screen retrieved passages against both threats. On a benchmark of 1,000 questions over forum-style web pages with hidden injected instructions, a Kev-4B gate reads each passage's HTML. Attack success, measured automatically, falls from 27.9% with no defence to 13.6% with the published mitigations (sanitisation, normalisation and citation prompting) and to 5.7% with the gate added. The gate takes 76 ms per passage and wrongly flags 4 of 186 benign pages with instructions for human readers. Responsiveness on clean queries stays within a point (85.6% to 86.2%). On a 200-query pollution testbed where two thirds of the candidate pages are fake, filtering the pool before the top ten are chosen keeps fake pages out of the answer (0.5% exposure) and holds accuracy at 83%, against 28% with no filter. Filtering only the top ten leaves the generator too few pages to answer. Large LLMs used as judges rank attacks better (AUROC 0.99 against 0.94) but cost ten times more. Gates catch more attacks when they read the page's HTML than when they read its plain text. Every model is open-weight.

## 원문 인용

Mahdi Ghadamyari, Reza Habibi (2026). Decision Models as Retrieval Gates Against Injection and Pollution. arXiv:2611.08325v1. https://arxiv.org/abs/2611.08325v1

**BibTeX**

```
@misc{ghadamyari2026decision,
  title = {{Decision Models as Retrieval Gates Against Injection and Pollution}},
  author = {Mahdi Ghadamyari and Reza Habibi},
  year = {2026},
  eprint = {2611.08325},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.08325v1}
}
```

## 이 논문의 용어

- [BM25](https://refivu.com/terms/64437f95755a-bm25)
- [검색 증강 생성](https://refivu.com/terms/745578495b18-retrieval-augmented-generation)
- [LLaMA-3.1-8B-Instruct](https://refivu.com/terms/0abd12a34f8f-llama-3-1-8b-instruct)
- [MS MARCO](https://refivu.com/terms/ab0f27c3dce9-ms-marco)
- [hard negatives](https://refivu.com/terms/17c156ae3902-hard-negatives)
- [Retrieval-Augmented Generation (RAG)](https://refivu.com/terms/ab36c6fcc597-retrieval-augmented-generation-rag)
- [DeepSeek V4.1 Flash](https://refivu.com/terms/27c0b4fbb9eb-deepseek-v4-1-flash)
- [decision models](https://refivu.com/terms/61534a943145-decision-models)
- [Indirect Prompt Injection](https://refivu.com/terms/8fbf6c02688f-indirect-prompt-injection)
- [CCR](https://refivu.com/terms/01ddb28460aa-ccr)
- [ECR](https://refivu.com/terms/aac812eaecc3-ecr)
- [Mistral Small 24B](https://refivu.com/terms/7310bdb013bc-mistral-small-24b)
- [Qwen3-235B](https://refivu.com/terms/dfcf44dbcdba-qwen3-235b)

## 다른 논문 해설

- [ArcadeDB in Python: An In-Process Multi-Model Database](https://refivu.com/papers/92f8f688-68d7-459c-921a-5a8a63f299fb-arcadedb-in-python-an-in-process-multi-model.md)
- [Writer Identification and Writer Retrieval Based on NetVLAD with Re-ranking](https://refivu.com/papers/5c507cda-3490-4660-8811-36c766c434c8-writer-identification-and-writer-retrieval-based-on-netvlad.md)
- [How can voting mechanisms improve the robustness and generalizability of toponym disambiguation?](https://refivu.com/papers/a7f985d4-b48e-45bf-a161-9f846cdf21b1-how-can-voting-mechanisms-improve-the-robustness-and.md)
- [A Survey on Event-based News Narrative Extraction](https://refivu.com/papers/9d96c17c-77ac-4fdd-92e7-dc86acf73b67-a-survey-on-event-based-news-narrative-extraction.md)
- [Comparison of Topic Modelling Approaches in the Banking Context](https://refivu.com/papers/d9e5c3d9-cda9-4560-92a2-1e5de46a4d37-comparison-of-topic-modelling-approaches-in-the-banking.md)
- [A Survey on Accuracy-oriented Neural Recommendation: From Collaborative Filtering to Information-rich Recommendation](https://refivu.com/papers/722b0725-ac61-4852-a75e-5260cdd7cdb7-a-survey-on-accuracy-oriented-neural-recommendation-from.md)
- [Do sEMG Foundation Models Improve Cross-Subject Generalisation?](https://refivu.com/papers/0103d64e-8e32-4aa2-9ee9-3a666ce53523-do-semg-foundation-models-improve-cross-subject.md)
- [Benchmarks as Software: Terminal-Bench and the Case for Continuous Benchmarks](https://refivu.com/papers/cda0592d-3478-4e53-ba7d-c2b3098abeb9-benchmarks-as-software-terminal-bench-and-the-case.md)
- [Terminal-style Mathematical Modeling Bench: The First Agentic and Verifiable Benchmark for Mathematical Modeling](https://refivu.com/papers/5adf1038-f3d6-4c98-bdc9-c1fcd3dad039-terminal-style-mathematical-modeling-bench-the-first-agentic.md)
- [Detecting Silent Faults at the Environment-Trainer Boundary in Reinforcement Learning](https://refivu.com/papers/120934bf-3f39-44e6-8cb6-8532b7b3c1c5-detecting-silent-faults-at-the-environment-trainer-boundary.md)
- [On k-nearest-neighbor regression in metric spaces](https://refivu.com/papers/b2afe947-e002-422f-aeb8-4b45afe4c8ac-on-k-nearest-neighbor-regression-in-metric-spaces.md)
- [SimXAI: A Simple Drop-in Layer Increases Interaction Quality and Understanding in Conversational XAI](https://refivu.com/papers/aee88693-dcb0-436b-9f2c-50c5d7d6d337-simxai-a-simple-drop-in-layer-increases-interaction.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/bd8c9c31-9e0d-4aa7-b98c-344a751f593c-decision-models-as-retrieval-gates-against-injection-and)
