Towards Realistic Evaluation of Uncertainty Quantification for LLM-Based Recommender Systems
Authors: Hao Wu, Sipeng Chen, Weikai Li, Tianyi Chen, Qiancheng Yang, Hang Zhou, Yizhou Sun, Wei Wang, Xiao Luo
Organizations: University of Wisconsin–Madison · Northwestern University · University of California, Los Angeles · Department of Statistics and Operations Research & School of Data and Information Sciences, The University of North Carolina at Chapel Hill
Large language models (LLMs) provide a flexible interface for recommendation systems. However, their issued rankings require reliable instance-level uncertainty monitoring. In this scenario, comparing uncertainty quantification (UQ) methods becomes challenging because LLM rankers lack a standard item-classification head. Their scores may depend on option labels, prompts, generation procedures, and the available user and item evidence. Existing methods derive uncertainty from different sources and apply it at different stages of the recommendation process. Some methods evaluate an issued ranking, whereas others use uncertainty to change the ranking itself, making direct comparison difficult. Here we introduce a fixed-ranking benchmark which evaluates eight heterogeneous UQ signals as record-level monitors under a shared output contract. We evaluate these signals across four recommendation datasets and two LLM backbones under a shared fixed-ranking protocol. From the results, we draw three main observations. First, UQ method ordering changes across backbones even on the same reference instances. Second, ranking-aligned Top10Mass provides the strongest scalar Error@10 detection in several evaluation conditions, reflecting effective cutoff-aligned monitoring, while its advantage narrows for popularity-tail targets. Third, scalar UQ signals are weak at identifying which control has the larger clipped NDCG@10 difference, whereas source-specific signals, including Perturbation Rank Instability and simple listwise distances, provide stronger paired-control agreement, reflecting their sensitivity to the two controlled evidence sources. These findings motivate us to evaluate ranking-failure detection, robustness across recommendation conditions, and responses to controlled evidence changes as distinct properties of UQ.
Figures & tables
Figure 1: Benchmark pipeline. Fixed ranking records are scored by UQ monitors without reranking and evaluated for Error@10 detection and scoped paired-control response agreement.
Dataset
Domain
Base Record Form
Base
Records
MIND-20
News
Clicked-news history + 20 news candidates
1,000
11,000
Amazon Books
Books
User history + 20 book candidates
1,000
12,000
Amazon Movies
Movies
User history + 20 movie candidates
1,000
10,163
Yelp
Business
User history + 20 business candidates
1,000
12,000
Table 1: Benchmark overview. Each dataset starts from 1,000 base instances; the Llama runs produce 45,163 ranking records before tail-target eligibility filtering.
Warm-start
Sparse-history
Tail-target subset
Item-text robustness
Dataset
Hit@10
NDCG@10
Hit@10
NDCG@10
Hit@10
NDCG@10
Hit@10
NDCG@10
MIND-20
0.546
0.270
0.557
0.272
0.557
0.278
0.539
0.266
Books
0.697
0.438
0.768
0.530
0.584
0.341
0.717
0.453
Movies
0.579
0.316
0.594
0.332
0.566
0.284
0.614
0.341
Yelp
0.605
0.357
0.649
0.411
0.598
0.334
0.614
0.363
Table 2: Base LLM recommendation quality. Hit@10 and NDCG@10 for the fixed Llama rankings across datasets and evaluation conditions.
LabelProb Max
LabelProb Top10Mass
LabelProb Entropy
LabelProb Margin
Temperature scaling
Decomposed LLM UQ
Perturbation Rank Instability
Self- consistency
Llama-3.1-8B-Instruct
MIND-20
0.476
0.528
0.486
0.482
0.477
0.484
0.517
0.528
Books
0.607
0.673
0.601
0.583
0.608
0.620
0.631
0.570
Movies
0.449
0.579
0.448
0.463
0.449
0.511
0.525
0.529
Yelp
0.551
0.686
0.552
0.540
0.551
0.556
0.525
0.521
Overall
0.523
0.628
0.526
0.519
0.524
0.546
0.542
0.533
Table 3: Warm-start Error-AUROC across datasets and backbones. Results are computed on the same 4,000 Warm-start instances for both backbones. Bold and underlined values indicate the best and second-best methods in each row.
Method
Error-AUPRC ↑
Risk@80 ↓
AURC ↓
E-AURC ↓
Llama-3.1-8B-Instruct
LabelProb-Max
0.407
0.387
0.373
0.283
LabelProb-Top10Mass
0.509
0.355
0.298
0.208
LabelProb-Entropy
0.409
0.388
0.373
0.282
LabelProb-Margin
0.401
0.392
0.371
0.281
Temperature-scaled LabelProb
0.408
0.385
0.373
0.283
Table 4: Warm-start results on complementary reliability metrics. Error-AUPRC, Risk@80, AURC, and E-AURC are reported on the same 4,000 instances for both backbones. Bold and underlined values indicate the best and second-best methods within each backbone block.
Figure 2: Backbone- and condition-specific ranking-failure detection. Warm-start Error-AUROC across backbones and aggregate Llama Error-AUROC across evaluation conditions.
Dataset
LabelProb Max
LabelProb Top10Mass
LabelProb Entropy
LabelProb Margin
Temperature scaling
Decomposed LLM UQ
Perturbation Rank Instability
Self- consistency
MIND-20
0.488
0.515
0.485
0.493
0.487
0.484
0.516
0.509
Books
0.610
0.696
0.608
0.581
0.611
0.630
0.558
0.584
Movies
0.455
0.575
0.454
0.476
0.455
0.515
0.519
0.533
Yelp
0.596
0.694
0.594
0.571
0.596
0.586
0.506
0.549
Overall
0.536
0.634
0.536
0.532
0.536
0.561
0.519
0.536
Table 5: Sparse-history UQ results. Error-AUROC for Error@10 detection under user-history truncation on Llama-3.1-8B-Instruct.
Dataset
n
LabelProb Max
LabelProb Top10Mass
LabelProb Entropy
LabelProb Margin
Temperature scaling
Decomposed LLM UQ
Perturbation Rank Instability
Self- consistency
MIND-20
870
0.463
0.503
0.477
0.471
0.464
0.483
0.525
0.505
Books
221
0.575
0.643
0.588
0.560
0.578
0.587
0.598
0.492
Movies
129
0.522
0.529
0.513
0.540
0.522
0.482
0.411
0.485
Yelp
92
0.651
0.687
0.608
0.675
0.647
0.630
0.558
0.585
Overall
1,312
0.503
0.547
0.510
0.511
0.504
0.511
0.527
0.506
Table 6: Tail-target subset UQ results on Llama-3.1-8B-Instruct. Error-AUROC for Error@10 detection on the 1,312 Warm-start records whose target item belongs to the dataset-specific popularity-tail bucket.
Dataset
LabelProb Max
LabelProb Top10Mass
LabelProb Entropy
LabelProb Margin
Temperature scaling
Decomposed LLM UQ
Perturbation Rank Instability
Self- consistency
MIND-20
0.488
0.521
0.492
0.490
0.488
0.484
0.519
0.502
Books
0.577
0.663
0.567
0.566
0.578
0.597
0.586
0.553
Movies
0.463
0.618
0.452
0.476
0.462
0.509
0.507
0.532
Yelp
0.564
0.677
0.554
0.548
0.563
0.559
0.506
0.519
Overall
0.537
0.640
0.534
0.530
0.537
0.551
0.523
0.523
Table 7: Item-text robustness on Llama-3.1-8B-Instruct. Error-AUROC for Error@10 detection under controlled candidate item-text field ablations.
Signed effects
Method
Signal
DirCov
D-Acc
Macro-F1
Source-AUROC
ρ
D-Acc
Src-AUROC
Decomposed LLM UQ
scalar resp.
0.487
0.267
0.328
0.521
0.071
0.579
0.548
LabelProb-Max
scalar resp.
0.482
0.262
0.331
0.520
0.054
0.570
0.535
LabelProb-Top10Mass
scalar resp.
0.656
0.374
0.447
0.531
0.092
0.571
0.531
LabelProb-Entropy
scalar resp.
0.478
0.250
0.301
0.517
0.060
0.571
0.539
LabelProb-Margin
scalar resp.
0.500
0.268
0.347
0.518
0.040
0.551
0.527
Table 8: Paired-control response on Llama-3.1-8B-Instruct. Clipped metrics use 1,819 non-tied cases; signed metrics use 3,617. Bold indicates the best UQ signal in each column.
Figure 3: Illustrative item-content case. Removing category metadata moves the target outside the fixed top-10; both the perturbation response and NDCG@10 difference are larger for item content.
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
Field
Description
schema_version
Artifact schema version.
record_id
Stable join key for base and UQ rows.
method
UQ method identifier.
method_family
Probability, calibration, decomposition, sensitivity, or sampling.
uncertainty_score
Scalar score; larger means more uncertain.
confidence_score
Optional confidence counterpart.
Appendix
Table 9: UQ artifact schema. Required and optional fields for record-aligned UQ outputs.
Llama-3.1-8B-Instruct
Qwen3-8B non-thinking
Score
T=1
T=1.23
T=8.62
T=1
T=1.23
T=8.62
LabelProb-Max
0.523
0.524
0.525
0.436
0.441
0.538
LabelProb-Entropy
0.526
0.526
0.526
0.442
0.451
0.599
LabelProb-Margin
0.519
0.519
0.519
0.432
0.434
0.458
LabelProb-Top10Mass
0.628
0.627
0.623
0.447
0.448
0.444
Decomposed LLM UQ
0.546
0.559
Appendix
Table 10: Warm-start Error-AUROC under shared fixed temperatures. The same T is applied to both backbones. T=1.23 and T=8.62 are the mean fitted temperatures for Llama and Qwen, respectively. Decomposed LLM UQ is reported as an unchanged reference.
Score
Error@5
Error@10
Error@15
Top5Mass
0.656
0.609
0.583
Top10Mass
0.634
0.628
0.592
Top15Mass
0.624
0.616
0.628
Appendix
Table 11: Warm-start Error@K/TopKMass alignment. Error-AUROC on the shared 4,000 Llama Warm-start records.
Condition
Records
Clusters
Top10Mass AUROC [95% CI]
Best alternative [95% CI]
Sparse-history
20,000
4,000
0.634 [0.621, 0.646]
Decomp.: 0.561 [0.550, 0.570]
Tail-target subset
1,312
1,312
0.547 [0.520, 0.580]
Perturb.: 0.527 [0.497, 0.556]
Item-text robustness
17,163
4,000
0.640 [0.626, 0.653]
Decomp.: 0.551 [0.540, 0.562]
Appendix
Table 12: Instance-clustered paired bootstrap intervals. Aggregate Llama Error-AUROC with 95% confidence intervals for the non-reference evaluation conditions.
Gap
n
DirCov
D-Acc
Source-AUROC
ρ
0.00
1,819
0.987
0.709
0.675
0.456
0.05
1,522
0.988
0.739
0.701
0.477
0.10
1,124
0.989
0.775
0.739
0.498
Appendix
Table 13: Perturbation response under NDCG@10-difference gap thresholds.
Figure 4: Paired-control response agreement on Llama-3.1-8B-Instruct. Directional coverage and Source-AUROC for the user-history and item-content controls.
Reference
Error-AUROC
Coverage
Random score
0.495
1.000
Parse-failure indicator
0.501
1.000
Oracle Error@10
1.000
1.000
Appendix
Table 14: Sanity checks for Error-AUROC. Random and parse-failure references remain near chance; the oracle reaches the expected upper bound.
Check
Error-AUROC
LabelProb-BaseTop1
0.584
LabelProb-Top10Mass
0.634
Decomp. recommendation component
0.542
Decomp. prompt component
0.483
Decomp. prompt ratio
0.478
SC top-1 disagreement
0.508
Appendix
Table 15: Derived ranking-aligned and component checks. Error-AUROC pooled over all 42,475 evaluation-eligible Llama records.
(a) Effect signs: positive / negative / zero (%)
Dataset
n
User history
Item content
MIND-20
1,000
39.9/44.8/15.3
34.7/33.2/32.1
Books
1,000
27.7/57.9/14.4
39.0/45.2/15.8
Movies
1,000
39.0/47.4/13.6
30.7/34.4/34.9
Yelp
1,000
29.1/47.7/23.2
37.1/42.2/20.7
Llama, all
4,000
33.9/49.5/16.6
35.4/38.8/25.9
Appendix
Table 16: Signed NDCG@10 differences and the impact of clipping. Dataset rows use Llama; the last row gives pooled Qwen results. Effect-sign percentages use all cases in each row and are rounded to one decimal. Label counts exclude ties under the corresponding label definition.
Figure 5: Distributions of signed NDCG@10 differences on Llama. Negative differences indicate higher mean NDCG@10 across the controlled variants relative to the original input.
(a) Signed-label results by dataset on Llama
Dataset
n
Majority D-Acc
Decomp. D-Acc
Decomp. Src-AUROC
PRI Src-AUROC
RBO Src-AUROC
MIND-20
903
0.518
0.525
0.520
0.487
0.507
Books
913
0.652
0.650
0.561
0.497
0.503
Movies
934
0.529
0.531
0.526
0.494
0.494
Yelp
867
0.604
0.615
0.558
0.492
0.500
Appendix
Table 17: Supplementary paired-control results. Decomp. denotes Decomposed LLM UQ with unclipped scalar responses in panel (a); PRI denotes Perturbation Rank Instability. Brackets in panel (b) give 95% confidence intervals. The Qwen diagnostic uses auxiliary controlled rankings for the same Warm-start base instances.
(a) Positional-output share (%)
Backbone
Dataset
Controlled input
Original
Controlled
Llama
Books
Most recent interaction
29.6
7.1
Qwen
Yelp
Review summary removed
46.9
10.1
Appendix
Table 18: Evidence-removal diagnostics. Original uses full history and original item text; Controlled uses the input change specified in the row. Panel (b) conditions on the non-positional outputs of each condition; ranges span the four history-truncation variants. Panel (c) compares original-input quality across field-availability subsets.
Score
Probability source / set
Llama
Qwen
LabelProb-Top10Mass
One-letter prompt / issued top-10
0.628 [0.611, 0.644]
0.447 [0.430, 0.464]
Probe own top-10 mass
One-letter prompt / probe top-10
0.525 [0.508, 0.544]
0.568 [0.550, 0.585]
First-slot top-10 mass
Ranking prompt / issued top-10
0.606 [0.589, 0.624]
0.518 [0.500, 0.535]
First-slot max probability
Ranking prompt
0.527 [0.509, 0.545]
0.486 [0.469, 0.505]
Sequence NLL@10
Ranking prompt
0.399 [0.381, 0.416]
0.306 [0.290, 0.322]
Appendix
Table 19: Same-prompt and cross-elicitation scores. Warm-start Error-AUROC with 95% confidence intervals. Ranking-prompt scores use teacher-forced reconstructions of the stored output.
(a) Llama Error-AUROC
Variant
Warm-start
Sparse-history
Tail-target
Item-text
Samples only
0.533 [0.515, 0.552]
0.536
0.506
0.523
Base-anchored
0.555 [0.538, 0.573]
0.552
0.524
0.554
Samples plus base
0.553 [0.536, 0.571]
0.555
0.523
0.550
Appendix
Table 20: Self-consistency with the base ranking. Error-AUROC; Warm-start entries include 95% confidence intervals. Qwen is evaluated on Warm-start.
Signal
Additional calls per record
Type
Llama (45,163)
Qwen (4,000)
LabelProb family
1 (shared)
Forward pass
8h02m
1h28m
Temperature-scaled LabelProb
0 (reused output)
Offline fit
–
–
Decomposed LLM UQ
5
Forward passes
22h11m
3h26m
Self-consistency
5
Sampled generations
121h53m
13h25m
Perturbation Rank Instability
7.3 on average
Controlled greedy generations
Reused
17h43m †
Base ranking
1 base call (reference)
Greedy generation
24h32m
2h36m
Appendix
Table 21: Inference requirements and logged wall-clock totals. Times cover the indicated record sets. † The Qwen perturbation time covers 41,163 controlled rankings.
Knowing when a large language model's (LLM's) response can be trusted is critical for its safe use. Uncertainty quantification (UQ) can help LLMs recognize if their responses may be unreliable. Existing taxonomies organize UQ methods by uncertainty source or estimation mechanism. They leave unresolved the question of where uncertainty is observed in the model's computation. The answer matters because the observation point determines whether an estimator has access to enough information to recover a given target, and how well it can recover it. Drawing on mechanistic interpretability, we define four mechanistic observation lenses: the structural lens observes component updates, the representational lens observes hidden states, the distributional lens observes token probabilities, and the semantical lens observes distributions over meanings. We relate these lenses through the residual stream and order them by the information they carry, which gives a principle for selecting UQ methods for different targets. We survey existing methods through the four lenses. Furthermore, we distinguish evaluation targets, criteria, and metrics to clarify different UQ evaluation protocols. Finally, we identify open problems and research directions to connect uncertainty estimation to the internal computation and downstream use of LLMs.
Xiaoyu Liang, Virginia Ceccatelli, Aliai Eusebi +4
University College London · Technische Universität Darmstadt · Universität zu Lübeck +1
As Large Language Models (LLMs) are increasingly deployed in real-world applications, reliable uncertainty quantification (UQ) becomes critical for safe and effective use. Most existing UQ approaches for language models aim to produce a single confidence score -- for example, estimating the probability that a model's answer is correct. However, uncertainty in natural language tasks arises from multiple distinct sources, including model knowledge gaps, output variability, and input ambiguity, which have different implications for system behavior and user interaction. In this work, we study how the source of uncertainty impacts the behavior and effectiveness of existing UQ methods. To enable controlled analysis, we introduce a new dataset that explicitly categorizes uncertainty sources, allowing systematic evaluation of UQ performance under each condition. Our experiments reveal that while many UQ methods perform well when uncertainty stems solely from model knowledge limitations, their performance degrades or becomes misleading when other sources are introduced. These findings highlight the need for uncertainty-aware methods that explicitly account for the source of uncertainty in large language models.
Maiya Goloburda, Roman Vashurin, Fedor Chernogorskii +4
Mohamed bin Zayed University of Artificial Intelligence
Uncertainty Quantification (UQ) is widely regarded as the primary safeguard for deploying Large Language Models (LLMs) in high-stakes domains. However, we argue that the field suffers from a category error: mainstream UQ methods for LLMs are just unsupervised clustering algorithms. We demonstrate that most current approaches inherently quantify the internal consistency of the model's generations rather than their external correctness. Consequently, current methods are fundamentally blind to factual reality and fail to detect ``confident hallucinations,'' where models exhibit high confidence in stable but incorrect answers. Therefore, the current UQ methods may create a deceptive sense of safety when deploying the models with uncertainty. In detail, we identify three critical pathologies resulting from this dependence on internal state: a hyperparameter sensitivity crisis that renders deployment unsafe, an internal evaluation cycle that conflates stability with truth, and a fundamental lack of ground truth that forces reliance on unstable proxy metrics to evaluate uncertainty. To resolve this impasse, we advocate for a paradigm shift to UQ and outline a roadmap for the research community to adopt better evaluation metrics and settings, implement mechanism changes for native uncertainty, and anchor verification in objective truth, ensuring that model confidence serves as a reliable proxy for reality.
Tiejin Chen, Longchao Da, Xiaoou Liu +1
School of Computing and Augmented Intelligence, Arizona State University