Residual Decoding: Mitigating Hallucinations in Large Vision-Language Models via History-Aware Residual Guidance
This paper introduces Residual Decoding (ResDec), a novel training-free method that leverages historical token information and internal reasoning mechanisms to effectively mitigate hallucinations and enhance visual grounding in Large Vision-Language Models without requiring additional training.
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 have a very smart, well-read friend who loves looking at pictures and describing them. This friend is an AI (specifically a Large Vision-Language Model). They are great at talking, but they have a funny habit: sometimes, when they look at a photo, they start telling you things that aren't actually in the picture.
For example, if you show them a picture of a cat, they might say, "Ah, I see a fluffy cat sitting on a red rug next to a cup of coffee." But in the photo, there is no rug and no coffee. The AI just assumed those things were there because, in its vast training data, cats are often found on rugs with coffee. This is called a hallucination. It's not lying on purpose; it's just letting its "textbook knowledge" override what its "eyes" are actually seeing.
This paper introduces a clever new trick called Residual Decoding (ResDec) to stop this from happening. Here is how it works, explained simply:
The Problem: The "Confident Mistake"
When the AI looks at a picture and starts describing it, it doesn't just spit out the answer instantly. It builds the sentence word by word, like a human thinking aloud.
The researchers discovered that as the AI builds the sentence, it gets confused.
- The Start: At the very beginning, the AI is a bit chaotic. It's thinking, "Okay, I see an image... what do I say first?"
- The Middle: As it gets going, it starts to settle on the right idea. The "correct" answer starts to glow brightly in its mind.
- The Trap: But then, just before it says the final answer, the AI gets distracted by its own "textbook habits" (the language priors). It starts thinking, "Oh, usually people say 'red rug' when they see a cat!" So, it accidentally boosts the probability of the wrong word ("rug") and lowers the probability of the right word ("nothing").
It's like a student taking a test. They know the answer is B, but right before they bubble it in, they panic and think, "Wait, the teacher usually puts the answer as C," so they change their answer to C and get it wrong.
The Solution: The "History Detective"
The authors realized that the AI actually knew the right answer earlier in the process, before it got confused by its own habits. The "correct" signal was hiding in the history of the words it had already generated.
ResDec acts like a History Detective. Here is the analogy:
Imagine the AI is a traveler walking through a foggy forest (the decoding process).
- The Fog: The fog represents the AI's confusion caused by its language habits.
- The Path: The correct path is the truth about the image.
- The Detective: ResDec looks back at the traveler's footprints from the last few steps.
The researchers found a pattern in these footprints:
- Chaos: At first, the footprints are scattered (the AI is figuring things out).
- The Valley: Then, the footprints become very straight and steady. This is the "Semantic Anchoring Phase." The AI has locked onto the truth.
- The Divergence: Finally, the footprints start to wander again as the AI tries to make the sentence sound fancy (this is where the hallucination happens).
ResDec says: "Hey, let's ignore the wandering footprints at the end. Let's look at the steady, straight footprints from the middle of the journey where the AI was most confident and clear."
It takes those "steady" clues from the past and mixes them with the current decision. It's like telling the student: "Don't change your answer to C just because you're nervous. Remember, when you were calm a minute ago, you were sure the answer was B. Stick with B."
Why is this cool?
- No Extra Training: Usually, to fix an AI, you have to teach it new things, which takes weeks and millions of dollars. ResDec is a "plug-and-play" fix. You don't need to retrain the AI; you just change how it reads its own mind while it's working.
- Super Fast: It doesn't slow the AI down. It just uses information the AI was already generating anyway. It's like checking your rearview mirror while driving; it doesn't make the car slower, it just helps you stay in the lane.
- It Works Everywhere: They tested it on many different AI models and many different types of images (cats, cars, math problems), and it consistently stopped the AI from making things up.
In a Nutshell
Residual Decoding is a simple, free upgrade for smart AI image describers. It stops them from daydreaming about things that aren't there by reminding them of what they were sure about just a moment ago. It forces the AI to trust its "eyes" (the image) over its "memories" (the text habits), resulting in descriptions that are actually true to the picture.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.