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