首页|期刊导航|中医杂志|面向中医辨证任务的大语言模型证型幻觉自动评测方法比较研究

面向中医辨证任务的大语言模型证型幻觉自动评测方法比较研究OA

Comparison of Automatic Evaluation Methods for Pattern Hallucinations of Large Language Models in Traditional Chinese Medicine Syndrome Differentiation

中文摘要英文摘要

目的 比较不同自动评测方法在中医辨证任务中判定大语言模型(LLM)证型幻觉的效能,筛选相对于人工判定具有较高综合判别效能的证型幻觉自动评测方案.方法 以公开发表于北京大学中文核心期刊或中国科学引文数据库来源期刊的中医医案构建598例标准化辨证试题,将每例医案分别输入5种中文LLM,每种模型生成1条证型输出,共形成2990条证型输出.以Qwen3-Next-80B-A3B-Thinking模型的598条输出为对象,由2名具有中级以上职称的执业中医师独立进行证型幻觉人工标注,分歧由第3名临床工作10年以上且具有副高级职称的执业中医师裁决,形成自动评测方法训练与验证的参考标签.在此基础上,按照文本层相似性、证素结构一致性与多特征融合判定的递进思路,构建并比较3类自动判定方法.方法A基于证型文本语义相似度的句向量模型,方法B基于病位、病性证素加权Jaccard系数的规则阈值法,方法C融合证素匹配得分、证素缺失与冗余数量及多种语义相似度特征的机器学习分类模型.采用5折交叉验证评价各方法相对于人工判定的判别效能,并以优选方法对5种LLM的证型幻觉率进行统一评测.结果 方法A中,text2vec-large-chinese表现相对较优,受试者工作特征曲线下面积(AUROC)、精确率-召回率曲线下面积(PR-AUC)、F1值、灵敏度和特异度分别为0.849、0.884、0.794、0.801和0.691.方法B中,规则证素Jaccard阈值法的上述指标分别为0.848、0.851、0.817、0.845和0.684;LLM证素Jaccard阈值法上述指标分别为0.872、0.906、0.795、0.764和0.780.方法C中,多层感知机(MLP)综合表现较优,上述指标分别为0.933、0.951、0.871、0.857和0.846.在"DeepSeek-R1证素抽取与MLP分类器"统一评测框架下,5种LLM证型幻觉率的探索性估计为56.0%~77.4%.结论 3类自动评测方法中,方法C融合证素差异特征与文本语义特征的MLP模型相对于人工判定的综合判别效能最高,更适用于中医辨证任务中的LLM证型幻觉评测.

Objective To compare the performance of different automatic evaluation methods for detecting pattern hallucinations generated by large language models(LLMs)in traditional Chinese medicine(TCM)syndrome differentiation and to identify a strategy with higher overall discriminative performance against expert manual judg-ment.Methods A standardized TCM syndrome-differentiation dataset containing 598 cases was constructed from case reports published in Chinese core journals indexed by Peking University Core Journals or Chinese Science Citation Database.Each of the 598 cases was submitted to five Chinese LLMs,with each model generating one syndrome-pattern output per case,yielding 2990 outputs in total.The 598 outputs generated by Qwen3-Next-80B-A3B-Thinking were independently annotated for syndrome-pattern hallucinations by two licensed TCM physicians with intermediate or higher professional titles.Disagreements were adjudicated by a third licensed TCM physician with a senior associate professional title and more than 10 years of clinical experience.The resulting consensus annotations served as the reference labels for training and validating the automated evaluation method.Based on these reference labels,three categories of automated evaluation methods were developed and compared following a progressive strategy from text-level semantic similarity,to syndrome-element structural consistency,and finally multi-feature fusion.Method A employed sentence-embedding models based on semantic similarity between pattern texts.Method B adopted a rule-based threshold method using weighted Jaccard coefficients of disease-location and disease-nature syndrome elements.Method C utilized a machine-learning classifier integrating syndrome-element matching scores,missing and redundant syndrome-element counts,and multiple semantic-similarity features.Five-fold cross-validation was used to evaluate the discriminative performance of each method against manual judgment.The optimal method was then applied to uniformly assess the pattern hallucination rates of five LLMs.Results In method A,text2vec-large-chinese showed best overall performance,with an area under the receiver operating characteristic curve(AUROC),area under the precision-recall curve(PR-AUC),F1-score,sensitivity,and specificity of 0.849,0.884,0.794,0.801,and 0.691,respectively.In method B,the corresponding metrics of the rule-based syndrome-element Jaccard threshold method were 0.848,0.851,0.817,0.845,and 0.684,respectively;those of the LLM-based syndrome-element Jaccard method were 0.872,0.906,0.795,0.764,and 0.780,respectively.In method C,the multilayer perceptron(MLP)classifier showed the best overall performance,with AUROC,PR-AUC,F1-score,sensitivity,and specificity of 0.933,0.951,0.871,0.857,and 0.846,respectively.Under the unified evaluation framework combining Deep-Seek-R1 syndrome-element extraction and MLP classifier,the estimated pattern hallucination rates of the five LLMs ranged from 56.0%to 77.4%.Conclusion Among the three automatic evaluation methods,Method C integrating syndrome-element discrepancy features and text semantic features using an MLP classifier showed the highest overall discriminative performance against manual judgment,and is more suitable for evaluating syndrome hallucinations in LLM-based TCM syndrome differentiation tasks.

吴沁蔚;高雨竹;苟兴悦;姚俊宇;周川淦;薛正淳;徐志荣;陈新林;曹东

广州中医药大学医学信息工程学院,广东省广州市番禺区大学城外环东路232号,510006广州中医药大学医学信息工程学院,广东省广州市番禺区大学城外环东路232号,510006广州中医药大学医学信息工程学院,广东省广州市番禺区大学城外环东路232号,510006广州中医药大学医学信息工程学院,广东省广州市番禺区大学城外环东路232号,510006广州中医药大学医学信息工程学院,广东省广州市番禺区大学城外环东路232号,510006广州中医药大学医学信息工程学院,广东省广州市番禺区大学城外环东路232号,510006广州中医药大学医学信息工程学院,广东省广州市番禺区大学城外环东路232号,510006广州中医药大学基础医学院广州中医药大学医学信息工程学院,广东省广州市番禺区大学城外环东路232号,510006

中医辨证大语言模型证素机器学习多层感知机文本相似度Jaccard系数

traditional Chinese medicine syndrome differentiationlarge language modelssyndrome elementsmachine learningmultilayer perceptrontext similarityJaccard coefficient

《中医杂志》 2026 (17)

1845-1852,8

国家重点研发计划(2023YFC3503002)广东省高等教育教学改革项目(2024-556)广州中医药大学中医药大数据研究中心平台项目(A1-2601-25-439-127Z102)广州中医药大学2026年医学信息工程学院"揭榜挂帅"项目(2026-7)

10.13288/j.11-2166/r.2026.17.008

评论