Abstract
Large Language Model (LLM) inference faces a persistent trade-off between the high reasoning capabilities of massive proprietary models and the cost-efficiency of smaller local models. We present COPE (Collaborative Planning and Execution), a training-free framework that bridges this gap by using high-level planning as a lightweight interface for model collaboration. By escalating tasks through a three-stage process—from local execution to hybrid collaboration and full model takeover—COPE achieves performance comparable to or exceeding state-of-the-art models like GPT-4o while reducing inference costs by up to 75%.
Introduction
The current landscape of LLM deployment forces developers into a binary choice: utilize expensive, high-latency proprietary APIs (e.g., GPT-4o) for complex reasoning, or deploy small, open-source models that often struggle with multi-step logic. Traditional "cascading" methods attempt to mitigate this by routing simple queries to small models and complex ones to large models. However, these methods treat models as independent silos, missing the opportunity for collaborative synergy. COPE addresses this by introducing a "Planner-Executor" architecture where a large model provides strategic guidance to a small model, enabling the smaller unit to solve tasks it otherwise could not.
The COPE Framework
COPE is a training-free, few-shot-free inference framework designed to optimize the balance between accuracy and cost. It operates on the principle that a concise "plan" (a high-level strategy or goal) is significantly cheaper to generate than a full reasoning chain. This plan serves as a scaffold for a smaller executor model.
The framework follows an adaptive escalation path across three stages:
- Stage 1 (Purely Local): A small model serves as both the planner and the executor. It generates multiple plans and corresponding solutions. If these solutions reach a high consensus (determined via majority voting), the answer is returned immediately, incurring minimal cost.
- Stage 2 (Hybrid Collaboration): If Stage 1 fails to meet the confidence threshold, the system escalates to a hybrid mode. A large model generates a high-level plan (a "guideline"). The small model then attempts the task again, using this expert guidance to navigate the reasoning process.
- Stage 3 (Full Escalation): In cases where the small model remains unconfident even with guidance, the large model takes complete control to generate the final solution.
Experimental Evaluation
Datasets and Benchmarks
We evaluated COPE across four diverse domains to test its generalizability:
- Mathematical Reasoning: MATH-500 and the Olympiad-level AIME-2024.
- Code Generation: MBPP (Mostly Basic Python Problems).
- Open-Ended Chat: MT-Bench (evaluated via LLM-as-a-judge).
- Agentic Tasks: ALFWorld (text-based multi-step decision making).
Key Results
COPE consistently outperformed "all-or-nothing" large model baselines and existing cost-aware methods like FrugalGPT and standard Cascading.
As shown in the results for MATH-500, COPE achieved an accuracy of 75.8%, surpassing the standalone GPT-4o baseline (75.2%) while reducing costs by approximately 45%. In code generation (MBPP), the framework improved accuracy to 66.4% (vs. GPT-4o's 64.0%) while slashing costs by nearly 75%. Notably, on the highly challenging AIME-2024 benchmark, COPE achieved the highest accuracy (40%) among all tested methods, proving its efficacy on problems where small models typically fail entirely.
Analysis and Insights
- Planning as a Lightweight Intermediate: The core efficiency of COPE stems from the fact that a plan is much shorter than a full solution. Transmitting a brief strategy from a cloud-based large model to a local device is far more economical than generating a full 500-token reasoning chain in the cloud.
- The Planner-Executor Synergy: Our findings indicate that small models (e.g., Llama-3B) experience a significant performance boost when following plans authored by larger models. Conversely, low-quality plans from small models can degrade the performance of large models, justifying COPE's hierarchical escalation logic.
- Task-Specific Confidence: The framework employs different confidence metrics tailored to the task: majority voting for mathematics, test-case pass rates for code, and perplexity for creative writing.
Discussion and Future Work
While COPE offers a superior Pareto frontier for accuracy versus cost, it introduces a latency trade-off due to its multi-stage nature. Future work will explore the use of "learned routers" to replace manual thresholds for stage escalation, potentially further optimizing the decision-making process. Additionally, fine-tuning small models specifically to act as "executors" of external plans could unlock even greater efficiency gains.
Summary updated