Reproduce “Improving Uncertainty Quantification in Large Language Models via Semantic Embeddings” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Yashvir S. Grewal, Edwin V. Bonilla, Thang D. Bui
Researchers from Australian National University and Data61, CSIRO developed Semantic Embedding Uncertainty (SEU) and Amortised SEU (ASEU) to more accurately and efficiently quantify semantic uncertainty in Large Language Model outputs. SEU improves upon prior methods by using semantic embeddings and cosine similarity, while ASEU achieves single-pass uncertainty estimation by fine-tuning LLMs to predict semantic uncertainty from internal representations.
Key insights
- Quantifying semantic uncertainty via continuous embedding similarity is more robust and accurate than strict bidirectional entailment, as it is less sensitive to superficial linguistic variations, paraphrasing, or additional correct information.
- It is possible to amortize semantic uncertainty estimation into a single forward pass by training the LLM to internally represent and predict its own semantic coherence directly from its latent space.
- The latent embeddings learned through the amortized approach can capture meaningful semantic information, allowing the model to intrinsically gauge its confidence and improve trustworthiness for real-world applications.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.