mlsanityData to 7 Oct 2026

Semantic Consistency for Assuring Reliability of Large Language Models

arXiv 2308.09138 ↗First posted 17 Aug 2023cs.CL cs.AI cs.CYcited by 15

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 29 of its 36 references that are in the map. First posted on arXiv 17 Aug 2023.

Builds on

29 of 36 references.

References · 29

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  5. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  6. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  7. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
  8. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  9. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
  10. 2019Language Models as Knowledge Bases?cited by 1,922
  11. 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,219
  12. 2020BLEURT: Learning Robust Metrics for Text Generationcited by 1,196
17 more
  1. 2019How Can We Know What Language Models Know?cited by 953
  2. 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 795
  3. 2019PAWS: Paraphrase Adversaries from Word Scramblingcited by 395
  4. 2021Measuring and Improving Consistency in Pretrained Language Modelscited by 361
  5. 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 324
  6. 2022Prompting GPT-3 To Be Reliablecited by 258
  7. 2023Let's Sample Step by Step: Adaptive-Consistency for Efficient Reasoning and Coding with LLMscited by 111
  8. 2022Evaluating the Factual Consistency of Large Language Models Through News Summarizationcited by 90
  9. 2022Prompt Consistency for Zero-Shot Task Generalizationcited by 66
  10. 2021BeliefBank: Adding Memory to a Pre-Trained Language Model for a Systematic Notion of Beliefcited by 56
  11. 2022Enhancing Self-Consistency and Performance of Pre-Trained Language Models through Natural Language Inferencecited by 40
  12. 2022Measuring Reliability of Large Language Models through Semantic Consistencycited by 38
  13. 2023Sociodemographic Bias in Language Models: A Survey and Forward Pathcited by 27
  14. 2021P-Adapters: Robustly Extracting Factual Information from Language Models with Diverse Promptscited by 22
  15. 2023DLAMA: A Framework for Curating Culturally Diverse Facts for Probing the Knowledge of Pretrained Language Modelscited by 17
  16. 2022Factual Consistency of Multilingual Pretrained Language Modelscited by 15
  17. 2021Accurate, yet inconsistent? Consistency Analysis on Language Understanding Modelscited by 13

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 7; 2025: 5; 2026: 2.

15 papers.

Sort:

By area: