Deep dives · 2026-11-27 · Basic · By bombong
Document information extraction: using a VLM to extract fields and attach confidence and evidence locations
A VLM (vision-language model) can look at a document image and extract the required field values directly, but a value on its own gives you no way to check whether it is correct. In practice, systems are therefore designed to output, for each value, where in the original it was read from and how reliable it is, and to send low-confidence values to a person for review.
Contents
- Why it was needed: reading text is not the same as extracting information
- Key idea: a reviewer who hands back both highlights and question marks
- How it works: classify → extract → verify → route
- How it developed: from layout models to data augmentation
- Where things are heading: models that think about layout first, prompts that decide the type first
- Limitations and open issues: when to trust and when to hand off to a person
- Further reading
- The difficulty of document information extraction (KIE) lies less in character recognition than in the variety of layouts and the shortage of training data. VLMs reduce this burden by adapting to a new form from just a few examples and instructions.
- A system that outputs only field values gives no sign when it is wrong. If it also outputs the evidence location (a bounding box), a person can check it against the source right away, and automatic verification also becomes possible.
- When the evidence is not in the image, the model may fill in the blank using relationships it memorized from its training data. Because this can leak personal information, 'values without evidence' must be filtered out.
- Rather than relying on a single score the model assigns itself, it is safer to set confidence by combining several signals, such as format checks, evidence matching, and agreement across repeated extractions. Values below the threshold are sent to human review.
- Recently, two approaches have drawn attention: unified models that reason about the layout (positions and reading order) first and then answer, and methods that first classify the document type and then extract with a prompt suited to that type.
Why it was needed: reading text is not the same as extracting information
Pulling out the 'issue date', 'amount', or 'business registration number' from documents such as invoices, certificates, and application forms is called Key Information Extraction (KIE). Because these documents mix text with tables, boxes, stamps, and handwriting, they are called 'visually rich documents (VRD)'. The VRD-IU competition report paper concluded that form-type documents are especially difficult because of complex layouts, the involvement of multiple stakeholders, and high structural variability. The Form-NLU dataset used in this competition includes digital, printed, and handwritten documents.
Older methods fell into two broad groups. One is a sequential pipeline that first reads the text with OCR (optical character recognition) and then finds fields with rules or a separate model. The other is an end-to-end model trained on a large amount of labeled data for a specific form. The classification-guided VLM study paper points out that both approaches are hard to scale because they need new data and training every time the layout changes.
A survey of multimodal LLM-based document understanding paper explains that the field splits into methods that go through OCR and OCR-free methods that read the image directly, and it names data scarcity, multi-page documents, and multilingual documents as common challenges. In practice there is one more problem. Even if the model answers 'Amount: 1,200,000', you cannot check whether it is correct without knowing where the value came from. This article therefore covers a design that attaches confidence and an evidence location to each value.
Older methods vs. VLM approach
OCR pipeline / per-form trainingRead first, then search
- New rules and data needed when the form changes
- Requires lots of labeled data
- Text positions easy to get from OCR output
VLM extractionExtract directly while looking
- Adapts to new forms with a few examples and instructions
- Source of each value must be requested separately
- Risk of making things up without evidence
공통 Both aim to extract specified field values from documents
Key idea: a reviewer who hands back both highlights and question marks
Picture an experienced office clerk entering data from paperwork. When copying a value, they highlight the corresponding box on the original, and they put a question mark next to boxes that are smudged and hard to read. Whoever reviews it later can quickly compare against the original thanks to the highlights, and can go back to only the boxes marked with question marks.
A VLM-based extraction system is built with the same structure. For each field it outputs three things together. The first is the value, the second is the evidence location (the page number of the document and the rectangle coordinates surrounding the value, i.e., a bounding box), and the third is the confidence (how far the value can be trusted automatically). The highlight is the evidence location, and the question mark is low confidence.
The reason for this design is cost. If a person rechecks every document, there is no point in automating; if nobody checks anything, wrong values flow straight into accounting or review systems. Evidence locations and confidence narrow down 'where to look', so that human review time is concentrated on suspicious values.
How it works: classify → extract → verify → route
1) Read the document. Feed the image directly to the VLM, or feed it together with the OCR text. According to a study that traced failure causes in multi-page documents paper, the two sources complement each other. The image reduces errors from the parser (the tool that converts a document into text), and the extracted text makes the model less sensitive to image resolution.
2) Classify the document type and specify the schema. First classify whether it is, say, a business registration certificate or a tax payment certificate, then put the list of fields for that type (the schema) and a few examples into the prompt. The classification-guided VLM study paper separated classification and extraction in this way and injected type-specific knowledge by putting examples in the prompt (in-context learning). The authors viewed this as a form of conditional computation: deciding the type first reduces the uncertainty of the problem the model has to solve.
3) Extract the value and the location together. Using structured output (a fixed format such as JSON), receive the value, page number, and bounding box for each field. 4) Verify and assign confidence. This step is general industry practice. It uses format checks on dates, amounts, and numbers; matching that checks whether the OCR text at the evidence location agrees with the value; cross-checks that test whether results agree when the same document is extracted again or with a different model; and cross-field rules such as total = sum of line items. 5) Route. If a value passes all checks and its score is at or above the threshold, it is accepted automatically; otherwise it is sent to the human review queue along with a screen showing the evidence location.
How it developed: from layout models to data augmentation
Before VLMs became widely used, layout transformers such as LayoutLMv3, which take text, position, and image together as input, were the mainstream. ROAP paper pointed out two weaknesses of this family. One is that they do not explicitly model logical reading order; the other is that visual tokens dilute attention to the text. ROAP extracts a hierarchical reading order from complex layouts and reflects it in attention, and adds a mechanism to suppress visual noise. Keeping the pretrained backbone unchanged, it consistently improved the performance of LayoutLMv3 and GeoLayoutLM on the FUNSD and CORD benchmarks. The fact that reading order and position information directly affect extraction quality also connects to this article's topic of evidence locations.
Some studies tackle data scarcity head-on. SynDoc paper started from the problem that multimodal LLMs hallucinate and lack domain adaptation on documents from sensitive fields such as medicine, finance, and materials science. It therefore combined a discriminative model with a generative model, created annotations with synthetic data, and stabilized predictions through recursive inference that repeatedly refines the outputs of the two models. VERSE paper clustered the VLM's visual embedding space to find regions where errors concentrate, then retrained with synthetic data containing those features. As a result, F1 (a score combining precision and recall) rose substantially without hurting generalization. It also reported that Donut and Idefics2 running on-premises matched or outperformed SaaS offerings such as GPT-4 and Pixtral.
On the evaluation side, the VRD-IU competition paper set a meaningful standard. Track A was entity-based key information retrieval, and Track B was an end-to-end task of finding even the 'location' of key information in the original image. More than 20 teams took part, competing with methods such as hierarchical decomposition, multimodal feature fusion, and object detection. Evaluating location, not just value, as a separate task connects directly to this article's topic.
Where things are heading: models that think about layout first, prompts that decide the type first
The first trend is unified models in which a single model handles parsing, layout analysis, and information extraction. Qianfan-OCR paper is a 4B-parameter VLM that converts images directly to Markdown and, depending on the prompt, performs table extraction, document question answering, and key information extraction. End-to-end approaches tend to lose explicit layout information. To compensate, Qianfan-OCR adds an optional thinking step called 'Layout-as-Thought', which generates bounding boxes, element types, and reading order before producing the final answer. The authors stated that this step restores layout grounding ability and improves accuracy on complex layouts, and they reported the highest average score on public key information extraction benchmarks. Making the evidence location part of the output points in the same direction as the design described in this article.
The second trend is using models without training (zero-shot). The classification-guided VLM study paper recorded an F1 of 86.43% with a zero-shot approach based on Qwen2.5-VL-7B on real-world bidding document data mixing 16 types of certificates. That is 18.35 percentage points higher than the 68.08% of a strong supervised baseline. Adding fine-tuning on domain data raised F1 to 93.65%, and the study reported robustness to stamps, watermarks, and low contrast. This supports the practical order of starting with prompts and moving to fine-tuning once data accumulates.
The third trend is safety. A study analyzing document MLLMs for ID-card processing paper showed that when visual evidence in the image is insufficient, the model infers the blanks from relationships between fields memorized from its training data, and as a result several sensitive personal information fields can leak together. The authors proposed DRUF, an unlearning framework that suppresses leakage of risky field pairs, along with DocPrivacyBench for evaluation, and reported a 4.8 percentage point improvement in leakage suppression over the strongest baseline. This shows that the rule 'do not trust values without an evidence location' is a privacy issue as well as an accuracy issue.
Extraction F1 on 16 types of bidding certificates
Limitations and open issues: when to trust and when to hand off to a person
First, there is the question of whether the confidence score itself can be trusted. Even if the model says it is '95% confident', there is no guarantee this matches its actual accuracy. This is a general caution, not something drawn from the cited sources. Confidence should therefore be set by combining it with external signals such as format checks, evidence matching, and agreement across repeated extractions, and the threshold should be tuned against actual review results. It is safer to start with a conservative threshold that keeps the human review rate high, then lower it field by field as records accumulate.
Second, getting the model to answer 'I don't know' also has a cost. The failure-tracing study paper reported that abstention reduces unsupported answers but increases abstentions in cases where abstaining was unnecessary. The effect differed by model depending on how it interacted with reasoning instructions. The same study showed that even when all the evidence for the correct answer is present, adding other relevant pages can fix some wrong answers and break some correct ones. Overall accuracy numbers alone do not reveal this instability, so results should be recorded separately by field and by failure type.
Third, personal information. As the study mentioned earlier paper shows, a model can 'make up' plausible values from blurry or cropped ID cards. You need a rule that a value is not accepted automatically if its evidence location is empty or the text at that location does not match the value. Common mistakes include receiving bounding boxes but never using them for actual matching; extracting with the wrong schema when the document type is misclassified (classification confidence must also be managed separately); and evaluating only on clean samples while leaving out documents with stamps, handwriting, or low resolution. A survey of long-document understanding paper also named evidence sufficiency and 'understanding that can be verified and corrected' as future challenges.
Pre-deployment checklist for extraction systems
Evidence
- Does every value come with a page number and bounding box?
- Do you check that the text at the evidence location matches the value?
- Are values with empty evidence excluded from automatic acceptance?
Confidence
- Do you combine format and cross-check signals beyond the model's own score?
- Do you tune thresholds per field against actual review results?
- Do you also manage document type classification confidence separately?
Evaluation
- Did you include documents with stamps, handwriting, and low resolution in evaluation?
- Do you record results by field and by failure type, beyond overall accuracy?
- Do you check whether personal information fields are filled in without evidence?
Further reading
To get the overall landscape first, start with the survey of multimodal LLM-based document understanding paper. It covers OCR-based and OCR-free approaches, training methods, and the data scarcity problem in one place. To extend to multi-page documents and evidence retrieval, the task-oriented survey paper breaks the field into four components: parsing, evidence organization and retrieval, generation, and evaluation.
As a paper directly useful for practical design, start with the classification-guided VLM study paper. It lets you compare the type classification → prompt → extraction sequence along with zero-shot and fine-tuning numbers. Next, reading about Layout-as-Thought in Qianfan-OCR paper helps you understand how to put evidence locations into the model output. For designing tasks that also evaluate location, Track B of the VRD-IU competition report paper is a useful reference.
To understand risks at the operations stage, read the failure-tracing study paper together with the personal information leakage study paper. If you want to know how to adapt to domains with little data, compare the synthetic data strategies of SynDoc paper and VERSE paper; approaches that improve the internals of layout transformers can be found in ROAP paper.
Related terms
VLM Structured output Human-in-the-loop Hallucination Synthetic data Personal data de-identification Machine unlearning Prompt engineering
References
Foundational papers
- A Survey on MLLM-based Visually Rich Document Understanding: Methods, Challenges, and Emerging Trends (2025)
- VRD-IU: Lessons from Visually Rich Document Intelligence and Understanding (2025)
- ROAP: A Reading-Order and Attention-Prior Pipeline for Optimizing Layout Transformers in Key Information Extraction (2026)
- SynDoc: A Hybrid Discriminative-Generative Framework for Enhancing Synthetic Domain-Adaptive Document Key Information Extraction (2025)
- VERSE: Visual Embedding Reduction and Space Exploration. Clustering-Guided Insights for Training Data Enhancement in Visually-Rich Document Understanding (2026)
- Locating Failure in Multi-Page Visually Rich Document Understanding Systems: An Empirical Attribution (2026)
- A Task-Centric Survey of Long-Document Visual Question Answering: Taxonomy, Evolution, and Future Directions (2026)
Recent research
Written by AI from the listed references and reviewed. Please check the original sources for details.