COSMOS: Predictable and Cost-Effective Adaptation of LLMs

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Wang, Jiayu, Albarghouthi, Aws, Sala, Frederic
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913876496351232
author Wang, Jiayu
Albarghouthi, Aws
Sala, Frederic
author_facet Wang, Jiayu
Albarghouthi, Aws
Sala, Frederic
contents Large language models (LLMs) achieve remarkable performance across numerous tasks by using a diverse array of adaptation strategies. However, optimally selecting a model and adaptation strategy under resource constraints is challenging and often requires extensive experimentation. We investigate whether it is possible to accurately predict both performance and cost without expensive trials. We formalize the strategy selection problem for LLMs and introduce COSMOS, a unified prediction framework that efficiently estimates adaptation outcomes at minimal cost. We instantiate and study the capability of our framework via a pair of powerful predictors: embedding-augmented lightweight proxy models to predict fine-tuning performance, and low-sample scaling laws to forecast retrieval-augmented in-context learning. Extensive evaluation across eight representative benchmarks demonstrates that COSMOS achieves high prediction accuracy while reducing computational costs by 92.72% on average, and up to 98.71% in resource-intensive scenarios. Our results show that efficient prediction of adaptation outcomes is not only feasible but can substantially reduce the computational overhead of LLM deployment while maintaining performance standards.
format Preprint
id arxiv_https___arxiv_org_abs_2505_01449
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle COSMOS: Predictable and Cost-Effective Adaptation of LLMs
Wang, Jiayu
Albarghouthi, Aws
Sala, Frederic
Machine Learning
Artificial Intelligence
Large language models (LLMs) achieve remarkable performance across numerous tasks by using a diverse array of adaptation strategies. However, optimally selecting a model and adaptation strategy under resource constraints is challenging and often requires extensive experimentation. We investigate whether it is possible to accurately predict both performance and cost without expensive trials. We formalize the strategy selection problem for LLMs and introduce COSMOS, a unified prediction framework that efficiently estimates adaptation outcomes at minimal cost. We instantiate and study the capability of our framework via a pair of powerful predictors: embedding-augmented lightweight proxy models to predict fine-tuning performance, and low-sample scaling laws to forecast retrieval-augmented in-context learning. Extensive evaluation across eight representative benchmarks demonstrates that COSMOS achieves high prediction accuracy while reducing computational costs by 92.72% on average, and up to 98.71% in resource-intensive scenarios. Our results show that efficient prediction of adaptation outcomes is not only feasible but can substantially reduce the computational overhead of LLM deployment while maintaining performance standards.
title COSMOS: Predictable and Cost-Effective Adaptation of LLMs
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2505.01449