Where Does an On-Device Prescription Reader Lose Medications? A Frozen-Replay Study, from a 270M Language Model to a 2B Vision-Language Model
Abstract
On-device models let a phone read a prescription without sending the photograph anywhere, but small models fail in ways that are hard to attribute: to the camera, the OCR, the model, or the rules around it. We study a phone-based pipeline that reads a prescription photograph with PaddleOCR, extracts medications with a 270M-parameter language model, and filters the result with a deterministic backstop before showing suggestions. Replaying identical frozen inputs through each configuration, with deterministic generation verified, we compare configurations with paired document-level intervals on 49 captures of 15 synthetic prescriptions (6 typed, 9 handwritten by one writer). Production recall is 8%, and 0 of 45 on handwriting. The backstop removes no correct medication and cuts unsafe outputs from 45 to 1. On handwriting nearly all medications never reach the model in readable form; on typed sheets the model mostly picks the wrong text. We trace much of the handwriting floor to a defect in our own crop step, then replace the pipeline: rotated-box crops, a 2B-parameter vision-language model that re-reads prescription lines and extracts the medications, and per-line numeric grounding. On the same captures recall rises from 8% to 67% (paired +59 points, 95% CI +40 to +78): typed 19% to 100%, handwritten 0 to 20 of 45, with no unsafe output. Rotated crops account for most of the reading gain and the model for most of the recall gain, and the OCR confidence gate is now the main limit. The cost is 61 s per photograph against about 12 s, and about 1.9 GB of memory. An earlier claim that better OCR lowered recall does not survive the controlled comparison, and we withdraw it. All results are in-sample, from one writer and one device.
Create a lesson
Metadata
- Categories
- cs.CV, cs.CL
Related papers
Elicitation format changes zero-shot classification accuracy in a medical vision-language model: a two-center evaluation on colorectal histopathology
Shared title terminologycs.CVAnay Sinhal, Amit Sinhal, Arpana Sinhal
Diagnosing Verbalized Confidence in a Medical Vision-Language Model for Selective Prediction on Colorectal Histopathology Patches
Shared title terminologycs.CVAnay Sinhal, Amit Sinhal, Ashish Pandey et al.
CompositionEvidence: Controlling Geometric Evidence for Cinematic Composition Reasoning with Frozen Vision-Language Models
Shared title terminologycs.CVYichen He, Xin Huang, Yuxi Liu
Multimodal Hierarchical Mixture-of-Experts for 3D Medical Vision-Language Modeling
Shared title terminologycs.CVGizem Mert, Szymon Płotka, Pedro R. A. S. Bassi et al.
Polytropos: What Do Vision-Language Model Descriptions Make of a Cultural Object?
Shared title terminologycs.CVYuechen Jiang, Enze Zhang, Yuyan Wang et al.
CLASP: Complementary Layer Selection and Profiling for Zero-Shot OOD Detection using Vision-Language Models
Shared title terminologycs.CVSaahil Islam, Adarsh Bhandary Panambur, Teodora Spasojevic et al.