Task-Awareness Improves LLM Generations and Uncertainty

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Tomov, Tim, Fuchsgruber, Dominik, Günnemann, Stephan
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911708945055744
author Tomov, Tim
Fuchsgruber, Dominik
Günnemann, Stephan
author_facet Tomov, Tim
Fuchsgruber, Dominik
Günnemann, Stephan
contents 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 correctness. Our decision-theoretic framework is applicable to any problem that admits a latent response structure and enables reliable task-aware LLM predictions.
format Preprint
id arxiv_https___arxiv_org_abs_2601_21500
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Task-Awareness Improves LLM Generations and Uncertainty
Tomov, Tim
Fuchsgruber, Dominik
Günnemann, Stephan
Machine Learning
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 correctness. Our decision-theoretic framework is applicable to any problem that admits a latent response structure and enables reliable task-aware LLM predictions.
title Task-Awareness Improves LLM Generations and Uncertainty
topic Machine Learning
url https://arxiv.org/abs/2601.21500