Task-Awareness Improves LLM Generations and Uncertainty
Tim Tomov, Dominik Fuchsgruber, Stephan G\"unnemann

TL;DR
This paper introduces a task-aware, Bayesian decision-theoretic framework for LLMs that models outputs in a latent structure, improving response quality and uncertainty estimation across various tasks.
Contribution
It proposes a novel approach that incorporates latent structural modeling and Bayesian optimization to enhance LLM decoding and uncertainty quantification.
Findings
Bayes-optimal responses outperform standard decoding methods.
Uncertainty quantification aligns better with output correctness.
Framework is applicable across multiple structured tasks.
Abstract
In many applications of LLMs, natural language responses often have an underlying structure such as representing discrete labels, numerical values, or graphs. Yet, existing decoding and uncertainty estimation methods operate only in language space and largely disregard structural information. We address this by modeling LLM outputs directly in a task-dependent latent structure. By equipping this structure with a dissimilarity measure, we can compute Bayes-optimal responses. These are not selected from sampled generations but are newly synthesized by combining individual responses in the latent space. Across different tasks, Bayes-optimal responses consistently outperform standard decoding methods like beam search. Moreover, quantifying uncertainty via the induced Bayesian risk captures variations in terms of the latent structure and improves alignment with output quality and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNatural Language Processing Techniques · Topic Modeling · Text Readability and Simplification
