mlsanityData to 7 Oct 2026

CSS: Contrastive Semantic Similarity for Uncertainty Quantification of LLMs

arXiv 2406.03158 ↗First posted 5 Jun 2024cs.CL cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

Despite the impressive capability of large language models (LLMs), knowing when to trust their generations remains an open challenge. The recent literature on uncertainty quantification of natural language generation (NLG) utilises a conventional natural language inference (NLI) classifier to measure the semantic dispersion of LLMs responses. These studies employ logits of NLI classifier for semantic clustering to estimate uncertainty. However, logits represent the probability of the predicted class and barely contain feature information for potential clustering. Alternatively, CLIP (Contrastive Language-Image Pre-training) performs impressively in extracting image-text pair features and measuring their similarity. To extend its usability, we propose Contrastive Semantic Similarity, the CLIP-based feature extraction module to obtain similarity features for measuring uncertainty for text pairs. We apply this method to selective NLG, which detects and rejects unreliable generations for better trustworthiness of LLMs. We conduct extensive experiments with three LLMs on several benchmark question-answering datasets with comprehensive evaluation metrics. Results show that our proposed method performs better in estimating reliable responses of LLMs than comparable baselines. Results show that our proposed method performs better in estimating reliable responses of LLMs than comparable baselines. The code are available at urlhttps://github.com/AoShuang92/cssuqllms.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 34 of its 49 references that are in the map. First posted on arXiv 5 Jun 2024.

Builds on

34 of 49 references.

References · 34

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  5. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
  6. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  7. 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,888
  8. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  9. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  10. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  11. 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,841
  12. 2017What Uncertainties Do We Need in Bayesian Deep Learning for Computer Vision?cited by 2,335
22 more
  1. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
  2. 2022Language Models (Mostly) Know What They Knowcited by 1,783
  3. 2020A Review of Uncertainty Quantification in Deep Learning: Techniques, Applications and Challengescited by 813
  4. 2017Selective Classification for Deep Neural Networkscited by 799
  5. 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 795
  6. 2018CoQA: A Conversational Question Answering Challengecited by 674
  7. 2023Towards Expert-Level Medical Question Answering with Large Language Modelscited by 382
  8. 2021Unsolved Problems in ML Safetycited by 291
  9. 2023Generating with Confidence: Uncertainty Quantification for Black-box Large Language Modelscited by 286
  10. 2020Unsupervised Quality Estimation for Neural Machine Translationcited by 210
  11. 2022Out-of-Distribution Detection and Selective Generation for Conditional Language Modelscited by 193
  12. 2018Correcting Length Bias in Neural Machine Translationcited by 119
  13. 2023ChatCAD: Interactive Computer-Aided Diagnosis on Medical Image using Large Language Modelscited by 116
  14. 2023Selectively Answering Ambiguous Questionscited by 63
  15. 2022Benchmarking Bayesian Deep Learning on Diabetic Retinopathy Detection Taskscited by 49
  16. 2023TF-CLIP: Learning Text-free CLIP for Video-based Person Re-Identificationcited by 40
  17. 2023Interpretable Long-Form Legal Question Answering with Retrieval-Augmented Large Language Modelscited by 35
  18. 2023CLIP-S4: Language-Guided Self-Supervised Semantic Segmentationcited by 34
  19. 2022FEAT: Face Editing with Attentioncited by 16
  20. 2023Two Sides of Miscalibration: Identifying Over and Under-Confidence Prediction for Network Calibrationcited by 14
  21. 2021SCRIB: Set-classifier with Class-specific Risk Bounds for Blackbox Modelscited by 9
  22. 2023Empirical Optimal Risk to Quantify Model Trustworthiness for Failure Detectioncited by 4

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 2.

3 papers.