← Latest papers
💻 computer science

Counterfeit Answers: Adversarial Forgery against OCR-Free Document Visual Question Answering

This paper introduces a novel adversarial attack scenario called "Counterfeit Answers" that forges document content in visually imperceptible ways to manipulate OCR-free Document Visual Question Answering models into generating specific or incorrect answers, demonstrating critical vulnerabilities in state-of-the-art systems like Pix2Struct and Donut.

Original authors: Marco Pintore, Maura Pintor, Dimosthenis Karatzas, Battista Biggio

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

Original authors: Marco Pintore, Maura Pintor, Dimosthenis Karatzas, Battista Biggio

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, automated robot assistant whose job is to read invoices, receipts, and contracts. You ask it questions like, "How much do I owe?" or "What is the invoice number?" and it looks at the image of the document and gives you the answer. This technology is called Document Visual Question Answering (DocVQA).

This paper is a security report that says: "This robot is easily tricked by invisible magic tricks."

Here is a simple breakdown of what the researchers found, using everyday analogies:

1. The Setup: The Robot and the Document

Think of the DocVQA model as a super-fast librarian who can read a document and answer questions about it instantly.

  • Old way: The librarian would first use a scanner (OCR) to turn the picture of the paper into typed text, then read that text.
  • New way (The paper's focus): The librarian looks directly at the picture of the paper, understanding the layout, the fonts, and the numbers all at once, without needing to "type it out" first. This is faster and smarter.

2. The Problem: The "Invisible Ink" Trick

The researchers discovered that you can fool this smart librarian by making tiny, almost invisible changes to the document image.

  • The Analogy: Imagine you have a receipt. You take a magic marker and change a single pixel (a tiny dot of color) in the corner of the paper. To your human eye, the receipt looks exactly the same. But to the robot, that tiny change is like a loud siren that screams, "Ignore the total price! The total is now $0.00!"
  • The Result: The robot confidently gives you the wrong answer, even though the document looks unchanged to a human.

3. The Two Ways They Did It

The researchers tested two methods of "tricking" the robot:

  • The "Full-Document" Trick: They scattered tiny, invisible changes all over the entire page. This is like dusting the whole receipt with invisible powder that confuses the robot's brain.
  • The "Patch" Trick: They put a small, invisible "sticker" (a patch) in just one corner of the document (like the bottom right). Surprisingly, this tiny sticker was enough to make the robot forget the total amount or change the invoice ID.

4. The Three Types of Tricks

The researchers showed they could trick the robot in three specific ways:

  1. The "Specific Lie" (Targeted Single): They made the robot say a specific wrong answer for just one question. Example: Making the robot say the total is $0.00 when it's actually $128.
  2. The "Mass Confusion" (Targeted Multi): They tried to make the robot lie about multiple questions at once. Example: Changing the total, the date, and the invoice number all at the same time. They found this is harder to do; the robot gets confused, but it's tough to make it lie about everything perfectly at once.
  3. The "Refusal to Answer" (Denial of Answer): They didn't care what the wrong answer was; they just wanted the robot to fail completely. Example: Making the robot say "I don't know" or "Retry" for every question. This was very easy to achieve.

5. The "White-Box" Secret

The researchers admit they had a huge advantage in their experiment. They knew exactly how the robot's brain was built (its code, its settings, and how it processes images).

  • The Analogy: It's like a magician practicing a trick on a friend who is wearing a headset that tells them exactly which card the magician is about to pick.
  • Why it matters: Even with this unfair advantage, the fact that they could break the system so easily proves the system is fragile. If a hacker can do this with full knowledge, they might eventually figure out how to do it without knowing the secrets (though that is harder).

6. The Real-World Danger

The paper warns that if we let AI agents (robots) handle money or legal documents automatically, these "invisible ink" tricks could be dangerous.

  • The Scenario: A bad actor could send an invoice with a tiny, invisible patch. An automated banking system reads it, gets tricked, and authorizes a payment of $0.00 instead of the real amount, or approves a fake transaction.

Summary

The paper doesn't say this technology is useless. Instead, it's a "Warning Label." It says: "We built a very smart robot to read documents, but we just found out that a tiny, invisible speck of dust can make it hallucinate completely wrong answers."

The researchers released their "magic tricks" (code) so that other scientists can study them and build stronger shields to protect these systems in the future.

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 →