mlsanityData to 7 Oct 2026

How Confident Is the First Token? An Uncertainty-Calibrated Prompt Optimization Framework for Large Language Model Classification and Understanding

arXiv 2603.18009 ↗First posted 23 Feb 2026cs.CL cs.AIcited by 1

On the map: Retrieval-augmented generation → RAG robustness and adaptive retrieval

Abstract (arXiv)

With the widespread adoption of large language models (LLMs) in natural language processing, prompt engineering and retrieval-augmented generation (RAG) have become mainstream to enhance LLMs' performance on complex tasks. However, LLMs generate outputs autoregressively, leading to inevitable output uncertainty. Since model performance is highly sensitive to prompt design, precise uncertainty measurement is crucial for reliable prompt optimization. For multi-class multiple-choice (understanding) tasks, conventional uncertainty measures (e.g., entropy) based on output probabilities treat all classes equally and ignore class prior differences in pretraining corpora. This failure to distinguish spurious confidence (from priors) from true certainty (from contextual understanding) results in poor confidence calibration. To address this, we propose Log-Scale Focal Uncertainty (LSFU), a first-token-based metric inspired by focal loss. LSFU incorporates label prior probabilities as a risk-modulation factor to suppress noise from high-frequency classes and emphasize risk for low-frequency long-tail classes, with a dynamic weighting mechanism unifying the measurement scale. Based on LSFU, we further propose the uncertainty-calibrated prompt optimization framework (UCPOF), which leverages the first token of model outputs to select high-quality exemplars and dynamically optimize prompts. Comprehensive evaluations show UCPOF improves average accuracy by 6.03% over few-shot baselines, surpasses always-on full RAG by 5.75% in overall average accuracy, and reduces the average retrieval trigger rate by 50.66%. By adaptively triggering RAG only for high-uncertainty samples, our framework significantly lowers computational costs while maintaining state-of-the-art performance.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in RAG robustness and adaptive retrieval, one of 15 directions in Retrieval-augmented generation. Builds on 32 of its 39 references that are in the map. First posted on arXiv 23 Feb 2026.

Builds on

32 of 39 references.

References · 32

  1. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  2. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  3. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  4. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  5. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  6. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  7. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  8. 2022Language Models (Mostly) Know What They Knowcited by 1,783
  9. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
  10. 2022In-context Learning and Induction Headscited by 930
  11. 2017Selective Classification for Deep Neural Networkscited by 799
  12. 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 795
20 more
  1. 2023Active Retrieval Augmented Generationcited by 506
  2. 2021True Few-Shot Learning with Language Modelscited by 343
  3. 2023Generating with Confidence: Uncertainty Quantification for Black-box Large Language Modelscited by 286
  4. 2024LLM2LLM: Boosting LLMs with Novel Iterative Data Enhancementcited by 69
  5. 2025A Systematic Survey of Automatic Prompt Optimization Techniquescited by 61
  6. 2024Insights into LLM Long-Context Failures: When Transformers Know but Don't Tellcited by 36
  7. 2023On Uncertainty Calibration and Selective Generation in Probabilistic Neural Summarization: A Benchmark Studycited by 25
  8. 2024Instance-adaptive Zero-shot Chain-of-Thought Promptingcited by 25
  9. 2025Think Just Enough: Sequence-Level Entropy as a Confidence Signal for LLM Reasoningcited by 22
  10. 2025Emergent Response Planning in LLMscited by 17
  11. 2025Beyond Prompt Content: Enhancing LLM Performance via Content-Format Integrated Prompt Optimizationcited by 15
  12. 2025Where to show Demos in Your Prompt: A Positional Bias of In-Context Learningcited by 13
  13. 2025GAAPO: Genetic Algorithmic Applied to Prompt Optimizationcited by 10
  14. 2025Improve LLM-based Automatic Essay Scoring with Linguistic Featurescited by 8
  15. 2025Improving LLM First-Token Predictions in Multiple-Choice Question Answering via Output Prefillingcited by 6
  16. 2025Event Extraction in Large Language Modelcited by 5
  17. 2025First Hallucination Tokens Are Different from Conditional Onescited by 4
  18. 2024The Fair Language Model Paradoxcited by 3
  19. 2025How Well Does First-Token Entropy Approximate Word Entropy as a Psycholinguistic Predictor?cited by 3
  20. 2025Integration of Old and New Knowledge for Generalized Intent Discovery: A Consistency-driven Prototype-Prompting Frameworkcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025Revisiting Uncertainty Estimation and Calibration of Large Language Models
  2. 2024Benchmarking Large Language Model Uncertainty for Prompt Optimization
  3. 2026Dissecting Training-Free Uncertainty Estimation in Multimodal Large Language Models
  4. 2025Simple Yet Effective: An Information-Theoretic Approach to Multi-LLM Uncertainty Quantification
  5. 2026Confident in a Confidence Score: Investigating the Sensitivity of Confidence Scores to Supervised Fine-Tuning
  6. 2026Probabilistic Calibration Is a Trainable Capability in Language Models
  7. 2026Uncertainty Quantification for Multimodal Large Language Models with Incoherence-adjusted Semantic Volume
  8. 2026NOVA: NOise-aware Verbal Confidence CAlibration for Robust Large Language Models in RAG Systems