设备端处方阅读器在哪些药物识别上失效?一项从2.7亿参数语言模型到20亿参数视觉-语言模型的冻结重放研究
Where Does an On-Device Prescription Reader Lose Medications? A Frozen-Replay Study, from a 270M Language Model to a 2B Vision-Language Model
AI总结:
该研究针对设备端处方阅读器的药物识别失效问题,通过冻结重放实验对比2.7亿参数语言模型与20亿参数视觉-语言模型的流程,优化后召回率从8%升至67%,明确了旋转框裁剪、模型及OCR置信度门限的作用。
摘要:
设备端模型可让手机读取处方而无需将照片发送至任何地方,但小型模型的失效原因难以归因:是相机、OCR、模型还是其相关规则导致的。我们研究了一种基于手机的流程:用PaddleOCR读取处方照片,通过2.7亿参数的语言模型提取药物,再用确定性后备机制过滤结果后显示建议。我们对每个配置重放相同的冻结输入,且验证了确定性生成,在15份合成处方的49张拍摄样本(6份打印体、1位书写者手写的9份)上,以成对的文档级区间比较各配置。生产环境下的召回率为8%,手写体样本的45个药物识别中0个成功。后备机制未移除任何正确药物,且将不安全输出从45个降至1个。手写体样本中几乎所有药物都以可读形式未传递至模型;打印体样本中模型大多选择错误文本。我们将手写体识别的低表现部分归因于自身裁剪步骤的缺陷,随后替换了流程:旋转框裁剪、20亿参数的视觉-语言模型(重新读取处方行并提取药物)以及逐行数值定位。在相同拍摄样本上,召回率从8%升至67%(成对提升59个百分点,95%置信区间为+40至+78):打印体从19%升至100%,手写体从0升至45个中的20个,且无不安全输出。旋转框裁剪贡献了大部分识别增益,模型贡献了大部分召回率增益,OCR置信度门限现为主要限制因素。代价是每张照片耗时61秒(原约12秒),内存约1.9GB。此前关于更好的OCR会降低召回率的说法在受控比较中不成立,我们撤回该说法。所有结果均为样本内结果,来自1位书写者和1台设备。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。