← Latest papers
💬 NLP

Tracing Target Answers in Poisoned Retrieval Corpora via Token Influence Attribution

This paper introduces TRACE, a lightweight framework that detects corpus poisoning attacks in Retrieval-Augmented Generation systems by attributing token influence to identify malicious documents and trace target answers without requiring auxiliary classifiers or significant computational overhead.

Original authors: Yan-Lun Chen, Pin-Yu Chen, Chia-Mu Yu, Ying-Dar Lin, Yu-Sung Wu, Wei-Bin Lee

Published 2026-06-25
📖 4 min read☕ Coffee break read

Original authors: Yan-Lun Chen, Pin-Yu Chen, Chia-Mu Yu, Ying-Dar Lin, Yu-Sung Wu, Wei-Bin Lee

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Problem: The "Fake News" Library

Imagine you have a very smart librarian (the AI) who knows a lot, but sometimes forgets details. To help, you give them a stack of reference books (the Retrieval Corpus) to look at before answering your questions.

This is how RAG (Retrieval-Augmented Generation) systems work. They are great for businesses and customer service.

The Attack: A bad actor (the Poisoner) sneaks into the library and plants several fake books. These books all tell the same lie. For example, if you ask, "At what age does Medicare start?" the real books say 65, but the fake books all say 50. Because the AI trusts the books it finds, it might start believing the lie and tell you the wrong answer.

The Old Way to Catch It: Previous security tools tried to catch these fake books by hiring a second, expensive librarian to check every single book, or by training a special "lie detector" robot. This takes a lot of time, money, and computer power.


The Solution: TRACE (The "Influence Detective")

The authors introduce TRACE, a lightweight, fast, and cheap way to catch these poisoned books without hiring extra help.

Instead of asking, "Is this book fake?" TRACE asks a different question: "Which specific words in this book are shouting the loudest to the AI?"

Think of it like a magnet test.

  1. The Magnet: The AI has a natural tendency to be pulled toward certain words when it's trying to give an answer.
  2. The Test: TRACE looks at the books the AI is reading. It calculates a "magnetic pull" score for every single word.
  3. The Clue: If the AI is being tricked, it will be weirdly obsessed with specific words (like the number "50" in our Medicare example) across many different fake books.

How TRACE Works (The Two-Step Dance)

Step 1: The "Who's Shouting?" Scan (Keyword Searching)

  • TRACE reads all the books the AI found.
  • It ignores boring words like "the," "and," or "is" (because those don't change the answer).
  • It looks for the words that have the strongest "magnetic pull" on the AI's brain.
  • If the word "50" keeps showing up as the strongest pull in multiple different books, TRACE flags it as a Suspicious Keyword.

Step 2: The "Double Check" (Secondary Verification)

  • Now that TRACE has a list of suspicious words (like "50"), it does a second test.
  • It pretends the AI is trying to say "Yes, the answer is: 50."
  • It checks again: Do these specific words still have that super-strong magnetic pull in the books?
  • The Verdict: If the same suspicious words keep popping up as the most influential across the whole stack of books, TRACE sounds the alarm: "Poison Detected!"

Why This is a Big Deal

The paper claims TRACE is special for three reasons:

  1. It's Lightweight: It doesn't need a second AI or a special training robot. It just uses the math inside the AI it's already protecting. It's like checking a book for fingerprints instead of hiring a whole new police force.
  2. It's Fast: It can run right before the AI gives an answer, catching the lie in real-time.
  3. It Reveals the Lie: Not only does it say "This is a fake book," but it also points a finger at the specific lie. In our example, it doesn't just say "Danger," it says, "The attacker is trying to make you believe the answer is 50."

The Results (The Scoreboard)

The authors tested TRACE on six different types of "smart librarians" (AI models) and three different question sets.

  • Detection: It caught the poisoned books more than 90% of the time.
  • False Alarms: It rarely cried "wolf" when the books were actually clean (less than 10% false alarms).
  • Speed: It was significantly faster than the previous best method (RAGForensics), taking about 1 second per question compared to 9 seconds for the old method.

The Bottom Line

TRACE is a clever, low-cost security guard for AI systems. Instead of guessing if a document is bad, it traces the "footprints" of the attacker's specific words. If it sees the same suspicious words leading the AI astray in multiple documents, it stops the AI from giving the wrong answer and tells you exactly what the attacker tried to hide.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →