Tools

IBM's Granite Embedding Vision R2 Encodes Document Pages 35x Faster Than Text-Based Retrievers

A 748M-parameter multimodal model searches PDF images directly without OCR, achieving 35.3 pages/sec throughput and 0.721 nDCG across eight benchmarks.

Last verified:

Direct Image Search Without Text Extraction

IBM’s newly released Granite Embedding Vision R2 abandons the traditional OCR-to-search pipeline entirely, instead encoding document page images as vectors in a single forward pass. According to the Hugging Face Blog, the 748M-parameter model achieves 35.3 pages per second on one NVIDIA H200—outperforming all 20 competing visual document retrievers that IBM benchmarked. This throughput translates to roughly eight hours of GPU time to index one million pages on a single NVIDIA H100 (excluding PDF rendering and index construction), making it practical for large document collections.

The speed gain stems from treating each page as a visual unit rather than fragmenting it through OCR, layout detection, table extraction, and chunking—steps that often destroy spatial relationships and reduce charts to captions. By preserving the original page image, the model retains visual context that text-only retrieval systems discard.

Dual Representations for Search Flexibility

The model produces two vector representations from a single inference: one compact 768-dimensional vector (~1.5 KiB per page) for fast approximate search, and approximately 600 fine-grained vectors (~149 KiB total per page) that align query terms to spatial regions of the page. This design enables three distinct search workflows without re-encoding the document collection.

Single-vector search uses the compact vector in any database for quick candidate retrieval. Multi-vector search leverages databases like Milvus 3.0, Qdrant, or Weaviate that natively support MaxSim scoring to query the fine-grained vectors directly, pinpointing the exact page region matching a query. Hybrid search combines both: fast single-vector filtering followed by multi-vector reranking of the shortlist. Users encode once and retain both representations, enabling switching between strategies post-indexing.

Benchmark Performance and Practical Implications

Granite Embedding Vision R2 averaged 0.721 nDCG across eight benchmarks, according to the Hugging Face Blog. The Apache 2.0 licensed model addresses a persistent gap in document AI: existing text-based retrievers fail on visual content, while specialized layout models add latency and preprocessing overhead. By unifying speed and visual fidelity in a single encoder, the model reduces the operational complexity of document search pipelines—no separate OCR, no layout detection, no chunking strategy decisions.

Why This Matters

Teams managing large archives of scanned documents, technical manuals, or PDF-based data warehouses face a tradeoff: text extraction pipelines are fast but destructive to visual content, while fine-grained document parsing is thorough but slow. Granite Embedding Vision R2 shifts that tradeoff. At 35.3 pages/second, it’s fast enough to re-index a 10-million-page corpus in a few days on modest GPU hardware. The dual-vector design avoids forcing users to pre-commit to search granularity—switching from fast approximate search to region-level reranking requires no re-encoding.

For enterprise search, legal discovery, scientific literature retrieval, and any domain where PDFs contain critical visual information, this model reduces the operational burden of making charts, tables, and diagrams retrievable. The open-source release (Apache 2.0) also lowers the barrier to adoption relative to proprietary visual retrieval APIs.

Frequently Asked Questions

Why does Granite Embedding Vision R2 skip OCR when searching documents?

OCR and layout detection often degrade visual content—charts become captions, tables lose structure. By encoding page images directly, the model preserves spatial relationships and visual elements that text pipelines lose, improving retrieval precision for graphics-heavy documents.

Can I use Granite Embedding Vision R2 with any vector database?

Yes. The single-vector mode (768-d) works with any database; multi-vector search requires databases that natively support per-document vector lists and MaxSim scoring, such as Milvus 3.0, Qdrant, or Weaviate. Hybrid search bridges both.

How much storage does indexing one million pages require?

Approximately 149 GiB for multi-vectors (~149 KiB per page) or 1.5 GiB for single-vector mode. Multi-vector storage is larger but enables finer-grained region-level matching.

Is Granite Embedding Vision R2 open-source?

Yes, it is licensed under Apache 2.0 and available via Hugging Face.

#embeddings #document-retrieval #multimodal #open-source #vision