TL;DR
EdgeWise is an edge-cloud collaboration framework that enables long-horizon agents to run efficiently by using a local Small Language Model (SLM) for routine tasks and selectively delegating critical steps to a cloud LLM. By employing a novel step-level reinforcement learning approach, it achieves performance comparable to frontier models while slashing inference costs by up to 62%.
What Problem Does This Paper Address?
Building autonomous agents for "long-horizon" tasks—like fixing complex software bugs or conducting deep research—is computationally expensive. Currently, these agents typically rely on frontier LLMs (like GPT-4 or Claude 3.5) for every single step of a multi-turn trajectory. However, not every step requires "frontier-level" intelligence; many actions, such as navigating a file system or running a simple test, can be handled by much smaller, cheaper models.
The challenge lies in delegation: how do we decide, in real-time and without adding massive overhead, which steps are "critical" enough to justify the cost of a cloud LLM call? Existing routing methods often focus on single-turn queries and fail to scale to the complex, state-dependent nature of long-horizon agentic workflows.
Methods
The authors introduce EdgeWise, which positions a local SLM (e.g., Qwen3.5-9B) as the primary solver. The framework explores two main ways to handle delegation:
- External Judge: A lightweight "critic" model monitors the trajectory and makes binary decisions on whether to delegate the next step based on predefined "key-step" criteria.
- Self-Delegation: This is the paper's core innovation. The SLM is trained to decide for itself when it needs help. This is achieved through a two-stage pipeline:
- SFT Stage: The model learns the basic format of delegation.
- RL Stage: Using Group Relative Policy Optimization (GRPO), the model is fine-tuned with a reward function that balances task success against cloud usage. Crucially, they introduce step-level credit assignment, where a critic model provides token-level feedback to help the SLM identify exactly which steps are high-value for delegation.
Datasets
The researchers evaluated EdgeWise on two challenging coding benchmarks:
- Terminal-Bench 2.1: A benchmark for terminal-based agent tasks.
- SWE-Rebench: A rigorous version of the Software Engineering Benchmark (SWE-bench) designed to evaluate real-world bug fixing.
- SWE-Smith: Used as the primary training dataset for the RL stage.
Key Insights and Ideas
- The "Pareto" of Delegation: You don't need 100% LLM usage to get 100% LLM performance. The authors found that delegating just ~40% of steps—if they are the right steps—is sufficient to match the accuracy of using the cloud LLM for every turn.
- Identify the "Key Steps": Through correlation analysis, the authors discovered that "Write/Edit" actions are the most critical to delegate. Steps like "Wait/Poll" or simple "Read" operations rarely benefit from a larger model.
- RL over SFT: Simply training on "good" trajectories (SFT) isn't enough. The model needs the RL stage to learn the trade-off between cost and performance. Without it, the SLM tends to either over-delegate (wasting money) or under-delegate (failing the task).
Key Results
- Massive Cost Savings: EdgeWise reduced inference costs by 62% on SWE-Rebench and 34% on Terminal-Bench 2.1 while maintaining performance comparable to a pure GPT-5.5 baseline.
- Efficiency: The self-delegation model outperformed several multi-turn routing baselines like RSD and MTRouter.
- Real-World Edge Feasibility: The authors deployed the system on an NVIDIA DGX Spark workstation. The local SLM achieved a throughput of ~11 tokens/s, proving that this "edge-first" architecture is practical for modern hardware.
Limitations and Future Work
While highly effective for coding, the authors acknowledge that EdgeWise has primarily been tested in software engineering domains. Future work is needed to see if these "key-step" patterns hold for other agent types, such as those used for general web browsing or complex data analysis. Additionally, the current RL training relies on a "critic" model (GPT-5.4-mini) to provide step-level signals; finding ways to generate these signals without a proprietary model could further democratize the training process.
Summary updated