Automated Composition of Agents: A Knapsack Approach for Agentic Component Selection
Abstract
A structured, automated framework inspired by the knapsack problem optimizes agentic system composition by considering performance, budget, and compatibility, achieving higher success rates at lower costs.
Designing effective agentic systems requires the seamless composition and integration of agents, tools, and models within dynamic and uncertain environments. Most existing methods rely on static, semantic retrieval approaches for tool or agent discovery. However, effective reuse and composition of existing components remain challenging due to incomplete capability descriptions and the limitations of retrieval methods. Component selection suffers because the decisions are not based on capability, cost, and real-time utility. To address these challenges, we introduce a structured, automated framework for agentic system composition that is inspired by the knapsack problem. Our framework enables a composer agent to systematically identify, select, and assemble an optimal set of agentic components by jointly considering performance, budget constraints, and compatibility. By dynamically testing candidate components and modeling their utility in real-time, our approach streamlines the assembly of agentic systems and facilitates scalable reuse of resources. Empirical evaluation with Claude 3.5 Sonnet across five benchmarking datasets shows that our online-knapsack-based composer consistently lies on the Pareto frontier, achieving higher success rates at significantly lower component costs compared to our baselines. In the single-agent setup, the online knapsack composer shows a success rate improvement of up to 31.6% in comparison to the retrieval baselines. In multi-agent systems, the online knapsack composer increases success rate from 37% to 87% when agents are selected from an agent inventory of 100+ agents. The substantial performance gap confirms the robust adaptability of our method across diverse domains and budget constraints.
Community
Designing effective agentic systems requires the seamless composition and integration of agents, tools, and models within dynamic and uncertain environments.
Most existing methods rely on static, semantic retrieval approaches for tool or
agent discovery. However, effective reuse and composition of existing components
remain challenging due to incomplete capability descriptions and the limitations
of retrieval methods. Component selection suffers because the decisions are not
based on capability, cost, and real-time utility. To address these challenges, we
introduce a structured, automated framework for agentic system composition that
is inspired by the knapsack problem. Our framework enables a composer agent to
systematically identify, select, and assemble an optimal set of agentic components
by jointly considering performance, budget constraints, and compatibility. By dynamically testing candidate components and modeling their utility in real-time, our
approach streamlines the assembly of agentic systems and facilitates scalable reuse
of resources. Empirical evaluation with Claude 3.5 Sonnet across five benchmarking datasets shows that our online-knapsack-based composer consistently lies on
the Pareto frontier, achieving higher success rates at significantly lower component
costs compared to our baselines. In the single-agent setup, the online knapsack
composer shows a success rate improvement of up to 31.6% in comparison to the
retrieval baselines. In multi-agent systems, the online knapsack composer increases
success rate from 37% to 87% when agents are selected from an agent inventory of
100+ agents. The substantial performance gap confirms the robust adaptability of
our method across diverse domains and budget constraints.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- AutoMaAS: Self-Evolving Multi-Agent Architecture Search for Large Language Models (2025)
- Difficulty-Aware Agentic Orchestration for Query-Specific Multi-Agent Workflows (2025)
- JoyAgent-JDGenie: Technical Report on the GAIA (2025)
- AgentArch: A Comprehensive Benchmark to Evaluate Agent Architectures in Enterprise (2025)
- AgentX: Towards Orchestrating Robust Agentic Workflow Patterns with FaaS-hosted MCP Services (2025)
- ProSEA: Problem Solving via Exploration Agents (2025)
- EnvX: Agentize Everything with Agentic AI (2025)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper