COSMOS:可预测且具有成本效益的大语言模型适配方法
COSMOS: Predictable and Cost-Effective Adaptation of LLMs
AI总结:
本文提出COSMOS统一预测框架,通过轻量级代理模型和低样本规模定律高效预测大语言模型适配的性能与成本,在八个基准上平均降低92.72%的计算成本,证明高效预测可显著减少LLM部署开销。
摘要:
大语言模型(LLMs)通过使用多种多样的适配策略,在众多任务上取得了卓越的性能。然而,在资源约束下最优地选择模型和适配策略具有挑战性,并且通常需要大量实验。我们研究是否有可能在不进行昂贵试验的情况下准确预测性能和成本。我们将LLMs的策略选择问题形式化,并引入COSMOS,这是一个统一的预测框架,能够以最小成本高效地估计适配结果。我们通过一对强大的预测器来实例化并研究该框架的能力:用于预测微调性能的嵌入增强轻量级代理模型,以及用于预测检索增强上下文学习的低样本规模定律。在八个代表性基准上的广泛评估表明,COSMOS实现了高预测准确率,同时平均降低了92.72%的计算成本,在资源密集型场景中最高可降低98.71%。我们的结果表明,对适配结果的高效预测不仅是可行的,而且能够在保持性能标准的同时大幅降低LLM部署的计算开销。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。