Éclair - Extracting Content and Layout with Integrated Reading Order for Documents

Ilia Karmanov, Amala Sanjay Deshmukh, Lukas Voegtle, Philipp Fischer, Kateryna Chumachenko, Timo Roman, Jarno Seppänen, Jupinder Parmar, Joseph Jennings, Andrew Tao, Karan SapraarXiv 2025 · DOI

Researchers at NVIDIA have introduced ÉCLAIR, a novel multimodal Large Language Model (LLM) designed to address the persistent "messy document" problem. While Optical Character Recognition (OCR) has existed for decades, it frequently falters when processing complex layouts such as multi-column scientific journals, textbooks, or technical manuals. ÉCLAIR solves this by extracting formatted text, spatial bounding boxes, and semantic labels (e.g., "footnote," "caption") in a single, end-to-end pass.

The Challenge of Complex Document Layouts

Most current document processing systems rely on "brittle pipelines" that stack multiple independent models: one for text detection, another for table extraction, and a third to estimate reading order. This fragmented approach often results in jumbled text where footnotes interrupt sentences or figure captions are merged into body paragraphs.

Figure 1: Examples of diverse document types handled by ÉCLAIR, including scientific papers (a), technical manuals (b), and marketing brochures (c).

Existing end-to-end models often force a trade-off. For instance, models like Meta’s Nougat excel at LaTeX formatting but lack spatial awareness, while others like Microsoft’s Kosmos-2.5 provide bounding boxes but struggle to interleave them with semantic classification. ÉCLAIR aims to be an all-in-one solution that understands the content (text), the location (coordinates), and the context (semantic role) simultaneously.

Methods and Architecture

ÉCLAIR utilizes a transformer encoder-decoder architecture, refined for the high-density information found in professional documents.

  • Asymmetric Design: The model features a massive 657M parameter "RADIO" vision encoder (ViT-H/16) to process high-resolution images (1280x1024). This is paired with a lightweight 279M parameter mBART decoder. The authors argue that since OCR is primarily a vision task—transcribing what is present rather than generating new ideas—a "front-heavy" model is more efficient for inference.
  • Flexible Prompting: The model supports eight different prompt combinations, including the "Maximal Information Prompt" (MIP), which returns formatted text interleaved with coordinates and semantic classes (e.g., <class_Section-header>).
  • Multi-token Inference: To mitigate the slow speed of auto-regressive decoding, ÉCLAIR can predict up to four tokens simultaneously, achieving a ~2x speedup with negligible accuracy loss.
Figure 6: The ÉCLAIR architecture diagram showing the flow from input image to structured output containing text, bounding boxes, and semantic classes.

Redefining Reading Order through Semantics

A core insight of the paper is that reading order is fundamentally a semantic problem. One cannot determine the correct flow of a page without knowing what the text is. By training the model to identify "floating" elements like headers, footers, and footnotes, ÉCLAIR can logically re-order them—for example, placing all footnotes at the end of a section—to create a seamless text flow ideal for training downstream LLMs.

Datasets: arXiv-5M and DROBS

The researchers introduced two significant resources to the community:

  1. arXiv-5M: A synthetic dataset of 5 million pages created using a custom LaTeX compiler. By hooking into the engine's internal stacks, they generated perfect ground-truth labels for text, coordinates, and semantic roles.
  2. DROBS (Document Reading Order, Bounding boxes, and Semantic classes): A new human-annotated benchmark of 789 visually diverse pages used to evaluate reading order and classification accuracy.

Key Results and Impact

ÉCLAIR outperformed competitors like Kosmos-2.5 and GOT on the DROBS benchmark across nearly all metrics, including Word Error Rate (WER) and BLEU scores.

Crucially, the researchers demonstrated the downstream value of high-quality extraction. They trained a Nemotron-8B model from scratch using text extracted by ÉCLAIR versus standard tools (PyMuPDF). The ÉCLAIR-trained model achieved significantly higher scores on the MMLU benchmark, proving that cleaner, structurally aware data leads to more capable LLMs.

Limitations and Future Work

Despite its success, ÉCLAIR faces typical auto-regressive challenges, such as occasional "repetition loops." While the current version focuses on English and scientific notation, future iterations aim to expand multilingual support and develop better metrics for measuring "spatially-aware" text extraction, as standard metrics like mAP are often suboptimal for generative models.

Summary updated

BibTeX
@misc{karmanov2025eclair,
  author = {Ilia Karmanov and Amala Sanjay Deshmukh and Lukas Voegtle and Philipp Fischer and Kateryna Chumachenko and Timo Roman and Jarno Seppänen and Jupinder Parmar and Joseph Jennings and Andrew Tao and Karan Sapra},
  title = {{Éclair - Extracting Content and Layout with Integrated Reading Order for Documents}},
  year = {2025},
  eprint = {2502.04223},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.04223},
}
Figure