Semantic Density: Uncertainty Quantification for Large Language Models through Confidence Measurement in Semantic Space

With the widespread application of Large Language Models (LLMs) to various domains, concerns regarding the trustworthiness of LLMs in safety-critical scenarios have been raised, due to their unpredictable tendency to hallucinate and generate misinformation. Existing LLMs do not have an inherent functionality to provide the users with an uncertainty/confidence metric for each response it generates, making it difficult to evaluate trustworthiness. Although several studies aim to develop uncertainty quantification methods for LLMs, they have fundamental limitations, such as being restricted to classification tasks, requiring additional training and data, considering only lexical instead of semantic information, and being prompt-wise but not response-wise. A new framework is proposed in this paper to address these issues. Semantic density extracts uncertainty/confidence information for each response from a probability distribution perspective in semantic space. It has no restriction on task types and is "off-the-shelf" for new models and tasks. Experiments on seven state-of-the-art LLMs, including the latest Llama 3 and Mixtral-8x22B models, on four free-form question-answering benchmarks demonstrate the superior performance and robustness of semantic density compared to prior approaches.

Paper

References (50)

Scroll for more · 38 remaining

Similar papers

Peer review

Reviewer koQE5/10 · confidence 4/52024-07-11

Summary

The paper introduces the metric "Semantic Density" to quantify the uncertainty of LLMs by measuring the distance of response embeddings in a semantic space.

Strengths

- **Structure**: The problem is well-motivated and the paper is clearly and coherently written. - **Theory**: The adaptation of kernel density estimation techniques to semantic space for uncertainty quantification in NLG is novel. - **Experiments**: The experiments were performed on multiple datasets and various SOTA LLMs, where Semantic Density shows good empirical performance given the considered correctness metric.

Weaknesses

- **Theory**: Semantic Density is theoretically not well grounded in uncertainty quantification theory, but proposed as an ad-hoc solution for practical application. So, although it seems intriguing to assign an uncertainty score response-wise rather than prompt-wise, uncertainty theory suggests that the (aleatoric semantic) uncertainty has to be quantified prompt-wise, no matter what ends up being sampled as the response [1]. However, since the true uncertainty score for a given prompt is unknown, the performance of an uncertainty measure is usually evaluated by how well the scores align with the correctness of the most-likely response. - **Experiments**: According to the experimental setup in line 897, an answer is considered to be correct if its Rouge-L to any of the reference answers is larger than 0.3 for all datasets. However, since the considered datasets usually result in short responses, a fixed threshold of 0.3 is not sufficient. For instance, in the TriviaQA question *What is the last Grand Slam tennis tournament played in a calendar year?* the reference answer *The US Open* and the sampled response *The Australian Open* achieve a Rouge-L of approximately 0.66. This highlights the fact that considering multiple thresholds is essential to assess the performance of uncertainty metrics. --- [1] L. Aichberger, K. Schweighofer, M. Ielanskyi, and S. Hochreiter. Semantically Diverse Language Generation for Uncertainty Estimation in Language Models. arXiv preprint arXiv:2406.04306, 2024.

Questions

- What do the authors exactly mean by Semantic Density rebuilding the output probability distribution from a semantic perspective? (line 58) - In line 277, the authors write "After investigation, the inherent sequence likelihood returned by the original LLM was badly calibrated in these two cases.". What is meant by badly calibrated sequence likelihoods? Why didn't the authors account for this by recomputing the sequence likelihood? - There exists independent work (Kernel Language Entropy) that is closely related to Semantic Density [2]. The authors should consider discussing this in their paper. - It would be insightful to additionally report the performance of existing uncertainty estimation methods when decreasing the number of reference responses instead of only reporting Semantic Density with different models (section 4.2) - Semantic Density uses diverse beam search to sample responses, requiring hyperparameters such as diversity penalty and number of groups. How have these hyperparameters been chosen? Is the method sensitive to the specific sampling strategy? An ablation study on the performance of Semantic Density compared to existing uncertainty estimation methods would be insightful. - Have the authors considered using sampling strategies other than diverse beam search? For instance, Aichberger et al. (2024) introduced sampling semantically diverse sequences, which could be utilized to sample unique reference responses [1]. --- [2] A. Nikitin, J. Kossen, Y. Gal, and P. Marttinen. Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic Similarities. arXiv preprint arXiv:2405.20003, 2024.

Rating

5

Confidence

4

Soundness

3

Presentation

3

Contribution

2

Limitations

The authors did not address the limitations of their work, only the limitations of existing uncertainty estimation methods.

Authorsrebuttal2024-08-09

Detailed results for Rouge-L threshold of 0.1 and 0.5

Below are the AUROC scores when using a Rouge-L threshold of 0.1 and 0.5 (0.3 has already been shown in the original manuscript): ## Results for Rouge-L threshold of 0.1: ### **CoQA** | Rouge-L >= 0.1 | SD | SE | P(True) | Deg | NL | NE | PE | |----------------|----|----|---------|-----|----|----|----| |Llama-2-13b-hf|0.766|0.623|0.606|0.728|0.702|0.556|0.508| |Llama-2-70b-hf|0.765|0.622|0.610|0.715|0.719|0.572|0.538| |Meta-Llama-3-8B|0.727|0.601|0.617|0.790|0.632|0.566|0.511| |Meta-Llama-3-70B|0.777|0.606|0.669|0.732|0.712|0.542|0.489| |Mistral-7B-v0.1|0.776|0.616|0.667|0.737|0.705|0.553|0.508| |Mixtral-8x7B-v0.1|0.766|0.624|0.623|0.726|0.707|0.555|0.520| |Mixtral-8x22B-v0.1|0.777|0.617|0.646|0.729|0.710|0.560|0.525| ### **TriviaQA** | Rouge-L >= 0.1 | SD | SE | P(True) | Deg | NL | NE | PE | |----------------|----|----|---------|-----|----|----|----| |Llama-2-13b-hf|0.844|0.632|0.583|0.829|0.640|0.505|0.490| |Llama-2-70b-hf|0.824|0.664|0.611|0.798|0.696|0.516|0.472| |Meta-Llama-3-8B|0.862|0.572|0.652|0.793|0.798|0.480|0.425| |Meta-Llama-3-70B|0.825|0.624|0.656|0.762|0.804|0.520|0.491| |Mistral-7B-v0.1|0.855|0.620|0.589|0.822|0.693|0.487|0.476| |Mixtral-8x7B-v0.1|0.830|0.654|0.569|0.789|0.742|0.541|0.511| |Mixtral-8x22B-v0.1|0.818|0.660|0.618|0.758|0.779|0.577|0.535| ### **Sciq** | Rouge-L >= 0.1 | SD | SE | P(True) | Deg | NL | NE | PE | |----------------|----|----|---------|-----|----|----|----| |Llama-2-13b-hf|0.720|0.570|0.520|0.698|0.575|0.458|0.500| |Llama-2-70b-hf|0.716|0.639|0.593|0.704|0.576|0.476|0.507| |Meta-Llama-3-8B|0.755|0.583|0.582|0.716|0.633|0.468|0.526| |Meta-Llama-3-70B|0.743|0.588|0.542|0.692|0.694|0.490|0.495| |Mistral-7B-v0.1|0.761|0.588|0.578|0.729|0.635|0.462|0.468| |Mixtral-8x7B-v0.1|0.751|0.598|0.602|0.707|0.675|0.523|0.566| |Mixtral-8x22B-v0.1|0.756|0.600|0.613|0.712|0.677|0.500|0.525| ### **NQ** | Rouge-L >= 0.1 | SD | SE | P(True) | Deg | NL | NE | PE | |----------------|----|----|---------|-----|----|----|----| |Llama-2-13b-hf|0.697|0.589|0.576|0.704|0.555|0.521|0.503| |Llama-2-70b-hf|0.691|0.553|0.590|0.701|0.555|0.506|0.488| |Meta-Llama-3-8B|0.707|0.536|0.595|0.707|0.553|0.466|0.444| |Meta-Llama-3-70B|0.701|0.573|0.574|0.711|0.556|0.503|0.490| |Mistral-7B-v0.1|0.698|0.574|0.598|0.699|0.558|0.493|0.454| |Mixtral-8x7B-v0.1|0.716|0.576|0.609|0.716|0.588|0.503|0.484| |Mixtral-8x22B-v0.1|0.703|0.579|0.584|0.711|0.575|0.518|0.517| ## Results for Rouge-L threshold of 0.5: ### **CoQA** | Rouge-L >= 0.5 | SD | SE | P(True) | Deg | NL | NE | PE | |----------------|----|----|---------|-----|----|----|----| |Llama-2-13b-hf|0.791|0.598|0.582|0.716|0.701|0.503|0.515| |Llama-2-70b-hf|0.791|0.599|0.559|0.697|0.712|0.506|0.527| |Meta-Llama-3-8B|0.754|0.558|0.575|0.789|0.633|0.500|0.523| |Meta-Llama-3-70B|0.790|0.585|0.669|0.702|0.694|0.470|0.494| |Mistral-7B-v0.1|0.796|0.599|0.645|0.724|0.695|0.495|0.514| |Mixtral-8x7B-v0.1|0.791|0.598|0.568|0.709|0.700|0.503|0.530| |Mixtral-8x22B-v0.1|0.796|0.593|0.586|0.705|0.699|0.505|0.538| ### **TriviaQA** | Rouge-L >= 0.5 | SD | SE | P(True) | Deg | NL | NE | PE | |----------------|----|----|---------|-----|----|----|----| |Llama-2-13b-hf|0.854|0.593|0.588|0.807|0.689|0.479|0.518| |Llama-2-70b-hf|0.839|0.620|0.548|0.773|0.710|0.491|0.519| |Meta-Llama-3-8B|0.869|0.562|0.645|0.794|0.799|0.464|0.428| |Meta-Llama-3-70B|0.832|0.616|0.648|0.761|0.801|0.504|0.489| |Mistral-7B-v0.1|0.873|0.606|0.580|0.827|0.712|0.476|0.472| |Mixtral-8x7B-v0.1|0.855|0.623|0.544|0.788|0.767|0.546|0.549| |Mixtral-8x22B-v0.1|0.838|0.641|0.585|0.755|0.780|0.558|0.569| ### **SciQ** | Rouge-L >= 0.5 | SD | SE | P(True) | Deg | NL | NE | PE | |----------------|----|----|---------|-----|----|----|----| |Llama-2-13b-hf|0.796|0.557|0.550|0.746|0.704|0.418|0.511| |Llama-2-70b-hf|0.779|0.644|0.569|0.712|0.649|0.460|0.548| |Meta-Llama-3-8B|0.809|0.575|0.554|0.732|0.693|0.449|0.613| |Meta-Llama-3-70B|0.800|0.601|0.567|0.716|0.716|0.452|0.454| |Mistral-7B-v0.1|0.790|0.578|0.563|0.735|0.669|0.433|0.443| |Mixtral-8x7B-v0.1|0.798|0.599|0.576|0.721|0.732|0.507|0.618| |Mixtral-8x22B-v0.1|0.798|0.603|0.597|0.717|0.719|0.487|0.584| ### **NQ** | Rouge-L >= 0.5 | SD | SE | P(True) | Deg | NL | NE | PE | |----------------|----|----|---------|-----|----|----|----| |Llama-2-13b-hf|0.723|0.494|0.591|0.706|0.528|0.392|0.496| |Llama-2-70b-hf|0.719|0.487|0.503|0.717|0.534|0.438|0.486| |Meta-Llama-3-8B|0.736|0.487|0.475|0.718|0.589|0.419|0.535| |Meta-Llama-3-70B|0.774|0.545|0.666|0.747|0.641|0.455|0.524| |Mistral-7B-v0.1|0.719|0.518|0.468|0.703|0.583|0.441|0.511| |Mixtral-8x7B-v0.1|0.761|0.526|0.552|0.737|0.611|0.452|0.510| |Mixtral-8x22B-v0.1|0.755|0.526|0.455|0.729|0.607|0.473|0.584|

Authorsrebuttal2024-08-09

Detailed results for Rouge-L threshold of 1.0 and two ablations studies

## Results for Rouge-L threshold of 1.0 ### **CoQA** | Rouge-L = 1.0 | SD | SE | P(True) | Deg | NL | NE | PE | |----------------|----|----|---------|-----|----|----|----| |Llama-2-13b-hf|0.804|0.548|0.513|0.636|0.798|0.429|0.472| |Llama-2-70b-hf|0.807|0.546|0.464|0.615|0.799|0.421|0.461| |Meta-Llama-3-8B|0.767|0.495|0.528|0.730|0.685|0.420|0.515| |Meta-Llama-3-70B|0.801|0.563|0.644|0.617|0.788|0.387|0.467| |Mistral-7B-v0.1|0.815|0.561|0.557|0.651|0.784|0.413|0.460| |Mixtral-8x7B-v0.1|0.811|0.565|0.487|0.635|0.799|0.420|0.471| |Mixtral-8x22B-v0.1|0.809|0.537|0.484|0.612|0.786|0.419|0.471| ### **TriviaQA** | Rouge-L = 1.0 | SD | SE | P(True) | Deg | NL | NE | PE | |----------------|----|----|---------|-----|----|----|----| |Llama-2-13b-hf|0.893|0.546|0.551|0.756|0.914|0.465|0.509| |Llama-2-70b-hf|0.895|0.559|0.560|0.708|0.903|0.466|0.490| |Meta-Llama-3-8B|0.855|0.507|0.608|0.714|0.838|0.413|0.417| |Meta-Llama-3-70B|0.843|0.540|0.602|0.679|0.828|0.425|0.446| |Mistral-7B-v0.1|0.868|0.559|0.542|0.753|0.772|0.447|0.446| |Mixtral-8x7B-v0.1|0.867|0.568|0.495|0.709|0.844|0.487|0.502| |Mixtral-8x22B-v0.1|0.865|0.571|0.533|0.674|0.860|0.496|0.547| ### **SciQ** | Rouge-L = 1.0 | SD | SE | P(True) | Deg | NL | NE | PE | |----------------|----|----|---------|-----|----|----|----| |Llama-2-13b-hf|0.890|0.574|0.490|0.788|0.880|0.407|0.503| |Llama-2-70b-hf|0.888|0.676|0.577|0.732|0.861|0.453|0.526| |Meta-Llama-3-8B|0.881|0.602|0.544|0.734|0.881|0.464|0.652| |Meta-Llama-3-70B|0.876|0.645|0.556|0.716|0.883|0.456|0.450| |Mistral-7B-v0.1|0.861|0.574|0.556|0.737|0.806|0.412|0.397| |Mixtral-8x7B-v0.1|0.856|0.608|0.553|0.721|0.851|0.493|0.604| |Mixtral-8x22B-v0.1|0.857|0.620|0.587|0.708|0.863|0.490|0.592| ### **NQ** | Rouge-L = 1.0 | SD | SE | P(True) | Deg | NL | NE | PE | |----------------|----|----|---------|-----|----|----|----| |Llama-2-13b-hf|0.845|0.487|0.662|0.760|0.734|0.349|0.500| |Llama-2-70b-hf|0.853|0.494|0.469|0.776|0.721|0.418|0.480| |Meta-Llama-3-8B|0.813|0.429|0.418|0.703|0.819|0.409|0.595| |Meta-Llama-3-70B|0.883|0.569|0.738|0.791|0.838|0.467|0.523| |Mistral-7B-v0.1|0.815|0.502|0.392|0.732|0.737|0.427|0.530| |Mixtral-8x7B-v0.1|0.847|0.535|0.531|0.769|0.730|0.473|0.547| |Mixtral-8x22B-v0.1|0.859|0.526|0.391|0.772|0.773|0.504|0.655| ## Ablation study where the number of reference responses changes for Semantic Entropy ### **CoQA** | sample number | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | |---------------|---|---|---|---|---|---|---|---|---|----| |Llama-2-13b-hf|0.600|0.605|0.616|0.626|0.630|0.635|0.633|0.633|0.636|0.633| |Llama-2-70b-hf|0.605|0.624|0.625|0.629|0.628|0.625|0.623|0.622|0.623|0.621| |Meta-Llama-3-8B|0.571|0.579|0.585|0.598|0.601|0.600|0.606|0.609|0.608|0.599| |Meta-Llama-3-70B|0.604|0.597|0.599|0.604|0.607|0.608|0.609|0.609|0.608|0.608| |Mistral-7B-v0.1|0.572|0.596|0.612|0.617|0.624|0.626|0.626|0.628|0.630|0.627| |Mixtral-8x7B-v0.1|0.594|0.609|0.619|0.621|0.620|0.625|0.625|0.624|0.625|0.626| |Mixtral-8x22B-v0.1|0.591|0.603|0.614|0.617|0.616|0.615|0.614|0.614|0.614|0.614| ### **TriviaQA** | sample number | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | |---------------|---|---|---|---|---|---|---|---|---|----| |Llama-2-13b-hf|0.542|0.649|0.672|0.679|0.679|0.676|0.675|0.673|0.673|0.672| |Llama-2-70b-hf|0.645|0.670|0.691|0.686|0.685|0.683|0.676|0.677|0.675|0.677| |Meta-Llama-3-8B|0.656|0.674|0.685|0.685|0.682|0.680|0.674|0.669|0.665|0.662| |Meta-Llama-3-70B|0.585|0.615|0.645|0.653|0.663|0.666|0.667|0.666|0.666|0.663| |Mistral-7B-v0.1|0.674|0.694|0.703|0.707|0.704|0.703|0.699|0.693|0.692|0.690| |Mixtral-8x7B-v0.1|0.600|0.644|0.678|0.682|0.685|0.687|0.687|0.688|0.687|0.685| |Mixtral-8x22B-v0.1|0.615|0.655|0.677|0.688|0.692|0.693|0.692|0.691|0.688|0.686| ## Ablation study where the diversity penalty (dp) of diverse beam search changes for semantic density (using Mistral-7B) | AUROC | dp=0.2 | dp=0.5 | dp=1.0 | |----------|--------|--------|--------| | CoQA | 0.784 | 0.785 | 0.788 | | TriviaQA | 0.861 | 0.863 | 0.866 | | SciQ | 0.765 | 0.766 | 0.771 | | NQ | 0.678 | 0.678 | 0.680 |

Authorsrebuttal2024-08-14

Message to Reviewer koQE

Since we won't be able to post any replies after the discussion period (ending soon), please let us know if you have any further questions. Thank you!

Reviewer koQE2024-08-14

Thank you for providing the detailed results. As a side note, these 20 tables could have been effectively summarized in a line plot (x-axis: correctness threshold, y-axis: AUROC). Overall, I have decided to increase my score to 5.

Authorsrebuttal2024-08-14

Response to Reviewer koQE

Many thanks for your reply. We will include the line plot as you suggested in the revision.

Reviewer koQE2024-08-14

Final remarks

I want to emphasize once more that, while the method empirically performs very well, it lacks a solid theoretical foundation within the context of current uncertainty quantification. The prevailing theory suggests that uncertainty quantification should focus on evaluating the predictive distribution (over classes, semantic clusters, etc.), irrespective of the sampled output. To draw a parallel with the typical classification setting, one also doesn't assign different uncertainty estimates to different classes sampled from the predictive distribution – to evaluate the performance of an uncertainty estimate, one uses the argmax to determine wether the model "knows" the correct class (i.e. should be certain) or "doesn't know" the correct class (i.e. should be uncertain). This principle can be similarly applied to uncertainty estimates in NLG. It should be carefully elaborated on in the updated version of the paper.

Authorsrebuttal2024-08-14

Response to Reviewer koQE

Thanks for your final remarks. We will make sure to discuss and clarify this point in a careful way in the revised version, based on our insightful discussions. Thank you again for your time and effort!

Reviewer kNB45/10 · confidence 4/52024-07-13

Summary

The paper proposes a novel framework for quantifying uncertainty in LLM's responses. The authors introduce the concept of "semantic density" (SD), which measures uncertainty from a probability distribution perspective in semantic space, applicable to any pre-trained LLM without additional training. Experiments on various state-of-the-art LLMs and benchmarks demonstrate that SD outperforms existing methods in accuracy and robustness. The paper presentation is overall easy to read.

Strengths

1. The paper introduces a novel method, semantic density, that quantifies uncertainty in LLM responses using semantic information. 2. The proposed framework is clear and detailed, including its theoretical foundations and implementation details. 3. The proposed method is off-the-shelf and can be applied to other scenarios.

Weaknesses

1. The comparison with existing methods, although extensive, may not cover all possible alternatives. There are recent or lesser-known methods that also warrant consideration. 2. While the method shows promise for free-form question-answering tasks, its applicability and performance in other types of tasks (e.g., summarization, translation) are not explored, which limits the generalizability of the findings.

Questions

1. The literature review is not comprehensive, there are lots of related works [1, 2, 3] not mentioned or adopted in the experiment. 2. The AUROC is not enough the show the strength of the proposed model. It would be more beneficial to show Area under precision-recall curve for the misclassification detection task as well. 3. The prompt construction can have more details. In Sec. 3.2, it's worth denoting the final prompt structure, since the in-context learning examples and prompt structures can make the final result different. 4. The dataset are mostly QA tasks, it seems the model can also handle other NLG tasks. Can you elaborate more on this? [1] Ling, Chen, et al., "Uncertainty Quantification for In-Context Learning of Large Language Models." (NAACL 2024) [2] Fadeeva, Ekaterina, et al. "LM-polygraph: Uncertainty estimation for language models." (EMNLP 2023) [3] Duan, Jinhao, Hao Cheng, Shiqi Wang, Chenan Wang, Alex Zavalny, Renjing Xu, Bhavya Kailkhura, and Kaidi Xu. "Shifting attention to relevance: Towards the uncertainty estimation of large language models." ACL (2024).

Rating

5

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

N/A

Authorsrebuttal2024-08-13

Message to Reviewer kNB4

Since we will not be able to post any further responses after the discussion deadline tomorrow, please feel free to let us know if you have any feedback about our rebuttal, including those newly added experiments as suggested by you. Thank you for your attention!

Reviewer mViE6/10 · confidence 3/52024-07-14

Summary

This paper addresses the problem of LLM’s lack of uncertainty metric for the response it generates. The authors propose to use semantic density to quantify such uncertainty, as it is not restricted to any specific downstream task. In particular, the approach samples reference responses, analyzes semantic relationships, and then calculates the semantic density. Experiments on four QA benchmarks of several Llama and Mistral models are conducted, including the latest Llama 3 13B and Mistral-8x22B, to demonstrate the effectiveness and the robustness of semantic density compared to prior metrics.

Strengths

* The proposed metric is not restricted to any specific task but measuring the general LLM ability * The experiments show the effectiveness of the proposed approach, outperforming the other previous metrics

Weaknesses

* Only some of the llama and mistral models are tested * The results shown in Table 1 seem to be quite close for all the models (on each task), which are not so indicative for system comparison * No further analysis/discussions on different model sizes (7B vs. 70B), nor different architecture (MoE vs. Non-MoE)

Questions

In Figure 1, different models have inconsistent performance across different tasks. Do you have any explanations?

Rating

6

Confidence

3

Soundness

3

Presentation

3

Contribution

2

Limitations

Yes

Reviewer rbw27/10 · confidence 3/52024-07-18

Summary

The paper proposes an approach for estimating uncertainty of LLM outputs. The proposed approach begins by sampling a diverse set of responses, analyses their equivalence using a NLI classification model, and then computes the semantic density using a kernel density estimate.

Strengths

- The proposed approach seems sufficiently different from prior work and combines existing ideas meaningfully. The approach is convincingly validated in experiments. - The paper is clear for the most part. - The problem of uncertainty estimation for generation tasks is meaningful.

Weaknesses

- The paper is somewhat vague in distinguishing itself from the closest prior work on Semantic Entropy - this makes its specific contribution unclear. - Some details of the implementation of semantic density are unclear.

Questions

- Sec 3.5: Please describe how the NLI model is used for computing p_c, p_n and p_e. NLI models typically accept pairs of texts, but these probabilities seem to contain three: y_*, y_i and x. - Do I understand correctly that embedding models (discussed in Sec 3.2) are never explicitly used in Semantic Density? Instead the NLI model is relied upon for establishing equivalence between texts and for the kernel function? If yes, the current presentation comes across as a bit confusing - please consider rewriting parts of the paper to make this more explicit. - As I understand, the proposed approach only estimates uncertainty rather than explicitly calibrating the underlying model - and yet the proposed uncertainty estimation method helps improve predictive performance in Table 1. Am I understanding correctly that the underlying models are somewhat well calibrated to begin with? To put it another way, are there generation tasks where one might expect SD to not be as reliable? For example, a summarization task. If this is a reasonable understanding, please consider discussing where SD is unlikely to work well. - The differences highlighted against Semantic Entropy in Lines 105-107 are vague or inaccurate - SE considers responses in computing the SE(x) value so it is unclear how it is "prompt-wise", that being said, what are the advantages of obtaining uncertainty for a specific output and prompt pair? What does a "one-cut equivalence relationship" mean? Please consider highlighting differences more clearly and discussing the specific advantages/disadvantages that the differences result in.

Rating

7

Confidence

3

Soundness

3

Presentation

3

Contribution

3

Limitations

NA

Reviewer koQE2024-08-08

Thank you for the rebuttal. However, I cannot locate any of the additional results you claim to have conducted for the rebuttal: > As suggested, we have added experimental results using Rouge-L with different thresholds ranging from 0.1 to 1.0. > We have added an experiment that investigates the performance change of semantic entropy when decreasing the number of reference responses. > As suggested, we have added an ablation study following the setup in reference [1], which tests different choices of diversity penalty. Could you please provide these results for further review?

Authorsrebuttal2024-08-09

Follow-up response to Reviewer koQE:

Thanks for spending time reading our rebuttals and providing further comments! We did not include the detailed results in the initial rebuttal because this year Neurips only allows 6,000 characters in the initial rebuttal to each reviewer, urging the authors to be more concise. Moreover, only one page of PDF can be attached in the general rebuttal to include necessary tables/figures, and no external URL is allowed. Given this restriction, we have to conclude the additional experimental results with a very brief text summary in the initial rebuttal. However, we understand that providing the detailed results would be more informative to you, so we will attach all the detailed results in follow-up comments per your request. Due to the format limitation, we will use markdown tables to display all the results. Please check them in the comments following this one. We also provide some further discussions below: The most interesting results are indeed the Rouge-L threshold study that you suggested as one of your main comments. In additional to the observation that the proposed semantic density still provides overall best performance across all the tested Rouge-L thresholds, we also noticed that the absolute AUROC scores show an increasing trend for semantic density when the Rouge-L threshold is increased. This indicates that the strictness of correctness check is indeed affecting the absolute performance of the evaluated methods. The initial Rouge-L threshold of 0.3 used in the experiments was following the same setup in the original semantic entropy paper [3], aiming to make the comparisons fair. However, we agree that it is indeed more informative to include results that are under different Rouge-L thresholds. We will include all the results in the revision, and add a discussion regarding this aspect. Thanks for this constructive comment! [3] Lorenz Kuhn and Yarin Gal and Sebastian Farquhar, “Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generation”, The Eleventh International Conference on Learning Representations (ICLR), 2023

Reviewer koQE2024-08-08

Thank you for providing the additional results on the summarization dataset. This leads me to the following question: Your method employs an NLI model (i.e. Deberta-large-mnli) to compute the expectation of $|| v_* - v_i ||$ (Eq. 9). Given that this NLI model is trained on single-sentence pairs from the Multi-Genre Natural Language Inference corpus, how do you apply this model to multiple-sentence generations $v$?

Authorsrebuttal2024-08-09

Response to Reviewer koQE

Thanks for your comment. The motivation of most summarization benchmarks are to evaluate a model’s ability in compressing the information, so the DUC summarization task used here requires the language models to summarize a paragraph within a predefined length limit, usually no more than a single long sentence. The current NLI model we used (Deberta-large-mnli) still works reasonably in such tasks. However, we think you did bring up a good point for future work in this research direction, i.e., how should we quantify the uncertainty of a long paragraph? Recent solutions to this scenario focuses on decomposing the long paragraph into pieces of “claims” [1] or “factoid” [2], each one being at sentence level, then we can apply existing uncertainty quantification methods to each of them. This strategy makes sense since it is indeed more informative if we could quantify the uncertainty for each part when the response is a long paragraph containing multiple claims. However, it would also be interesting if we can further develop a NLI model or embedding model that can properly measure the overall semantic similarity between two long paragraphs, or we can directly ask another LLM to make this overall similarity evaluation quantitatively. This discussion may be a little out-of-scope, but we will add this discussion in the future work section. Thanks again for your inspiring comment. [1] Xin Liu, Muhammad Khalifa, and Lu Wang. “LitCab: Lightweight Language Model Calibration over Short- and Long-form Responses”. In The Twelfth International Conference on Learning Representations (ICLR), 2024 [2] Farquhar, Sebastian and Kossen, Jannik and Kuhn, Lorenz and Gal, Yarin, “Detecting hallucinations in large language models using semantic entropy”, Nature 630, 625–630, 2024

Authorsrebuttal2024-08-09

Follow-up response to the general rebuttal

Due to the space limitation of initial rebuttal, we did not include all the detailed results for the newly added experiments. As per the request by Reviewer koQE, we have now added the detailed results for all the newly added experiments. The detailed results for experiment 3, 4 and 5 are added in the comments replying to Reviewer koQE. The detailed results for experiment 6 are directly included below: ## Results for the modified version of semantic entropy [1]: | AUROC | CoQA | TriviaQA | SciQ | NQ | |---------------|-------|----------|-------|-------| | Llama-2-13B | 0.587 | 0.726 | 0.576 | 0.576 | | Llama-2-70B | 0.570 | 0.696 | 0.596 | 0.555 | | Llama-3-8B | 0.606 | 0.736 | 0.587 | 0.582 | | Llama-3-70B | 0.571 | 0.694 | 0.582 | 0.563 | | Mistral-7B | 0.572 | 0.734 | 0.613 | 0.568 | | Mixtral-8x7B | 0.567 | 0.699 | 0.576 | 0.612 | | Mixtral-8x22B | 0.562 | 0.690 | 0.592 | 0.565 | Its performance is comparative to the original semantic entropy [2], and the proposed semantic density still outperforms it consistently across all the base LLMs and tasks. [1] Farquhar, Sebastian and Kossen, Jannik and Kuhn, Lorenz and Gal, Yarin, “Detecting hallucinations in large language models using semantic entropy”, Nature 630, 625–630, 2024 [2] Lorenz Kuhn and Yarin Gal and Sebastian Farquhar, “Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generation”, The Eleventh International Conference on Learning Representations (ICLR), 2023

Authorsrebuttal2024-08-09

Follow-up comment to Reviewer kNB4

As per the request by Reviewer koQE, we have now added the detailed results for all the newly added experiments, including the one suggested by your that adds a new variant of semantic entropy. Please see our follow-up comment in the general rebuttal above for detailed results. Thank you.

Reviewer rbw22024-08-11

Thank you

Thank you for the additional results and the responses.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC