← Latest papers
🤖 machine learning

The Attribution Contract: Feature Attribution for Generative Language Models

This paper introduces the "Attribution Contract," a conceptual framework that resolves ambiguities in feature attribution for generative language models by explicitly defining the output, eligible features, generative process, fixed conditions, and model score, thereby reframing attribution disagreements as differences in explanatory contracts rather than algorithmic flaws.

Original authors: Giang Nguyen

Published 2026-05-25
📖 5 min read🧠 Deep dive

Original authors: Giang Nguyen

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 trying to figure out why a chef cooked a specific dish. You want to know which ingredients were the most important for the final taste.

In the old days (with simple "classifier" models), this was easy. You gave the chef a list of ingredients (the input), they made one dish (the output), and you could point to the salt or the pepper and say, "Ah, the salt made it salty." The ingredients were static, and the dish was finished.

But with Generative Language Models (like the AI writing this text), the cooking process is much more complicated. The chef doesn't just cook one dish; they cook a whole banquet, one bite at a time. And here's the tricky part: the first bite they cook becomes an ingredient for the second bite.

If the chef cooks a "Le" (French for "The") first, that "Le" is now sitting on the counter, waiting to be used as an ingredient for the next word, "chien" (dog).

The Problem: The "Who Did What?" Confusion

The paper argues that when we try to explain why the AI wrote a specific word, we often get confused because we aren't clear on what question we are actually asking.

The author calls this confusion the "Self-Attribution Fallacy."

Here is a simple analogy:
Imagine you are watching a relay race.

  • Runner A passes the baton to Runner B.
  • Runner B runs fast and wins the race.

If you ask, "Who was responsible for Runner B running fast?"

  1. Question A: "What helped Runner B run fast right now?"
    • Answer: The baton passed from Runner A! (The previous word is the most important factor).
  2. Question B: "What part of the original plan caused the team to win?"
    • Answer: The coach's instructions to Runner A! (The original prompt is the most important factor).

The paper says that many AI researchers are using the same tool to answer both questions, but they are getting mixed up. They see that "Runner A" (the previous word) is responsible for "Runner B's" speed, and they conclude, "The coach's instructions didn't matter!" But that's wrong. They just asked the wrong question.

The Solution: The "Attribution Contract"

To fix this, the author proposes a new rulebook called the Attribution Contract. Think of this like a work order or a recipe card that you must fill out before you start analyzing the AI.

Before you ask the AI "Why did you write this?", you must sign a contract that defines five things (the SCOPE):

  1. S (Score): What are we measuring? (Is it the probability of the next word? The whole sentence?)
  2. C (Conditioning): What are we holding still? (Are we ignoring the words the AI already wrote, or are we treating them as ingredients?)
  3. O (Output): What exactly are we explaining? (Just the next word? The whole paragraph?)
  4. P (Process): How did the AI make it? (Did it write left-to-right? Did it erase and rewrite like a diffusion model?)
  5. E (Eligible Features): What are we allowed to blame or praise? (Only the user's original prompt? Or also the AI's own previous words?)

Why This Matters: The "Magic Glasses" Analogy

Imagine the AI is wearing a pair of magic glasses.

  • If you ask the AI to explain a word using Contract A (Local Next-Token), the glasses show you that the previous word is glowing bright red. It's saying, "This word is here because the word before it made it likely!"
  • If you ask the AI to explain the same word using Contract B (Prompt-Conditioned), the glasses turn off the glow on the previous word and make the original prompt glow bright red. It's saying, "This word is here because you asked for it in the prompt!"

The paper's main point is: You cannot say the AI is "wrong" or "right" based on the glasses. You have to admit that Contract A and Contract B are asking two different questions.

If a researcher says, "The AI is hallucinating because it's ignoring the source document," but they are actually using Contract A (which looks at the previous words), they are misinterpreting the result. They need to switch to Contract B (which holds the previous words fixed and looks only at the source) to see if the source document is actually the cause.

The Takeaway

The paper doesn't invent a new way to calculate numbers. Instead, it invents a new way to talk about the numbers.

It tells us that in the world of generative AI, there is no single "truth" about which input mattered most. There is only the truth relative to the contract.

  • If you want to know how the AI thinks step-by-step, use the "Local" contract.
  • If you want to know how your instructions shaped the final story, use the "Prompt-Conditioned" contract.

Until we stop treating these as the same thing, we will keep arguing about AI explanations when we are actually just asking different questions. The "Attribution Contract" is just the tool to make sure we are all asking the same question before we start looking for answers.

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 →