Abstract
In response to the call for agent-based solutions that leverage the ever-increasing capabilities of the deep models' ecosystem, we introduce Hive -- a comprehensive solution for selecting appropriate models and subsequently planning a set of atomic actions to satisfy the end-users' instructions. Hive operates over sets of models and, upon receiving natural language instructions (i.e. user queries), schedules and executes explainable plans of atomic actions. These actions can involve one or more of the available models to achieve the overall task, while respecting end-users specific constraints. Notably, Hive handles tasks that involve multi-modal inputs and outputs, enabling it to handle complex, real-world queries. Our system is capable of planning complex chains of actions while guaranteeing explainability, using an LLM-based formal logic backbone empowered by PDDL operations. We introduce the MuSE benchmark in order to offer a comprehensive evaluation of the multi-modal capabilities of agent systems. Our findings show that our framework redefines the state-of-the-art for task selection, outperforming other competing systems that plan operations across multiple models while offering transparency guarantees while fully adhering to user constraints.
Introduction: Navigating the Multi-Modal Jungle
The AI landscape is currently experiencing a "model explosion," with platforms like HuggingFace hosting over a million specialized models. While this abundance offers immense potential, it creates a "multi-modal jungle" for developers and users. Identifying the optimal model for a specific task, chaining multiple models together (e.g., transcribing audio before summarization), and ensuring these pipelines respect hardware or licensing constraints has become increasingly difficult.
Existing "LLM-as-Agent" frameworks, such as HuggingGPT, attempt to solve this by using Large Language Models (LLMs) as central controllers. However, these systems often suffer from reliability issues, including hallucinated plans that cannot be executed, failure to adhere to specific user constraints, and a lack of clear logical justification for their actions. HIVE addresses this gap by combining the natural language flexibility of LLMs with the rigorous formal logic of the Planning Domain Definition Language (PDDL).
The HIVE Framework
HIVE is built upon three primary pillars designed to ensure reliability, explainability, and constraint satisfaction.
1. Capability Knowledge Graph (C-KG)
The C-KG serves as the system's foundational knowledge base. It is a structured graph constructed by scraping model cards and "Papers With Code" data. This graph maps models to their specific tasks, performance benchmarks, licenses, and executable Python code snippets. This allows HIVE to move beyond simple model names to a deep understanding of functional capabilities.
2. PDDL-Empowered Planning
A core innovation of HIVE is the use of PDDL for action sequencing. Instead of relying on an LLM to "guess" a sequence of steps, HIVE uses the LLM to translate a natural language query into a formal PDDL problem. By offloading the planning to a dedicated logical reasoner (using Best First Width Search), HIVE guarantees that the resulting plan is coherent and follows the defined rules of the domain.
3. Constraint-Aware Selection and Execution
During planning, HIVE filters candidate models based on user-specified constraints, such as license types (e.g., Apache 2.0) or model size limits. Once a plan is finalized, the Plan Executioner retrieves the necessary code snippets from the C-KG, maps the inputs and outputs between models, and executes the sequence to produce the final response.
Evaluation: The MuSE Benchmark
To rigorously evaluate multi-modal agent systems, the authors introduced the MUSE (Multi-modal Sub-task Execution) benchmark. MuSE consists of 100 heterogeneous, real-world user queries categorized by complexity: Single-task, Two-task, and Three-task sequences. It covers 10 distinct domains and involves 15 different models across text, image, and audio modalities.
Key Results and Performance
HIVE demonstrates significant improvements over existing state-of-the-art systems like HuggingGPT and ControlLLM.
- Superior Accuracy: HIVE achieved an overall task selection accuracy of 74%, compared to 57% for HuggingGPT and 43% for ControlLLM.
- Multi-Task Robustness: In complex three-task scenarios, HIVE maintained a 67% success rate, whereas competitors' performance dropped significantly (to 42% or lower).
- Strict Constraint Adherence: HIVE successfully complied with user-defined license and size restrictions in 100% of test cases, a feat where competing systems frequently failed by reverting to "default" preferred models.
Discussion and Future Work
The success of HIVE highlights the value of using formal logic as a "safety rail" for LLMs. By treating the LLM as a translator rather than a planner, the system eliminates hallucinated plans and ensures that the justification for a result is 100% reliable—addressing the "trustworthiness gap" found in pure LLM agents.
However, challenges remain. HIVE still faces difficulties with certain cross-modality tasks, such as image-to-audio transitions. Furthermore, maintaining the C-KG in the face of thousands of weekly model releases is a significant engineering task. Future work will focus on automating C-KG updates and expanding the graph to include model adapters like LoRAs for even more granular planning.
Summary updated