매일 아침, 어제의 AI를 한 통으로 정리해 보내드립니다메일로 받아보기

METAL LAB

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

arXiv:2608.198752026-08-21

환자가 증상을 다 말하지 않아 애매한 질문에, AI가 먼저 되물어서 답을 맞히는 방법

환자가 헬스케어 챗봇에 짧게 던지는 질문은 임신 여부, 복용 약, 알레르기 같은 개인 정보가 빠져 있어 정답이 여러 개일 수 있다. 연구진은 챗봇과 최종 답변 모델 사이에 지식그래프 기반 에이전트를 끼워 넣어, 부족한 정보를 콕 집어 되묻고 답을 모은 뒤 명확해진 질문을 최종 모델에 넘기는 방식을 만들었다. 5개 언어모델과 두 가지 벤치마크(증상 기반 진단 찾기, 식이 안전 판정)로 시험한 결과, 그냥 답하게 하거나 질문만 다시 표현시키는 것보다 정확도가 크게 올랐다.

무엇을 했나

  1. 환자 질문이 문법적으로는 멀쩡해도 임신, 알레르기, 복용약 같은 숨은 정보에 따라 정답이 달라지는 '환자 맥락 모호성' 문제를 정의했다
  2. 질문 해석 → 지식그래프로 가능한 후보(가설) 만들기 → 후보를 구분할 결정적 질문 고르기 → 환자 답변으로 후보 좁히기, 이 과정을 반복하는 에이전트를 설계했다 (Neo4j 지식그래프와 내부 언어모델, 규칙 기반 컨트롤러 조합)
  3. 증상 마스킹한 1,034건 진단 문제에서 에이전트는 정확 진단명 맞히기 정확도를 직접 답변 대비 최소 57.1퍼센트포인트, 상위5개 안에 정답 포함 비율을 최소 77.7퍼센트포인트 끌어올렸다
  4. 건강 맥락을 뺀 487건 식이 안전 판정에서도 5개 모델 전부 정확도가 올랐고, 5개 중 4개 모델에서 종합 성능 지표(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

왜 중요한가

챗봇 모델 자체를 바꾸거나 재학습하지 않고도, 중간에 질문을 던지는 계층만 추가해 의료 챗봇의 오답 위험을 줄일 수 있음을 보여준다. 이는 실제 서비스에 이미 쓰이는 상용 언어모델에 그대로 얹을 수 있는 구조라는 점에서 실용적 의미가 크다.

이 논문의 용어

  • 지식그래프(Knowledge Graph) · 개념과 개념 사이의 관계를 노드와 연결선으로 정리한 구조화된 데이터베이스
  • 환자 맥락 모호성(patient-context ambiguity) · 질문 문장은 명확하지만 환자 개인정보가 빠져서 정답이 여러 개가 될 수 있는 상태
  • Top-1 정확도 / Recall@5 · 모델이 내놓은 첫 번째 답이 맞는 비율 / 상위 5개 후보 안에 정답이 포함된 비율
  • 매튜상관계수(MCC) · 이진 분류 성능을 정답과 오답 4가지 경우를 모두 반영해 종합적으로 평가하는 지표
  • 예측 엔트로피(predictive entropy) · 같은 질문을 반복했을 때 답변이 얼마나 흩어져 나오는지를 재는 값, 낮을수록 일관됨

논문 원문 초록 (영문)

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