# Poster 30510

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/30510

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi everyone, I'm Dujian Ding from the University of British Columbia. Today I will present OCCAM, a framework that addresses how to use different machine learning classifiers in a cost-efficient and accuracy-aware way.
Classification tasks are everywhere, but using large ML classifiers could be expensive, especially at scale. Classification models tend to vary in cost and accuracy. Larger models typically provide higher accuracy but incur significantly higher inference costs compared to the smaller models. In this work, we begin with a fundamental question: can we intelligently allocate models to
requires to balance accuracy and costs. At the end, we propose a novel hybrid inference framework, Alchem, for classification tasks, which achieves up to 40% cost reduction with minimal accuracy drop.
Formerly speaking, we frame this challenge as the optimal model portfolio problem. A model portfolio is an assignment between a given collection of query objects and ML classifiers, which varies in costs and accuracy. The optimal model portfolio problem studies how to assign a model to each query to maximize the overall accuracy while staying within a given cost budget.
This is particularly relevant in real-world applications such as cloud APIs and machine learning as a service platforms.
Our key observation is that small models often agree with large models on easy queries. For example, ResNet-18 agrees with a swin transformer V2 base on 75% of images from the tiny image net dataset. These observations suggest an opportunity. If we can identify these easy queries, we can use cheaper models without sacrificing.
expressing pictures.
With this insight, we hereby propose the design of OCAM, a framework that delivers cost-effective, high-accuracy inference plans within given cost budgets. OCAM consists of two stages. At first, we estimate per-query accuracy across classifiers with a principled accuracy estimator of statistical guarantees. Next, with the estimated accuracy, we can effectively compute the optimal accuracy.
the optimal multi-part photo by solving an integer linear programming problem. We will introduce the core techniques developed for both stages in the next few slides.
Briefly speaking, our accuracy estimator relies on the well-separation property, which says similar inputs should yield similar predictions, which has been widely observed in tasks such as image classification. For each query object, we estimate a model's accuracy by its performance on similar pre -labeled queries. This yields robust estimates without any...
the need to retrain the model. We formally prove that for well-separated tasks such as image classification and the Lipchitz continuous classifiers, our accuracy estimator is asymptotically unbiased and low variance as the sample size increases. With the estimated accuracy in hand, we can formulate the optimization problem as an integer linear programming problem.
problem, we just select the best model for each query. We also regularize to avoid overfitting due to the noisy estimates. The formal formulation of the ILP problem is shown as follows, where we show how to maximize the total estimated accuracy within a given cost budget.
In our evaluation, we use the image classification task for illustration purpose and consider four widely studied data sets, SIFAR-10, SIFAR-100, Tiny ImageNet, and ImageNet 1K. Across data sets, all can achieve major cost reductions while maintaining high accuracy. Example on SIFAR-100, we save 40% of the cost with only a 0.6 % drop in accuracy.
which is a significant win in practical deployment settings. To conclude, R-CAM offers a practical and theoretically grounded inference strategy that effectively balances performance and cost in classification tasks. Looking ahead, we plan to extend R-CAM to NLP tasks in other domains where separation may not hold and tackle real-world challenges like distribution shifts.
Cheers. Thank you very much for attending the talk.
