What A Time To Be Alive
Choose language: English

Small open models from IBM turn scans back into tidy documents for AI

IBM has released two small, open AI models that turn a photo or scan of a page into a tidy document. They keep not only the text, but also the structure of tables, formulas and images.

Title card on a dark starry sky with IBM in large white letters and Granite Docling V2 below it in light blue; at the bottom right the glowing blue edge of a planet, at the top right the IBM logo.
With Granite Docling V2, IBM is releasing two small, open models that convert scanned pages while keeping their structure.

A lot of knowledge is locked away in PDFs, scans and reports. A computer can often read the letters in them, but loses the structure: which heading belongs to which paragraph, or which number sits in which row of a table. IBM is now taking a step forward here with Granite Docling V2, which it released .

There are two models, Granite Docling V2 500M and Granite Docling V2 2B. They are vision-language models: AI models that look at an image and write text about it. They receive an image of a page and convert it in one step into DocLang. That is a markup language that records for every part what it is, where it sits on the page and in which order it should be read.

For a table, this keeps track of which cell is where. Headings, formulas, programming code, lists within lists and images with their captions also get a place. The models also pick up text that appears inside an image. Anyone who only needs the tables or the formulas can ask for just those.

DocLang was devised by a working group of IBM, Nvidia, Red Hat, ABBYY and HumanSignal, under the banner of LF AI & Data, a division of the Linux Foundation. With IBM's free program Docling, the result can be converted into common formats such as Markdown, HTML or JSON. Search engines and AI agents can then work with it further.

Accurate and fast

According to IBM, the larger model is the most accurate of all the models it compared, on ten tests for converting documents. On more than 16,000 pages from nine of those tests, 96.5 per cent of the text matched the correct text. The previous version, Granite Docling 258M, was still off by about a fifth; now that is 3.5 per cent.

IBM did, however, correct mistakes in the answer sheets of existing tests itself. As a result, the scores cannot be compared with figures published earlier. Independent measurements will have to show how the models perform elsewhere.

The larger model processes about ten pages per second on one powerful AI chip from Nvidia. According to IBM, the smaller model manages more than eighteen. That small model also looks extra carefully at full pages, and less at pages with little on them.

Both models can be downloaded for free and may also be used for commercial purposes. They also run on a Mac with Apple's own chip. Anyone who wants to try them out can use the online demo.

What does this mean for the road to the singularity?

AI systems already answer questions about documents. But an answer is only as good as what the system reads. If it links a number to the wrong row in a table, the answer is wrong, however smart the model is. A conversion that keeps the structure makes such mistakes less likely, even before the large model gets to work.

Because these models are small and free, a hospital, local council or company can run them on its own computers. Sensitive documents then do not have to go to an outside service. Paid services for document recognition will therefore have to become better or cheaper, or customers will choose the free version. If that trend continues, old archives full of scans and reports will also become usable for AI agents. Such an agent could then search not only the internet, but also decades of knowledge that now sits in cupboards and folders.

What is the technological singularity? Read the explanation →

Sources

  1. huggingface.co
  2. arXiv.org
  3. huggingface.co
  4. DocLang