# System and method for uncertainty quantification for large language models through confidence measurement in semantic space using semantic density

*Источник: Google Patents*
*Дата: 2026-09-03*
*Язык: en*

System and method for uncertainty quantification for large language models through confidence measurement in semantic space using semantic density

A framework for a new uncertainty metric, semantic density (SD), that can quantify the confidence of large language model (LLM) responses in semantic space is described. Semantic density&#39; rebuilds the output probability distribution from a semantic perspective, and extracts an uncertainty indicator analogous to probability density. The proposed semantic density metric has the following advantages: (1) It does not need any further training or fine-tuning of the original LLVL it is an &#34;off-the-shelf&#34; tool that can be directly applied to any pre-trained LLMs without modifying them; (2) it does not pose any restrictions on the problem type; in particular, it works for general free-form generation tasks (3) the returned metric is response-wise, making it possible to evaluate trustworthiness of each response; and (4) it takes the fine-grained semantic differences between resposes into account, which makes uncertainty quantification more precise.

[Оригинал](https://patents.google.com/patent/WO2026182754A1/en)