Running a frontier coding agent across an 80-turn repository task today means paying flagship cloud rates for ls, cat, pytest, and polling build logs. In EdgeWise: Bringing Long-Horizon Agents to the Edge via Selective Cloud Delegation, 13 researchers from NVIDIA and Rutgers University put exact dollar figures on that waste. On SWE-ReBench, pure cloud GPT-5.5 (xhigh) costs $598.08 for Pass@3 at 63.64% accuracy. Replacing the default loop with a local Qwen3.5-9B model that selectively escalates only critical turns to GPT-5.5 cuts the cloud bill to $283.02 (-52.68%) while lifting Pass@3 accuracy to 66.36% (+2.72%).
The savings widen further on Claude Opus 4.8 (xhigh via Bedrock). EdgeWise drops SWE-ReBench Pass@1 spend from $199.06 to $74.28 (-62.68%) and Pass@3 spend from $584.70 to $221.39 (-62.14%), while on Terminal-Bench 2.1 it matches pure cloud Pass@3 to the decimal (82.02% on GPT-5.5, 75.28% on Opus 4.8) at 34.98% and 32.60% lower cost. Across models and benchmarks, average cloud inference spend falls by 46%.
Write/Edit and cross-file reasoning turns while executing routine shell navigation locally cuts cloud coding-agent API bills by 33% to 63% without surrendering Pass@3 accuracy, provided your workflow tolerates local workstation latency and multi-turn full-history context handoffs.
The Write/Edit Cliff
"Paying GPT-5.5 or Claude Opus to run pytest and grep directory trees does not buy safety margin: across 2,400 coding trajectories, escalating Test/Validate steps correlates negatively with task success."
Most multi-model routers fail on coding agents because they treat a repository task like a single question. Query-level routers such as RouteLLM or Eagle decide before step 1 whether a prompt looks hard or easy. Long-horizon software engineering does not behave that way: a single issue weaves together dozens of trivial shell inspections alongside a handful of fragile multi-file edits.
To isolate where frontier capacity actually moves pass rates, NVIDIA Research audited 2.4k coding-agent trajectories under controlled random delegation budgets, grouping every action into six categories and computing within-group Pearson correlations (r) between cloud coverage and binary task success (with 95% cluster-bootstrap confidence intervals).
The gap is stark. Write/Edit is the lone action category whose cloud coverage reliably predicts whether an agent solves the ticket (r = +0.200, 95% CI [+0.099, +0.297]). Successful runs devote +9.4 percentage points more cloud coverage to Write/Edit steps on Terminal-Bench 2.1 and +5.6 percentage points more on SWE-ReBench than failed runs at the exact same cloud budget. Every other action class sits statistically indistinguishable from zero, or leans negative, as wasting limited cloud turns on Test/Validate (-0.111) or Discover/Navigate (-0.066) crowds out cloud intelligence where code actually changes.
Randomly delegating 40% of steps proves the same point from the opposite angle: some random placements match pure cloud execution while cutting cost by at least 25%, whereas bad placements crater pass rates. Where you spend cloud tokens matters more than how many you buy.
Inside the Numbers: EdgeWise vs. Pure Cloud and Routing Baselines
NVIDIA evaluates two EdgeWise architectures against pure-cloud Vanilla LLMs, Random Delegation, and three multi-turn routing baselines (RSD, STEER, and MTRouter) across an 80-turn cap on Terminus-2:
- Binary Delegation (Training-Free): An external judge (GPT-5.4-mini) inspects the full trajectory history after each step and routes the next step to either the local SLM or the cloud LLM. Judge API spend is folded into the total cost below.
- Self-Delegation (
EdgeWise-9B): No external router runs at inference time. NVIDIA trains Qwen3.5-9B via two stages on SWE-Smith: 2K supervised fine-tuning trajectories (generated by GPT-5.5 to teach delegation syntax) followed by 175 steps of GRPO reinforcement learning on 40 NVIDIA A100 80GB GPUs (batch size 8, 16 rollouts per example, paired with Kimi-K3 as training LLM and GPT-5.4-mini as a step-level critic).
| Benchmark & Method (Qwen3.5-9B Local SLM) | GPT-5.5 Pass@1 | GPT-5.5 Cost (P@1) | GPT-5.5 Pass@3 | GPT-5.5 Cost (P@3) | Opus 4.8 Pass@1 | Opus 4.8 Cost (P@1) | Opus 4.8 Pass@3 | Opus 4.8 Cost (P@3) |
|---|---|---|---|---|---|---|---|---|
| Terminal-Bench 2.1: Vanilla Cloud LLM | 74.16% | $90.31 | 82.02% | $279.73 | 67.42% | $64.78 | 75.28% | $187.72 |
| Terminal-Bench 2.1: Random Delegation | 66.29% | $74.34 | 79.78% | $209.13 | 58.42% | $54.00 | 67.42% | $158.18 |
| Terminal-Bench 2.1: RSD | 62.92% | $45.61 | 78.65% | $133.25 | 53.93% | $28.09 | 61.80% | $82.39 |
| Terminal-Bench 2.1: STEER | 66.29% | $61.81 | 79.78% | $176.50 | 53.93% | $41.74 | 62.92% | $130.10 |
| Terminal-Bench 2.1: MTRouter | 68.54% | $73.55 | 80.90% | $216.30 | 60.67% | $51.47 | 71.91% | $160.13 |
| Terminal-Bench 2.1: Binary Delegation | 71.91% | $59.16 | 82.02% | $195.63 | 66.29% | $58.16 | 79.78% | $168.19 |
| Terminal-Bench 2.1: Self-Delegation | 71.91% | $56.96 | 82.02% | $181.88 | 64.04% | $42.98 | 75.28% | $126.53 |
| SWE-ReBench: Vanilla Cloud LLM | 56.36% | $200.50 | 63.64% | $598.08 | 60.00% | $199.06 | 69.09% | $584.70 |
| SWE-ReBench: Random Delegation | 50.00% | $138.38 | 62.73% | $455.54 | 50.90% | $132.17 | 60.00% | $398.70 |
| SWE-ReBench: RSD | 39.03% | $98.49 | 52.73% | $313.09 | 46.36% | $155.26 | 64.55% | $465.72 |
| SWE-ReBench: STEER | 48.18% | $125.90 | 60.00% | $383.63 | 51.82% | $141.01 | 66.36% | $431.38 |
| SWE-ReBench: MTRouter | 48.18% | $180.11 | 62.73% | $536.45 | 49.09% | $175.20 | 60.00% | $540.90 |
| SWE-ReBench: Binary Delegation | 55.45% | $127.20 | 66.36% | $372.60 | 47.27% | $127.63 | 60.91% | $357.07 |
| SWE-ReBench: Self-Delegation | 58.18% | $97.80 | 66.36% | $283.02 | 57.27% | $74.28 | 66.36% | $221.39 |
Source: NVIDIA Research arXiv:2610.17560 Table 1 (80-turn limit, Terminus-2 harness). Costs reflect cloud LLM API input/output billing plus external judge fees for Binary Delegation; local SLM compute is excluded.
Three structural findings stand out immediately:
- Hybrid beats pure cloud on SWE-ReBench + GPT-5.5: Self-Delegation beats pure GPT-5.5 on both Pass@1 (58.18% vs. 56.36%, +1.82%) and Pass@3 (66.36% vs. 63.64%, +2.72%) while cutting spend by 51.22% and 52.68%. Binary Delegation even pushes Opus 4.8 Pass@3 on Terminal-Bench 2.1 up to 79.78% versus Vanilla Opus 4.8’s 75.28%. The paper attributes that lift to mitigated overthinking and broader trajectory diversity across multi-attempt rollouts.
- Existing confidence routers collapse on hard codebases: RSD looks cheap on Terminal-Bench 2.1 ($45.61), yet plunges -17.33 points below pure GPT-5.5 on SWE-ReBench Pass@1 (39.03% vs. 56.36%). MTRouter burns $536.45 on SWE-ReBench Pass@3 (barely cheaper than pure GPT-5.5) while still losing accuracy.
- Zero-shot transfer across unseen agent harnesses holds: Even though
EdgeWise-9Bwas trained solely on Terminus-2 (and with Kimi-K3 during RL), transferring the exact same checkpoint to three unseen harnesses on Terminal-Bench 2.1 (with GPT-5.5 xhigh) cuts Pass@3 costs by 25.09% to 46.32%: OpenHands drops from $267.82 to $200.84 (-25.09%, 75.28% vs. 78.65%), Pi drops from $298.87 to $221.35 (-25.94%, 76.40% vs. 79.78%), and Mini-SWE-Agent plunges from $303.88 to $163.12 (-46.32%, 80.90% vs. 83.15%).
Why Naive Local Models and SFT Routers Fail
A natural skepticism for hardware buyers is whether you even need specialized RL: why not just fine-tune a stronger 9B model locally or let a prompt-engineered model ask for help? NVIDIA’s ablation tables dismantle that shortcut.
| Training / Judge Configuration (Terminal-Bench 2.1, GPT-5.5 xhigh) | Pass@1 Acc. | Total Cloud Cost | Write/Edit Share | Avg. Cloud Calls / Task | Key Mechanism Finding |
|---|---|---|---|---|---|
| Vanilla Qwen3.5-9B (Local Only) | 19.10% | $0.00 | 0% | 0.00 | Local 9B alone stalls far behind frontier |
| Vanilla + GRPO + SFT Delegation | 32.58% | Unreported | Unreported | Unreported | Smarter local coding still cannot route well |
| SFT-Only Delegation Model | 57.30% | $53.22 | Unreported | Unreported | Learns format, over-delegates (71.3% start) |
| RL w/o Token Advantage (Std GRPO) | 65.17% | $55.05 | 29.20% | 8.97 | Wastes 40.73% of cloud calls on Read/Search |
| EdgeWise Self-Delegation (Token Adv.) | 71.91% | $56.96 | 42.82% | 5.80 | Fewer calls, higher precision on edits |
| Binary Judge: Qwen3.5-9B (Local) | 50.56% | $62.11 | Unreported | Unreported | 9B model is too weak to judge itself |
| Binary Judge: Qwen3.8-27B (Local, $0) | 70.79% | $75.74 | Unreported | Unreported | Open-weight 27B judge works with $0 judge fee |
| Binary Judge: GPT-5.4-mini ($5.77) | 71.91% | $59.16 | Unreported | Unreported | Tightest judge saves $16.58 net vs. 27B |
Source: NVIDIA Research arXiv:2610.17560 Tables 2, 3, 4, and 5. In Table 6, swapping Qwen3.5-9B for TMax-9B (28.09% local Pass@1) under Binary Delegation matches pure GPT-5.5 exactly at 74.16% Pass@1 while cutting cost 30.6% ($62.64 vs. $90.31).
Look closely at the middle two rows. Without step-level token advantage, standard GRPO assigns the exact same reward signal to every token in a trajectory, so the model calls GPT-5.5 8.97 times per task, wasting 40.73% of its cloud escalations on routine Read/Search steps and landing at 65.17%. Turning on step-level delegation advantage (+1.0 when SLM and critic agree on a critical step, -1.0 on disagreement) cuts average cloud calls from 8.97 down to 5.80, lifts Write/Edit share from 29.20% to 42.82%, drops Read/Search share to 32.11%, and raises Pass@1 to 71.91%. Across the 175-step RL run, the cloud routing ratio starts at 71.3% post-SFT, drops as low as 21.9%, and settles near 42.1% as SLM-critic agreement crosses 90%.
Two practical context rules emerge from Section 4.3 as well. First, do not aggressively compress history before handing off to the cloud LLM: passing Full History delivers the top accuracy (71.91% at $59.16), whereas stripping down to recent turns or a single previous step drops performance sharply. The one viable trim is No SLM Reasoning (keeping executed shell commands and terminal outputs while stripping the small model’s internal chain-of-thought), which holds second-best accuracy at lower token volume. Second, keep the local model’s unverified reasoning out of the judge’s prompt: feeding the judge raw Full History beats Full History plus the SLM’s current analysis because an erroneous local hypothesis biases the judge into skipping necessary escalations.
The Costs That Don’t Show Up on Spec Sheets: Real DGX Spark Hardware Telemetry
Most hybrid-AI papers stop at datacenter GPUs and pretend local inference is free and instantaneous. Credit to NVIDIA’s authors: Appendix G.2 puts the actual desktop hardware telemetry on the table.
Deploying EdgeWise-9B (Qwen3.5-9B) on a single NVIDIA DGX Spark workstation using vLLM 0.19.1 in BF16 precision (gpu_memory_utilization = 0.65) reserves 78.7 GB of unified memory at runtime (16.8 GiB for model weights and 57.1 GiB for the KV cache). On real tasks, DGX Spark mirrors datacenter A100 economics almost dollar-for-dollar:
- Terminal-Bench 2.1 (Pass@3): 80.9% accuracy at $164.75 cloud API spend on DGX Spark (versus 82.02% at $181.88 on A100, and 82.02% at $279.73 for pure cloud GPT-5.5).
- SWE-ReBench (Pass@3): 64.55% accuracy at $274.66 cloud API spend on DGX Spark (versus 66.36% at $283.02 on A100, and 63.64% at $598.08 for pure cloud GPT-5.5).
Here is the physical bottleneck buried on page 15: vLLM averaged 11.19 tokens/s in BF16 on DGX Spark. At that decode pace across multi-turn agent loops, Terminal-Bench 2.1 tasks took an average of 11.72 minutes (8.30 minutes median) end-to-end. On an unattended CI runner, nightly PR bot, or parallelized batch sweep, 8 to 12 minutes per repository ticket is completely acceptable when your API bill drops roughly 50%. For a senior engineer sitting interactively in a terminal watching tokens stream, 11.19 tokens/s feels painfully slow unless you move from BF16 down to quantized FP8/INT4 weights or run the 9B SLM on higher-bandwidth discrete VRAM.
What AI Engineering Teams and Hardware Buyers Should Do Right Now
- High-volume coding-agent teams (Immediate deployment without RL): Implement EdgeWise’s training-free Binary Delegation pattern today. Run a local 9B SLM (such as Qwen3.5-9B or TMax-9B) for shell exploration, file reads, and
pytestloops, pair it with a lightweight judge (GPT-5.4-mini or a local Qwen3.8-27B if you want $0.00 judge spend), pass Full History (or strip only the SLM’s internal reasoning), and tune the delegation thresholdtaubetween 0.2 and 0.4 (roughly 50.42% to 53.46% cloud routing, dropping to 28.13% attau = 0.8). - Local workstation & Mini PC buyers: Do not buy a high-capacity unified-memory box purely to run a 9B model in unquantized BF16 at 11.19 tokens/s. A 9B model needs just 16.8 GiB in BF16, so quantized weights plus generous KV cache fit comfortably on mainstream discrete GPUs at far higher memory bandwidth, while larger unified-memory systems shine when hosting both a local 27B judge (
Qwen3.8-27B) and a local solver simultaneously. Cross-check real local tok/s and hardware pricing on The Benchmarque Hardware Benchmarks, Can It Run, and Live Market Pricing. - Solo developers on flat-rate monthly subscriptions: Keep your flat-rate cloud plan for interactive coding until metered API overage bills clear hundreds of dollars per month. EdgeWise’s 33% to 63% reduction targets metered API fleets, CI test-fixers, and autonomous multi-rollout pipelines where every unnecessary frontier turn lands directly on an invoice.
Frequently Asked Questions
How much does NVIDIA EdgeWise actually cut coding-agent cloud API costs?
In NVIDIA Research’s Table 1 evaluation (80-turn limit, Terminus-2 harness), EdgeWise Self-Delegation reduces SWE-ReBench cloud API costs by 51.22% to 52.68% with GPT-5.5 xhigh ($97.80 vs. $200.50 Pass@1; $283.02 vs. $598.08 Pass@3) and 62.14% to 62.68% with Claude Opus 4.8 xhigh ($74.28 vs. $199.06 Pass@1; $221.39 vs. $584.70 Pass@3). On Terminal-Bench 2.1, Pass@3 costs drop 34.98% with GPT-5.5 and 32.60% with Opus 4.8 while matching pure-cloud Pass@3 accuracy (82.02% and 75.28%).
Why does EdgeWise beat pure GPT-5.5 on SWE-ReBench despite using a local 9B model?
On SWE-ReBench with GPT-5.5 (xhigh), EdgeWise-9B scores 58.18% Pass@1 (+1.82%) and 66.36% Pass@3 (+2.72%) versus pure cloud GPT-5.5’s 56.36% and 63.64%. NVIDIA’s researchers attribute the gain to keeping the cloud model focused on critical Write/Edit steps (r = +0.200), which curbs frontier overthinking on routine shell steps and increases exploration diversity across Pass@3 rollouts.
How fast does EdgeWise run on a real NVIDIA DGX Spark workstation?
Per Appendix G.2 of arXiv:2610.17560, deploying Qwen3.5-9B in BF16 via vLLM 0.19.1 (gpu_memory_utilization = 0.65) reserves 78.7 GB of unified memory (16.8 GiB weights and 57.1 GiB KV cache) and averages 11.19 tokens/s, resulting in 11.72 minutes average (8.30 minutes median) end-to-end completion time on Terminal-Bench 2.1 while preserving roughly 50% cloud API savings ($164.75 on TB2.1 and $274.66 on SWE-ReBench).
Primary Sources
- NVIDIA Research (Shi et al.): EdgeWise: Bringing Long-Horizon Agents to the Edge via Selective Cloud Delegation (arXiv:2610.17560)
- NVIDIA Research Lab Project Page: EdgeWise Edge-Cloud Collaboration Framework
- arXiv Full Paper PDF: EdgeWise v2 Including Tables 1–7 and Appendix G.2 DGX Spark Deployment
- NVIDIA DGX Spark Developer Platform Documentation