Skip to content

Commit fa1bfec

Browse files
committed
arch
1 parent 0f7cbce commit fa1bfec

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

ARCHITECTURE.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Advantages of Fractal Star Architecture with Supervisor Compared to Dynamic and Star Architectures
2+
3+
![schema](./assets/fractal-supervisor.png)
4+
5+
The fractal star architecture with a supervisor combines hierarchical organization with a recursive structure, where the supervisor manages the top level, and subordinate agents form their own star-shaped substructures. Below are its advantages compared to dynamic and standard star architectures in the context of AI agents, particularly when a shared chat history is involved.
6+
7+
## Compared to Dynamic Architecture
8+
1. **Simplified Coordination**:
9+
- The fractal architecture maintains hierarchical control through the supervisor and subordinate nodes, simplifying task management and resource allocation compared to the dynamic architecture, where agents autonomously form connections, potentially leading to conflicts or inconsistencies.
10+
- Example: The supervisor can centrally distribute tasks from the shared chat history, whereas in a dynamic architecture, agents must negotiate independently.
11+
12+
2. **Predictable Structure**:
13+
- The fractal structure is fixed at each level, making debugging and monitoring easier compared to the dynamic architecture, where the connection graph constantly changes.
14+
- Example: In a chat system, the supervisor can predetermine which subnode (e.g., a text analysis module) processes a request, while in a dynamic architecture, this is determined ad-hoc.
15+
16+
3. **Reduced Computational Overhead for Connection Management**:
17+
- In a dynamic architecture, agents expend resources to determine and maintain connections (e.g., via graph neural networks). The fractal architecture has a predefined topology, reducing overhead.
18+
- Example: For processing complex chat history requests, the fractal structure immediately routes tasks through levels without recalculating the graph.
19+
20+
4. **Scalability with Retained Control**:
21+
- The fractal architecture allows new substructures (star-shaped clusters) to be added without losing central control, whereas scaling in a dynamic architecture can lead to chaos due to the lack of a single coordinator.
22+
- Example: New agents for specific tasks (e.g., translation) can be easily integrated into a main agent’s substructure.
23+
24+
5. **Clear Escalation Path Without Deflection**:
25+
- Unlike the dynamic architecture, where an agent unable to respond might redirect the query to another agent (acting as a "pass-the-buck" middleman), in the fractal architecture, an agent clearly states when a topic is outside its expertise and escalates the query to the supervisor or appropriate subnode.
26+
- Example: If an agent cannot process a specific request from the chat history, it informs the user or supervisor that the topic is not its domain, ensuring transparency and efficient escalation.
27+
28+
## Compared to Standard Star Architecture
29+
1. **Improved Scalability**:
30+
- The standard star architecture is limited by the number of agents directly connected to the central node, which can lead to overload. The fractal architecture distributes the load across levels, with each main agent managing its own group.
31+
- Example: In a chat system, the supervisor delegates tasks to a main agent (e.g., for text processing), which then distributes subtasks (e.g., tokenization, generation) to its subordinates.
32+
33+
2. **Flexibility at Sublevels**:
34+
- In a standard star architecture, all agents depend on the center, limiting autonomy. The fractal architecture allows subordinate agents to operate within their substructures with local coordination.
35+
- Example: A main agent can independently process part of the chat history without querying the supervisor if the task is local.
36+
37+
3. **Resilience to Overloads**:
38+
- In a standard star architecture, the central node becomes a bottleneck with a high number of requests. The fractal architecture distributes processing across levels, reducing the load on the supervisor.
39+
- Example: The supervisor handles only high-level requests, while detailed chat history analysis is delegated to substructures.
40+
41+
4. **Modularity and Specialization**:
42+
- The fractal architecture enables specialized substructures for different tasks (e.g., text processing, data analysis, generation), whereas in a standard star architecture, all agents are uniform and depend on the center.
43+
- Example: One main agent can manage a substructure for sentiment analysis in the chat, another for response generation.
44+
45+
## Conclusion
46+
The fractal star architecture with a supervisor combines the benefits of centralized control (as in the standard star architecture) and the flexibility of distributed systems (as in the dynamic architecture). It provides scalability, predictability, resilience to overloads, and clear escalation paths, making it particularly suitable for complex AI systems working with a shared chat history, where both global coordination and local autonomy are required.

assets/fractal-supervisor.png

44.4 KB
Loading

0 commit comments

Comments
 (0)