Skip to content

granite-vision-5.0-4b: Chart, Table and Form Extraction

AINewss Editorial

What IBM's compact document VLM does, the exact task tags for charts, tables and key-value pairs, the GRPO training change, the 11-benchmark evaluation setup and the honest boundary: it enriches converted pages rather than converting them. Includes local setup and deployment fit.

View 2 references
0 views 0 likes

Allow the functional cookie to save your likes. Privacy details

A page with a chart and a complex table being converted into CSV and HTML, with small task-tag labels floating above each element.

What is granite-vision-5.0-4b?

Granite Vision 5.0 4B is a compact vision-language model for visual document understanding. It extracts underlying chart data as CSV, converts complex tables to HTML or OTSL, captures fields from forms and invoices, and describes images, figures and diagrams. It is a specialist, not a general chat model.

The official model card, released 30 November 2026 under Apache-2.0, positions the model as a complement to document converters such as Docling: the converter parses the page, and Granite Vision enriches the result by extracting and summarising the complex visual elements inside it. It can also pull UI elements with bounding boxes, class and text from application screenshots.

The language model is initialised from Granite-4.1-3B and the vision encoder from SigLIP2, giving 3.4B language parameters and 0.6B for vision and projectors.

What tasks and prompt tags does it support?

Chart and table tasks are activated by short tags that the chat template expands into full prompts, while other tasks use plain prompts. This keeps calls compact and makes task selection explicit. Key-value extraction instead supplies a JSON schema describing the fields to find.

Tag Task
<chart2csv> Extract the underlying chart data as CSV
<chart2summary> Write a chart summary
<chart2code> Generate Python that recreates the chart
<tables_html> Convert a cropped table to HTML
<tables_otsl> Convert a cropped table to OTSL

Key-value extraction uses a JSON schema describing the fields to find. Image description and document questions use ordinary language prompts. Version 5.0 drops the old <tables_json> output in favour of the more compact HTML and OTSL formats.

What changed in version 5.0?

Accuracy improved on chart and key-value extraction and stayed on par or slightly better on cropped tables, driven by reworked training data and a new GRPO post-training stage with task-specific rewards. Multi-panel charts and multilingual charts are new. The architecture is unchanged, so existing prompts carry over.

The card quantifies the change: averaged over the table, chart and KVP benchmarks, the supervised-fine-tuned model scores 86.8, up from 77.1 for Granite Vision 4.1; GRPO adds another 0.6 points to 87.4. Multi-panel support accounts for part of the jump, since 4.1 did not handle figures with several charts.

Chart extraction now supports 12 languages, and table extraction handles Chinese and Japanese. The architecture is unchanged from 4.1 4B and existing prompts carry over, apart from the JSON-table format change.

How accurate is granite-vision-5.0-4b?

The evaluation compares open models from 4B to 24B parameters plus frontier models, all run with the same code and prompts. The average covers 11 benchmarks: PubTables-v2 cropped and full page, TableVQA-Extract, Chart2CSV, Chart2Summary and Chart2Code, Chinese and Japanese ChartNet, MultiChart2CSV and MultiChart2Summary, and VAREX.

Task family Benchmark Metric
Tables PubTables-v2, TableVQA-Extract TEDS
Charts ChartNet Chart2CSV, multilingual CSV TEDS
Summaries and code Chart2Summary, Chart2Code LLM judge, 0–100
Multi-panel MultiChart2CSV and MultiChart2Summary TEDS and judge
Key-value pairs VAREX Normalised exact match

The judge is GPT-4o, which sees the chart image, the reference and the prediction. Frontier models were evaluated on a 500-sample subset of PubTables-v2; other models used the full 7,680-sample test set. Compare scores with that caveat in mind.

How do I run it locally?

The standard Transformers path uses AutoProcessor and AutoModelForMultimodalLM, or a high-level pipeline. vLLM, SGLang, MLX VLM and Docling integrations are also documented. Pick a task tag matching the content you want extracted and give the model enough output tokens for a full CSV or HTML table.

from transformers import AutoProcessor, AutoModelForMultimodalLM

model_id = "ibm-granite/granite-vision-5.0-4b"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForMultimodalLM.from_pretrained(model_id, device_map="auto")

messages = [{
    "role": "user",
    "content": [
        {"type": "image", "url": "https://example.com/chart.png"},
        {"type": "text", "text": "<chart2csv>"},
    ],
}]
inputs = processor.apply_chat_template(messages, add_generation_prompt=True,
    tokenize=True, return_dict=True, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
pip install -U transformers accelerate
vllm serve ibm-granite/granite-vision-5.0-4b

Where does it fit with Docling and Embedding Vision?

IBM released three document models together, and the division of labour is explicit: Granite Docling V2 converts the page into structured DocLang, Granite Vision extracts data from the charts, tables and forms inside it, and Granite Embedding Vision finds the relevant pages across a collection.

Model Responsibility
Granite Docling V2 2B / 500M Full-page structure, reading order, formulas, tables
Granite Vision 5.0 4B Chart data, complex tables, KVPs, image descriptions
Granite Embedding 748M Vision R2 Page retrieval from text queries

For an agent pipeline, that means you do not ask this model to transcribe a whole page. You convert first, locate the interesting elements, then call this model on crops.

What are the limitations?

The card states that the model is not a page converter and should not be used for layout, reading order or full-page transcription; use Granite Docling V2 for that. Open-ended visual question answering is not its focus, and results there may fall short of general-purpose VLMs.

Instructions should be in English. Multilingual support covers chart content in 12 languages and tables in Chinese and Japanese, with benchmarks only for Chinese and Japanese. Non-English chart summaries may over-translate, so the card reports Chart2CSV only for those languages. Generated values should be validated before use in automated pipelines, and IBM recommends pairing with Granite Guardian for enterprise deployments.

Frequently asked questions

These are the questions readers most often ask before committing: what the artifact costs, which licence applies and what it can and cannot do. Short answers come first, followed by the conditions that change each one. Verify anything that affects a production decision against the linked first-party source.

Technically it accepts an image, but it is not designed for full-page conversion. Use Docling for structure and feed crops of charts or tables to this model for extraction.

Does it output CSV directly?

Yes. <chart2csv> returns the underlying data as CSV, and <chart2code> returns Python that recreates the chart. <chart2summary> produces a text summary instead.

Is it Apache-2.0?

The model card lists Apache 2.0. Review component licences and any third-party dependencies separately before redistribution.

Bottom line

granite-vision-5.0-4b is a specialist extractor rather than a general document model. Its value lies in task tags, multi-panel charts and schema-driven field extraction, backed by a clearly described evaluation. Use it alongside a page converter and a retriever, and validate extracted numbers before they reach downstream systems.

References

  1. ibm-granite/granite-vision-5.0-4b model cardhuggingface.co
  2. IBM Granite GitHub organizationgithub.com