Ir directamente a la navegación principal Ir directamente a la búsqueda Ir directamente al contenido principal

Uncertainty Quantification in Large Language Models Using Feature Space Density and Clustering

  • Costa Rica Institute of Technology

Producción científica: Capítulo del libro/informe/acta de congresoContribución a la conferenciarevisión exhaustiva

Resumen

Uncertainty Quantification (UQ) in Large Language Models (LLMs) is essential for reliability in high-impact domains. Traditional methods, such as Monte Carlo Dropout (MCD) and Temperature Scaling (TS), although widely adopted, often fall short in effectively capturing uncertainty in generative LLMs, and MCD can be computationally expensive. This study introduces a novel UQ approach using feature density estimation (Kernel Density Estimation, KDE) and clustering methods (Kmeans and Hierarchical Density-Based Spatial Clustering of Applications with Noise, HDBSCAN) to detect low-density regions in the hidden state space, which correlate with higher uncertainty. We evaluated the method on the MedQuAD dataset by extracting hidden states from multiple layers of LLaMA 3.1 8B and DeepSeek 7B, followed by dimensionality reduction with Principal Component Analysis (PCA) and Tucker decomposition. Effectiveness was measured through correlations with text quality metrics (BERTScore and METEOR) and validated via Wilcoxon Signed-Rank and Paired T-Tests. The best performance was achieved with HDBSCAN-KNN at 128 dimensions using PCA on outer layers, showing stronger negative Pearson correlations with BERTScore than MCD, with improvements of 0.19 for LLaMA 3.18 B and 0.24 for DeepSeek 7B. All differences were statistically significant, confirming that feature space-based methods quantify uncertainty more effectively than MCD.

Idioma originalInglés
Título de la publicación alojada2025 IEEE 7th International Conference on BioInspired Processing, BIP 2025
EditorialInstitute of Electrical and Electronics Engineers Inc.
ISBN (versión digital)9798331570149
DOI
EstadoPublicada - 2025
Evento7th IEEE International Conference on BioInspired Processing, BIP 2025 - Perez Zeledon, Costa Rica
Duración: 3 dic 20255 dic 2025

Serie de la publicación

Nombre2025 IEEE 7th International Conference on BioInspired Processing, BIP 2025

Conferencia

Conferencia7th IEEE International Conference on BioInspired Processing, BIP 2025
País/TerritorioCosta Rica
CiudadPerez Zeledon
Período3/12/255/12/25

Huella

Profundice en los temas de investigación de 'Uncertainty Quantification in Large Language Models Using Feature Space Density and Clustering'. En conjunto forman una huella única.

Citar esto