通过凸包分析实现大语言模型中的不确定性量化
Uncertainty Quantification in Large Language Models Through Convex Hull Analysis
AI总结:
本文提出一种基于凸包分析的几何方法,通过BERT嵌入、PCA降维和DBSCAN聚类量化大语言模型输出不确定性,并发现不确定性受提示复杂度、模型及温度设置影响。
摘要:
不确定性量化方法在大语言模型(LLMs)中变得更加关键,尤其是在需要可靠输出的高风险应用中。然而,传统的不确定性量化方法,如概率模型和集成技术,在应用于LLM生成输出的复杂性和高维特性时面临挑战。本研究提出了一种利用凸包分析进行不确定性量化的新型几何方法。所提出的方法利用响应嵌入的空间特性来衡量模型输出的离散度和变异性。提示被分为三种类型,即“简单”、“中等”和“令人困惑”,以在不同的温度设置下使用不同的LLMs生成多个响应。这些响应通过BERT模型转换为高维嵌入,随后使用主成分分析(PCA)投影到二维空间。利用基于密度的噪声应用空间聚类(DBSCAN)算法对嵌入进行聚类,并为每个选定的簇计算凸包。实验结果表明,LLMs模型的不确定性取决于提示复杂度、模型和温度设置。
英文摘要:
Uncertainty quantification approaches have been more critical in large language models (LLMs), particularly high-risk applications requiring reliable outputs. However, traditional methods for uncertainty quantification, such as probabilistic models and ensemble techniques, face challenges when applied to the complex and high-dimensional nature of LLM-generated outputs. This study proposes a novel geometric approach to uncertainty quantification using convex hull analysis. The proposed method leverages the spatial properties of response embeddings to measure the dispersion and variability of model outputs. The prompts are categorized into three types, i.e., `easy', `moderate', and `confusing', to generate multiple responses using different LLMs at varying temperature settings. The responses are transformed into high-dimensional embeddings via a BERT model and subsequently projected into a two-dimensional space using Principal Component Analysis (PCA). The Density-Based Spatial Clustering of Applications with Noise (DBSCAN) algorithm is utilized to cluster the embeddings and compute the convex hull for each selected cluster. The experimental results indicate that the uncertainty of the model for LLMs depends on the prompt complexity, the model, and the temperature setting.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。