Multimodal Models·Question 30 of 67Advanced

You need to process 10M document pages per month. VLM or traditional OCR? Do the math.

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Set up the unit economics first, then let accuracy requirements pick the point on the curve.

Full worked answer

Set up the unit economics first, then let accuracy requirements pick the point on the curve.

VLM path: a page downsampled to a readable resolution is ~1.5k input tokens, plus prompt (sent at a provider's high-resolution tier it can be two to three times that, so fix the resolution before you budget); structured output ~500 tokens. 10M pages ≈ ~15B input + ~5B output tokens/month. The rates below are illustrative, so plug in current price sheets, which move every few months. At small-model rates (~$0.15/M input, ~$0.60/M output) that's ~$2k + $3k ≈ ~$5k/month; at frontier mid-tier rates (~$3/M input, ~$15/M output) it's ~$45k + $75k ≈ ~$120k/month. Batch APIs typically cut this ~50% if latency allows. Self-hosting an open VLM changes the calculus to GPU-hours: at a conservative ~1-2 s of GPU time per page, 10M pages is ~3-6k GPU-hours/month, which on cloud H100s is roughly $5-20k depending on the hourly rate you get, less on reserved capacity, plus engineering. Well-batched small VLMs, including document-specialised OCR models, do several times better than that per GPU, so measure your own throughput before committing.

OCR path: managed OCR runs ~$1.50 per 1,000 pages for plain text (~$15k/month), roughly 10× more with table/form analysis; self-hosted open OCR is near-pure compute at cents per thousand pages. But OCR alone doesn't extract fields - add an LLM pass over the OCR text (~500-800 tokens/page instead of 1.5k of image tokens, and cheap models suffice) for a few thousand dollars more.

So the naive comparison - small VLM (~$5k) vs OCR+LLM (~$5-20k) - is closer than most people expect in 2026; the real differentiators are elsewhere: accuracy on your fields (handwriting and messy layouts favour VLMs; clean templated forms don't need one), auditability (OCR gives word-level coordinates; VLM grounding, where available, is coarser), error character (OCR fails visibly with garbage; VLMs fail invisibly with plausible values - the latter is worse for financial data), and latency/throughput.

My actual recommendation is a cascade: document classifier up front; templated/clean pages through OCR+small-LLM; hard pages (handwriting, degraded scans, weird layouts - maybe 10-20% of volume) through a VLM with both image and OCR text; validation and low-confidence human review at the end. That buys ~VLM accuracy at ~OCR-dominated cost.

What a good answer covers

  • Set up the unit economics first, then let accuracy requirements pick the point on the curve
  • VLM path: a page downsampled to a readable resolution is ~1.5k input tokens, plus prompt (sent at a…
  • The rates below are illustrative, so plug in current price sheets, which move every few months
  • At small-model rates (~$0.15/M input, ~$0.60/M output) that's ~$2k + $3k ≈ ~$5k/month; at frontier…
  • Batch APIs typically cut this ~50% if latency allows

Key terms: VLM path · ~$5k/month · ~$120k/month · OCR path · ~$15k/month · accuracy on your fields · auditability · error character · latency/throughput · cascade

Interviewer follow-ups to expect

  1. How do you decide the escalation threshold in the cascade?

  2. At what accuracy delta does the frontier model justify 20× cost?

  3. How does the answer change if 40% of pages are handwritten?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep