每天早上一封邮件,把昨天的 AI 梳理好订阅邮件

METAL LAB

A knowledge-guided agentic framework for mitigating patient-context ambiguity in health queries

arXiv:2608.198752026-08-21

让AI在回答模糊的健康问题前先反问关键信息

患者向健康聊天机器人提出的简短问题往往缺少怀孕、用药、过敏等个人信息,导致同一个问题可能有多个不同的正确答案。研究团队在患者和最终回答模型之间加入一个基于知识图谱的智能体,它先判断缺了什么关键信息,针对性地反问患者,再把补全后的问题交给下游模型作答。在五个语言模型、两个基准测试(症状诊断检索和饮食安全判断)上,这种澄清方式的准确率明显高于直接作答或只是改写问题。

他们做了什么

  1. 提出'患者情境歧义'概念:问题措辞清楚,但答案取决于怀孕、过敏、用药等未公开的个人信息
  2. 设计了一个智能体:先理解问题,用任务专用知识图谱(基于Neo4j实现)构建候选假设,选出最能区分候选项的关键问题反问患者,再根据回答不断收窄候选范围,内部语言模型与规则化控制器配合完成整个循环
  3. 在1,034个人为遮蔽关键症状的诊断问题上,该智能体相比直接回答,将精确Top-1诊断准确率至少提高57.1个百分点,精确Recall@5至少提高77.7个百分点,五个模型均适用
  4. 在487个隐去关键健康背景的饮食安全判断问题上,五个模型的准确率均有提升,且在五个模型中有四个取得了最高的马修斯相关系数(MCC)
  5. 对同一问题重复多次提问时,经过澄清的回答比直接回答或改写后的回答更加一致(不确定性更低)
Figure 1: Mitigating patient-context ambiguity before downstream language-model generation. a, In direct interaction with a healthcare chatbot, the downstream large language model (LLM) can use knowledge encoded during training and, when available, external evidence. However, decision-relevant patient-specific context may remain unavailable because it has not been elicited. The response is therefore generated from incomplete patient context. b, The knowledge-graph-guided ambiguity-mitigation framework operates between the patient-facing interface and an otherwise unchanged downstream LLM. The framework grounds the query in a task-specific knowledge graph, retrieves graph-supported hypotheses and selects the most informative clarification question. The patient’s answer is used to update the active hypotheses, and the cycle repeats until a stopping condition is met. The resulting clarified record is then passed to the downstream LLM, which generates a response informed by the elicited context.
Figure 1: Mitigating patient-context ambiguity before downstream language-model generation. a, In direct interaction with a healthcare chatbot, the downstream large language model (LLM) can use knowledge encoded during training and, when available, external evidence. However, decision-relevant patient-specific context may remain unavailable because it has not been elicited. The response is therefore generated from incomplete patient context. b, The knowledge-graph-guided ambiguity-mitigation framework operates between the patient-facing interface and an otherwise unchanged downstream LLM. The framework grounds the query in a task-specific knowledge graph, retrieves graph-supported hypotheses and selects the most informative clarification question. The patient’s answer is used to update the active hypotheses, and the cycle repeats until a stopping condition is met. The resulting clarified record is then passed to the downstream LLM, which generates a response informed by the elicited context.
Table 1: Illustrative effect of patient-specific context on an otherwise unchanged health query. The examples are conceptual and show why the same linguistically clear query may require different response strategies as additional patient context becomes available. They are not intended as treatment recommendations or as outputs from the evaluated models.
Patient queryPatient-specific contextImplication for the response
What should I take for a headache?Not providedSeveral common options may appear plausible, but the information needed to distinguish among them is absent.
What should I take for a headache?PregnancyThe response must account for pregnancy-related medication constraints and may differ from general over-the-counter guidance.
What should I take for a headache?Use of an anticoagulantThe response must consider medication interactions and bleeding risk before suggesting an option.
What should I take for a headache?Liver diseaseThe response must consider whether common medications are appropriate given impaired liver function.
What should I take for a headache?Multiple relevant conditions or warning signsA specific medication recommendation may be inappropriate, and the response may instead require escalation or professional assessment.
Figure 2: Between-model performance and variation under each configuration. Markers denote the mean across the five evaluated downstream language models, and horizontal error bars denote ±1 population standard deviation across the five model-specific values. Diagnosis metrics were computed over all 1,034 cases, with abstentions counted as incorrect, and dietary metrics were computed over all 487 queries. Higher values indicate better performance for category Top-1 accuracy, ICD Top-1 accuracy, exact Recall@5, and dietary MCC, whereas a lower value indicates better performance for the dietary false-negative rate, as shown by the arrows above each panel. For every displayed metric, the Agent attained both a better mean and a smaller between-model standard deviation than either baseline, indicating stronger average performance and less dependence on the selected downstream model. MCC is unitless; all other quantities are expressed in percentage points. Exact Top-1 diagnosis accuracy was omitted because its near-zero baseline means made dispersion alone misleading.
Figure 2: Between-model performance and variation under each configuration. Markers denote the mean across the five evaluated downstream language models, and horizontal error bars denote ±1 population standard deviation across the five model-specific values. Diagnosis metrics were computed over all 1,034 cases, with abstentions counted as incorrect, and dietary metrics were computed over all 487 queries. Higher values indicate better performance for category Top-1 accuracy, ICD Top-1 accuracy, exact Recall@5, and dietary MCC, whereas a lower value indicates better performance for the dietary false-negative rate, as shown by the arrows above each panel. For every displayed metric, the Agent attained both a better mean and a smaller between-model standard deviation than either baseline, indicating stronger average performance and less dependence on the selected downstream model. MCC is unitless; all other quantities are expressed in percentage points. Exact Top-1 diagnosis accuracy was omitted because its near-zero baseline means made dispersion alone misleading.
Table 2: Overview of the two ambiguity-mitigation evaluation sets. Both evaluation sets were curated so that the intended output could not be uniquely determined from the information initially provided. Missing patient-specific information was subsequently made available through the clarification process.
Symptom-based diagnosis retrievalDietary safety classification
Data sourceCurated synthetic patient recordsCurated food and health-condition resources
Evaluation instances1,034487
Output space32 diagnosis labelsOK or Not OK
Information initially providedPartial symptom profileFood-related question without complete health context
Information initially withheldApproximately 49.5% of the symptoms recorded in the complete casePatient-specific health conditions relevant to the queried food
Information initially visibleApproximately 50.5% of the symptoms recorded in the complete caseQueried food and the user’s stated request
Reference information used during clarificationComplete symptom profileComplete patient health context
Health conditions represented38
Label distribution32 diagnosis classes301 OK and 186 Not OK
Primary evaluation measuresCategory-level, ICD-level, and exact diagnosis retrievalMCC, recall, precision, and classification error rates
Figure 3: Knowledge-graph-guided ambiguity-mitigation framework. a, The framework operates between the user-facing Interface and an unchanged downstream large language model (LLM). The Interface exchanges the initial query, clarification questions and user answers. The Orchestrator combines an inner LLM with a deterministic controller and accesses a task-specific knowledge graph implemented in Neo4j. After clarification, the Orchestrator passes the clarified query and retained graph evidence to the downstream LLM for response generation. b, The inner LLM interprets the query, and graph grounding retrieves the supported candidate hypotheses. When the available context is insufficient, the controller selects the eligible question with the greatest expected information gain. The inner LLM expresses the selected variable as a user-facing question, and the controller uses the answer to remove incompatible hypotheses. The cycle repeats until the remaining evidence supports a task output, no informative question remains or the interaction limit is reached. Orange denotes inner-LLM operations, blue denotes deterministic-controller operations, green denotes knowledge-graph operations and purple denotes the clarified output.
Figure 3: Knowledge-graph-guided ambiguity-mitigation framework. a, The framework operates between the user-facing Interface and an unchanged downstream large language model (LLM). The Interface exchanges the initial query, clarification questions and user answers. The Orchestrator combines an inner LLM with a deterministic controller and accesses a task-specific knowledge graph implemented in Neo4j. After clarification, the Orchestrator passes the clarified query and retained graph evidence to the downstream LLM for response generation. b, The inner LLM interprets the query, and graph grounding retrieves the supported candidate hypotheses. When the available context is insufficient, the controller selects the eligible question with the greatest expected information gain. The inner LLM expresses the selected variable as a user-facing question, and the controller uses the answer to remove incompatible hypotheses. The cycle repeats until the remaining evidence supports a task output, no informative question remains or the interaction limit is reached. Orange denotes inner-LLM operations, blue denotes deterministic-controller operations, green denotes knowledge-graph operations and purple denotes the clarified output.
Table 3: Symptom-based diagnosis retrieval on the curated evaluation set (n=1,034). Performance was evaluated at three levels of specificity: broad diagnostic category, ICD-level grouping, and exact diagnosis name. Selective results include only cases for which the framework returned an answer. Overall results include all evaluation cases, with abstentions counted as incorrect. Because the Basic and RaR configurations did not abstain, their selective and overall values are identical. Bold values indicate the best configuration within each downstream model and metric column. Underlined values indicate the highest value in the corresponding column across all models and configurations. Category and ICD values rely on reference mappings that were not independently clinician-adjudicated, whereas exact-name matching does not require these mappings. All values are percentages.
Top-1, selectiveRecall@5, selectiveTop-1, overallRecall@5, overall
ModelConfigurationAbstainCategoryICDExactCategoryICDExactCategoryICDExactCategoryICDExact
GPT-5.5Agent3.492.182.264.396.995.194.189.079.462.193.691.990.9
GPT-5.5RaR0.080.327.51.795.660.52.280.327.51.795.660.52.2
GPT-5.5Basic0.080.927.21.695.660.12.080.927.21.695.660.12.0
Claude Opus 4.8Agent3.494.081.672.696.794.993.990.878.870.193.491.790.7
Claude Opus 4.8RaR0.079.233.34.594.863.410.979.233.34.594.863.410.9
Claude Opus 4.8Basic0.075.236.31.592.967.24.075.236.31.592.967.24.0
Gemini 3.1 ProAgent3.492.182.359.896.995.194.189.079.557.793.691.990.9
Gemini 3.1 ProRaR0.081.229.30.896.656.33.381.229.30.896.656.33.3
Gemini 3.1 ProBasic0.083.828.60.696.867.55.783.828.60.696.867.55.7
LLaMA 3.3 70BAgent3.492.283.473.697.294.993.989.180.671.193.991.790.7
LLaMA 3.3 70BRaR0.081.744.510.094.962.715.781.744.510.094.962.715.7
LLaMA 3.3 70BBasic0.081.145.911.093.962.116.281.145.911.093.962.116.2
Mistral LargeAgent3.493.082.171.297.594.893.889.879.368.894.291.690.6
Mistral LargeRaR0.076.337.17.494.766.412.376.337.17.494.766.412.3
Mistral LargeBasic0.074.738.92.793.766.35.174.738.92.793.766.35.1
Table 4: Dietary safety classification on 487 queries. The positive class is Not OK. A false negative denotes an unsafe food classified as safe, whereas a false positive denotes an unnecessary restriction. MCC is reported because the dataset contains 301 OK and 186 Not OK queries. Bold values indicate the best result within each downstream-model block and metric column; ⋆ marks the best configuration for each model, ranked by MCC. Higher values are better for accuracy, MCC, F1, recall, and precision, whereas lower values are better for false-negative rate, false-positive rate, and false-negative count. Accuracy, recall, precision, and error rates are percentages.
ModelConfigurationAccuracyMCCF1RecallPrecisionFN rateFP rateFN (n)
GPT-5.5Agent ⋆89.30.7830.86992.581.97.512.614
GPT-5.5RaR83.20.6400.74765.187.734.95.665
GPT-5.5Basic88.30.7570.85288.282.411.811.622
Claude Opus 4.8Agent ⋆91.80.8370.90096.884.13.211.36
Claude Opus 4.8RaR83.40.6500.74162.491.337.63.770
Claude Opus 4.8Basic81.30.6070.76077.474.622.616.342
Gemini 3.1 ProAgent90.30.7950.87286.088.414.07.026
Gemini 3.1 ProRaR88.30.7510.84683.985.216.19.030
Gemini 3.1 ProBasic ⋆89.50.7990.87797.379.72.715.35
LLaMA 3.3 70BAgent ⋆86.90.7500.84895.776.14.318.68
LLaMA 3.3 70BRaR85.60.7260.83494.674.65.419.910
LLaMA 3.3 70BBasic83.80.7010.81895.771.54.323.68
Mistral LargeAgent ⋆86.40.7410.84395.275.64.818.99
Mistral LargeRaR84.20.7180.82698.471.21.624.63
Mistral LargeBasic85.00.7180.82995.273.44.821.39
Table 5: Diagnosis-output uncertainty under repeated sampling. Two randomly selected diagnosis queries were evaluated using 500 independent repetitions for each model and configuration. K denotes the number of distinct exact diagnosis strings returned, Hexact denotes predictive entropy over exact diagnosis strings, and Hcat denotes entropy after mapping outputs to their clinical categories. Item 0 had the reference diagnosis acute viral pharyngitis, and Item 98 had the reference diagnosis ischemic heart disease. In the Agent condition, the symbolic clarification trajectory and terminal hypothesis were held fixed, so the repetitions resampled only downstream language generation. Outputs that could not be mapped to a clinical category were retained as distinct categories rather than excluded. Bold values identify the lowest-uncertainty configuration within each model block, and ⋆ marks that configuration. Lower values indicate less variation across repeated outputs. Entropy measures the dispersion of the generated answers and does not, by itself, indicate whether the resulting diagnosis was correct. Entropy is reported in bits.
Item 0: acute viral pharyngitisItem 98: ischemic heart disease
ModelConfigurationKHexactHcatKHexactHcat
GPT-5.5Agent ⋆10.0000.00010.0000.000
GPT-5.5RaR10.0000.00061.0060.988
GPT-5.5Basic10.0000.00051.2321.128
Claude Opus 4.8Agent ⋆10.0000.00020.3350.000
Claude Opus 4.8RaR112.0920.00092.0440.511
Claude Opus 4.8Basic10.0000.000161.1610.932
Gemini 3.1 ProAgent ⋆10.0000.00020.0940.094
Gemini 3.1 ProRaR30.0580.000172.7030.930
Gemini 3.1 ProBasic20.0530.000151.9681.056
LLaMA 3.3 70BAgent ⋆30.0740.02120.0530.053
LLaMA 3.3 70BRaR61.8970.00071.2080.205
LLaMA 3.3 70BBasic51.5300.00050.8470.021
Mistral LargeAgent ⋆10.0000.00031.1450.000
Mistral LargeRaR30.2360.00041.4110.741
Mistral LargeBasic10.0000.00030.3440.067
Table 6: Dietary-safety uncertainty under repeated sampling. One Not OK-labeled query and one OK-labeled query were each evaluated using 500 independent repetitions per model and configuration, producing 1,000 binary decisions per row. The positive class was Not OK. Hunsafe and Hsafe denote predictive entropy for the Not OK- and OK-labeled queries, respectively. Zero bits indicates a fully consistent output, while one bit indicates an approximately even split between the two labels. In the Agent condition, the confirmed patient context and final safety decision were held fixed across repetitions, so the repetitions resampled only downstream language generation. Bold values indicate the best result within each model block and metric column. The ⋆ symbol marks the best-performing configuration for each model, ranked first by MCC, then by accuracy and mean entropy. Exact ties are marked for both configurations. Low entropy indicates consistency, not necessarily correctness. Accuracy, recall, precision, and false-positive rate are percentages; MCC is unitless.
Classification over 1,000 repetitionsPredictive entropy (bits)
ModelConfigurationAccuracyMCCRecallPrecisionFP rateHunsafeHsafeMean H
GPT-5.5Agent ⋆100.01.000100.0100.00.00.0000.0000.000
GPT-5.5RaR96.80.93893.6100.00.00.3430.0000.172
GPT-5.5Basic ⋆100.01.000100.0100.00.00.0000.0000.000
Claude Opus 4.8Agent ⋆100.01.000100.0100.00.00.0000.0000.000
Claude Opus 4.8RaR99.20.98498.4100.00.00.1180.0000.059
Claude Opus 4.8Basic ⋆100.01.000100.0100.00.00.0000.0000.000
Gemini 3.1 ProAgent ⋆100.01.000100.0100.00.00.0000.0000.000
Gemini 3.1 ProRaR99.80.99699.6100.00.00.0380.0000.019
Gemini 3.1 ProBasic59.20.318100.055.181.60.0000.6890.344
LLaMA 3.3 70BAgent ⋆100.01.000100.0100.00.00.0000.0000.000
LLaMA 3.3 70BRaR50.60.078100.050.398.80.0000.0940.047
LLaMA 3.3 70BBasic50.00.000100.050.0100.00.0000.0000.000
Mistral LargeAgent ⋆100.01.000100.0100.00.00.0000.0000.000
Mistral LargeRaR64.50.412100.058.571.00.0000.8690.434
Mistral LargeBasic76.10.594100.067.747.80.0000.9990.499
Supplementary Table 1: Flow of synthetic patients and case–diagnosis instances into the diagnosis benchmark.
Stage or partitionPatientsInstances
Generated by Synthea4,884
Excluded: no retained benchmark instance366
Included in the frozen benchmark4,51810,374
Training partition3,1637,258
Validation partition9042,082
Test partition4511,034
Supplementary Table 2: DxSxKG artifact used in the reported evaluation.
ComponentCount
Diagnosis nodes129,815
Symptom nodes340,842
HAS_SYMPTOM relations82,813
IS_A relations1,400
Supplementary Table 3: FoodSafetyKG components used in the reported evaluation.
ComponentCount
USDA food-item nodes2,085,340
Nutrient nodes477
Food-phrase nodes298
Ingredient nodes130
Food-property nodes60
Condition nodes67
Condition-family nodes16
Condition-alias nodes138
HAS_NUTRIENT relations27,094,028
Derived food-item HAS_PROPERTY relations2,542,284
Materialized food-item risk relations21,030,444
Curated food-phrase–ingredient relations398
Curated ingredient–property relations341
Property–condition RISKY_FOR relations126
Property–condition SAFE_FOR relations67
Supplementary Table 4: Model routing used for the frozen evaluation.
Display labelDeveloperAPI providerRequested identifier
GPT-5.5OpenAIOpenAIgpt-5.5
Claude Opus 4.8AnthropicAnthropicclaude-opus-4-8
Gemini 3.1 ProGoogleOpenRoutergoogle/gemini-3.1-pro-preview
Llama 3.3 70B InstructMetaOpenRoutermeta-llama/llama-3.3-70b-instruct
Mistral LargeMistral AIMistralmistral-large-2512
Supplementary Table 5: Mental-health domain: example transformations produced by AIM masking, lexical generalization, and one illustrative vague user paraphrase. Latent indicates what is retained as hidden structure and is not shown to the user at inference time.
MechanismSeed (specific)Surface after AIMLatent
Severity maskingI’m feeling extremely anxious and having panic attacks for 2 weeks. I don’t know what to do.I’m feeling anxious and having panic attacks for 2 weeks. I don’t know what to do.full seed
Temporal maskingI’ve been depressed for 2 weeks.I’ve been depressed for a while.full seed
Euphemism mapping (risk-preserving vagueness)I’ve been having thoughts of hurting myself.I’ve been having thoughts.afull seed
Diagnostic phrase removalI was diagnosed with major depressive disorder.I was diagnosed with.bfull seed
Ontological generalization (domain map + WordNet)After masking: … and having panic attacks…… and having mental condition… (domain hypernym map where applicable)masked intermediate
LLM persona rewrite (illustrative)(same seed as row 1, after rule-based steps)“I’ve been kind of on edge and my body does that thing where it freaks out, it’s been going on for a bit.”full seed + strategy tags
Supplementary Table 6: Food/dietary domain: examples of omission, abstraction, and generalization that force clarification of health context (e.g., diabetes, allergy), amounts, or ingredients. The Latent column names the hidden structure that must be recovered before a safety decision.
MechanismSeed (specific)Surface after AIMLatent
Disease/condition maskingCan I eat white rice with chicken curry? I have type 2 diabetes.Can I eat white rice with chicken curry?condition + safety label
Allergen maskingI need a recipe with 2 cups flour and chicken, but I have a peanut allergy.I need a recipe with 2 cups flour and chicken, but.allergen + full seed
Quantity removalAdd 2 cups of flour to the bowl.Add some of flour to the bowl.quantities + full seed
Ingredient omissionI need chicken, onions, and garlic for the stir-fry.I need onions, and garlic for the stir-fry. (one ingredient dropped)omitted slots + full seed
Generalization onlyI want grilled salmon for dinner.I want grilled fish for dinner.full seed
LLM persona rewrite (illustrative)(masked recipe-style request)“I want to make that creamy spicy thing, maybe with some meat? I can’t remember what I bought.”full seed + variables
Surface perturbation (illustrative)Can I eat oatmeal with honey in the morning?Can I eat oatmea with honney in the morning?same as clean twin

为什么重要

该方法无需重新训练或修改底层语言模型,只需在其前面加一层主动提问的中间环节,就能降低健康聊天机器人因信息不全而产生的猜测风险。这意味着它可以直接叠加在现有商用语言模型之上,具有较强的实际部署价值。

本文术语

  • 知识图谱 · 用节点和连接线表示概念及其相互关系的结构化数据库
  • 患者情境歧义 · 问题措辞清楚,但正确答案取决于未透露的患者个人信息的情况
  • Top-1准确率 / Recall@5 · 模型给出的第一个答案正确的比例 / 正确答案出现在模型前五个候选中的比例
  • 马修斯相关系数(MCC) · 综合考虑四种分类结果(真假阳性/阴性)的二分类效果评估指标
  • 预测熵 · 衡量对同一问题重复提问时答案分散程度的指标,数值越低表示回答越一致

论文原文摘要(英文)

Patients often submit short, underspecified queries to healthcare chatbots that lack the patient-specific information needed to determine an appropriate response. Although these queries may be linguistically clear, they can support multiple plausible answers depending on undisclosed factors such as symptoms, diagnoses, medications, allergies, or dietary restrictions. A language model answering such a query directly may therefore rely on unsupported assumptions about the patient. We introduce a knowledge-guided agentic framework for mitigating patient-context ambiguity before final response generation. The framework operates between the patient and an otherwise unchanged downstream language model. It interprets the initial query, uses a task-specific knowledge graph to construct a set of plausible hypotheses, identifies the missing patient-context variables needed to distinguish among them, and asks targeted follow-up questions. The original query and the acquired context are then combined into a clarified prompt for the downstream model. We evaluated the framework across five language models using two controlled ambiguity-mitigation benchmarks: diagnosis retrieval from 1,034 symptom queries with clinically relevant evidence systematically masked, and dietary-safety classification from 487 queries with decisive health context omitted. The framework was compared with direct answering of the underspecified query and with rephrasing the same query without acquiring new patient information. In diagnosis retrieval, it increased overall exact Top-1 accuracy by at least 57.1 percentage points and selective exact Recall@5 by at least 77.7 percentage points across the five evaluated models compared with direct prompting. In dietary-safety classification, it improved accuracy across all five models and achieved the highest Matthews correlation coefficient for four...

作者 · Mahyar Abbasian, Saba A. Farahani, Arshia Ilaty, Hung Cao, Ramesh Jain, Amir M. Rahmani

在 arXiv 阅读

最新论文

全部论文 →

METAL LAB 最新报道

图片来源: Mahyar Abbasian et al., arXiv:2608.19875, CC BY 4.0