Introduction
Large Language Models (LLMs) have shown remarkable potential as autonomous agents capable of planning and tool use. However, smaller open-source models (7B–13B parameters) often struggle with the "agentic" behaviors required for complex, real-world information-seeking tasks. These models frequently exhibit prompt brittleness and lack the necessary reasoning to handle dynamic, time-sensitive, or factually dense queries. KwaiAgents addresses these challenges through a comprehensive framework that includes a robust system architecture, a novel tuning methodology, and a specialized evaluation benchmark.
System Architecture: KAgentSys
The core of the KwaiAgents framework is KAgentSys, an autonomous loop designed for information seeking. It integrates three primary components:
- Memory Bank: Comprising Knowledge, Conversation, and Task memory to maintain context and factual grounding.
- Tool Library: A collection of specialized tools, including a "Hybrid Search-Browse" toolkit.
- Autonomous Loop: A process of memory update, retrieval, task planning, and tool execution that continues until a conclusion is reached.
A key innovation within the Tool Library is the Hybrid Search capability. Unlike standard search agents that rely solely on raw web results, KAgentSys performs entity linking via Kuaipedia—a large-scale multi-modal encyclopedia. This ensures that the agent's findings are factually grounded and less susceptible to the "noise" of outdated or irrelevant web content.
Meta-Agent Tuning (MAT)
To overcome the prompt brittleness of smaller LLMs, the researchers introduced Meta-Agent Tuning (MAT). This approach moves away from training on fixed prompt templates. Instead, a "Meta-Agent" (typically a larger model like GPT-4) is used to generate a vast array of diverse system prompt templates. These templates vary in their definitions of agent profiles, instructions, and output formats. By training models like Qwen-7B and Baichuan2-13B on this diverse dataset, the resulting KAgentLMs learn the underlying logic of agentic behavior rather than just memorizing specific formatting rules.
Evaluation: KAgentBench
To rigorously assess these capabilities, the authors developed KAgentBench. This benchmark evaluates agents across five critical dimensions: Planning, Tool-use, Reflection, Concluding, and Profile adaptation. It includes over 3,000 test prompts and 614 unique tools, providing a more comprehensive assessment than standard benchmarks.
Key Results and Insights
The KwaiAgents framework significantly elevates the performance of smaller models:
- Superior Performance: The fine-tuned Baichuan2-13B-MAT model achieved an overall score of 45.34 on KAgentBench, nearly doubling the performance of GPT-3.5-turbo (25.63).
- Closing the GPT-4 Gap: In human evaluations of complex information-seeking queries, the 13B model reached a 74.13% pass rate, approaching GPT-4's 83.58%.
- Temporal Reasoning: By providing explicit "time-aware" tools (e.g., holiday calendars, time-deltas), the system enables precise temporal reasoning that often eludes even the largest models.
- The Challenge of Reflection: While planning and tool use improved significantly, "Reflection"—the ability to self-correct after tool failure—remains a difficult frontier for smaller models, indicating a need for further research into memory management and reasoning depth.
Conclusion
KwaiAgents demonstrates that through sophisticated system design and diverse meta-tuning, smaller open-source LLMs can be transformed into powerful, generalized information-seeking agents. By bridging the gap between massive proprietary models and accessible open-source alternatives, this work paves the way for more robust and efficient autonomous systems.
Summary updated