动态双向模式记忆:临床NLP中推理时门控的生产规模实证特征
Dynamic Bidirectional Pattern Memory: A Production-Scale Empirical Characterisation of Inference-Time Gating in Clinical NLP
AI总结:
本研究在生产规模的临床NLP管道中,通过生成器-验证器架构和轻量级记忆机制,发现直接从验证器拒绝学习过滤规则在大规模下失效,而基于固定临床本体的规则有效,并揭示门控选择性取决于是否测试验证器权衡的证据。
摘要:
我们在生产规模的临床自然语言处理(NLP)管道中研究了推理时的模式记忆门控。该管道将提出提取的生成器(Llama-3.3 70B)与接受或拒绝提取的验证器(MMed-Llama-3.1 70B)配对,覆盖167,034篇PMC-Patients叙述,并添加了一个轻量级记忆,在部署时学习过滤哪些提取,因此验证器无需重新检查已见过失败的候选。我们报告了四个发现。第一,直接从验证器的拒绝中学习过滤规则在全规模上失败:关系提取过滤器保持为空,尽管记录了785,797次拒绝,因为它们过于分散在太多不同的形式上而无法累积。第二,使用固定临床本体的更简单规则在没有验证器的情况下产生了相同的过滤,在保留的5,000名患者集上捕获了49,734个违反本体的关系。第三,在五个版本的问题回答过滤器中,四个因不同且具有启发性的原因失败;第五个通过检查患者的提取实体是否支持所问问题而成功,并且在适用时,其标记验证器将拒绝的答案的可能性是接受答案的1.84倍。第四,所有五个版本中有一个模式:过滤器仅在测试验证器权衡的相同证据时具有选择性,而不是在模仿验证器的输出时。这些共同为任何生成器-验证器管道提供了一个可迁移的结果:最自然的记忆设计可能在大规模下无声地失败,并且预生成门控是否具有选择性在任何工程努力之前由信号是否探测验证器本身回答的问题决定。在整个过程中,系统标记可疑提取而不是删除它们,因此每个决策对临床审查保持可见。所有代码和测试工件均已公开开放。
英文摘要:
We study inference-time pattern-memory gating in a production-scale clinical natural language processing (NLP) pipeline. The pipeline pairs a generator (Llama-3.3 70B) proposing extractions with a verifier (MMed-Llama-3.1 70B) accepting or rejecting them, over 167,034 PMC-Patients narratives, and adds a lightweight memory that learns at deployment which extractions to filter, so the verifier need not re-examine candidates already seen to fail. We report four findings. First, learning filtering rules directly from the verifier's rejections failed at full scale: the relation-extraction filter stayed empty despite 785,797 logged rejections, because they were spread too thinly across too many distinct forms to accumulate. Second, a simpler rule using a fixed clinical ontology produced the same filtering without the verifier, capturing 49,734 ontology-violating relations on a held-out 5,000-patient set. Third, of five versions of the question-answering filter, four failed for distinct, instructive reasons; the fifth succeeded by checking whether a patient's extracted entities support the question asked, and where it applies was 1.84 times likelier to flag an answer the verifier would reject than one it would accept. Fourth, one pattern held across all five: a filter is selective only when it tests the same evidence the verifier weighs, not when it imitates the verifier's output. Together these give a transferable result for any generator-verifier pipeline: the most natural memory design can fail silently at scale, and whether a pre-generation gate is selective is decided before any engineering effort, by whether its signal probes the question the verifier itself answers. Throughout, the system flags suspect extractions rather than deleting them, so every decision stays visible for clinical review. All code and test artefacts are released openly.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。