NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Docling: An Efficient Open-Source Toolkit for AI-driven Document Conversion

Nikolaos Livathinos, Christoph Auer, Maksym Lysak, Ahmed Nassar, Michele Dolfi, Panos Vagenas, Cesar Berrospi Ramis, Matteo Omenetti, Kasper Dinkla, Yusik Kim, Shubham Gupta, Rafael Teixeira de Lima, Valery Weber, Lucas Morin, Ingmar Meijer, Viktor Kuropiatnyk, Peter W. J. StaararXiv 2025

TL;DR

Docling is an efficient, MIT-licensed open-source toolkit designed to convert complex documents like PDFs and MS Office files into rich, structured formats (Markdown, JSON). By leveraging specialized local AI models instead of large Vision-Language Models, it eliminates hallucination risks and high operational costs while delivering state-of-the-art layout and table parsing.

What Problem Does This Paper Address?

Document conversion remains a major bottleneck for LLM applications like Retrieval-Augmented Generation (RAG). PDFs and scanned images discard structural metadata, leaving text as an unformatted stream. While proprietary Vision-Language Models (VLMs) like GPT-4o can parse document images, they are expensive, require cloud deployment, and are prone to hallucinations.

Existing open-source alternatives often suffer from restrictive licensing (e.g., GPL) or struggle with complex layouts and tables. Docling bridges this gap by providing a fast, accurate, and permissively licensed local solution that runs efficiently on commodity hardware.

Methods

Docling uses a modular architecture centered around three components: parser backends, pipelines, and a unified DoclingDocument data model (built on Pydantic).

As shown in the pipeline architecture below, it routes inputs through either a StandardPdfPipeline or a SimplePipeline:

Figure 1: Sketch of Docling’s pipelines and usage model. Both PDF pipeline and simple pipeline build up a DoclingDocument representation, which can be further enriched. Downstream applications can utilize Docling’s API to inspect, export, or chunk the document for various purposes.

For PDFs, Docling uses a custom-built parser backend (docling-parse based on qpdf) to extract programmatic text tokens and render page bitmaps. It then applies two specialized AI models page-by-page:

  1. Layout Analysis Model: Derived from RT-DETR and trained on the DocLayNet dataset, this object detector predicts bounding boxes for paragraphs, headers, lists, captions, and figures.
  2. TableFormer: A specialized vision-transformer model that predicts the logical row/column structure, cell spans, and headers of complex tables.

Scanned elements are processed via integrated OCR engines (EasyOCR or Tesseract), and a final post-processing model corrects the reading order and matches figures with captions.

Datasets

To evaluate performance, the authors compiled a benchmark dataset consisting of 89 PDF files spanning 4,008 pages, 56,246 text items, 1,842 tables, and 4,676 pictures. This dataset draws heavily from DocLayNet (a human-annotated document layout dataset) and is augmented with samples from CCpdf to maximize structural diversity across categories like annual reports, manuals, and patents.

Figure 2: Dataset categories and sample counts for docu- ments and pages.

Key Insights and Ideas

  • Task-Specific Models > Generative VLMs for Extraction: By relying strictly on layout detection and matching text back to programmatic PDF cells, Docling guarantees 100% faithful text transcription, completely avoiding the hallucination risks inherent to generative models.
  • OCR is the Ultimate Bottleneck: Profiling reveals that OCR is by far the most computationally expensive step, consuming roughly 50-60% of total runtime across CPU and GPU setups. Disabling it saves up to 60% of processing time.
  • Asymmetric GPU Benefits: Not all models scale equally with hardware accelerators. On an Nvidia L4 GPU, the layout model saw a massive 14x speedup compared to an x86 CPU, whereas the table structure model (TableFormer) only achieved a 4.3x speedup, highlighting areas for future engineering optimization.
Figure 4: Contributions of PDF backend and AI models to the conversion time of a page (in seconds per page). Lower is better. Left: Ranges of time contributions for each model to pages it was applied on (i.e., OCR was applied only on pages with bitmaps, table structure was applied only on pages with tables). Right: Average time contribution to a page in the benchmark dataset (factoring in zero-time contribution for OCR and table structure models on pages without bitmaps or tables) .

Key Results

Docling delivers highly competitive processing speeds compared to other popular open-source tools like Marker, MinerU, and Unstructured:

  • CPU Performance: Without GPU acceleration, Docling leads the pack on x86 CPUs at 3.1 seconds per page, closely followed by MinerU (3.3 s/page) and Unstructured (4.2 s/page), while significantly outperforming Marker (16+ s/page).
  • GPU Performance: With CUDA acceleration on an Nvidia L4 GPU, Docling processes pages in 0.49 seconds, trailing only MinerU (0.21 s/page).
  • Apple Silicon: On an M3 Max SoC, Docling achieves a swift 1.27 seconds per page, whereas MinerU failed to complete execution in this environment.
Figure 5: Conversion time in seconds per page on our dataset in three scenarios, across all assets and system configura- tions. Lower bars are better. The configuration includes OCR and table structure recognition (fast table option on Do- cling and MinerU, hi res in unstructured, as shown in ta- ble 1).

Limitations and Future Work

While highly proficient at layout and table parsing, Docling currently lacks specialized models for extracting mathematical equations, code blocks, and fine-grained figure classifications (e.g., charts vs. photos).

The authors plan to introduce dedicated models for these components in future releases. Additionally, they aim to develop an open-source quality evaluation framework to enable transparent benchmarking against public datasets like DP-Bench and OmniDocBench.

Summary updated

BibTeX
@misc{livathinos2025docling,
  author = {Nikolaos Livathinos and Christoph Auer and Maksym Lysak and Ahmed Nassar and Michele Dolfi and Panos Vagenas and Cesar Berrospi Ramis and Matteo Omenetti and Kasper Dinkla and Yusik Kim and Shubham Gupta and Rafael Teixeira de Lima and Valery Weber and Lucas Morin and Ingmar Meijer and Viktor Kuropiatnyk and Peter W. J. Staar},
  title = {{Docling: An Efficient Open-Source Toolkit for AI-driven Document Conversion}},
  year = {2025},
  eprint = {2501.17887},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.17887},
}

Loading related content...

Figure