Latest in AI
IVE-4B Document Reranking: How to Test Page Images Against OCR
Use Illuin’s open decision model to rerank pages after retrieval, then compare relevance, coverage and latency with your OCR baseline.
A document search system can find the right manual and still send the wrong page to the answer model. A table may lose its row labels in OCR, or a graph's legend may never make it into the extracted text. Illuin's November 23 release offers a way to test the impact: keep your existing search index, then use IVE-4B to score shortlisted pages from their images.
IVE-4B and the smaller Ivonnet-0.8B ship with weights and inference code under Apache 2.0. They score predefined options instead of generating an answer. For reranking, ask whether one page contains the evidence needed for a query, then sort your candidate pages by the score for yes. No embedding index needs to change for this test.
Score one page before changing the pipeline
The IVE-4B model card lists Python 3.10 or later, CUDA PyTorch and a Transformers version from 5.7 up to, but not including, 6. It puts the BF16 weights at about 9 GB of GPU memory and warns that longer inputs need more. Follow its installation instructions for the local IVE-4B folder and enable the documented fast attention dependency before timing the model. Otherwise Gated DeltaNet uses the slower PyTorch fallback.
For a smoke test, render two synthetic pages to PNG. Put a table with the torque specification for a fictional assembly on one page and a maintenance schedule on the other. Ask the same question of both:
from decision_model import DecisionModel
model = DecisionModel.from_pretrained("IVE-4B", device="cuda")
questions = {
"evidence": {
"type": "noul",
"instructions": (
"Is the tightening torque for assembly AX-17 given on this page?"
),
}
}
scores = {}
for page in ["ax17-torque-table.png", "ax17-maintenance.png"]:
result = model.decide("", questions, images=[page])
scores[page] = result["answers"]["evidence"]["noul"]
print(sorted(scores.items(), key=lambda item: item[1], reverse=True))
To test OCR instead, pass the page's extracted text as the first argument and omit images. Keep the question and candidate set unchanged. The score is useful for ordering; it doesn't certify that the answer is present. Preserve the source page number so the next step can still point users to the evidence.
Compare rankings before comparing answers
Illuin reranked up to 50 candidates per query on ViDoRe V3. Across four image-based retrieval baselines, the reported average nDCG@10, a ranking metric that rewards putting more relevant pages near the top, moved from 62.7 to 66.7 on a 100-point scale. The strongest of those first-stage baselines moved from 66.7 to 67.3. Published reranking tables
That gap matters. A second stage can rescue a poorly ordered shortlist, but cannot rescue a page that never made the shortlist. Run three checks on your own labelled queries:
- Candidate coverage. Check whether the gold page appears in the first 10, 25 and 50 results before reranking. Low coverage points to a retrieval problem.
- Ranking lift. Compare no reranking, OCR reranking and image reranking on the same candidate sets. Report how often the correct page reaches the first three. Split out charts, tables and text-only pages so gains on one layout don't conceal misses on another.
- Time per search. Include page fetches, rendering and reranking. A per-page inference figure is not the time to score a shortlist in your application.
If images help only on scans and tables, start with those queries or document classes and keep the cheaper path for the rest. For multilingual documents, score each language separately: the authors say their training mix is predominantly English and do not claim multilingual evaluation. Release limitations
I'm Paras. I work at the intersection of AI, engineering and distribution.
I help AI teams write technical guides that show developers how to evaluate a model in the pipeline they already use.