C3PO: Optimized Large Language Model Cascades with Probabilistic Cost Constraints for Reasoning

Antonios Valkanas, Soumyasundar Pal, Pavel Rumiantsev, Yingxue Zhang, Mark Coates

TL;DR

C3PO (Cost Controlled Cascaded Prediction Optimization) is a new framework that slashes LLM inference costs by intelligently "cascading" queries from small, cheap models to larger, expensive ones. Unlike previous methods, it requires zero labeled data and uses conformal prediction to provide rigorous, probabilistic guarantees that you won't exceed your computational budget.

The Cost-Accuracy Tradeoff in LLMs

Large Language Models (LLMs) are incredibly capable but prohibitively expensive to run at scale, especially for complex reasoning tasks that require long "Chain-of-Thought" (CoT) outputs. A common solution is cascading: letting a small model (like Llama-3-8B) try the easy questions and only "escalating" the hard ones to a heavyweight model (like GPT-4 or Llama-405B).

However, existing cascading strategies have three major flaws:

  1. Label Hunger: They usually require large, human-labeled datasets to train the "exit policy" (the logic that decides when to stop).
  2. No Guarantees: They offer no theoretical assurance that the system will actually stay under budget or generalize to new types of questions.
  3. Manual Tuning: Practitioners often have to manually fiddle with confidence thresholds, which is brittle and time-consuming.

Introducing C3PO: Self-Supervised Cascading

The authors introduce C3PO, a self-supervised approach that treats cascading as an optimization problem under constraints.

Comparison of C3PO's self-supervised approach against supervised and heuristic cascade baselines.
  • Label-Free Learning: Instead of training on ground-truth labels, C3PO minimizes "regret" relative to the Most Powerful Model (MPM) in the cascade. It assumes that if a small model's output matches the MPM's output, it’s safe to exit early. This allows the system to be tuned using only unlabeled prompts.
  • Conformal Cost Control: This is the "secret sauce." C3PO uses conformal prediction—a statistical framework—to calibrate exit thresholds. This provides a mathematical guarantee: the probability that the total inference cost exceeds a user-defined budget is bounded by a small, pre-defined risk level.
  • Discrete Optimization: Because the loss function for "correct vs. incorrect" is non-differentiable, the authors use a principled grid search to find the optimal thresholds for each model in the chain.
  • PAC-Bayesian Generalization: The paper provides theoretical bounds proving that the thresholds learned on a small set of examples will actually hold up when deployed on unseen data.

Key Insights and Data Efficiency

  • Agreement is a Strong Proxy: You don't need to know the "right" answer to optimize a cascade; you just need to know if the cheap model is likely to agree with the expensive one. This "self-supervision" makes the system incredibly easy to deploy in new domains where labels are scarce.
  • Data Efficiency: C3PO can learn effective exit policies with fewer than 100 unlabeled prompts—less than 1% of the data required by state-of-the-art reinforcement learning methods like TREACLE.
  • Robustness to Distribution Shift: Because C3PO focuses on model-to-model consistency rather than memorizing specific "hard" questions, it handles shifts in task difficulty much better than supervised baselines.

Experimental Results

The researchers evaluated C3PO across 16 diverse reasoning benchmarks spanning arithmetic (GSM8K, SVAMP, AQuA), formal mathematics (MATH-500, AIME), and logic (BigBench-Hard, CommonSenseQA). They tested these on model families including Llama-3, Qwen-2.5, and GPT.

Cost required to reach near-MPM accuracy across different cascade methods, highlighting C3PO's superior cost-efficiency.
  • Massive Cost Savings: On the Llama-3 cascade, C3PO achieved near-MPM accuracy while using less than 20% of the MPM's cost across 16 benchmarks.
  • Superior Efficiency: On the MATH-500 dataset, C3PO hit 62.5% accuracy at a cost of $0.0019 per question. For comparison, using the Most Powerful Model alone with self-consistency reached only 57% accuracy at a much higher cost of $0.0053.
  • Reliable Budgeting: In 300 experimental runs with different budgets and risk levels, C3PO violated its cost constraint only once, empirically validating the conformal guarantees.

Limitations and Future Work

  • Conservative Decisions: The conformal guarantee can sometimes be overly conservative, meaning the system might under-utilize its budget to ensure it stays safe, potentially leaving some accuracy on the table.
  • Fixed Cascades: The current version assumes a fixed sequence of models. Future work could involve dynamic routing where the system chooses which model to jump to next based on the specific query.
  • Confidence Metrics: Currently, the system relies heavily on self-consistency as a confidence signal. Integrating more advanced verifiers or reward models could further sharpen the exit decisions.

Summary updated

BibTeX
@inproceedings{valkanas2025c,
  author = {Antonios Valkanas and Soumyasundar Pal and Pavel Rumiantsev and Yingxue Zhang and Mark Coates},
  title = {{C3PO: Optimized Large Language Model Cascades with Probabilistic Cost Constraints for Reasoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=e4IlBqhbTO},
}
Figure