TL;DR
Large Language Models (LLMs) are great at answering questions, but they often struggle to ask the right ones when information is missing. Uncertainty of Thoughts (UoT) is a new framework that empowers LLMs to actively seek information by simulating future conversation paths and selecting questions that maximize "Information Gain." This approach leads to a massive 38.1% average improvement in task success across medical and technical domains.
What Problem Does This Paper Address?
Most LLM benchmarks assume that all the necessary information to solve a problem is provided in the initial prompt. However, real-world tasks—like medical diagnosis or technical troubleshooting—are rarely that simple. Information is often missing, ambiguous, or hidden.
While techniques like Chain-of-Thought (CoT) or Tree-of-Thoughts (ToT) help models reason through the information they already have, they don't provide a principled way for a model to realize it is uncertain and ask a targeted question to resolve that uncertainty. The authors identify a growing need for LLMs that can actively seek the information they need rather than just guessing based on incomplete data.
Methods
The authors introduce Uncertainty of Thoughts (UoT), a plug-and-play algorithm that adds a planning and simulation layer to existing LLMs. It consists of three main components:
- Question Generation and Multistep Simulation: Instead of asking the first question that comes to mind, the LLM generates several candidate questions. For each candidate, it simulates a "tree of possibilities" several steps into the future, imagining both its own potential follow-up questions and the user's likely responses.
- Uncertainty-based Rewards: UoT uses Information Theory to evaluate these simulated futures. It calculates the Information Gain (the reduction in Shannon Entropy) for each question. A "good" question is one that effectively halves the search space of possible answers. The authors also introduce a scaling hyperparameter to "sharpen" these rewards, making it easier for the model to distinguish between a mediocre question and a great one.
- Reward Propagation: The model uses a reward propagation scheme (similar to lookahead search in games like Chess) to calculate the "Expected Reward" for a question. This ensures the model doesn't just ask a question that is good for the immediate next turn, but one that sets up a successful path to the final answer.
Datasets
The researchers evaluated UoT across three distinct tasks using five datasets:
- 20 Questions: Using the Common dataset (111 targets) and the Things dataset (1,854 object concepts).
- Medical Diagnosis: Using DX (doctor-patient dialogues for 5 diseases) and MedDG (a large-scale dataset of 15 disease types).
- Troubleshooting: Using FloDial, which contains 153 unique faults in car and laptop systems.
They tested the model in both "Closed Set" scenarios (where the list of possible outcomes is known) and "Open Set" scenarios (where the model must initialize its own list of possibilities).
Key Insights and Ideas
- Asking is Planning: The core "aha moment" is treating information-seeking as a planning problem. By simulating the conversation as a tree, the LLM can see which questions lead to "dead ends" and which ones narrow down the possibilities most efficiently.
- Entropy as a North Star: Moving away from vague "self-evaluation" (where an LLM just says "this looks like a good question") to a mathematical reward based on Entropy provides a much more stable and effective signal for the model.
- Efficiency vs. Accuracy: UoT doesn't just help models get the right answer; it helps them get there faster. By maximizing information gain, the models require fewer turns to reach a conclusion, which is critical for reducing "token cost" and user frustration.
- Model Agnostic: UoT is "plug-and-play." The authors demonstrated significant gains across a wide range of models, including Llama-3, GPT-4, Gemini 1.5 Pro, and Claude 3 Opus.
Key Results
- Massive Success Rate Boost: UoT improved the success rate of LLMs by an average of 38.1% compared to direct prompting. Llama-3-70B saw an even higher jump of 46.6%.
- Superior Efficiency: In medical diagnosis tasks (DX dataset), UoT reduced the average number of questions needed to reach a correct diagnosis from ~3.5 turns down to just 2.0 turns.
- Outperforming Baselines: UoT consistently outperformed more complex reasoning frameworks like Tree-of-Thoughts (ToT) and Reflexion. For example, on the 20 Questions task, UoT (CS) achieved a 71.2% success rate, while the second-best method (Reflexion) trailed at 67.6%.
Limitations and Future Work
The authors acknowledge a few key limitations:
- Simplified Answer Modeling: The current framework assumes answers can be neatly categorized (e.g., Yes/No). In reality, user responses can be fuzzy or overlapping (e.g., "I have a slight fever, but it's not severe").
- Computational Overhead: Simulating multiple future paths is token-intensive. While the authors introduced a "Pruned UoT" to mitigate this, it still requires more compute than simple prompting.
- Future Directions: The authors suggest moving toward a more "Bayesian" approach, where the model maintains a continuous probability distribution over all possible outcomes rather than just eliminating subsets of a list. This would allow for more nuanced handling of uncertain or "noisy" information from users.
Summary updated