arXiv:2507.22921cs.CLcs.AI2025-07

用多阶段语言模型链提升医疗文本信息提取的准确率与速度

Fast and Accurate Contextual Knowledge Extraction Using Cascading Language Model Chains and Candidate Answers

  • 通过候选答案筛选机制,仅接受可信响应,错误内容传给更精准但慢的模型
  • 在医疗文档中提取出生日期时,准确率提升17%,推理速度加快3倍
  • 适合需要高可靠性知识提取的医疗、金融等敏感领域应用

语言模型虽能捕捉文本中的复杂关系,但成本高且易产生不存在的信息(即幻觉)。若生成内容错误,投入资源将浪费。为此,我们提出并实现了语言模型链(LMC)算法:只有当模型对提示的回答存在于候选答案集合中时,该回答才被视为正确;否则,对应错误内容将输入更具有预测能力但更慢的模型。此过程持续进行多轮模型级联,直至所有预测均正确。我们使用LMC算法从医疗文档中提取患者出生日期,在多阶段级联语言模型组合下,预测速度比单个模型快3倍,准确率提高17%,同时显著减少幻觉现象。我们认为,这一新算法对知识提取领域有重要贡献,未来应进一步探索。

原文摘要 · Abstract (English)

Language models can capture complex relationships in given text, but these are notorious for being costly and for producing information that does not exist (i.e., hallucinations). Furthermore, the resources invested into producing this information would be wasted if it were incorrect. We address these issues by proposing, implementing, and applying the Language Model Chain (LMC) algorithm. In this, a language model's response to a given prompt about given text is only correct if it exists in the collection of possible (i.e., candidate) answers, and text corresponding to incorrect responses is fed into a more predictive (but slower) language model. This process is repeated for a collection of language models, or until all predictions about the text are correct. We used the LMC algorithm to extract patient dates of birth from medical documents, and combining a collection of language models in a multi-stage cascade significantly increased prediction speed and accuracy over individual language models, while greatly reducing the number of corresponding hallucinations. We believe that the novel LMC algorithm significantly contributes to the knowledge extraction field, and that this should be explored much further in the future.

知识提取语言模型医疗AI幻觉抑制

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。