RectifyFlow: Plan Upfront, Rectify Selectively for Cost-Efficient Edge-Cloud Tool-Using Agents
Tool-using agents increasingly rely on cloud LLMs to execute complex multi-step workflows, but repeated LLM calls incur substantial monetary cost. Edge-side small models (SMs) offer a cheaper alternative, yet their weaker reasoning can compromise execution quality. Edge-cloud collaboration therefore promises a better quality--cost trade-off, but existing approaches remain inefficient for tool use: iterative execution triggers frequent cloud interactions, while local decision errors can propagate through dependent operations and cause costly replanning. We propose RectifyFlow, a cost-efficient edge--cloud framework that minimizes cloud involvement while containing edge-side execution errors. First, Dual-View Plan Construction produces structured plans that guide the edge SM through multiple dependent operations with limited cloud intervention, avoiding repeated cloud reasoning during execution. Second, when execution deviates from the plan, Dependency-Aware Plan Rectification identifies the deviation source, traces its downstream impact, and selectively repairs only the affected plan components, rather than regenerating the entire plan. Across BFCL and ToolSandbox, RectifyFlow…
- arXiv
- 2612.01860
- Authors
- Weixiang Han, Linzhuang Zou, Yi Liu, Chenyang Si, Cong Wang and 2 more
- Categories
- cs.AI