OCCAM: Towards Cost-Efficient and Accuracy-Aware Classification Inference

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Ding, Dujian, Xu, Bicheng, Lakshmanan, Laks V. S.
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866929729674674176
author Ding, Dujian
Xu, Bicheng
Lakshmanan, Laks V. S.
author_facet Ding, Dujian
Xu, Bicheng
Lakshmanan, Laks V. S.
contents Classification tasks play a fundamental role in various applications, spanning domains such as healthcare, natural language processing and computer vision. With the growing popularity and capacity of machine learning models, people can easily access trained classifiers as a service online or offline. However, model use comes with a cost and classifiers of higher capacity (such as large foundation models) usually incur higher inference costs. To harness the respective strengths of different classifiers, we propose a principled approach, OCCAM, to compute the best classifier assignment strategy over classification queries (termed as the optimal model portfolio) so that the aggregated accuracy is maximized, under user-specified cost budgets. Our approach uses an unbiased and low-variance accuracy estimator and effectively computes the optimal solution by solving an integer linear programming problem. On a variety of real-world datasets, OCCAM achieves 40% cost reduction with little to no accuracy drop.
format Preprint
id arxiv_https___arxiv_org_abs_2406_04508
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle OCCAM: Towards Cost-Efficient and Accuracy-Aware Classification Inference
Ding, Dujian
Xu, Bicheng
Lakshmanan, Laks V. S.
Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
Classification tasks play a fundamental role in various applications, spanning domains such as healthcare, natural language processing and computer vision. With the growing popularity and capacity of machine learning models, people can easily access trained classifiers as a service online or offline. However, model use comes with a cost and classifiers of higher capacity (such as large foundation models) usually incur higher inference costs. To harness the respective strengths of different classifiers, we propose a principled approach, OCCAM, to compute the best classifier assignment strategy over classification queries (termed as the optimal model portfolio) so that the aggregated accuracy is maximized, under user-specified cost budgets. Our approach uses an unbiased and low-variance accuracy estimator and effectively computes the optimal solution by solving an integer linear programming problem. On a variety of real-world datasets, OCCAM achieves 40% cost reduction with little to no accuracy drop.
title OCCAM: Towards Cost-Efficient and Accuracy-Aware Classification Inference
topic Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2406.04508