SquidAgent: Parallelize Wisely, Coordinate Efficiently

Yexiong Lin, Shanshan Ye, Yu Yao, Zhen Fang, Bo Han, Tongliang Liu

TL;DR

SquidAgent is a cost-aware framework that solves the "parallelism paradox" in LLM multi-agent systems—where adding more agents often makes a task slower. By using predicted token counts as a reliable proxy for execution time and minimizing coordination overhead through context inheritance, it achieves a 2.6× wall-time speedup over single-agent baselines while maintaining top-tier output quality.

What Problem Does This Paper Address?

We often assume that in multi-agent systems, "many hands make light work." If a task can be broken into independent subtasks, running them in parallel should be faster. However, the authors identify a frustrating reality: existing parallel multi-agent systems are frequently slower than a single, sequential agent.

They attribute this to two "hidden costs":

  1. Re-exploration Cost: Parallel workers often waste effort reconstructing the context, decisions, and constraints that the "orchestrator" agent already knows.
  2. Alignment Cost: When agents work independently, their outputs often clash (e.g., using different variable names or conflicting formatting), requiring a slow "review and fix" stage at the end.

As shown in the comparison below, naive parallelism can actually result in a higher total "token cost" than simple sequential execution.

Figure 1: Comparison of two execution strategies on a task with four subtasks. (a) Sequential: a single agent executes all tasks one by one with no overhead. (b) Naive parallel: workers run concurrently but incur re-exploration cost (orange: orchestrator planning plus per-worker rediscovery of shared context) and alignment cost (red: fixing conflicts between independently produced outputs), making the total time exceed the sequential baseline.

Methods

SquidAgent introduces a principled way to decide when to parallelize and how to do it efficiently.

  • The Token-Cost Criterion: The authors found that LLMs are terrible at estimating how many minutes a task will take (they tend to guess based on human-work scales), but they are surprisingly good at predicting how many tokens they will output. SquidAgent uses these token estimates to calculate a "parallelization ratio." It only parallelizes a layer of tasks if the predicted parallel cost (the longest task + overhead) is significantly lower than the serial cost (the sum of all tasks).
  • Context Forking: To kill the re-exploration cost, SquidAgent "forks" the worker agents directly from the orchestrator’s session state. This allows workers to inherit all prior reasoning and global decisions for free.
  • Upfront Convention Planning: Instead of fixing inconsistencies after they happen, the orchestrator generates a "shared convention block" before workers start. This turns the unpredictable cost of post-hoc alignment into a bounded, upfront planning cost.
  • Deterministic Scheduling: A simple Python-based scheduler applies these rules layer-by-layer to a Directed Acyclic Graph (DAG) of tasks, ensuring the system only chooses parallelism when it is mathematically likely to win.

Datasets

The researchers evaluated SquidAgent on a suite of 9 complex evaluation tasks designed to test coordination:

  • Heavy Tasks (8–27 files): Including PixelCraft (a Pygame survival game), ShopFlow (a full-stack e-commerce app), and ClimateAnalysis (data scripts and reports).
  • Medium Tasks (6–10 files): Including LinAlgBook (a math tutorial) and CloudDocs (API documentation).
  • External Transfer: They also tested the system on tasks from the existing Flow framework (e.g., conference website design) to ensure the results weren't limited to their own benchmarks.

Key Insights and Ideas

  • Tokens are the "Gold Standard" for LLM Time: The most surprising insight is that LLMs are better at predicting their own "artifact size" (tokens) than their "process duration" (time). This provides a backend-independent way to schedule agentic workflows.
  • Implicit vs. Explicit Dependencies: Most agent frameworks only care about explicit dependencies (Task B needs the output of Task A). SquidAgent highlights implicit dependencies—shared style, naming, and logic—that are the true killers of parallel efficiency.
  • The Safety Margin ($\alpha$): Because LLM estimates are noisy, the authors use a safety margin (defaulting to 1.9). This ensures the system defaults to reliable serial execution unless the predicted parallel speedup is nearly 2x, protecting the user from "risky" parallelization that might end up slower.

Key Results

SquidAgent consistently outperformed both single-agent and multi-agent baselines across all metrics:

  • Throughput: Achieved a 2.2× mean throughput improvement over Claude Code and a 2.0× improvement over the strongest multi-agent baseline, AgentConductor.
  • Speed: Delivered a 2.6× mean wall-time speedup compared to sequential execution.
  • Quality: Despite the speed, it maintained a quality score of 98.2%, actually slightly higher than the single-agent Claude Code baseline (97.1%).
Table 1: Deliverable throughput (words/s) across 9 evaluation tasks. Computed as deliverable output divided by wall time. Higher is better. Bold indicates the best result per task.

Limitations and Future Work

While highly effective, the authors note a few areas for improvement:

  • Non-Token Latency: The current token-based proxy doesn't account for time spent on tool execution, API calls, or web searches, which can vary wildly.
  • Coarse Granularity: The scheduler makes a single "all-or-nothing" decision for an entire layer of tasks. A finer-grained approach might allow some tasks in a layer to run in parallel while others stay serial.
  • Fixed Safety Margin: The safety margin $\alpha$ is currently a global constant. Future versions could use confidence-aware margins that adapt based on how certain the LLM is about its token estimates.

Summary updated

BibTeX
@inproceedings{lin2026squidagent,
  author = {Yexiong Lin and Shanshan Ye and Yu Yao and Zhen Fang and Bo Han and Tongliang Liu},
  title = {{SquidAgent: Parallelize Wisely, Coordinate Efficiently}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=5ISO2WDCul},
}
Figure