DocMIDE: Learning Multi-Hop Implicit Derivation in Visually Rich Documents
Organizations: VX Real Limited · The Hang Seng University of Hong Kong · The Hong Kong Polytechnic University
Abstract
Real-world document processing systems rely on rigid, predefined schemas, yet critical target fields often lack direct visual counterparts on the page. Extracting these implicit values requires multi-hop derivation, such as aggregating sub-categories or reasoning over visual marks. While existing methods handle explicit text spans or simple implicit queries, they fail at multi-hop visual reasoning even after standard fine-tuning: models retrieve incorrect visual evidence, or retrieve it correctly and then skip the intermediate steps of the derivation. To address this, we introduce DocMIDE, a fine-tuning framework that trains compact vision-language models to retrieve visual evidence explicitly before deriving an answer. DocMIDE constrains generation to a plan-retrieve-derive structure and optimizes it with Group Relative Policy Optimization under a four-component, rule-based reward that scores output format, the retrieved evidence block, every intermediate derivation step, and the final value against a verified reference trace. On a 4,151-pair implicit extraction benchmark, DocMIDE raises accuracy from 70.8% to 95.9% on Qwen3.5-4B from only a small set of annotated examples, and transfers to a second backbone architecture. Supervised demonstrations alone do not close this gap at any budget we tested; rewarding the intermediate steps is what does.
Figures & tables
| Model | Synthetic | Real | Overall |
|---|---|---|---|
| Traditional OCR Pipelines | |||
| GLM-OCR [ 10 ] | 32.9% | 44.5% | 36.1% |
| BLOCKIE [ 15 ] | 60.6% | 68.6% | 62.8% |
| Base VLMs | |||
| Qwen3.5-4B [ 5 ] | 65.1% | 85.5% | 70.8% |
| InternVL3.5-4B [ 6 ] | 4.2% | 37.6% | 13.5% |
| Model Size | Untuned Base | Standard FT | Ours (DocMIDE) |
|---|---|---|---|
| Qwen3.5-4B | 70.8% | 69.0% | 95.9% |
| Qwen3.5-2B | 76.9% | 54.0% | 83.3% |
| Qwen3.5-0.8B | 63.6% | 25.3% | 72.3% |
| InternVL3.5-4B | 13.5% | 54.2% | 82.6% |
| Page Parsing | Question Answering | ||
|---|---|---|---|
| Model | OmniDocBench | ChartQAPro | DocVQA |
| Traditional OCR Pipelines | |||
| GLM-OCR [ 10 ] | 60.1 | – | – |
| BLOCKIE [ 15 ] | 44.3 | 42.0% | 48.6% |
| Base VLMs | |||
| Qwen3.5-4B [ 5 ] | 61.8 | 15.8% | 81.9% |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Training exemplars | Synthetic | Real | Overall |
|---|---|---|---|
| 50 (used in Table II ) | 63.6% | 83.2% | 69.0% |
| 200 (full pool) | 62.9% | 83.8% | 68.7% |