Skip to main content
QUICK REVIEW

[Paper Review] Docling Technical Report

Christoph Auer, Maksym Lysak|arXiv (Cornell University)|Aug 19, 2024
Handwritten Text Recognition TechniquesComputer Science8 citations
TL;DR

Docling is an open-source PDF document converter that uses specialized AI models for layout analysis and table structure recognition to output JSON or Markdown, with optional OCR and configurable performance modes, designed for local, efficient processing on commodity hardware.

ABSTRACT

This technical report introduces Docling, an easy to use, self-contained, MIT-licensed open-source package for PDF document conversion. It is powered by state-of-the-art specialized AI models for layout analysis (DocLayNet) and table structure recognition (TableFormer), and runs efficiently on commodity hardware in a small resource budget. The code interface allows for easy extensibility and addition of new features and models.

Motivation & Objective

  • Demonstrate an easy-to-use, self-contained PDF-to-JSON/Markdown conversion tool that runs locally on commodity hardware.
  • Leverage state-of-the-art layout analysis and table-structure recognition models to recover reading order, figures, and tables.
  • Extract document metadata and support optional OCR for scanned PDFs.
  • Provide a modular, extensible pipeline that can be configured for batch or interactive use.
  • Evaluate performance and resource usage across different backends and hardware.

Proposed method

  • Integrates a linear, page-wise processing pipeline with a PDF backend and a sequence of AI models for layout and table understanding.
  • Uses DocLayNet-based layout analysis as an object detector to identify page elements and group them with text tokens.
  • Employs TableFormer for recovering table structure and mapping it to PDF cells.
  • Provides an OCR option (EasyOCR) for scanned content and supports multiple backends (docling-parse, pypdfium).
  • Assembles per-page predictions into a typed document object and serializes output to JSON or Markdown.
  • Offers an extensible model pipeline interface to customize or replace components via a BaseModelPipeline abstraction.
Docling Technical Report

Experimental results

Research questions

  • RQ1How can PDF documents be converted into machine-processable formats with high fidelity to layout and tables while remaining resource-efficient?
  • RQ2What is the impact of different PDF backends and CPU thread budgets on throughput and memory usage for Docling?
  • RQ3How well do the integrated models (DocLayNet layout analysis and TableFormer table recognition) perform on typical academic and enterprise documents?
  • RQ4Can Docling be extended with additional models and backends to improve coverage (e.g., figures, equations, code) and speed?

Key findings

  • Docling can convert PDFs to JSON or Markdown with stable output and fast performance on commodity hardware.
  • The pipeline extracts detailed layout, reading order, and table structures, and can extract metadata such as title and authors.
  • Optional OCR supports scanned PDFs, though OCR adds substantial runtime on CPU and may be slower without additional acceleration.
  • Docling provides multiple PDF backend backends and an extensible model-pipeline interface for customization.
  • Performance measurements show runs on Mac and Linux hardware with configurable thread budgets, highlighting trade-offs between native and alternative backends.
  • The project emphasizes open-source extensibility and integration with downstream AI workflows (e.g., RAG, embedding pipelines).
Figure 1: Sketch of Docling’s default processing pipeline. The inner part of the model pipeline is easily customizable and extensible.
Figure 1: Sketch of Docling’s default processing pipeline. The inner part of the model pipeline is easily customizable and extensible.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.