TL;DR
EvolveNet is a novel collaborative framework that allows distributed LLM agents to self-improve by evolving their "harness"—the control code surrounding the model—without centralizing private user data. By shifting the aggregation boundary from raw workloads to learned code adaptations, EvolveNet enables parallel, decentralized optimization and successfully merges conflicting code changes into a single, highly capable agent.
What Problem Does This Paper Address?
The performance of a Large Language Model (LLM) agent depends heavily on its harness: the surrounding Python program that manages prompts, chains tool calls, validates intermediate outputs, and handles runtime errors. Recent research shows that automatically evolving this harness code can dramatically improve an agent's capabilities without touching the underlying model weights.
However, existing harness evolution methods are strictly centralized. They assume all user queries, execution traces, and error logs can be funneled into a single central optimizer. In the real world, this assumption fails: data is naturally siloed across different users, organizations, and secure environments due to privacy, legal, or logistical constraints. EvolveNet tackles this dilemma: How can distributed agents collaboratively learn from each other's distinct operational experiences without pooling their private data?
Methods
EvolveNet flips the traditional "pool data, then optimize" pipeline into an evolve-locally, then-aggregate cycle.
- Broadcast: Each round begins with a central server broadcasting a common "shared harness" to multiple data-local clients.
- Local Evolution: Each client independently runs an evolutionary search to optimize the harness against its own local, private workload.
- Delta & Evidence Extraction: Instead of sending back raw data or entire files, clients return a code diff (common-base program delta) along with behavioral evidence—a precise record of which specific evaluation items were newly solved or broken by their edits.
- Scope-Typed Aggregation: Merging code is fundamentally different from averaging neural network weights; you cannot mathematically "average" two Python programs. EvolveNet uses an LLM-based aggregator to categorize code changes into two scopes:
GLOBAL: Applied universally if the change fixes a domain-independent failure mode (like general output formatting).HOME-SCOPED: Conditioned on a specific domain if the fix is highly localized (like a database-specific schema tweak).
This scoping mechanism elegantly dissolves code conflicts: if two clients modify the same control path in opposite ways, EvolveNet retains both by wrapping them in conditional domain guards (if domain == X:).
- Behavioral Gating: Before committing the newly merged harness, the server validates it against a validation slice. The update is committed only if the number of newly solved items outweighs any regressions.
Datasets
The authors evaluated EvolveNet across five diverse benchmarks, each sharded to simulate distinct client specializations:
- BIRD: Text-to-SQL generation, sharded across different target databases.
- DS-1000: Data science code generation, partitioned by specific Python libraries (e.g., Pandas, NumPy, SciPy).
- LiveCodeBench (LCB): Competitive programming problems, split by difficulty bands.
- SWE-bench Verified: Real-world software engineering problems, split by GitHub repositories.
- ClawEval: Complex agentic workflows executing enterprise tasks.
Key Insights and Ideas
- Code as an Aggregation Space: Code edits interact dynamically through control flow and state. EvolveNet proves that code can serve as an effective decentralized aggregation space, provided that changes are paired with behavioral evidence to guide the merge.
- Dissolving Conflicts via Scoping: Traditional optimization forces a winner-take-all choice when strategies conflict. EvolveNet bypasses this by converting structural conflicts into conditional branches, allowing specialized expertise to coexist within the same program.
- Cross-Domain Generalization: Experience transfers to entirely unseen domains. On the DS-1000 benchmark, the final merged harness significantly improved performance on the PyTorch library, even though none of the clients had access to PyTorch data during local evolution. The global debugging and retry mechanisms discovered on other libraries generalized perfectly.
Key Results
- Substantial Accuracy Boosts: EvolveNet achieved massive improvements over the unevolved baseline across all five settings: +13.4% on BIRD, +13.0% on DS-1000, +33.4% on LiveCodeBench, +20.0% on SWE-bench, and +8.3% on ClawEval.
- True Compositionality: It consistently outperformed a "select-best" baseline (which simply picks the single best client harness). This proves that EvolveNet successfully synthesizes complementary features from different clients rather than just identifying a single winner.
- Reduced Serial Depth: By parallelizing the local search phase across clients, EvolveNet achieved a 1.9× to 5.4× wall-clock speedup for the client phase compared to running those evolutionary searches sequentially.
Limitations and Future Work
- Data Locality $\neq$ Absolute Privacy: Although raw workloads never leave the local client, code changes themselves can sometimes inadvertently leak sensitive information (e.g., an LLM hardcoding a specific database column name into a prompt edit). Developing formal threat models for code-based leakage remains future work.
- Monotonic Code Growth: Because the scope-typed aggregator continuously appends new conditional branches, the shared harness grows monotonically in size (e.g., expanding from 14 lines to 253 lines on BIRD). Future iterations will require size- or latency-aware gating to prune redundant code.
- Validation Data Requirements: The framework still relies on the server having access to a labeled validation slice to gate merges, which is a stricter requirement than standard unsupervised federated learning methods.
Summary updated