Granite-Vision-5.0-4B
Model Summary:
Granite Vision 5.0 4B is a compact vision-language model (VLM) for visual document understanding. It extracts data from charts,
converts complex tables into structured formats, captures fields from forms and invoices, and describes images, figures and diagrams.
It is designed to complement document converters such as Docling: the converter parses the page,
and Granite Vision enriches the result by extracting and summarizing the complex visual elements inside it.
Granite Vision 5.0 is released together with two related models: Granite Docling v2 (2B, 500M), which converts full document pages (text, layout, reading order, formulas and tables), and Granite Embedding Vision, which makes documents searchable across text and images. Granite Docling v2 converts the document, Granite Vision extracts the data in its charts, tables and forms, and Granite Embedding Vision finds the right content.
What it does:
- Charts: extracts the underlying data as CSV, writes a summary, or generates Python code that recreates the chart. For multi-panel figures, it extracts each panel's data and summarizes the whole figure. Chart extraction supports 12 languages.
- Complex tables: converts cropped tables, including merged cells and complex layouts, to HTML or OTSL.
- Forms and key-value pairs: extracts the fields defined by a JSON schema from invoices, receipts, forms and other documents.
- Images and figures: describes and summarizes pictures, diagrams and photos, and can answer simple questions about document images.
The model can also extract UI elements (bounding box, class and text) from screenshots of web and desktop applications.
What's new in 5.0:
- Higher accuracy on chart and KVP extraction, and on par or slightly better on cropped tables, from reworked training data and a new GRPO post-training stage with task-specific rewards.
- Multi-panel charts (new): extracts data and summaries from figures with several charts.
- Multilingual charts and tables (new): charts in 12 languages, and tables in Chinese and Japanese.
The model uses the same architecture as Granite Vision 4.1 4B and supports all of its tasks with the same prompts, so existing workflows carry over with almost no changes. The one exception is JSON table output (<tables_json>), which 5.0 drops in favor of the more compact HTML (<tables_html>) and OTSL (<tables_otsl>) formats.
Chart and table tasks are activated by a short task tag (<chart2csv>, <chart2summary>, <chart2code>, <tables_html>, <tables_otsl>) that the chat template expands into the full prompt; the other tasks use plain prompts (see the usage examples).
The language model is initialized from Granite-4.1-3B and the vision encoder from SigLIP2. The model has a 3.4B LLM and 0.6B of vision encoder and projectors. See
Model Architecture for details.
Model Performance
We compare Granite Vision 5.0 against open models from 4B to 24B parameters (including Granite Vision 4.1) and frontier models. Every model runs with the same evaluation code and prompts.
[Image blocked: No description]
The average covers 11 benchmarks: PubTables-v2 (cropped and full page), TableVQA-Extract (cropped), Chart2CSV, Chart2Summary and Chart2Code on ChartNet, Chart2CSV on Chinese and Japanese ChartNet, MultiChart2CSV and MultiChart2Summary on multi-panel figures, and VAREX. Tables and the CSV tasks are scored with TEDS, the summary and code tasks with an LLM judge, and VAREX with exact match.
Per-benchmark results for every model are in the collapsed sections below (click to expand), and in an interactive chart in the blog post.
Chart Extraction
Evaluated on the human-verified test set of ChartNet. Chart2CSV is scored with TEDS between the predicted and reference data tables. Chart2Summary and Chart2Code are scored by an LLM judge (GPT-4o), which sees the chart image, the reference and the prediction, and scores the prediction from 0 to 100: for Chart2Summary, coverage of the key elements, faithfulness to the visual, correctness and numeric accuracy; for Chart2Code, data correctness, chart type and structure, visual styling and code quality.
Per-benchmark results: Chart2CSV, Chart2Summary, Chart2Code
[Image blocked: No description]
[Image blocked: No description]
[Image blocked: No description]
Multilingual Charts
Chart2CSV (TEDS) on 500 Chinese and 500 Japanese charts from ChartNet. The model also supports charts in the other 10 languages, which are not benchmarked here.
Per-benchmark results: Chinese and Japanese Chart2CSV
[Image blocked: No description]
[Image blocked: No description]
Multi-Panel Charts
MultiChart2CSV and MultiChart2Summary on 100 multi-panel figures from the ChartNet multi-chart test set. MultiChart2CSV asks for one CSV table per panel (see the example) and is scored with TEDS; MultiChart2Summary is scored by the same LLM judge as Chart2Summary.
Per-benchmark results: MultiChart2CSV, MultiChart2Summary
[Image blocked: No description]
[Image blocked: No description]
Table Extraction
Granite Vision is most useful on tables that a standard document parser struggles with, such as tables with complex layouts or merged cells. Cropped tables, for example tables detected by a document converter, can be sent to Granite Vision with <tables_html> or <tables_otsl>. Tables are scored with TEDS on cropped tables from PubTables-v2 and TableVQA-Extract. The PubTables-v2 full-page and multi-page results show robustness when a table comes with surrounding page content; for full-page conversion, use Granite Docling v2.
Per-benchmark results: PubTables-v2 (cropped, full page, full document), TableVQA-Extract
[Image blocked: No description]
[Image blocked: No description]
[Image blocked: No description]
[Image blocked: No description]
Frontier models were evaluated on a 500-sample subset of PubTables-v2 (cropped and full page; the first 500 of 7,680 samples) and are marked with *. All other models use the full test set.
KVP Extraction
KVP extraction is scored on VAREX: normalized exact match per extracted field, averaged over all fields.
Per-benchmark results: VAREX
[Image blocked: No description]
Setup
Tested with python=3.11
Requires transformers>=5.8.1. pandas and lxml are only used by the display_table helper in the examples below.
Usage with Transformers
Chart and Table Tasks
You can pass tags and the chat template handles the rest:
Multi-Panel Chart Extraction
For figures with several charts, ask for one CSV table per panel, or for a summary of the whole figure. The CSV prompt below asks for a # Panel N: <title> line before each panel's table, which makes the output easy to split.
Key-Value Pair Extraction (KVP)
For KVP extraction use the VAREX prompt format. Provide a JSON Schema describing the fields to extract and the model will return a JSON object with the extracted values.
Image Description and Document Questions
For a general description of an image, or a question about a document, use a plain prompt:
Usage with vLLM
Granite Vision 5.0 is supported natively in vLLM (tested with vLLM 0.32):
Serving
Client example
Query the running server using the OpenAI-compatible API:
The same tags and prompts as in the Transformers examples work here.
Usage with MLX VLM
MLX VLM runs Granite Vision 5.0 4B natively on Apple Silicon via the MLX framework.
Setup
Install from source for the latest features:
CLI
Usage with Docling
Docling can use Granite Vision 5.0 inside its standard PDF conversion pipeline. Docling's layout model finds the pictures on each page, and its classifier picks out the bar, line and pie charts. Granite Vision then writes a summary of each chart (<chart2summary>), or extracts its data (<chart2csv>). In the example below, Docling sends the charts to a Granite Vision vLLM server. Tables are handled by Docling's default table model.
Setup
Example
Notes:
granite_vision_v4 is the name of Docling's Granite Vision chart preset; it works with Granite Vision 5.0. params={"model": ...} must match the name the vLLM server serves, otherwise the conversion finishes without chart output (Docling only logs the errors).
- Use Docling 2.151.0 or newer, which sends chart crops at 288 dpi; at lower resolution chart values come out wrong. For the same reason, don't set
generate_picture_images=True unless you also set images_scale=4.0.
- For chart data instead of summaries, set
chart2csv=True (result in picture.meta.tabular_chart); chart-to-code is chart2code=True (result in picture.meta.code). Docling's local (transformers) chart mode and its Granite Vision table stage still load Granite Vision 4.1, so use a server as shown above.
- More examples: chart extraction, picture description.
Training
Granite Vision 5.0 is trained in three stages:
- Pretraining / alignment: starts from the Granite-4.1-3B language model and the SigLIP2 vision encoder, and trains the vision-to-LLM projectors and injection layers.
- Supervised fine-tuning (SFT) on the expanded data mix described below. The vision encoder and the LLM are adapted with LoRA, and the projectors and injection layers are fully trained.
- GRPO post-training with task-specific rewards. See GRPO Post-Training.
Training Data
The model was trained on a curated mixture of chart, table and document KVP extraction data, supplemented by the general-purpose Granite Vision instruction-following dataset.
Compared with Granite Vision 4.1, the data was reworked as follows:
- Better instruction following: ambiguous prompts were rewritten to state the expected output, and output conventions such as the bounding-box format are varied across samples and specified in the prompt. This makes the model more reliable at following the output format you ask for.
- Cleaner data: we audited every source, fixed or removed low-quality samples and inconsistent targets, and removed duplicates across public instruction collections.
- Image augmentations: mild, answer-preserving augmentations (rescaling, blur, resampling, JPEG compression, noise, brightness and contrast) improve robustness to real scans and screenshots. There is no cropping, so coordinates in the targets stay valid.
Chart data comes from ChartNet, our million-scale dataset built with a code-guided augmentation pipeline that produces aligned rendering code, chart images, data CSVs and summaries (paper). ChartNet now has two new subsets, both used to train this model:
- Multi-Panel Charts: figures with several subplots, for data extraction and summarization.
- Multilingual Charts: charts translated into 11 languages besides English (about 4.2M samples).
Table data also includes about 217K Chinese and Japanese samples.
GRPO Post-Training
After SFT, we post-train the model with GRPO (Group Relative Policy Optimization).
Instead of a single generic reward, we run GRPO separately for four task families, each with a reward that matches how that task is scored:
Each task family trains its own LoRA adapter (rank 32, on the LLM attention and MLP projections; vision encoder and projectors frozen) for 50 steps of 512 prompts, with 8 completions per prompt and a KL penalty to the SFT model; groups with no reward variance are filtered out. Each adapter takes about 12 hours on 4 GPUs. The four adapters are then merged into a single rank-128 adapter and folded into the released weights.
Impact: averaged over the table, chart and KVP benchmarks in Model Performance, the SFT model scores 86.8, up from 77.1 for Granite Vision 4.1. The gain comes from the reworked training data and from multi-panel charts, which 4.1 did not support. GRPO then adds another 0.6 points, to 87.4.
[Image blocked: No description]
Model Architecture
- Vision encoder: SigLIP2 (
google/siglip2-so400m-patch16-384). Images are split into 384×384 tiles plus a downscaled global view, and each tile is encoded independently.
- Window Q-Former projectors: compress visual features 4× by reducing each 4×4 patch window to 2×2 tokens via cross-attention, with queries initialized from a downsampled version of the window.
- Feature injection: a variant of DeepStack that adds visual features to the LLM hidden states at 8 layers:
- LayerDeepstack: features from 4 vision encoder depths, each injected into a different LLM layer, in reverse order (the deepest, most semantic features feed the earliest LLM layers).
- SpatialDeepstack: the deepest features at full resolution, split into 4 spatial groups, each injected at a separate later LLM layer for fine-grained spatial detail.
- Language model: Granite-4.1-3B.
The vision encoder and LLM were adapted with LoRA during training (LLM rank 256); the released checkpoint has the adapters merged.
Supported input: English prompts and PNG or JPEG images. Document content may be multilingual: the model supports chart extraction in 12 languages (English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch and Chinese) and table extraction in Chinese and Japanese. Reported evaluations cover Chinese and Japanese.
Infrastructure
Granite Vision 5.0 was trained on IBM's Blue Vela supercomputing cluster, outfitted with
NVIDIA H100 GPUs. Pretraining and supervised fine-tuning ran on 32 GPUs for approximately 200 hours. The compute for GRPO post-training is listed in GRPO Post-Training.
Ethical Considerations and Limitations
The use of vision-language models involves certain risks that should be considered before
deployment:
- Task scope: The model focuses on extracting and summarizing complex document content: charts,
tables, key-value pairs and images. It also handles general visual question answering, but open-ended
tasks are not its focus, and results on them may fall short of general-purpose VLMs.
- Not a page converter: the model is not intended for full-page document conversion (layout,
reading order, full-page transcription). For that, use Granite Docling v2, and use Granite Vision
to enrich the charts, tables, forms and figures it finds.
- Hallucination: As with all generative models, outputs should be validated before
use in automated pipelines, particularly for high-stakes document processing.
- Language: Instructions should be in English. Multilingual support covers document
content for chart extraction (12 languages) and table extraction (Chinese and Japanese). Benchmarks cover
Chinese and Japanese only. Summaries of non-English charts (
<chart2summary>) may over-translate, for example writing in Chinese
or Japanese parts that are better left in English, so for Chinese and Japanese charts we report only Chart2CSV.
Other languages and other tasks on non-English content may give degraded results.
To enhance safety in enterprise deployments, we recommend using Granite Vision 5.0
alongside Granite Guardian,
a model designed to detect and flag risks in inputs and outputs across key dimensions
outlined in the IBM AI Risk Atlas.
Resources
Citation