PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
March 16, 20260 citationsOpen Access

DAG and Topological sort to reduce unnecessary reasoning by LLMs

View Full Paper
HMHrishikesh Maluskar

Key Points

  • The aim is to enhance the efficiency of task execution in multi-agent AI systems by restructuring the orchestration process.
  • Developed the OctaMind system architecture
  • Replaced traditional ReAct loop with a deterministic planning approach
  • Utilized directed acyclic graph (DAG) and Kahn's topological sort for task sequencing
  • Implemented a two-level design for macro and micro task planning
  • Reduced LLM calls by 58–85% on multi-step workflows
  • Topological sort execution time averaged under 0.1 ms
  • Achieved a planning success rate of approximately 98% for single-agent tasks

Abstract

This paper presents a novel orchestration architecture for multi-agent AI systems, specifically the OctaMind system. It replaces the traditional iterative ReAct loop with a "plan once, sort, execute deterministically" pattern. By invoking an LLM exactly once to construct a Directed Acyclic Graph (DAG) and using Kahn's topological sort for sequencing, the system reduces orchestration LLM calls by up to 70% on complex tasks. The architecture features a two-level design: a macro-DAG planner for routing tasks across heterogeneous agents and a micro-DAG engine for individual tool calls within sub-agents. Performance Metrics: Reduces LLM calls by 58–85% on multi-step workflows. Topological sort time: <0.1 ms. Planning success rate for single-agent tasks: ~98%.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Hrishikesh Maluskar (2026) studied this question.

synapsesocial.com/papers/69b79ea18166e15b153ac47bhttps://doi.org/10.5281/zenodo.19023191
Ask AI
Helpful
Bookmark
Share
View Full Paper