Agreement-Based Cascading for Efficient Inference

Steven Kolawole, Don Dennis, Ameet Talwalkar, Virginia Smith

Abstract

Adaptive inference schemes reduce the cost of machine learning inference by assigning smaller models to easier examples, attempting to avoid invocation of larger models when possible. In this work we explore a simple, effective adaptive inference technique we term Agreement-Based Cascading (ABC). ABC builds a cascade of models of increasing size/complexity and uses agreement between ensembles of models at each level of the cascade as a basis for data-dependent routing. Although ensemble execution introduces additional expense, we show that these costs can be easily offset in practice due to large expected differences in model sizes, parallel inference execution capabilities, and accuracy benefits of ensembling. We examine ABC theoretically and empirically in terms of these parameters, showing that the approach can reliably act as a drop-in replacement for existing models and surpass the best single model it aims to replace in terms of both efficiency and accuracy. Additionally, we explore the performance of ABC relative to existing cascading methods in three common scenarios: (1) edge-to-cloud inference, where ABC reduces communication costs by up to 14x; (2) cloud-based model serving, where it achieves a 3x reduction in rental costs; and (3) inference via model API services, where ABC achieves a 2-25x reduction in average price per token/request relative to state-of-the-art LLM cascades.

Introduction

As machine learning models—particularly vision foundation models and Large Language Models (LLMs)—continue to scale, the computational and financial costs of inference have become significant bottlenecks for deployment. However, a key observation in modern AI is that not all inputs require the full capacity of a trillion-parameter model. Many "easy" queries can be resolved by much smaller, more efficient models.

The challenge lies in adaptive inference: reliably determining when a small model's output is sufficient and when the request must be "cascaded" to a larger, more expensive model. Traditional methods often rely on model confidence scores (like softmax probabilities), which are frequently poorly calibrated, or require training complex "router" networks. Agreement-Based Cascading (ABC) addresses these issues with a robust, training-free deferral mechanism that works across diverse hardware and API-based environments.

Methodology: Agreement-Based Cascading (ABC)

ABC utilizes an ensemble of small models at each level of a cascade to provide a reliable signal for deferral. Instead of trusting a single model's internal confidence, ABC follows a simple three-step process:

  1. The Ensemble Check: For a given input, a tier of small models (e.g., three distinct 8B-parameter models) generates predictions in parallel.
  2. Agreement as a Signal: If the models in the ensemble agree—based on a configurable voting threshold $\theta$—the system accepts the answer and terminates the process.
  3. Cascading: If the ensemble fails to reach a consensus, the example is flagged as "hard" and passed to the next, more powerful tier (e.g., a 70B or 405B model).
ABC Workflow and ImageNet Scaling

This approach is entirely training-free, leveraging the vast library of existing pretrained models. By formalizing "safe deferral rules," the authors provide theoretical guarantees that this cascading process will not degrade accuracy compared to using the largest model alone. Furthermore, on modern GPUs, running multiple small models in parallel often incurs negligible latency overhead compared to a single model, making the ensemble a "free" source of reliability.

Key Insights and Empirical Results

ABC shifts the accuracy-efficiency frontier upward by exploiting the massive cost disparity between model scales. Because a large model can be 50x to 100x more expensive than a small one, the overhead of a small ensemble is easily justified if it allows the system to skip the larger model even 20% of the time. Moreover, the ensemble itself often produces more accurate answers for easy samples than any single constituent model.

Performance Across Benchmarks

ABC was evaluated across diverse tasks, including ImageNet-1K, CIFAR-10, and various NLP benchmarks like SST-2 and SWAG. In black-box API scenarios (e.g., using OpenAI or Together.ai), ABC achieved a 2x to 25x reduction in price per token/request.

Comparison on CIFAR-10

Key highlights include:

  • Edge-to-Cloud: Reduced communication costs by up to 14x by resolving easy problems locally.
  • Cloud Serving: Achieved a 3x reduction in rental costs by intelligently utilizing cheaper, older GPUs for small ensembles and reserving premium hardware for difficult cases.
  • Accuracy Gains: In many instances, ABC actually surpassed the accuracy of the best single model it replaced, demonstrating the inherent benefits of ensembling.

Conclusion and Future Work

Agreement-Based Cascading offers a plug-and-play solution for efficient AI deployment without the need for specialized training or complex calibration. While highly effective for classification and short-answer tasks, future work is required to adapt the agreement metric for long-form, open-ended generation. Additionally, researchers aim to investigate how ensemble diversity can further mitigate systemic biases and improve the reliability of the deferral signal.

Summary updated

BibTeX
@article{kolawole2025agreement,
  author = {Steven Kolawole and Don Dennis and Ameet Talwalkar and Virginia Smith},
  title = {{Agreement-Based Cascading for Efficient Inference}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=jn9B7LMlzk},
}
Figure