arXiv:2610.17560cs.CLOct 2026

Manuscript Offprint

arXiv:2610.17560

EdgeWise: Bringing Long-Horizon Agents to the Edge via Selective Cloud Delegation

Zeru Shi, Jindong Jiang, Ryo Hachiuma, Yonggan Fu, Byung-Kwan Lee, Peter Belcak, Saurav Muralidharan, Ayush Agarwal, Ruixiang Tang, Ambrish Dantrey, Pavlo Molchanov, Anjul Patney, Subhashree Radhakrishnan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Zeru Shi 1†∗^{1\dagger*}, Jindong Jiang ∗^{*}, Ryo Hachiuma, Yonggan Fu, Byung-Kwan Lee, Peter Belcak, Saurav Muralidharan, Ayush Agarwal, Ruixiang Tang 1^{1}, Ambrish Dantrey, Pavlo Molchanov, Anjul Patney, Subhashree Radhakrishnan

NVIDIA

Complex and long-horizon agent tasks often rely on frontier models deployed in the cloud to achieve strong performance. However, using these models for every step of a long-horizon trajectory incurs substantial inference cost, even though not all steps may require the same level of model capability. In this paper, we find that allocating the LLM to only a small subset of key steps can achieve performance comparable to full LLM execution while significantly reducing inference cost. Motivated by this observation, we propose EdgeWise, an edge-cloud collaboration framework that deploys an SLM on the local device as the primary solver and selectively delegates critical steps to a cloud LLM when stronger model capacity is needed. To enable autonomous delegation without additional models at inference time, we introduce a step-level RL method that jointly optimizes task solving and delegation, with fine-grained credit assignment for individual delegation decisions. We also introduce an external judge-based delegation strategy and use it to systematically investigate key design choices in edge-cloud collaboration, including when to delegate, how delegation decisions should be made, what context should be shared, and how frequently the cloud LLM should be invoked. Experiments show that EdgeWise matches or outperforms pure-LLM execution while reducing inference cost up to 62% on SWE-Rebench and 34% on Terminal-Bench 2.1. We further deploy EdgeWise on a local workstation, demonstrating comparable cost savings in a practical edge-cloud setting.

Terminal-Bench 2.1

Qwen3.5-9B + GPT-5.5

Baseline Methods ○ GPT-5.5

Binary Delegation (Ours) ★ Self-Delegation (Ours)

SWE-ReBench

Qwen3.5-9B + GPT-5.5

Figure

Cost ($)

Cost ($)

Distribution of LLM-Handled Steps

Qwen3.5-9B + GPT-5.5

*(The percentages may not sum to 100% due to rounding).

Figure

Types of steps

Figure 1 | The two left figures illustrate the trade-off between Pass@3 performance and inference cost for our method and the baselines across different settings and efforts. The LLM used for the comparison method is GPT-5.5. The right figure further analyzes the delegation behavior of our method by showing the proportions of different types of agent steps that are delegated to the LLM.

1. Introduction

LLM-based agents have achieved strong performance on increasingly complex long-horizon tasks [1, 2, 3]. However, frontier LLMs require substantial computation and are typically served through cloud infrastructure, making it costly to rely on them throughout long-horizon task execution. Importantly, model capability requirements can vary across intermediate steps, and many simpler steps can be handled by smaller models deployed locally. Recent works have explored allocating queries of different difficulty levels to models with varying capabilities. [4, 5, 6, 7]. Beyond single-query routing, Router-R1 [8] and MERA [9] extend model selection to multi-step settings, dynamically determining which model should handle intermediate invocations as the task progresses. However, existing methods still have critical limitations. (1) Limited Long-Horizon Evaluation: As noted by TwinRouterBench [10], most existing methods are evaluated on single-query reasoning or multi-hop QA, leaving real-world long-horizon tasks such as coding and deep research largely unexplored. (2) Model-Pool Dependency: Existing approaches typically rely on additional decision models trained over predefined model pools, making their decisions dependent on spe-

Additional affiliations: 1^{1}Rutgers University. †^{\dagger}Work done during internships at NVIDIA. ∗^{*} means equal contributions. © 2026 NVIDIA. All rights reserved.

Figure

Figure 2 | The upper panel illustrates the overall pipeline of EdgeWise, while the lower panel provides an example of how EdgeWise operates during task execution.

cific model capabilities and potentially less reliable as the model pool evolves.

Motivated by these limitations, as well as recent advances in SLM capabilities and edge computing hardware that make it increasingly practical to deploy capable SLMs directly on local devices, such as the NVIDIA DGX Spark 1^{1}, we consider an edge–cloud setting where a locally deployed SLM serves as the primary solver for long-horizon tasks and selectively leverages a stronger cloud LLM when needed. Based on this setting, we propose EdgeWise, a step-level edge–cloud collaboration framework in which the local SLM continuously interacts with the environment and selectively delegates critical steps to the cloud LLM. We explore two delegation mechanisms: an external judge-based strategy that dynamically determines when the cloud LLM is needed, and a self-delegation strategy that integrates this capability directly into the SLM through step-level RL with fine-grained credit assignment. Beyond these mechanisms, we systematically analyze the key design factors of edge–cloud collaboration, including when to delegate, what context should be shared, and how delegation frequency should be controlled. Our analysis reveals that the benefit of the cloud LLM is concentrated in a small subset of critical steps, enabling EdgeWise to reduce cloud-model usage while preserving the performance of full LLM execution. Experimental results show that our methods, particularly RL-based self-delegation, maintain competitive performance while reducing inference cost by an average of 46% across models and benchmarks. We further validate EdgeWise in a practical edge–cloud deployment, where the locally deployed SLM achieves comparable performance and cost savings. Figure 1 shows the Pass@3–cost trade-off and demonstrates that our method selectively delegates harder steps to the LLM, with further analysis in Appendix E. In summary, our main contributions are as follows:

• We propose EdgeWise, a step-level edge–cloud collaboration framework for long-horizon agents, where an SLM deployed on the local device serves as the primary solver and selectively leverages a stronger cloud LLM when needed.

• We systematically investigate the key design factors of EdgeWise, including when the cloud LLM is needed, how delegation decisions should be made, what context should be shared between local and cloud models, and how frequently the cloud LLM should be invoked. Our analysis reveals that the benefit of the cloud LLM is concentrated in a small subset of critical steps.

• Within EdgeWise, we introduce two cloud delegation mechanisms: external-judge-based delegation and self-delegation. In particular, our step-level RL method with fine-grained credit assignment enables the local SLM to jointly learn task solving and when to leverage the cloud LLM, without an additional decision model at inference time.

• Extensive experiments on long-horizon coding-agent benchmarks demonstrate that our self-delegation method maintains competitive task performance while reducing inference cost by an average of 46% across different LLMs and benchmarks. We further conduct a real-world deployment evaluation, demonstrating the practical feasibility of our edge–cloud collaboration framework for long-horizon agents.

1^{1}/https://build.nvidia.com/spark

Figure

Accuracy–Cost Trade-offs Across Benchmarks

Figure 3 | The leftmost and rightmost points represent Qwen3.5-9B-only and GPT-5.5-only, respectively, with four intermediate LLM usage ratios. The left figure shows accuracy as the LLM ratio increases, while the right reports the corresponding average cost over three runs. Each point is averaged over three runs, with shaded regions indicating standard deviation. This figure shows that, with a cloud usage rate of only around 40%, delegating the right steps to the cloud model achieves performance comparable to the vanilla model while reducing cost.