Abstract
Large Language Models (LLMs) often struggle with "planning hallucinations" in interactive environments, generating invalid action sequences that violate environment rules. KnowAgent addresses this by incorporating an explicit Action Knowledge Base and a "knowledgeable self-learning" strategy. This framework enables open-source models to significantly reduce invalid actions and outperform larger closed-source models like GPT-4 on complex reasoning and embodied AI benchmarks.
Introduction
While Large Language Models (LLMs) excel at natural language reasoning, they often falter when acting as agents in interactive environments. A primary failure mode is "planning hallucination," where the model generates action sequences that are logically impossible or violate the state-transition rules of the task. Current methods like ReAct rely on the model's internal weights to predict the next step, which often leads to a cascade of errors when the model guesses an invalid path. KnowAgent introduces a framework to ground these agents by providing an explicit "Action Knowledge Base" and a novel self-learning loop.
Methodology: The KnowAgent Framework
KnowAgent introduces a three-pillar approach to planning designed to constrain the LLM's search space and ground its reasoning in environment-specific rules.
1. Action Knowledge Base (Action KB)
The framework defines a set of permissible actions ($E_a$) and transition rules ($R$). For example, in a search task, a rule might dictate that a Search action must precede a Retrieve action. This KB is converted into natural language descriptions, providing the LLM with a clear "roadmap" of valid transitions.
2. Planning Path Generation
Instead of outputting unstructured thoughts and actions, KnowAgent requires the model to generate an ActionPath. This is an explicit sequence of nodes in the action graph that the model has traversed. This tracking keeps the model's planning aligned with the Action KB.
3. Knowledgeable Self-Learning
This iterative loop allows the model to refine its own performance:
- Synthesis: The model generates multiple trajectories for a given task.
- Filtering: Incorrect trajectories or those violating Action KB rules are discarded.
- Merging: The system prioritizes the most efficient (shortest) successful paths.
- Fine-tuning: The model is fine-tuned on this refined data, creating a virtuous cycle of improvement.
Experimental Evaluation
The framework was evaluated on two distinct benchmarks: HotpotQA (multi-hop question-answering) and ALFWorld (synthetic embodied AI household tasks). Researchers tested various backbone models, including the Llama-2 series (7b, 13b, 70b), Vicuna-7b, and Mistral-7b, comparing them against baselines like CoT, ReAct, and Reflexion.
Key Results
KnowAgent demonstrated significant improvements across all metrics:
- Performance Gains: On ALFWorld "unseen" tasks, KnowAgent-13b achieved a 49.01% increase in success rate over the ReAct baseline.
- Outperforming GPT-4: On ALFWorld, KnowAgent-70b reached a success rate of 78.36%, nearly doubling the 38.81% achieved by GPT-4 using standard prompting.
- Mitigating Hallucination: KnowAgent reduced the rate of invalid actions to just 0.35% on HotpotQA, compared to 2.08% for ReAct and 6.87% for Reflexion.
As shown in the figure above, the iterative self-learning process consistently improves the model's performance across easy, medium, and hard tasks, demonstrating that the model successfully "absorbs" action knowledge from its filtered experiences.
Conclusion
KnowAgent demonstrates that specialized "agent tuning" and explicit knowledge constraints are more effective for task-oriented planning than raw model scale. By grounding LLMs in an Action Knowledge Base and employing an iterative self-learning loop, smaller open-source models can achieve parity with or even exceed the performance of massive closed-source models. Future work will focus on automating KB construction from raw environment feedback and extending the framework to multi-agent systems.
Summary updated