Skip to main content
QUICK REVIEW

[Paper Review] Nougat: Neural Optical Understanding for Academic Documents

Lukas Blecher, Guillem Cucurull|arXiv (Cornell University)|Aug 25, 2023
Handwritten Text Recognition TechniquesComputer Science18 citations
TL;DR

Nougat is an encoder-decoder Visual Transformer that performs end-to-end OCR on document pages to produce lightweight markup text, trained on a large arXiv/PMC dataset, and released with code and models.

ABSTRACT

Scientific knowledge is predominantly stored in books and scientific journals, often in the form of PDFs. However, the PDF format leads to a loss of semantic information, particularly for mathematical expressions. We propose Nougat (Neural Optical Understanding for Academic Documents), a Visual Transformer model that performs an Optical Character Recognition (OCR) task for processing scientific documents into a markup language, and demonstrate the effectiveness of our model on a new dataset of scientific documents. The proposed approach offers a promising solution to enhance the accessibility of scientific knowledge in the digital age, by bridging the gap between human-readable documents and machine-readable text. We release the models and code to accelerate future work on scientific text recognition.

Motivation & Objective

  • Motivate the need to recover semantic structure, especially math, from PDFs and scanned books.
  • Propose an OCR-free Visual Document Understanding approach that converts page images to markup.
  • Create and release a paired dataset and pre-trained models for scientific document markup generation.

Proposed method

  • Encoder: Swin Transformer processes page images into latent patch embeddings.
  • Decoder: Transformer-based auto-regressive generator (inspired by Donut and mbART) converts embeddings to a markup vocabulary.
  • Training: end-to-end optimization with AdamW on batches of 3 epochs and a large sequence length (S=4096), Greedy decoding for inference.
  • Data augmentation: image distortions and ground-truth token perturbations to simulate scans and reduce collapse to repetition.
  • Dataset construction: auto-generated paired data from arXiv, PMC, and Industry Documents Library via LaTeXML preprocessing and page-split alignment.
  • Repetition handling: anti-repetition augmentation and a heuristic repetition detector during inference.
Figure 1: Our simple end-to-end architecture followin Donut [ 28 ] . The Swin Transformer encoder takes a document image and converts it into latent embeddings, which are subsequently converted to a sequence of tokens in a auto-regressive manner
Figure 1: Our simple end-to-end architecture followin Donut [ 28 ] . The Swin Transformer encoder takes a document image and converts it into latent embeddings, which are subsequently converted to a sequence of tokens in a auto-regressive manner

Experimental results

Research questions

  • RQ1Can a OCR-free Vision Transformer accurately convert document page images into structured markup including text, math, and tables?
  • RQ2How well does the model perform on plain text, mathematical expressions, and tables across scientific documents?
  • RQ3What are the impacts of model size (250M vs 350M parameters) and decoding strategy on accuracy and speed?
  • RQ4What data and augmentation strategies enable end-to-end learning without external OCR tools?

Key findings

  • Nougat small (250M) achieves strong unified performance across modalities with high scores for plain text and math when evaluated on arXiv test set.
  • Nougat base (350M) further improves plain text and math results, yielding the best overall metrics among proposed models.
  • Plain text outputs reach approximately 91.0–91.2 BLEU and 95.3–95.7 F1 across models, indicating robust text recovery.
  • Math modality remains challenging, with lower scores than plain text due to LaTeX and equation representation ambiguities, but improved relative to baselines.
  • Tables receive moderate performance improvements, with BLEU and F1 generally lower than plain text, highlighting the difficulty of structured content extraction from equations and tables.
  • In-domain performance (arXiv) shows the proposed models outperform GROBID and OCR-based baselines across most metrics.
Figure 2: List of the different image augmentation methods used during training on an example snippet form a sample document.
Figure 2: List of the different image augmentation methods used during training on an example snippet form a sample document.

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.