# AI Vision Models: How They Read and Understand Documents

> AI vision models turn pixels into labels, text and answers. Learn how detection, recognition and vision-language models read document text, tables and figures.

Canonical: https://reducto.ai/guides/ai-vision-models

## The short answer

AI vision models are machine learning models that take an image as input and return something a program can use: a label, a set of boxes around objects, recognized text, or a written answer to a question about the image. They learn visual patterns from training data rather than hand-written rules.

For documents, a vision model looks at a page the way a person does. It finds where the text, tables and charts are, reads them, and works out how they relate. A scanned PDF is just pixels; without vision, software can't tell a heading from a footnote.

For document work, a model is rarely the whole answer. Production systems wrap vision models in a pipeline that handles file types, output formatting, confidence and review.

## What vision models do

Most vision AI models are built for one of a few kinds of task:

- **Classification:** assign a label to a whole image, such as "invoice" or "bank statement."
- **Detection:** find objects and draw a bounding box around each one.
- **Segmentation:** label every pixel or region, for example separating a chart from the text around it.
- **Recognition:** turn the pixels inside a region into characters, as OCR does.
- **Description and question answering:** produce free text about an image, such as a caption or an answer.

The same tasks power medical imaging, defect inspection and driver-assistance cameras. Document vision is one specialized use, with its own hard cases: dense tables, small fonts, stamps, handwriting and charts.

## Detection, recognition and vision-language approaches

Document systems usually combine three families of models.

<Table html={"<table>\n  <thead>\n    <tr><th scope=\"col\">Approach</th><th scope=\"col\">What it returns</th><th scope=\"col\">Strength on documents</th><th scope=\"col\">Typical gap</th></tr>\n  </thead>\n  <tbody>\n    <tr><td>Layout detection</td><td>Regions with a type and a bounding box</td><td>Separates titles, paragraphs, tables and figures</td><td>Does not read the text inside each region</td></tr>\n    <tr><td>Text recognition (OCR)</td><td>Characters, words and lines with positions</td><td>Exact transcription of printed text</td><td>No sense of structure or reading order on its own</td></tr>\n    <tr><td>Vision-language models (VLMs)</td><td>Free text or structured text from an image plus a prompt</td><td>Reasoning about context, captions and complex layouts</td><td>Output can drift or approximate; harder to audit</td></tr>\n  </tbody>\n</table>"} />

Vision language models for documents are the newest of the three. A VLM takes an image and a prompt and generates text, such as a figure description or a page in Markdown. That flexibility has limits. When Reducto tested frontier models on [chart extraction](https://reducto.ai/blog/reducto-chart-extraction), they often misread axis intersections and missed data points. Many labeled their own values as approximate, which is not good enough for numbers that feed analysis.

The common pattern uses each model where it is strongest: detection and recognition for position and exact text, language models for interpretation, and verification for what slips through.

## Why document structure matters

A page is more than a bag of words. Three properties decide whether the output is usable:

- **Element types.** Downstream code treats a table differently from a paragraph.
- **Reading order.** A two-column page read straight across mixes sentences from both columns.
- **Positions.** Bounding boxes let a reviewer or an application trace each value back to the page.

This is why plain OCR text often fails in retrieval-augmented generation (RAG) and extraction pipelines: the words are right but their relationships are lost. The [IDP vs. OCR guide](https://reducto.ai/guides/idp-vs-ocr) covers where recognition alone is enough and where it is not.

## Tables, figures and reading order: an example

Take a synthetic one-page quarterly report with a title, a two-column introduction, a revenue table and a bar chart. A document vision pipeline labels each region, reads it in order and returns one structured element per region.

<Table html={"<table>\n  <thead>\n    <tr><th scope=\"col\">Region on the page</th><th scope=\"col\">Element type</th><th scope=\"col\">What the structured content holds</th></tr>\n  </thead>\n  <tbody>\n    <tr><td>Report heading at the top</td><td>Title</td><td>\"Q3 Operating Report\"</td></tr>\n    <tr><td>Left column, then right column</td><td>Text</td><td>Two paragraphs in reading order, left column first</td></tr>\n    <tr><td>Revenue by region grid</td><td>Table</td><td>Rows and columns as an HTML or Markdown table</td></tr>\n    <tr><td>Quarterly revenue bar chart</td><td>Figure</td><td>A description of the chart, or its series data if chart extraction is on</td></tr>\n  </tbody>\n</table>"} />

Here is an abbreviated, illustrative version of that output, shaped like the blocks in Reducto's [Parse response format](https://docs.reducto.ai/parse/response-format). The values are synthetic.

```json
[
  {
    "type": "Title",
    "content": "Q3 Operating Report",
    "bbox": { "left": 0.08, "top": 0.04, "width": 0.84, "height": 0.05, "page": 1 },
    "confidence": "high"
  },
  {
    "type": "Table",
    "content": "<table><tr><th>Region</th><th>Q3 revenue</th></tr><tr><td>North</td><td>$4.2M</td></tr><tr><td>South</td><td>$3.1M</td></tr></table>",
    "bbox": { "left": 0.08, "top": 0.38, "width": 0.84, "height": 0.20, "page": 1 },
    "confidence": "high"
  },
  {
    "type": "Figure",
    "content": "Bar chart of quarterly revenue, Q1 to Q3, rising each quarter.",
    "bbox": { "left": 0.08, "top": 0.62, "width": 0.84, "height": 0.30, "page": 1 },
    "confidence": "low"
  }
]
```

Text blocks are omitted for brevity. The low confidence on the figure tells an application which element to send to review.

## Reducto as a document-processing application

A model is not the platform around it. [r-1](https://reducto.ai/blog/parse-r-1-model) is Reducto's parsing model. According to the [r-1 documentation](https://docs.reducto.ai/parse/r-1), it reads each full page in one pass and returns text, tables, figures, layout, reading order and formatting, with a bounding box for every block.

[Reducto Parse](https://reducto.ai/parse) is the product built around that model. It accepts PDFs, images, spreadsheets and office files and organizes the output into chunks for LLM and RAG use. Each block carries a type, content, a bounding box and a high or low confidence label with a numeric parse score. For charts that need exact numbers, Parse can run a separate chart extraction agent that returns structured series data. You enable it in the [chart extraction configuration](https://docs.reducto.ai/configs/parse/chart-extraction). [Reducto Extract](https://reducto.ai/extract) then maps parsed content to your own JSON schema, with citations on every value.

To test a vision-first pipeline on your own files, upload a document in [Reducto Studio](https://studio.reducto.ai/) and inspect the blocks, boxes and confidence on each page.

## Frequently asked questions

### Are AI vision models the same as OCR?

No. OCR is one vision task: recognizing characters. AI vision models also cover layout detection, classification and vision-language models, and document systems usually combine them.

### What is a vision-language model?

A model that takes an image and a text prompt and generates text. For documents, it can caption a figure, answer questions about a page or convert it to Markdown. Numbers in its output still need verification.

### Can a vision model read charts accurately?

General-purpose models often approximate chart values. Reducto's testing found dense line charts and stacked bars were common failure cases, which led to a dedicated chart extraction pipeline.

### Do I need to train my own vision model for documents?

Not usually. A managed parsing API already combines layout, recognition and figure handling. Training your own makes sense when you need model-level control and can run the full pipeline.
