On the Importance of Uncertainty in Decision-Making with Large Language Models

Abstract

We investigate the role of uncertainty in decision-making problems with natural language as input. For such tasks, using Large Language Models as agents has become the norm. However, none of the recent approaches employ any additional phase for estimating the uncertainty the agent has about the world during the decision-making task. We focus on a fundamental decision-making framework with natural language as input, which is the one of contextual bandits, where the context information consists of text. As a representative of the approaches with no uncertainty estimation, we consider an LLM agent with a greedy policy, which picks the action corresponding to the largest predicted reward. We compare this baseline to LLM agents that make active use of uncertainty estimation by integrating the uncertainty in a Thompson Sampling policy. We employ different techniques for uncertainty estimation, such as Laplace Approximation, Dropout, and Epinets. We empirically show on real-world data that the greedy policy performs worse than the Thompson Sampling policies. These findings suggest that, while overlooked in the LLM literature, uncertainty improves performance on bandit tasks with LLM agents.

Cite

Text

Felicioni et al. "On the Importance of Uncertainty in Decision-Making with Large Language Models." Transactions on Machine Learning Research, 2024.

Markdown

[Felicioni et al. "On the Importance of Uncertainty in Decision-Making with Large Language Models." Transactions on Machine Learning Research, 2024.](https://mlanthology.org/tmlr/2024/felicioni2024tmlr-importance/)

BibTeX

@article{felicioni2024tmlr-importance,
  title     = {{On the Importance of Uncertainty in Decision-Making with Large Language Models}},
  author    = {Felicioni, Nicolò and Maystre, Lucas and Ghiassian, Sina and Ciosek, Kamil},
  journal   = {Transactions on Machine Learning Research},
  year      = {2024},
  url       = {https://mlanthology.org/tmlr/2024/felicioni2024tmlr-importance/}
}