One AI Paper, One Project
Document AIBy Amine Ait Elamiri

DoubleTake.
Checking the answer.

I built a document reader to test whether a focused second look helps it answer questions about technical datasheets.

Try the projectRead the paper

What the paper changes

An AI can find the right page and still read it incorrectly. In a datasheet, that can mean taking a value from the wrong row or overlooking a footnote.

DoubleTake compares two preliminary answers and their evidence, then chooses a specific fact to check. A verifier inspects that fact in the original page images without seeing the proposed answers or evidence records. A final step uses that observation to answer the original question.

For example, before calculating the difference between two currents, the check could ask which value belongs to each operating mode. The workflow uses an existing vision-language model, with no additional training.

Paper: “DoubleTake: Focused Verification of Visual Evidence for Long-Document Understanding,” first released November 13, 2026. The authors report 66.76% aggregate accuracy versus 65.97% for general rereading across four benchmarks. Those are the paper's results, separate from my experiment below.

What I built

A reader that retrieves relevant PDF pages, reads their images with Qwen3-VL 8B, and runs three answering approaches. I built the experiment runner, source viewer, and a comparison on 40 questions from three hardware documents.

The public demo replays saved model outputs so you can inspect the answers immediately. The downloadable code also accepts another PDF and question for a local run.

The comparison

  1. Answer once. Read the retrieved pages and answer the question.
  2. Read again. Revisit the pages with the original question, then produce a final answer.
  3. Check a specific fact. Revisit the pages with the question selected by the DoubleTake planner, then produce a final answer.

The two checking versions share the same six preparation calls and the same pages. Each uses eight model calls in total. The difference is the question the verifier receives.

Primary evaluation: supported responses out of 40
ApproachSupported responses
Answer once35 / 40
Read again36 / 40
Check a specific fact34 / 40

Both the answer and its explanation must agree with the source to pass. This is a small, deliberately selected set with coding-assistant source review, not independent blind grading.

One correction, and one new mistake

For a Wi-Fi transmit-current question, the first answer said the requested value was absent. Both checking approaches found 291 mA in the table.

ESP32-S3 current-consumption table showing 291 mA for 802.11g at 54 Mbps and 19 dBm
Original ESP32-S3 datasheet, PDF page 66. The same source is available in the demo.

On a different question, the first answer correctly calculated 91 − 88 = 3 mA. The focused verifier swapped the HT20 and HT40 row labels. Its final answer repeated the swap and omitted the requested difference. General rereading stayed correct.

Another focused answer kept the right number but invented a value in its explanation. That is why I checked the explanations as well as the short answers.

What I tried to fix

First, I asked the model to rewrite its checking question without assumptions. Neither of the two selected failures improved. One rewrite kept the wrong current assumption. The other lost the requirement for a guaranteed maximum and asked about a typical value.

In a separate four-case follow-up, I asked the verifier to record labels, values, units and conditions together. I compared this with fresh runs of the original verifier on three failed cases and one previously successful example.

Selected caseOriginal promptRevised prompt
PSRAM footnoteIncorrectIncorrect
Guaranteed maximumIncorrectIncorrect
Two receive-current rowsIncorrectCorrect final answer
Previously recovered valueCorrectCorrect

The revised prompt recovered the final answer on the row-swap case. But its evidence record still mislabeled one entry, while another field contained the correct condition. A correct final answer did not mean all the intermediate evidence was correct.

These were selected development cases, with one attempt per condition. All 16 new calls completed. They do not change the original 40-question scores or establish a reliable improvement.

Download the follow-up report · Inspect the follow-up reviews

For this small setup, I'd keep the general reread. The focused check could repair an answer, but it could also introduce errors. I would need broader tests before choosing it for a document-reading application.

Implementation differences and limits

The paper uses ColPali retrieval and BF16 model precision. My local adaptation uses BM25 over selectable PDF text, up to two pages per search, and a quantized Qwen3-VL 8B model. It reads full-page images rendered at 1120 pixels wide. This is an independent adaptation, not a reproduction of the paper's benchmark.

The questions and references were frozen before the primary run. References never enter the model prompts. Checking adds model calls: the original median model-call totals were approximately 27 seconds for answering once, 70 seconds for rereading, and 63 seconds for focused checking. Those single-run measurements exclude retrieval and PDF rendering and are not a rigorous speed benchmark.

The source pages and model outputs are real. Highlights in the demo are editorial aids, not model attention maps. Citation formatting is not included in the supported-response score.

Full protocol

What helped me understand the paper

Explore the comparisonDownload code and results
All projects