Skip to main content
QUICK REVIEW

[논문 리뷰] CODE: A Contradiction-Based Deliberation Extension Framework for Overthinking Attacks on Retrieval-Augmented Generation

Xiaolei Zhang, Xiaojun Jia|arXiv (Cornell University)|2026. 01. 19.
Topic ModelingComputer Science인용 수 0
한 줄 요약

이 논문은 CODE라는 세 개의 에이전트 프레임워크를 도입합니다. CODE는 Retrieval-Augmented Generation(RAG)에서 외부 지식을 오염시켜 상업적 추론 모델에서 과도한 추론(과잉 사고)을 유도하되, 정답 정확도는 유지합니다.

ABSTRACT

Introducing reasoning models into Retrieval-Augmented Generation (RAG) systems enhances task performance through step-by-step reasoning, logical consistency, and multi-step self-verification. However, recent studies have shown that reasoning models suffer from overthinking attacks, where models are tricked to generate unnecessarily high number of reasoning tokens. In this paper, we reveal that such overthinking risk can be inherited by RAG systems equipped with reasoning models, by proposing an end-to-end attack framework named Contradiction-Based Deliberation Extension (CODE). Specifically, CODE develops a multi-agent architecture to construct poisoning samples that are injected into the knowledge base. These samples 1) are highly correlated with the use query, such that can be retrieved as inputs to the reasoning model; and 2) contain contradiction between the logical and evidence layers that cause models to overthink, and are optimized to exhibit highly diverse styles. Moreover, the inference overhead of CODE is extremely difficult to detect, as no modification is needed on the user query, and the task accuracy remain unaffected. Extensive experiments on two datasets across five commercial reasoning models demonstrate that the proposed attack causes a 5.32x-24.72x increase in reasoning token consumption, without degrading task performance. Finally, we also discuss and evaluate potential countermeasures to mitigate overthinking risks.

연구 동기 및 목표

  • 프롬프트나 모델 가중치를 건드리지 않고 외부 지식을 오염시켜 RAG 시스템에 대한 엔드-투-엔드 사용자 공격을 촉발하고 가능하게 한다.
  • 시스템이 검색할 수 있는 모순 기반의 적대적 구절을 구성하는 다중 에이전트 파이프라인을 설계한다.
  • 여러 상용 모델에서 정확성을 유지하면서 추론 비용이 크게 증가하는 것을 입증한다.
  • 과잉사고 기반 공격에 대한 견고성과 potential defenses를 분석한다.

제안 방법

  • Contradiction Architect, Conflict Weaver, Style Adapter로 구성된 트리-에이전트 CODE 프레임워크를 도입하여 적대적 구절을 생성한다.
  • Contradiction Architect는 논리적 제약과 상충하는 증거 콘텐츠를 연결하는 크로스-레이어 모순 설계를 생성한다.
  • Conflict Weaver는 모순 설계를 상호 참조되는 쿼리와 의미적으로 정렬된 상태를 유지하는 유창하고 검색 친화적인 적대적 텍스트로 번역한다.
  • Style Adapter는 소프트 정확성 인식 피트니스 함수를 통해 Retrieval를 해치지 않으면서 추론 토큰 소비를 최대화하는 진화적 스타일 기반 재작성 을 수행한다.
  • Poisoned 문서가 외부 지식 베이스에 주입되고 RAG 처리 중에 검색될 수 있는 블랙박스 위협 모델하에서 작동한다.
  • 여러 상용 추론 모델과 표준 숫자-추론 QA 데이터셋에 걸쳐 토큰 증가와 작업 정확도를 측정한다.

실험 결과

연구 질문

  • RQ1구조화된 모순 프레임워크를 통한 외부 지식 오염이 RAG 시스템에서 정답 정확도를 감소시키지 않으면서 추론 비용을 증가시키는가?
  • RQ2트리-에이전트 CODE 프레임워크(Contradiction Architect, Conflict Weaver, Style Adapter)가 추론을 증가시키는 재검색 가능한 모순 구절을 얼마나 효과적으로 생성하는가?
  • RQ3적대적 스타일 적응이 다양한 모델과 데이터셋에서 토큰 수준 및 작업 수준의 증폭에 미치는 영향은 무엇인가?

주요 결과

  • 적대적 추론 비용이 크게 증가하며, 토큰 수준의 증폭 계수는 평가된 모델에서 5.32×에서 24.72× 범위이다.
  • 작업 수준의 증폭은 대략 12.70×에서 43.45× 범위로, 스타일 적응이 적용될 때 더 깊은 추론 증가를 보여준다.
  • 모델 간 정답 정확도는 비적대적 설정과 비슷하게 유지되어 출력의 악용을 은밀하게 수행하되 품질 저하가 없음을 시사한다.
  • 적대적 구절의 검색 성공률이 테스트 구성에서 100%로 유지되어 추론 과정에 기만이 침투한다는 것을 보장한다.
  • 절개 분석은 Contradiction Architect와 Conflict Weaver가 증폭의 주요 원동력이며, Style Adapter가 추가적이지만 더 작은 증폭을 제공한다는 것을 시사한다.
  • 프롬프트 제한 및 검색 필터링과 같은 방어가 추론 비용 증가를 감소시키지만 완전히 완화하지는 못한다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.