Operationalizing Document AI: A Microservice Architecture for OCR and LLM Pipelines in Production
Not on the map. Why?
Abstract (arXiv)
Academic research tends to focus on new models for document understanding creating a wide gap in the literature between model definition and running models at production scale. To close that gap, we present a microservice architecture that encapsulates pipelines of multiple models for classification, optical character recognition (OCR), and large language model structured field extraction as well as our experience running this pipeline on thousands of multi-page documents per hour. We describe our primary design decisions, including a hybrid classification, separation of GPU-bound inference from CPU-bound orchestration, use of asynchronous processing for the many IO-bound operations in the pipeline, and an independent, horizontal scaling strategy. Using batch profiling, we identified two surprising qualitative findings that shape production deployments: OCR, not language-model parsing, dominates end-to-end latency, and the system saturates at a concurrency determined by shared GPU-inference capacity rather than worker count. Our goal is to provide practitioners with concrete architectural patterns for building document understanding systems that work beyond the benchmark; effectively operationalizing models in production.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 18 of its 24 references that are in the map. First posted on arXiv 12 May 2026.
Builds on
18 of 24 references.
References · 18
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2023Qwen-VL: A Versatile Vision-Language Model for Understanding, Localization, Text Reading, and Beyondcited by 2,224
- 2020DocVQA: A Dataset for VQA on Document Imagescited by 1,317
- 2019LayoutLM: Pre-training of Text and Layout for Document Image Understandingcited by 553
- 2022LayoutLMv3: Pre-training for Document AI with Unified Text and Image Maskingcited by 485
- 2021OCR-free Document Understanding Transformercited by 407
- 2022Pix2Struct: Screenshot Parsing as Pretraining for Visual Language Understandingcited by 366
- 2019FUNSD: A Dataset for Form Understanding in Noisy Scanned Documentscited by 349
- 2023Nougat: Neural Optical Understanding for Academic Documentscited by 245
- 2020PP-OCR: A Practical Ultra Lightweight OCR Systemcited by 151
- 2025RF-DETR: Neural Architecture Search for Real-Time Detection Transformerscited by 75
- 2024Docling Technical Reportcited by 34
6 more
- 2024DocVLM: Make Your VLM an Efficient Readercited by 28
- 2025Hybrid OCR-LLM Framework for Enterprise-Scale Document Information Extraction Under Copy-heavy Taskcited by 5
- 2025MMORE: Massive Multimodal Open RAG & Extractioncited by 2
- 2026A Hybrid Architecture for Multi-Stage Claim Document Understanding: Combining Vision-Language Models and Machine Learning for Real-Time Processingcited by 2
- 2026IDP Accelerator: Agentic Document Intelligence from Extraction to Compliance Validationcited by 1
- 2026OCR or Not? Rethinking Document Information Extraction in the MLLMs Era with Real-World Large-Scale Datasetscited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.