Large Language Models (LLMs) exhibit remarkable fluency and competence across various natural language tasks. However, recent research has highlighted their sensitivity to variations in input prompts. To deploy LLMs in a safe and reliable manner, it is crucial for their outputs to be consistent when prompted with expressions that carry the same meaning or intent. While some existing work has explored how state-of-the-art LLMs address this issue, their evaluations have been confined to assessing lexical equality of single- or multi-word answers, overlooking the consistency of generative text sequences. For a more comprehensive understanding of the consistency of LLMs in open-ended text generation scenarios, we introduce a general measure of semantic consistency, and formulate multiple versions of this metric to evaluate the performance of various LLMs. Our proposal demonstrates significantly higher consistency and stronger correlation with human evaluations of output consistency than traditional metrics based on lexical consistency. Finally, we propose a novel prompting strategy, called Ask-to-Choose (A2C), to enhance semantic consistency. When evaluated for closed-book question answering based on answer variations from the TruthfulQA benchmark, A2C increases accuracy metrics for pretrained and finetuned LLMs by up to 47%, and semantic consistency metrics for instruction-tuned models by up to 7-fold.
AlignCheck: a Semantic Open-Domain Metric for Factual Consistency Assessment
Institute of Computational Life Sciences, Department of Life Sciences and Facility Management, Zurich University of Applied Sciences(计算生命科学研究所,生命科学与设施管理系,苏黎世应用科学大学);Swiss Institute of Bioinformatics(瑞士生物信息学研究所)
SC-Taxo: Hierarchical Taxonomy Generation under Semantic Consistency Constraints using Large Language Models
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);University of Science and Technology Beijing(北京科技大学);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)
LF-Steering: Latent Feature Activation Steering for Enhancing Semantic Consistency in Large Language Models
College of Intelligence and Computing, Tianjin University(天津大学智能与计算学部);IT Innovation and Research Center, Huawei Technologies(华为技术有限公司 IT 创新研究中心);Informatics, University of Edinburgh(爱丁堡大学信息学院)
Autoformalize Mathematical Statements by Symbolic Equivalence and Semantic Consistency
State Key Lab of Novel Software Technology, Nanjing University(南京大学现代软件技术国家重点实验室);Peking University(北京大学);University of Toronto(多伦多大学);Microsoft Research Asia(微软亚洲研究院)
针对 LLM 数学命题自动形式化中 pass@1 与 pass@k 的差距,提出结合符号等价性和语义一致性从 k 个候选中选择最佳结果的框架,在 MATH 与 miniF2F 上显著提升准确率。
BioD2C: A Dual-level Semantic Consistency Constraint Framework for Biomedical VQA
Shandong University(山东大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Institute of Deep Perception Technology, JITRI(JITRI深度感知技术研究院)
ViewCo: Discovering Text-Supervised Segmentation Masks via Multi-View Semantic Consistency
Sun Yat-sen University(中山大学);University of Technology Sydney(悉尼科技大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室);University of Oxford(牛津大学);MBZUAI(穆罕默德·本·扎耶德人工智能大学)
Logic-Consistency Text Generation from Semantic Parses
Beihang University(北京航空航天大学);University of Waterloo(滑铁卢大学);The University of Hong Kong(香港大学);Penn State University(宾夕法尼亚州立大学);University of Edinburgh(爱丁堡大学)
Monitoring Term Drift Based on Semantic Consistency in an Evolving Vector Field
ICFO-The Institute of Photonic Sciences(光子科学研究所);University of Borås(布罗斯大学);Information Technologies Institute, Centre for Research & Technology - Hellas(信息技术研究所,希腊研究与科技中心);Institute of Applied Biosciences, Centre for Research & Technology - Hellas(应用生物科学研究所,希腊研究与科技中心)