ALIEN: Aligned Entropy Head for Improving Uncertainty Estimation of LLMs

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zabolotnyi, Artem, Makarov, Roman, Mitrovic, Mile, Proskura, Polina, Travkin, Oleg, Alferov, Roman, Zaytsev, Alexey
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915916838600704
author Zabolotnyi, Artem
Makarov, Roman
Mitrovic, Mile
Proskura, Polina
Travkin, Oleg
Alferov, Roman
Zaytsev, Alexey
author_facet Zabolotnyi, Artem
Makarov, Roman
Mitrovic, Mile
Proskura, Polina
Travkin, Oleg
Alferov, Roman
Zaytsev, Alexey
contents Uncertainty estimation remains a key challenge when adapting pre-trained language models to downstream classification tasks, with overconfidence often observed for difficult inputs. While predictive entropy provides a strong baseline for uncertainty estimation, it considers mainly aleatoric uncertainty and has limited capacity to capture effects, such as class overlap or ambiguous linguistic cues. We introduce Aligned Entropy - ALIEN, a lightweight method that refines entropy-based uncertainty by aligning it with prediction reliability. ALIEN trains a small uncertainty head initialized to produce the model's original entropy and subsequently fine-tuned with two regularization mechanisms. Experiments across seven classification datasets and two NER benchmarks, evaluated on five language models (RoBERTa, ELECTRA, LLaMA-2, Qwen2.5, and Qwen3), show that ALIEN consistently outperforms strong baselines across all considered scenarios in detecting incorrect predictions, while achieving the lowest calibration error. The proposed method introduces only a small inference overhead (in the order of milliseconds per batch on CPU) and increases the model's parameter count by just 0.002% for decoder models and 0.5% for encoder models, without requiring storage of intermediate states. It improves uncertainty estimation while preserving the original model architecture, making the approach practical for large-scale deployment with modern language models. Our results demonstrate that entropy can be effectively refined through lightweight supervised alignment, producing more reliable uncertainty estimates without modifying the backbone model. The code is available at 4.
format Preprint
id arxiv_https___arxiv_org_abs_2505_15443
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle ALIEN: Aligned Entropy Head for Improving Uncertainty Estimation of LLMs
Zabolotnyi, Artem
Makarov, Roman
Mitrovic, Mile
Proskura, Polina
Travkin, Oleg
Alferov, Roman
Zaytsev, Alexey
Computation and Language
Machine Learning
Uncertainty estimation remains a key challenge when adapting pre-trained language models to downstream classification tasks, with overconfidence often observed for difficult inputs. While predictive entropy provides a strong baseline for uncertainty estimation, it considers mainly aleatoric uncertainty and has limited capacity to capture effects, such as class overlap or ambiguous linguistic cues. We introduce Aligned Entropy - ALIEN, a lightweight method that refines entropy-based uncertainty by aligning it with prediction reliability. ALIEN trains a small uncertainty head initialized to produce the model's original entropy and subsequently fine-tuned with two regularization mechanisms. Experiments across seven classification datasets and two NER benchmarks, evaluated on five language models (RoBERTa, ELECTRA, LLaMA-2, Qwen2.5, and Qwen3), show that ALIEN consistently outperforms strong baselines across all considered scenarios in detecting incorrect predictions, while achieving the lowest calibration error. The proposed method introduces only a small inference overhead (in the order of milliseconds per batch on CPU) and increases the model's parameter count by just 0.002% for decoder models and 0.5% for encoder models, without requiring storage of intermediate states. It improves uncertainty estimation while preserving the original model architecture, making the approach practical for large-scale deployment with modern language models. Our results demonstrate that entropy can be effectively refined through lightweight supervised alignment, producing more reliable uncertainty estimates without modifying the backbone model. The code is available at 4.
title ALIEN: Aligned Entropy Head for Improving Uncertainty Estimation of LLMs
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2505.15443