Introduction
While Large Language Models (LLMs) have demonstrated remarkable capabilities across various domains, they often encounter a "capability ceiling" when tasked with complex, multi-step reasoning or specialized domain requirements. The prevailing solution is the development of LLM Agent Networks (LANs), where multiple specialized agents collaborate to solve sub-tasks. However, designing these networks is traditionally a manual, labor-intensive process requiring developers to decompose tasks, estimate individual agent capabilities, and engage in extensive trial-and-error debugging of prompts and interconnections.
To address this, we present EasyLAN, a human-computer collaborative tool designed to grow a network organically from a few examples. Rather than requiring an upfront architectural design, EasyLAN allows developers to start with a single agent and iteratively evolve it into a sophisticated multi-agent system through automated gap analysis and human-in-the-loop refinement.
The EasyLAN Framework
EasyLAN operates on a "few-example-driven" paradigm, following an iterative loop to bridge the gap between current network capabilities and task requirements.
- Initialization: The process begins with a single "naive" agent based on a high-level task description.
- Gap Analysis: For each training example, EasyLAN compares the current LAN's output to the ground truth to identify performance deficiencies.
- Root Cause Identification: An LLM-powered pipeline categorizes errors—such as missing agents, incorrect triggering, or lack of domain knowledge.
- Update Strategies: Based on the identified error, the system suggests architectural changes: adding new agents for novel sub-tasks, splitting complex agents into sequential or parallel steps, updating internal knowledge (Control or Execution modules), or creating new data flows.
- Human-in-the-Loop Collaboration: Developers supervise these updates, editing suggested JSON configurations or providing natural language hints (e.g., "translate the text literally before applying a rhyming polish").
Experimental Evaluation
We evaluated EasyLAN across four distinct NLP tasks: Grammatical Error Detection, Chinese-English Translation (focusing on metaphors and rhymes), Sentence Compression, and Chinese Couplet Generation. The study utilized 16 examples per task (8 for training, 8 for testing) and involved 12 participants comparing EasyLAN against a manual baseline.
Key Results
The evaluation demonstrated that EasyLAN significantly enhances both developer productivity and network performance:
- Efficiency: Reduced interaction time by 39.3% compared to manual design.
- Performance: Achieved a 39.8% improvement in task performance scores.
- Reduced Friction: Users performed 60.5% fewer physical interactions (clicks/typing), indicating that the tool effectively "amplifies" human effort.
Discussion and Key Insights
EasyLAN introduces a critical distinction between W-Knowledge ("what actions to take"), represented by the network's Directed Acyclic Graph (DAG) structure, and H-Knowledge ("how to execute actions"), handled via internal prompts. By balancing these, the tool allows for a dynamic architecture where every agent includes a Control Module (CM) to decide its own relevance to a specific input.
One of the most significant findings is the "amplification" of user action: the actual architectural change in the LAN was found to be 6.48 times greater than the manual editing distance provided by the user. This suggests that small, high-level human hints can lead to large, correct shifts in AI architecture.
Limitations and Future Work
Currently, EasyLAN is limited to Directed Acyclic Graphs (DAGs), precluding tasks that require recursion. Additionally, the tool does not yet feature continuous learning across different sessions or tasks. Future research will explore autonomous training data generation to stress-test networks and methods to handle tasks that fall below the current minimum granularity of LLM capabilities.
Summary updated