RaV-IDP: A Reconstruction-as-Validation Framework for Faithful Intelligent Document Processing
About
Intelligent document processing pipelines extract structured entities (tables, images, and text) from documents for use in downstream systems such as knowledge bases, retrieval-augmented generation, and analytics. A persistent limitation of existing pipelines is that extraction output is produced without any intrinsic mechanism to verify whether it faithfully represents the source. Model-internal confidence scores measure inference certainty, not correspondence to the document, and extraction errors pass silently into downstream consumers. We present Reconstruction as Validation (RaV-IDP), a document processing pipeline that introduces reconstruction as a first-class architectural component. After each entity is extracted, a dedicated reconstructor renders the extracted representation back into a form comparable to the original document region, and a comparator scores fidelity between the reconstruction and the unmodified source crop. This fidelity score is a grounded, label-free quality signal. When fidelity falls below a per-entity-type threshold, a structured GPT-4.1 vision fallback is triggered and the validation loop repeats. We enforce a bootstrap constraint: the comparator always anchors against the original document region, never against the extraction, preventing the validation from becoming circular. We further propose a per-stage evaluation framework pairing each pipeline component with an appropriate benchmark. The code pipeline is publicly available at https://github.com/pritesh-2711/RaV-IDP for experimentation and use.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Document Layout Analysis | DocLayNet (test) | -- | 21 | |
| Document Question Answering | DocVQA (val) | ANLS42.24 | 8 | |
| Image Extraction and Enrichment | ScanBank (train) | Extraction Success Rate100 | 1 | |
| Table Extraction | PubTabNet n=500 (val) | Row Accuracy59.6 | 1 | |
| Text Extraction | FUNSD n=100 (train) | Mean CER0.517 | 1 | |
| Text Extraction | Native PDFs (25 arXiv papers) | Mean CER4.8 | 1 |