← Latest papers
💬 NLP

Probing for Knowledge Attribution in Large Language Models

This paper introduces AttriWiki, a self-supervised pipeline for generating labeled data that enables simple linear probes to accurately identify whether an LLM's output relies on prompt context or internal knowledge, thereby revealing a strong link between attribution errors and hallucinations while demonstrating high cross-domain transferability.

Original authors: Ivo Brink, Alexander Boer, Dennis Ulmer

Published 2026-02-27
📖 5 min read🧠 Deep dive

Original authors: Ivo Brink, Alexander Boer, Dennis Ulmer

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

Imagine you are talking to a very smart, well-read robot friend. You ask it a question, and it answers confidently. But here's the tricky part: How do you know if that answer came from reading the book you just handed it, or if it just pulled the answer out of its own memory?

Sometimes, the robot might ignore the book you gave it and answer based on its memory (which might be wrong or outdated). Other times, it might ignore its own memory and answer based on the book (even if the book has a typo).

This paper is about building a "Truth Detector" for these robots (Large Language Models, or LLMs) that can tell us exactly where the answer came from.

Here is the breakdown of the paper using simple analogies:

1. The Problem: The "Confidently Wrong" Robot

The authors start with a scary real-life story. A person asked an airline chatbot about a bereavement discount. The chatbot confidently said, "Yes, you have 90 days!" The person traveled, but the airline later denied the refund because that rule never existed. The chatbot made it up (a "hallucination").

The problem isn't just that the robot was wrong; it's that we didn't know why it was wrong.

  • Did it ignore the official policy you pasted into the chat?
  • Did it rely on its own internal memory, which happened to be wrong?

Current tools can tell you if an answer is wrong, but they can't tell you where the robot got the idea.

2. The Solution: The "Attribution Probe"

The researchers built a special tool called a Probe. Think of this probe like a lie detector test for the robot's brain.

When a robot thinks, it processes information through layers of "neurons" (hidden states). The researchers discovered that the robot's brain actually "lights up" differently depending on whether it is:

  • Reading the prompt (Contextual Knowledge): Like looking at a map.
  • Recalling from memory (Parametric Knowledge): Like remembering a fact from school.

They trained a simple, lightweight classifier (the Probe) to look at these "brain lights" and say: "Ah, this answer is coming from the map," or "Ah, this answer is coming from memory."

3. How They Trained the Probe: The "AttriWiki" Game

To teach the Probe, they needed a massive dataset where they knew the answer for sure. They created something called AttriWiki.

Imagine a game of "Hide and Seek with Facts":

  1. They took Wikipedia articles (the "Context").
  2. They picked a specific fact (like a person's name).
  3. Round A (Memory Test): They removed the name from the text and asked the robot to fill in the blank. If the robot got it right, it meant the robot remembered it from its own training.
  4. Round B (Reading Test): They kept the name in the text but removed a different fact, forcing the robot to read the text to answer.

By doing this millions of times, they created a dataset where every single answer had a verified "source tag" (Memory vs. Reading). They then used this data to train their Probe.

4. The Results: The Probe is a Super-Reader

The results were surprisingly good:

  • High Accuracy: The Probe could tell where the answer came from with 96% accuracy on several major AI models.
  • The "Middle Layer" Secret: They found that the robot's brain reveals this secret mostly in the middle layers of its processing, not at the very beginning or the very end. It's like the robot whispers the truth to itself in the middle of its thought process.
  • Generalization: Even when they tested the Probe on completely different types of questions (like trivia or reading comprehension tests it had never seen before), it still worked perfectly.

5. Why This Matters: The "Mismatch" Danger

The most important finding is what happens when the robot gets confused.

  • If the robot is supposed to read a document but relies on its memory instead, the error rate jumps by 70%.
  • If the robot is supposed to use its memory but gets distracted by a confusing document, errors jump by 30%.

The Analogy: Imagine a chef (the robot) who is supposed to cook a recipe you gave them (Context). If they ignore your recipe and cook based on their own old, bad memory, the meal will be terrible. The Probe is like a kitchen inspector who can shout, "Stop! You are ignoring the recipe!" before the food is served.

6. The Catch

The paper admits that knowing where the answer came from doesn't guarantee the answer is true.

  • If the robot reads a document that says "The sky is green," the Probe will correctly say, "It got this from the document."
  • But the answer is still wrong.

So, the Probe isn't a "Truth Detector" in the sense of checking facts; it's a Source Detector. It tells you if the robot is being faithful to the source you gave it or if it's drifting off into its own imagination.

Summary

This paper gives us a way to peek inside the "black box" of AI. Instead of just asking, "Is this answer right?", we can now ask, "Did the AI actually read what I gave it, or did it just make something up based on what it thinks it knows?"

This is a huge step forward for making AI safer, especially in critical situations like legal advice, medical info, or booking flights, where knowing the source of the information is just as important as the information itself.

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 →