处方读取管线在哪丢失药物?从270M语言模型到2B视觉语言模型的冻结回放研究
Where Does an On-Device Prescription Reader Lose Medications? A Frozen-Replay Study, from a 270M Language Model to a 2B Vision-Language Model
一项冻结回放研究对比了手机端处方读取管线:PaddleOCR加270M参数语言模型的生产配置召回率仅8%,手写处方45项药物中0项被读出。替换为旋转框裁剪、2B参数视觉语言模型逐行重读并提取药物后,同一批49张拍摄的召回率升至67%,手写处方读出20/45,且无不安全输出。代价是每张照片耗时61秒、占用约1.9GB内存,OCR置信度门限成为当前主要瓶颈。
arXiv:2611.18699v1 Announce Type: new 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org