TL;DR
The authors introduce EC2-Bench, the first benchmark designed to evaluate how edge-side LLM agents can effectively collaborate with powerful cloud models during complex, multi-step tasks. Their systematic study reveals that as edge models become more capable, the optimal collaboration strategy shifts from external routing to edge-controlled "advisory" modes, offering a superior balance of performance, cost, and privacy.
What Problem Does This Paper Address?
Deploying Large Language Model (LLM) agents on edge devices (like phones or laptops) is a balancing act. Edge models are fast and keep data local but often lack the "brainpower" for complex reasoning. Cloud models are brilliant but expensive and raise significant privacy concerns.
While prior research focused on "one-shot" routing—deciding whether to send a single query to the cloud or the edge—real-world agents operate in long-horizon scenarios. They take multiple steps, use tools, and interact with environments over time. In these cases, cloud participation isn't a one-time choice; it's interleaved throughout the execution. This paper addresses the lack of a systematic understanding of how these interleaved "trajectory-level" effects impact task success, resource consumption, and privacy.
Methods
The researchers formalize edge-cloud collaboration and evaluate four distinct strategies:
- Query Routing: An external router decides at the very beginning whether the entire task should be handled by the edge or the cloud.
- Per-step Routing: An external router evaluates the situation at every step of the agent's trajectory, switching between models as needed.
- Edge-Controlled Delegation: The edge model itself decides when it's "stuck" and uses a tool to let the cloud model take the next action.
- Edge-Controlled Advisory: The edge model remains in the driver's seat but can ask the cloud for a plan or advice, which it then executes itself.
To measure Privacy Exposure, the authors developed a novel metric that quantifies the fraction of sensitive "workspace units" (like passwords or private emails) that are sent to the cloud during these interactions.
Datasets
The authors introduce EC2-Bench, a suite of 128 executable agent tasks.
- Sources: It curates tasks from six existing benchmarks (including Claw-Eval and WildClawBench) covering office work, data analysis, and automation.
- Curation: They filtered for "informative" tasks—those too hard for tiny edge models but solvable by cloud models—to ensure the benchmark actually tests collaboration.
- Privacy Annotations: 100 tasks were augmented with synthetic but realistic sensitive information (e.g., PII, credentials) to evaluate privacy risks.
Key Insights and Ideas
- The Collaboration "Sweet Spot": Collaboration isn't just a linear trade-off. Several strategies achieved higher performance than a simple mathematical interpolation between edge-only and cloud-only execution, suggesting that "knowing when to ask for help" provides a synergistic boost.
- Performance Converges, Privacy Diverges: As edge models (like Qwen3.5-27B) get stronger, the performance gap between different collaboration strategies shrinks. However, the privacy cost remains highly sensitive to the strategy. This means for future powerful edge devices, the choice of collaboration mode will be driven by privacy, not just capability.
- The Shift in Control: There is a clear "evolutionary" path for edge agents. Weaker edge models benefit most from external routing (letting a smarter system decide for them). Stronger edge models perform best with edge-led advisory (deciding for themselves when they need a second opinion).
Key Results
The study used the Qwen series as edge models and GLM-5.3 as the cloud model.
- Efficiency Gains: For the smallest model (Qwen3.5-2B), per-step routing boosted completion rates from 12.75% to 39.97% while using only 22.7% of the cloud tokens required for a cloud-only approach.
- Closing the Gap: The strongest collaborative configuration (Qwen3.7-Plus with Advisory) reached 76.84% completion, nearing the cloud-only performance of 82.70%.
- Privacy Protection: Edge-controlled delegation was found to be significantly more "private" than per-step routing, as the edge model only sends context when it specifically identifies a need, rather than an external router potentially leaking data at every step.
Limitations and Future Work
The authors acknowledge a few key areas for growth:
- Fixed Cloud Model: Most experiments used a single primary cloud model; while they tested alternatives, the dynamics might change with even more specialized "frontier" models.
- Synthetic Privacy: While validated, the privacy exposure is measured against synthetic annotations. Real-world "sensitive data" can be more nuanced and harder to detect.
- Multi-Agent Complexity: The current framework focuses on one edge and one cloud model. Future work could explore "hierarchical" collaboration involving multiple edge devices or specialized cloud experts.
The code and benchmark are available at https://github.com/OpenBMB/EC2-Bench.
Summary updated