betaFeedback

WorksComputer Science

When Ink Meets Pixel: Intent-Aware OCR with VLMs for Human-Corrected Financial Documents

Abstract

Human annotations on documents (such as arrows, carets, strikethroughs, and insertions) express corrective intent yet existing OCR and document understanding systems treat these marks as visual noise rather than semantic edit operations. We introduce intent-aware OCR, the task of generating corrected transcriptions by jointly reasoning over original document content and visual intent cues (handwritten or digital) that convey edit intent. To support this setting, we present DocIntent, a multimodal dataset of 1,600 financial documents with over 5,700 annotated visual intent cues, each paired with layout-aware, intent-resolved OCR targets. We further introduce IntentBench, a 216-document benchmark designed to evaluate model robustness under diverse real-world annotation conditions. Leveraging DocIntent, we fine-tune DocIntentOCR, a suite of 3B and 7B parameter vision-language models, under direct intent supervision on corrected transcriptions. On IntentBench, the fine-tuned 3B and 7B models achieve F1-scores of 0.81 and 0.83, respectively, substantially outperforming commercial closed-source (e.g., GPT-4.1 (0.626)), and open-source models (e.g., LLaMA-3.2-Vision-90B (0.50)) demonstrating that intent-aware supervision enables compact domain-specific models to outperform substantially larger general-purpose systems on this task. This work establishes intent-aware OCR as a novel human-in-the-loop document understanding task and provides foundational resources (dataset, benchmark, models) to advance research in interactive document processing.

Introduction

When an accountant draws a strikethrough across an incorrect line item on an invoice, or a compliance officer inserts a corrected figure with a caret symbol, these marks constitute a decision – a deliberate instruction to modify the document. Across finance, legal, and auditing workflows, printed and digital documents routinely pass through human hands, accumulating annotations that encode corrective intent: deletions, replacements, insertions, and verifications. These visual cues – strikethroughs, arrows, carets, and circled values – form a rich, informal language through which reviewers communicate how document content should be changed. The scale of this problem is significant: of the estimated 550 billion invoices produced globally each year [11], fewer than one-third achieve straight-through processing without human intervention [3], leaving the majority subject to manual review workflows where such annotations accumulate.

Optical Character Recognition (OCR) systems, from traditional engines such as Tesseract [17] to modern Vision-Language Models (VLMs) like LayoutLM [21], Donut [10], DeepSeek-OCR [20] are designed to extract text while being invariant to visual noise. The result is a fundamental disconnect: OCR output reflects the original, unannotated document, not the human intended version, because visual cues are treated as noise. In practice, this forces organizations to rely on additional manual correction or brittle rule-based post-processing pipelines that operate outside the visual document space (Barchina et al., 2009).

We argue that this limitation reflects a missing abstraction: existing OCR formulations lack a mechanism for modeling human intent. Annotations (handwritten or digital) are not arbitrary marks—they are visual edit commands: strikethroughs indicate deletions, carets indicate insertions, and arrows indicate moves. We formalize this as intent-aware OCR, a document analysis task in which transcription is conditioned on both printed content and visual intent cues, interpreted as semantic edit operations. Depending on scope, these operations may span tokens, fields, table cells, rows, or entire columns.

To enable systematic study of this task, we introduce DocIntent, a multimodal dataset of 1,600 synthetic financial documents augmented with over 5,700 visual intent cues, each paired with a layout-aware, intent-resolved OCR target. For realistic evaluation, we present IntentBench, a 216-document benchmark of real-world annotated financial documents. Leveraging these resources, we fine-tune DocIntentOCR—a family of 3B and 7B models—under direct intent supervision, showing that these compact, domain-specific models achieve up to 0.83 F1, substantially outperforming significantly larger closed- and open-source models, including GPT-4.1 (0.626) and LLaMA-3.2-Vision-90B (0.50).

In summary, this work makes the following contributions:

  • We formalize intent-aware OCR, a task that generates corrected transcriptions by interpreting visual feedback cues (e.g., arrows, strikethroughs, insertions) as edit operations.

  • We introduce DocIntent (1,600 documents, 5,700+ intent cues) and IntentBench (216 real-world documents), the first dataset and benchmark for intent-aware OCR.

  • We fine-tune DocIntentOCR under direct supervision, showing that intent-aware fine-tuning enables compact VLMs to outperform much larger models on this task.

By treating handwritten annotations as executable edits rather than noise, this work opens a new direction in document understanding – one where OCR systems become participants in, rather than bystanders to, human review workflows.

Related Work

OCR research has progressed from rule-based engines (Smith, [17]) to layout-aware pretrained models ([21, 9]), end-to-end architectures ([10, 5]), and unified models such as GOT-OCR (Wei et al., [19]) and DeepSeek-OCR (Wei et al., [20]). General-purpose VLMs (Bai et al., [1]) and document-specialized architectures (Liu et al., [13]) achieve strong results on benchmarks like DocVQA (Mathew et al., [15]). These systems optimize for text fidelity—handwritten annotations are transcribed verbatim or suppressed as noise, never interpreted as edit operations. Offline handwriting recognition (Marti and Bunke, [14]; Gervais et al. [6]) and strikethrough-removal systems (Heil et al., [7]) similarly treat annotations as signal to recognize or remove.

Human-in-the-loop paradigms such as active learning (Settles, [16]) and interactive machine translation (Barrachina et al., [2]) incorporate user feedback through iterative refinement after a model produces output. Intent-aware OCR inverts this: corrective intent is embedded directly in the input as visual annotations, and the model must recover it from a single static image without iterative clarification.

Intent-Aware OCR: Task Definition

This section formalizes intent-aware OCR as a document analysis task, defines the space of visual intent cues and their induced edit operations, and specifies the evaluation protocol.

Formulation

Let II denote a document image containing printed text, layout structure, and zero or more handwritten or digital annotations. A conventional OCR system maps II to a transcription TT that faithfully reproduces all printed content. Intent-aware OCR instead maps II to an intent-resolved transcription OO that reflects modifications specified by visual annotations. Importantly, the formulation is agnostic to the serialization format of OO: it applies equally whether the output is a layout-aware transcription that preserves two-dimensional document structure, a linear reading-order rendering, or any other text representation. The edit operations defined below operate over logical document regions (tokens, cells, rows, columns, tables) and are therefore independent of how the final transcription is linearized.

We model this as follows. Let TT denote the base transcription of the printed content, and let H={h1,h2,…,hn}\mathcal{H} = \{h_1, h_2, \ldots, h_n\} denote the set of visual intent cues present in the image. Each cue hih_i is associated with:

  1. a cue type cic_i drawn from the taxonomy in Table 4 (Appendix § 8),

  2. a structural scope sis_i specifying the granularity of the edit (token, field, cell, row, column, or table), and

  3. an optional replacement value viv_i (for replacement and insertion operations).

CategoryCue TypeScopeExpected OCR Behavior
DeletionStrikethroughToken / FieldMarked content is omitted from the output.
DeletionRow StrikethroughTable RowAll cells in the struck-through row are removed.
DeletionColumn StrikethroughTable ColumnAll values in the struck-through column are removed.
DeletionFull-Table StrikethroughTableThe entire table is omitted from the output.
ReplacementStrikethrough + Handwritten ValueToken / FieldStruck-through text is replaced by the nearby handwritten value.
ReplacementArrow-Indicated ReplacementToken / FieldStruck-through text is replaced by the value the arrow points to.
ReplacementCell CorrectionTable CellThe cell value is replaced by the handwritten correction.
ReplacementRow CorrectionTable RowEach cell in the row is substituted with its per-cell replacement.
ReplacementColumn CorrectionTable ColumnEach cell in the column is substituted with its replacement value.
InsertionCaret InsertionToken / FieldNew handwritten text is inserted at the caret position without deleting existing content.
InsertionArrow-Indicated AdditionToken / FieldNew content is inserted at the location indicated by an arrow.
InsertionInline Handwritten AdditionToken / FieldNew handwritten content is inserted adjacent to existing text without explicit caret.
Selection / ValidationTick Mark (✓)Token / FieldMarked content is explicitly selected or confirmed as valid.
Selection / ValidationCross Mark (X)Token / FieldMarked content is explicitly rejected or invalidated (often implying deletion).
Selection / ValidationFilled Circle / HighlightToken / FieldCircled or highlighted content is emphasized as relevant or selected.
Natural LanguageInstructional OverrideVariableFree-form text (e.g., “replace with 500”) explicitly overrides existing content.
Natural LanguageInstructional DeletionVariableTextual cues (e.g., “ignore this row”) remove specified content from output.
Natural LanguageInstructional AdditionVariableTextual cues (e.g., “add GST”) introduce new content at contextually appropriate locations.

Table 4. Taxonomy of visual and semantic intent cues for intent-aware OCR. Each cue induces a deterministic edit over the base transcription at a specific structural granularity.

Each cue hih_i induces a deterministic edit operation ei=(ci,si,vi)e_i = (c_i, s_i, v_i) over the base transcription. The intent-resolved output is defined as the sequential application of all edit operations:

O=en∘en−1∘⋯∘e1(T)O = e_n \circ e_{n-1} \circ\cdots\circ e_1(T)

In our formulation, each edit eie_i targets a spatially distinct region of the base transcription (a specific token span, cell, row, column, or table). When edit scopes are pairwise disjoint 1, the composition is commutative and the ordering is immaterial. In principle, overlapping scopes can arise (e.g., a row-level deletion and a cell-level replacement within the same row); we treat such cases as annotation ambiguities outside the scope of this taxonomy, and they do not occur in DocIntent or IntentBench.

Critically, the model does not observe TT or H\mathcal{H} directly—it must infer both from the raw image II. The task therefore requires the model to simultaneously: (1) recognize the printed document content, (2) detect and classify visual annotations, (3) determine the structural scope of each annotation, and (4) apply the induced edits to produce the final output.

Handling Out-of-Taxonomy Annotations. The taxonomy in Table 4 (Appendix § 8) does not exhaustively cover every handwritten annotation convention (e.g., circling, underlining, or marginal comments); these were deliberately excluded because they are structurally ambiguous—a circle, for instance, can indicate deletion, emphasis, or a query depending on context—and including them without an operationally unambiguous definition would undermine consistent supervision. For an annotation that does not match any of the ten defined cue types, the expected (and current) model behavior is a no-op: the underlying text is retained as-is, and the model is expected to flag the unmatched region in its output rather than silently guessing an edit. We discuss the disambiguation challenges this introduces, and the resulting coverage limitation, in the Limitations section.

Edit Operation Taxonomy

We define three high-level categories of intent-induced transformations:

  • Deletion: existing text or structured content is marked for removal (e.g., a strikethrough with no replacement value).

  • Replacement: existing content is invalidated and substituted with a corrected value (e.g., a strikethrough accompanied by a handwritten correction).

  • Insertion: new content is introduced at a specified position without removing existing text (e.g., a caret with handwritten text).

Each category may operate at varying structural granularities—from individual tokens to entire rows, columns, or tables. A key property is that the same visual cue maps to different operations depending on context: a strikethrough alone induces deletion, whereas a strikethrough with a nearby handwritten value induces replacement. Table 4 (Appendix § 8) enumerates all cue types, scopes, and expected OCR behaviors, and Figure 2 (Appendix § 8) shows a real annotated example of each.

Representative annotated examples of all ten intent cue types in DocIntent/IntentBench

Figure 2. Representative annotated examples of all ten intent cue types in DocIntent/IntentBench, shown alongside the literal intent-resolved OCR output.

Illustrative Example

Figure 1 illustrates the task on a sample from DocIntent. A human reviewer has: (1) struck through the invoice number #437346 and drawn an arrow pointing to the handwritten replacement 246952 (arrow-indicated replacement at the token level), (2) placed a caret below the word “drop” in the item description with the handwritten text “gold” (insertion at the token level), and (3) scribbled out the phone number (deletion at the token/field level). Standard OCR transcribes the document verbatim and ignores these annotations. Intent-aware OCR interprets each annotation as an edit operation and produces a corrected transcription, outputting 246952 in place of the original invoice number, expanding the description to “Gold m.o.p orbit drop gold earrings,” and omitting the phone number.

Annotated invoice showing replacement, insertion, and deletion cues

Figure 1. A sample annotated invoice from DocIntent. Three intent cues are present.

Output Format

The model produces a layout-aware plain-text transcription that serializes document content according to a two-dimensional spatial grid, where each word is positioned by its row and column index, preserving table boundaries, row/column associations, and reading order ([4]). We adopt this format because financial documents are inherently structured: a value in the wrong row or column constitutes a semantically incorrect transcription even when every individual token is recognized correctly. A flat, reading-order output, while human-readable, loses the spatial relationships that downstream key-value extraction and tabular parsing depend on.

Evaluation Protocol

We evaluate by comparing predicted intent-resolved transcriptions against ground-truth outputs using token-level F1-score, computed over the complete intent-resolved output transcription against the complete ground truth—following established practice in document understanding benchmarks such as DocVQA ([15])—rather than over an extracted span or the cue regions alone. This is a natural fit for a task whose intent errors propagate: a missed deletion or an incorrect replacement value alters the surrounding transcription, not just the annotated token, so all output tokens are scored uniformly regardless of whether they correspond to an intent cue or to unannotated content. Because token-level F1 by itself cannot isolate sequence-level degradation from cascading errors (e.g., a misclassified cue shifting subsequent tokens), we additionally report Word Error Rate (WER), computed as the standard Levenshtein-based word error rate over the linearized intent-resolved transcription (lower is better). F1 captures edit-operation correctness at the token level, while WER captures sequence-level transcription quality; together they give a more complete picture of intent-aware OCR performance than either alone. All evaluation is performed on IntentBench.

Datasets

We introduce two complementary resources: DocIntent, a large-scale synthetic dataset for training, and IntentBench, a real-world benchmark for evaluation. Both are constructed around the visual intent cue taxonomy (Appendix § 8). Table 1 summarizes key characteristics.

StatisticDocIntentIntentBench
# Documents1,659216
Total intent cues5,641758
Avg. cues per doc3.403.03
Avg. tokens per doc157.51175.79
Cue types covered109
Digital (%)74.888.4
Scanned (%)25.211.6
# Document types3318

Table 1. Overview of DocIntent and IntentBench.

DocIntent: Training Dataset

DocIntent is a multimodal dataset of 1,659 financial documents (invoices, statements, and structured forms) augmented with 5,641 visual intent cues spanning all taxonomy categories. The base documents are drawn from a balanced mix of real-world and synthetic sources (Appendix § 10), so that real documents contribute the layout diversity of production financial workflows while synthetic documents allow deterministic placement of intent cues at specific structural granularities. The 74.8% digitally rendered / 25.2% physically annotated and scanned split in Table 1 refers to how the intent cues are rendered (simulated overlays versus physical handwriting), not to the source of the underlying base documents; we make this distinction explicit in Appendix § 10. Table 1 summarizes key statistics; per-cue-type breakdowns are in Appendix § 9. See Appendix § 10 for full annotation protocol details.

Supervision Signal. Each document in DocIntent is paired with a layout-aware intent-resolved transcription that applies all visual cues while preserving two-dimensional document structure (table boundaries, row/column associations, reading order).

IntentBench: Evaluation Benchmark

IntentBench is a held-out benchmark constructed independently of DocIntent and excluded entirely from training. It features diverse financial documents with substantial variation in handwriting styles, annotation density, and layouts, testing generalization beyond the training distribution. Ground-truth annotations are intent-resolved, layout-aware transcriptions. See Table 1 for summary statistics and Appendix § 9 for detailed breakdowns.

Inter-Annotator Agreement. Two annotators independently annotated all 216 IntentBench documents. Agreement, measured by normalized Levenshtein ratio [12], yielded a mean similarity of 0.77 (σ=0.12\sigma= 0.12), indicating moderate-to-strong consistency. Full IAA statistics are in Appendix § 11.

Experimentation

We fine-tune 3B and 7B variants of Qwen2.5-VL-Instruct models on DocIntent using an 80/20 train/validation split. The fine-tuned models are denoted DocIntentOCR-3B and DocIntentOCR-7B, and evaluated on IntentBench. Both models were fine-tuned using LoRA (r=16r=16, α=32\alpha=32) on language model layers with the last vision encoder block unfrozen, optimized with AdamW (1×10−4/1×10−51 \times10^{-4}/1 \times10^{-5}), for 7 and 5 epochs respectively on two NVIDIA A100 40GB GPUs. To fairly evaluate zero-shot models, we provide a prompt that explicitly defines annotation semantics (Appendix § 12.§ 1), as well as the hyperparameter configurations (Appendix § 12.§ 2).

Results

Table 2 reports IntentBench F1 scores. The results reveal a clear pattern: intent-aware fine-tuning on DocIntent is the dominant factor, not model scale. Zero-shot models, including GPT-4.1 (0.626), struggle because they have no mechanism to interpret visual correction marks as semantic edit operations. DocIntentOCR-3B (0.810) and DocIntentOCR-7B (0.833) both outperform all baselines, demonstrating that a compact, locally deployable model trained on intent-aware supervision is a practical and privacy-friendly alternative to large frontier APIs (see Figure 3 for a qualitative comparison with GPT-4.1).

ModelF1WER
Gemini 2.5 Flash0.66531.3306
Gemini 2.5 Pro0.63510.6009
GPT-4.10.62610.9058
Claude Sonnet 4.60.59740.9308
Mistral-Large-3-675B0.60770.9840
Llama-3.2-90B-Vision0.49821.0986
Qwen3-VL-32B-Instruct0.54141.2720
o30.76860.4869
GPT-4o0.80520.4232
Qwen2.5-VL-7B-Instruct (base)0.64850.8172
Qwen2.5-VL-3B-Instruct (base)0.65630.7404
DocIntentOCR-3B0.81020.5622
DocIntentOCR-7B0.83280.2589

Table 2. IntentBench OCR Performance

Comparison of outputs from DocIntentOCR-7B and GPT-4.1 on annotated financial documents

Figure 3. Comparison of outputs from DocIntentOCR-7B and GPT-4.1 on annotated financial documents.

Ablations. Table 3 isolates the contribution of intent-aware supervision from that of model scale, using the pre-fine-tuning Qwen2.5-VL-Instruct checkpoints as the unsupervised reference under matched architecture, prompt, and decoding settings. Intent supervision yields a +0.155 F1 gain at 3B and a +0.184 F1 gain at 7B, whereas increasing model scale alone (3B→7B, both intent-supervised) yields only +0.023 F1 (roughly 7× smaller). This confirms that intent-aware supervision, not parameter count, is the dominant driver of performance on this task.

AblationFromToΔ\DeltaF1
Intent supervision (3B)0.6560.810+0.155
Intent supervision (7B)0.6490.833+0.184
Model scale (supervised)0.8100.833+0.023

Table 3. Ablating intent supervision vs. model scale on IntentBench F1.

Stratified Error Analysis. Token-level F1 alone conflates distinct failure modes: incorrect intent interpretation in edited regions versus spurious hallucination in unedited ones, and performance can vary substantially across cue types. We decompose performance along both axes in Appendix § 13: (i) per-cue-type Edit Exact Match, and (ii) edited-region vs. non-edited-region F1. DocIntentOCR-7B achieves the highest edit exact match on strikethrough-with-replacement, the most frequent cue type (209 instances, 185 documents), and both fine-tuned variants lead or are competitive across nearly all cue types, with the exception of full-table deletion and arrow-indicated replacement, where o3 has a marginal edge. DocIntentOCR-3B matches GPT-4o on edited-region F1 (0.862 vs. 0.868) and achieves the highest non-edited-region F1 (0.832) of all evaluated models, indicating it hallucinates least in unannotated content.

Cross-Domain Generalization. DocIntent and IntentBench are grounded in financial documents. To probe whether intent-aware supervision transfers beyond this domain, we conducted a preliminary cross-domain pilot study on 30 documents spanning three non-financial domains (legal contracts, healthcare records, and real estate contracts; 10 each), evaluating the same models on IntentBench-style annotation interpretation. Full results are reported in Appendix § 14. DocIntentOCR-3B and DocIntentOCR-7B retain their performance advantage over zero-shot VLMs even out-of-domain (F1 of 0.896 and 0.939, respectively, versus 0.875 for the best zero-shot baseline, o3), and the relative ranking of models is largely preserved across domains, suggesting intent-aware supervision generalizes to the annotation-interpretation skill rather than overfitting to financial-specific content. We emphasize this is a preliminary pilot (30 documents, not a full benchmark); a dedicated cross-domain benchmark is left to future work, and we discuss this limitation further in the Limitations section.

Conclusion and Future Work

We present intent-aware OCR, a novel document understanding task that interprets human annotations—strikethroughs, arrows, carets, and insertions as semantic edit operations. To support this task, we introduce DocIntent, a dataset of 1,600+ annotated financial documents, and IntentBench, a 216-document real-world benchmark. Fine-tuned on DocIntent, DocIntentOCR in both 3B and 7B configurations substantially outperform GPT-4.1 and other frontier models in the zero-shot setting, demonstrating that intent-aware supervision is the critical factor rather than model scale. A preliminary cross-domain pilot study (Appendix § 14) further suggests this advantage extends beyond financial documents to legal, healthcare, and real estate contracts. Future work includes releasing a dedicated cross-domain benchmark with broader document coverage, expanding the taxonomy to handle compositional and ambiguous annotations (e.g., circling, underlining, marginal comments), and scaling training data via synthetic image generation.

Limitations

Our main dataset and evaluation are grounded in financial documents; while our cross-domain pilot study (Appendix § 14, 30 documents across legal, healthcare, and real estate domains) offers preliminary evidence of generalization, it is not a substitute for a full cross-domain benchmark, and broader validation remains future work. The taxonomy does not cover all annotation styles such as circling, underlining, and marginal comments; these were excluded because they are structurally ambiguous (e.g., a circle can indicate deletion, emphasis, or a query depending on context) and admit no operationally unambiguous definition, so undefined annotation types are currently treated as a no-op by the model. Extending the taxonomy to these ambiguous conventions, and to other domains’ annotation styles (e.g., accept/reject semantics in legal redlining), is an important direction. The predominantly digital training data (74.8%) may limit robustness to diverse real-world handwriting. Inter-annotator agreement of 0.77 indicates that spatially ambiguous annotations admit subjective interpretations; manual inspection of low-agreement pairs suggests spatially ambiguous annotation placement (e.g., a caret positioned between two candidate insertion points, or a correction near a cell boundary) is the primary source of disagreement, rather than systematic differences in annotator understanding of the taxonomy. Our token-level F1 and WER metrics, while complemented by per-cue-type and edited/non-edited-region analyses (Appendix § 13), do not yet provide a full qualitative taxonomy of systematic vs. random failure modes. Finally, the structural scopes in our taxonomy (token, field, cell, row, column, table) are designed primarily for tabular layouts; documents with irregular or free-form layouts may require alternative scope definitions.

Ethics Statement

Documents in DocIntent and IntentBench are either synthetically generated or sourced from publicly available document collections and templates (Appendix § 10); no private, non-public financial records or personally identifiable information were used. Human annotators were recruited voluntarily, informed of the task purpose, and compensated fairly for their time. Annotation instructions were designed to avoid subjective or harmful content.

Portions of this paper were drafted with the assistance of large language model tools (Claude, OpenAI). All scientific content, experimental results, and conclusions were produced and verified by the authors.

Intent Cue Taxonomy

Table 4 enumerates the full taxonomy. While the ten cue types are grounded in financial documents, the three edit operation categories (deletion, replacement, insertion) are domain-agnostic primitives, and the visual cues that express them (strikethroughs, carets, arrows) are conventional marks used across professional domains. Extending coverage to legal redlining, medical records, or engineering change orders may require additional cue types and scope definitions; empirical validation in non-financial domains remains an important direction for future work.

Figure 2 shows one representative annotated example per cue type actually present in DocIntent and IntentBench (the 10 cue types summarized in Table 1).

Dataset Statistics

Table 5 and Table 6 report the per-cue-type distribution of visual intent cues in DocIntent and IntentBench, respectively. Replacement cues dominate both splits, with strikethrough-with-replacement and arrow-indicated replacement being the most frequent types.

CategoryCue TypeTotalDocsAvg./Doc
DeletionStrikethrough w/o Replacement9868330.59
DeletionTable Row Deletion1891690.11
DeletionTable Column Deletion3333030.20
DeletionFull Table Deletion1331300.08
ReplacementStrikethrough w/ Replacement1,8801,2331.13
ReplacementArrow-Indicated Replacement1,2141,0100.73
ReplacementTable Cell Replacement4633150.28
ReplacementTable Row Replacement16120.01
ReplacementTable Column Replacement45330.03
InsertionCaret Insertion3823310.23
Total5,641–3.40

Table 5. Distribution of visual intent cues in DocIntent. Each row reports the total number of cue instances, the number of documents containing at least one instance, and the average frequency per document across all 1,659 documents.

CategoryCue TypeTotalDocsAvg./Doc
DeletionStrikethrough w/o Replacement1601430.74
DeletionTable Row Deletion110.00
DeletionTable Column Deletion30300.14
DeletionFull Table Deletion12120.06
ReplacementStrikethrough w/ Replacement2091850.97
ReplacementArrow-Indicated Replacement1921800.89
ReplacementTable Cell Replacement28230.13
ReplacementTable Column Replacement110.00
InsertionCaret Insertion22210.10
Total655–3.03

Table 6. Distribution of visual intent cues in IntentBench. Each row reports the total number of cue instances, the number of documents containing at least one instance, and the average frequency per document.

Annotation Protocol

Data Sources. DocIntent base documents (prior to annotation) are drawn from a balanced mix of real-world and synthetic sources spanning 33 document types. Real-world documents (approximately 53% of the corpus) are sourced from the publicly available UCSF Industry Documents Library ([18]) and other publicly distributed finance document collections, contributing the layout and content diversity found in production financial workflows. Synthetic documents (approximately 47%) are produced by two complementary pipelines: (i) custom-built HTML financial templates populated with synthetically generated content (names, line items, amounts) designed to be mathematically consistent (e.g., correct subtotals, taxes, and grand totals) and rendered to images via a headless browser, and (ii) the Inv3D dataset ([8]), which provides high-resolution synthetic 3D-rendered invoices. Synthetic documents give precise control over layout, table structure, and spatial organization (properties essential for deterministic placement of intent cues at specific structural granularities), while the real-world portion grounds the dataset in authentic document diversity. We note that the 74.8% digital / 25.2% scanned split reported in Table 1 refers to the rendering of the intent cues (digitally simulated annotations vs. physically handwritten and scanned annotations) overlaid on these base documents, not to the source of the base documents themselves.

Handwritten annotations were produced by five annotators with academic backgrounds in commerce and prior exposure to accounting and business documentation. Annotators were given document-specific correction instructions specifying which content to delete, replace, or insert, and were asked to apply corrections using natural handwriting without access to model predictions or automated suggestions. Each annotated document was independently reviewed by a second annotator to verify that all intended cues were correctly applied and visually unambiguous. Annotators were fairly compensated, and the study adhered to established ethical standards.

Inter-Annotator Agreement

To assess the reliability of IntentBench reference annotations, two annotators independently produced intent-resolved transcriptions for all 216 documents; agreement was quantified using the normalized Levenshtein ratio ([12]). Table 7 reports the resulting similarity statistics, with a mean score of 0.77 indicating moderate-to-strong consistency across annotators.

MetricValue
Number of annotation pairs216
Mean similarity0.77
Minimum similarity0.31
Maximum similarity0.99
Standard deviation0.12

Table 7. Inter-Annotator Agreement (IAA) on IntentBench annotations using fuzzy string similarity (normalized Levenshtein ratio).

Experimental Configurations

Prompts

To evaluate DocIntentOCR-3B and DocIntentOCR-7B, we use the same instruction as employed during training: “You are an OCR assistant. Analyze the document image and transcribe all visible text, interpreting any annotations as edit instructions. Produce the final corrected transcription.”

For all other non-finetuned models and closed-source models, we use a slightly expanded prompt to explicitly define annotation semantics: “You are an OCR assistant for annotated financial documents. Interpret annotations as edit instructions (e.g., strikethroughs for deletions or replacements, arrows for replacements, carets for insertions, etc.). Output the final corrected transcription, preserving layout.”

Inference Hyperparameters

All models were evaluated with temperature 0.1, top-pp 0.90, and a maximum output length of 8,000 tokens. Zero-shot baselines were accessed via the OpenAI API (GPT-4.1), Anthropic API (Claude Sonnet 4.6), and AWS Bedrock (Llama-3.2-90B and Mistral-Large-3-675B).

Stratified Error Analysis

Per-Cue-Type Edit Exact Match

Table 8 reports Edit Exact Match (EEM), a stricter metric than token-level F1 that scores 1 only if the correct edited token appears and the struck-through original is absent, broken down by cue type, for all evaluated models on IntentBench. Cue-type membership is determined from IntentBench’s ground-truth annotation flags. We report the seven most frequent cue types (sample sizes for the remaining rare types, e.g., table row/column replacement, are too small for stable per-type estimates; see Table 6).

Cue TypeDocIntentOCR-7BDocIntentOCR-3BQwen2.5-VL-7BQwen2.5-VL-3BGPT-4.1GPT-4oo3Claude-S.-4.6Gemini-2.5-FlashQwen3-VL-32BGemini-2.5-ProLlama-3.2-90BMistral-L.-3
Strikethrough w/o Replacement0.830.850.670.790.730.830.810.710.810.670.830.770.73
Table Column Deletion0.810.810.690.670.690.810.710.700.720.590.690.440.69
Full Table Deletion0.680.710.710.680.720.800.800.680.640.570.710.540.69
Strikethrough w/ Replacement0.790.770.550.570.720.780.750.700.660.620.620.570.57
Arrow-Indicated Replacement0.730.750.530.440.660.760.770.690.680.610.640.370.50
Table Cell Replacement0.880.940.880.590.881.001.001.000.880.940.710.880.82
Caret Insertion1.001.000.800.801.001.000.601.001.001.000.600.600.40

Table 8. Edit Exact Match (EEM) by cue type on IntentBench, for the seven most frequent cue types. Bold marks the best score per row.

DocIntentOCR-7B achieves the highest EEM on strikethrough with replacement, the most frequent cue type (209 instances, 185 documents), and DocIntentOCR-3B leads on strikethrough without replacement. Both fine-tuned variants lead on table column deletion. Across all deletion and replacement cue types, the fine-tuned models consistently outperform their own backbone (Qwen2.5-VL-7B/3B) by substantial margins. The fine-tuned models are competitive with or lead all cue types except full-table deletion and arrow-indicated replacement, where o3 has a marginal edge (0.80 vs. 0.68–0.71 and 0.77 vs. 0.73–0.75, respectively).

Edited vs. Non-Edited Region Analysis

Token-level F1 alone conflates errors in edited regions (incorrect intent interpretation or edit application) with errors in non-edited regions (spurious hallucination or text degradation). Table 9 decomposes performance into Edited Region F1 and Non-Edited Region F1, using the known cue bounding boxes from IntentBench annotations to segment output tokens into edited vs. non-edited spans and computing F1 separately for each.

ModelEdited Region F1Non-Edited Region F1
DocIntentOCR-7B0.86240.8170
DocIntentOCR-3B0.86240.8321
Qwen2.5-VL-7B-Instruct0.71510.7338
Qwen2.5-VL-3B-Instruct0.66990.7074
GPT-4.10.82040.6815
GPT-4o0.86770.8206
o30.86130.8052
Claude Sonnet 4.60.82800.6888
Gemini 2.5 Flash0.81400.7145
Qwen3-VL-32B-Instruct0.77740.6041
Gemini 2.5 Pro0.77100.6938
Llama-3.2-90B-Vision0.65160.5601
Mistral-Large-3-675B0.72040.6828

Table 9. Edited-region vs. non-edited-region F1 on IntentBench. Bold marks the best score per column.

DocIntentOCR-3B matches GPT-4o on edited-region F1 (0.8624 vs. 0.8677) and achieves the highest non-edited-region F1 (0.8321) of all evaluated models, indicating it hallucinates least in unannotated content. In contrast, several strong zero-shot baselines (e.g., GPT-4.1, Claude Sonnet 4.6, Qwen3-VL-32B) show a pronounced gap between edited- and non-edited-region F1, suggesting their errors are concentrated in unedited content rather than in misapplied edits.

Cross-Domain Pilot Study

DocIntent and IntentBench are both grounded in financial documents, and the main results do not provide direct evidence of cross-domain transfer. To provide a preliminary signal on generalization, we conducted a focused cross-domain pilot study on 30 documents spanning three non-financial domains: legal contracts (10), healthcare records (10), and real estate contracts (10), evaluating the same set of models on IntentBench-style annotation interpretation (intent cues overlaid on the documents following the same taxonomy and annotation proprotocol as IntentBench. Table 10 reports F1 and WER.

ModelF1WER
GPT-4.10.80060.4677
Mistral-Large-3-675B0.76980.4578
Gemini 2.5 Flash0.81800.3580
Gemini 2.5 Pro0.85200.2980
Llama-3.2-90B-Vision0.83500.3270
Qwen3-VL-32B-Instruct0.75020.6229
GPT-4o0.86610.2343
o30.87490.2240
Qwen2.5-VL-7B-Instruct (base)0.79710.4397
Qwen2.5-VL-3B-Instruct (base)0.76640.4650
DocIntentOCR-3B0.89610.1540
DocIntentOCR-7B0.93890.0873

Table 10. Cross-domain pilot study (30 documents: legal, healthcare, real estate). Bold marks the best score per column.

Two observations follow. First, DocIntentOCR-3B and DocIntentOCR-7B maintain their performance advantage over zero-shot VLMs even on out-of-domain documents, suggesting that intent-aware supervision generalizes to the annotation-interpretation task rather than overfitting to financial-specific content. Second, the relative ordering of models is largely preserved across domains, indicating that IntentBench rankings are reasonably stable signals rather than domain artifacts. We stress that this is a preliminary pilot (30 documents, not a full benchmark), and we are committed to releasing a dedicated cross-domain benchmark with broader document coverage as future work.

Output comparison of DocIntentOCR-7B with GPT-4.1

References

  1. [1]Shuai Bai, Keqin Chen, Xuejing Liu, and 1 others. 2025. Qwen2.5-VL technical report. arXiv preprint arXiv:2502.13923.arxiv.org/abs/2502.13923
  2. [2]Sergio Barrachina, Oliver Bender, and 1 others. 2009. Statistical approaches to computer-assisted translation. Computational Linguistics, 35(1):3–28.
  3. [3]Andrew Bartolini. 2024. The state of ePayables 2024: Money never sleeps. Technical report, Ardent Partners.
  4. [4]Akshata Bhat, Sindhu Naganna, Saiful Haq, Prayas Khatri, K.C.R. Tamataam, N. Arun, Niyati Chhaya, and Pawan Bhattacharya. 2026. SAVIOR: Sample-efficient adaptation of vision-language models for OCR representation. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV) Workshops, pages 719–728.
  5. [5]Lukas Blecher, Guilherme Correia, and Klemens Müller. 2023. Nougat: Neural optical understanding for academic documents. arXiv preprint arXiv:2308.13418.arxiv.org/abs/2308.13418
  6. [6]Philippe Gervais, Asya Fadeeva, and Andrii Maksai. 2024. MathWriting: A dataset for handwritten mathematical expression recognition. arXiv preprint arXiv:2404.10690.arxiv.org/abs/2404.10690
  7. [7]Raphaela Heil, Ekta Vats, and Anders Hast. 2021. Strikethrough removal from handwritten words using CycleGANs. In Proceedings of ICDAR, pages 572–586.DOI
  8. [8]Felix Hertlein, Alexander Naumann, and Patrick Philipp. 2023. Inv3d: A high-resolution 3d invoice dataset for template-guided single-image document unwarping. International Journal on Document Analysis and Recognition (IJDAR), pages 719–728.DOI
  9. [9]Zhe Huang, Jianlong Wu, Yibo Chen, and 1 others. 2022. LayoutLMv3: Pre-training for document AI with unified text and image masking. In Proceedings of the 30th ACM International Conference on Multimedia, pages 4083–4091.arxiv.org/abs/2204.08387
  10. [10]Geewook Kim, Teakgyun Kim, Jinyoung Kim, and Byung-Seok Roh. 2022. Donut: Document understanding transformer without OCR. In Proceedings of the European Conference on Computer Vision (ECCV), pages 414–430.
  11. [11]Bruno Koch. 2019. The E-Invoicing journey 2019–2025. Technical report, Billentis.
  12. [12]Vladimir I. Levenshtein. 1966. Binary codes capable of correcting deletions, insertions, and reversals. Soviet Physics Doklady, 10(8):707–710.
  13. [13]Yuliang Liu, Biao Yang, Qiang Liu, and 1 others. 2024. TextMonkey: An OCR-free large multimodal model for understanding document. arXiv preprint arXiv:2403.04473.arxiv.org/abs/2403.04473
  14. [14]Urs-Viktor Marti and Horst Bunke. 2002. The IAM database: An english sentence database for offline handwriting recognition. International Journal on Document Analysis and Recognition, 5(1):39–46.DOI
  15. [15]Minesh Mathew, Dimosthenis Karatzas, and 1 others. 2021. DocVQA: A dataset for VQA on document images. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 2200–2209.arxiv.org/abs/2007.00398
  16. [16]Burr Settles. 2009. Active learning literature survey. Technical report, University of Wisconsin–Madison.
  17. [17]Ray Smith. 2007. An overview of the Tesseract OCR engine. In Proceedings of the International Conference on Document Analysis and Recognition (ICDAR), pages 629–633.DOI
  18. [18]UCSF Industry Documents Library. 2024. UCSF industry documents library. https://www.industrydocuments.ucsf.edu/.
  19. [19]Haoran Wei, Chenglong Liu, Jinyue Chen, and 1 others. 2024. General OCR theory: Towards OCR-2.0 via a unified end-to-end model. arXiv preprint arXiv:2409.01704.arxiv.org/abs/2409.01704
  20. [20]Haoran Wei, Yaofeng Sun, Yukun Li, and 1 others. 2025. DeepSeek-OCR: Contexts optical compression. arXiv preprint arXiv:2510.18234.arxiv.org/abs/2510.18234
  21. [21]Yiheng Xu, Minghao Li, Lei Cui, Shaohan Huang, Furu Wei, and Ming Zhou. 2020. LayoutLM: Pre-training of text and layout for document image understanding. In Proceedings of the 26th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 1192–1200.DOI

Paper details

vlnc:W_pdefhwkc
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents