TL;DR
This paper introduces a novel self-improvement framework for Large Language Model (LLM) agents that perform multi-step reasoning, particularly for complex question answering. By combining the ReAct framework with a ReST-like iterative training approach and AI feedback, they demonstrate significant performance gains, enabling smaller models to achieve comparable results to larger ones with drastically fewer parameters.
What Problem Does This Paper Address?
Answering complex questions often requires LLMs to perform multi-step reasoning and interact with external knowledge sources (like search engines or APIs). While systems combining LLMs with retrieval have shown promise, they are prone to errors. Directly training these systems end-to-end to fix these failures is challenging because the interaction with external knowledge is non-differentiable. Furthermore, collecting human-labeled data for multi-step reasoning processes is expensive and time-consuming. The authors aim to address this by developing a method for LLM agents to improve themselves autonomously using AI feedback.
Methods
The core of the proposed method is a ReAct-style LLM agent that can reason and act upon external knowledge. This agent is then refined using a process inspired by Reinforced Self-Training (ReST). The key components are:
- ReAct Agent: The agent interleaves reasoning (chain-of-thought) with actions (like searching) and observations. The prompts are structured as Python code for better parsing and integration.
- Self-Improvement Loop: This is an iterative process:
- Growing Batch: The agent generates new reasoning trajectories (sequences of thoughts and actions) based on a fixed set of initial questions.
- AI Feedback & Re-ranking: Instead of human feedback, the system uses an instruction-tuned LLM as a "reward model" to rank the generated trajectories. This ranking is used to select higher-quality trajectories for training.
- Fine-tuning: The agent is then fine-tuned on these improved trajectories.
- Self-Distillation: After several iterations of self-improvement, the fine-tuned models (which are often smaller) can be used to distill the knowledge from the larger teacher model, achieving comparable performance with significantly fewer parameters.
- Self-Critique: The agent includes specific self-check steps (relevance and grounding) to verify its answers before finalizing them.
Datasets
- Training/Initial Trajectory Generation: The authors use a combined dataset of 2000 questions from:
-
HotpotQA (multi-hop reasoning QA)
- Eli5 (long-form question answering from Reddit)
- Eli5-askH (from r/askhistorians)
- Eli5-askS (from r/askscience) They use these questions to generate initial trajectories but do not use their labels for training.
-
Evaluation:
- Bamboogle: A semi-adversarial dataset of 125 two-hop questions designed to be unanswerable by direct Google search but solvable with evidence from Wikipedia.
- BamTwoogle: A new, handcrafted dataset of 100 information-seeking questions, designed as a more challenging sequel to Bamboogle, ensuring most questions require 2+ steps. This dataset is used exclusively for final performance measurement to avoid overfitting.
Key Insights and Ideas
- Process Supervision is Key: The paper highlights that for complex, multi-step tasks, focusing on the process of reaching an answer (the trajectory) is more effective than just evaluating the final outcome.
- AI Feedback as a Scalable Alternative: Using an LLM as a reward model for ranking trajectories is a powerful and scalable way to generate high-quality training data without human annotation.
- Self-Improvement Works for Agents: The ReST-like iterative self-improvement approach, traditionally used for language modeling, is effectively adapted to LLM agents that interact with external tools.
- Small Models Can Be Powerful: The self-distillation process allows for creating significantly smaller models that retain much of the performance of larger, iteratively improved models.
- Self-Critique Adds Value: While the boost is small (0.5-1.0%), the self-critique steps (relevance and grounding checks) do contribute positively to the agent's overall performance.
Key Results
- After just two iterations of the self-improvement algorithm, a fine-tuned small model achieved comparable performance to a prompted large model on challenging compositional question-answering benchmarks.
- The fine-tuned models had two orders of magnitude fewer parameters than the initial large model.
- The proposed method achieved a mean accuracy of 76.1±1.3% on the Bamboogle dataset with the largest model after two self-improvement iterations, compared to 70.3±3.5% for the pre-trained model.
- The auto-evaluation metric developed by the authors showed a high correlation with human evaluations (Pearson correlation of 0.98).
- Using multiple trajectories per question in the fine-tuning mixture provided a small gain (2.2%), but further increases did not yield significant improvements.
Limitations and Future Work
- Computational Constraints: The work was limited by computational resources, leading to manually constructed prompts, a limited set of models, and a single tool.
- Multi-Tool Settings: Future work could explore applying the self-improvement algorithm to agents with multiple tools and investigate how to improve handling of unseen tools.
- Saturation Point: An open question is how many more iterations of self-improvement yield diminishing returns and what the saturation point looks like for different model sizes.
- Prompt Engineering: The reliance on manually crafted few-shot prompts is a limitation. Future work could explore automatic prompt optimization.
Summary updated