System and method for uncertainty quantification for large language models through confidence measurement in semantic space using semantic density
Патент · WO A1
Полный текст
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' 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 "off-the-shelf" 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.