TL;DR
CARGO is a training-free framework for local-cloud LLM collaboration that decides when to offload queries based entirely on the local model's internal response consistency. By leveraging prompt-varied deterministic sampling and Bayesian early stopping, it dynamically adapts to any target offloading ratio or token budget at deployment time, matching or even outperforming traditional supervised routers without requiring any training data.
What Problem Does This Paper Address?
Running large language models (LLMs) entirely in the cloud introduces high latency, monetary costs, and privacy concerns, while running smaller models entirely on local edge devices sacrifices response quality for complex tasks. Local-cloud collaboration offers a hybrid alternative: let a lightweight local model handle routine queries and selectively offload difficult ones to a powerful cloud model.
However, existing routing mechanisms typically require training a separate classifier or fine-tuning the local model to recognize its own limitations. These learned routers are expensive to train and rigid in practice; if system constraints change—such as a sudden drop in cloud budget or network bandwidth—the router must be entirely retrained to adjust the offloading ratio. The authors address this by asking: Can we build an accurate, highly adaptable router using only the local model's intrinsic inference-time behavior, without any training?
Methods
The authors introduce CARGO (Collaboration-Adaptive Routing via Agreement-Guided Offloading), which operates as an inference-time wrapper around any local model.
The framework consists of four core components:
- Prompt-Varied Sampling: Instead of using temperature scaling (which introduces random token noise and degrades response quality), CARGO generates multiple responses using deterministic decoding ($Temperature = 0$) across a set of semantically identical but stylistically distinct system prompts (e.g., "be concise", "explain step-by-step", "plan-then-execute").
- Bayesian Mode-Mass Estimation: CARGO tracks how often the model converges on the same majority answer. It models this agreement using a Beta-Binomial conjugate prior to estimate the true probability ($\theta$) that the model favors its current majority choice.
- Bayesian Early Stopping: To minimize local compute overhead, CARGO stops sampling sequentially as soon as the width of the posterior credible interval ($U_k - L_k$) drops below a small threshold ($\varepsilon$). If the model quickly aligns on an answer (or completely disagrees), it exits early.
- Probabilistic Routing & Warmup Calibration: The final agreement score is mapped to an offloading probability via a sigmoid function. To meet a user-specified target offloading ratio ($\rho$) or token budget ($\tau$), CARGO runs a brief, lightweight warmup phase on a small batch of queries to calibrate an alignment threshold ($\lambda$) using stochastic approximation.
Datasets
The framework was evaluated across a diverse suite of benchmarks spanning multiple domains:
- Mathematical Reasoning: MATH-lighteval, GSM8K, SVAMP, MATH-500, AGIEval-Math, MinervaMath.
- General Question Answering & Science: ARC (Challenge and Easy splits).
- Reading Comprehension: SQuAD.
Key Insights and Ideas
- Consistency Beats Self-Reflection: Common internal signals like Chain-of-Thought (CoT) step counts or self-reported confidence scores ("How confident are you from 0-1?") correlate poorly and unpredictably with actual correctness. In contrast, response agreement across varying prompts exhibits a clean, monotonic relationship with accuracy.
- Prompt Diversity Over Noise: Injecting token-level randomness via high temperatures distorts the model's native reasoning capabilities. Prompt variation provides a cleaner, bimodal distribution of consistency values (either highly consistent or highly inconsistent), which is ideal for quick decision-making.
- The Capability Floor: Training-free routing relies on the local model having some baseline capability to exploit. The authors observed that below a certain size threshold (e.g., 1B–1.5B parameter models), the local model lacks the depth to generate meaningful variation or stable reasoning, causing training-free signals to degrade toward random performance.
Key Results
CARGO was tested using various local model families (Qwen2.5, Phi-3, Llama-3.2) paired with DeepSeek-R1 as the cloud model.
- Outperforming Supervised Routers: At a fixed offloading ratio of 30% ($\rho = 0.3$), CARGO consistently achieved the highest overall accuracy, frequently outperforming a supervised DeBERTa-large classifier router that was explicitly trained on task data.
- Robustness Across Budgets: Across the entire spectrum of collaboration ratios (from 0% to 100%), CARGO maintained a stable performance advantage over alternative training-free methods like CoT-step tracking and confidence thresholding.
- Token-Budget Control: CARGO successfully adapted from simple query-ratio offloading to token-budgeted offloading, allowing operators to directly bound the exact number of cloud tokens consumed.
Limitations and Future Work
The primary limitation of CARGO is its dependency on the local model's scale; it becomes ineffective if the local model is too weak to exhibit structured reliability behavior. Additionally, the sequential sampling required to estimate agreement introduces local latency overhead, though this is mitigated by the Bayesian early-stopping mechanism.
The authors suggest that future work will focus on extending this training-free, agreement-guided routing principle to richer multimodal tasks and more complex, resource-constrained agent architectures.
Summary updated