arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.04513cs.LGcs.CL
收藏

面向流上高效推理的在线级联学习

Online Cascade Learning for Efficient Inference over Streams

The University of Texas at Austin(德克萨斯大学奥斯汀分校);Rice University(莱斯大学)

Lunyiu Nie, Zhimin Ding, Erdong Hu, Christopher Jermaine, Swarat Chaudhuri

AI总结:

针对数据流上LLM推理成本高昂的问题,提出在线级联学习,通过模仿LLM演示联合更新小模型与延迟策略,以最高90%的成本削减达到与LLM相当的准确率。

摘要:

大语言模型(LLM)在回答有关数据流的复杂查询方面具有天然作用,但LLM推理的高昂计算成本使其在许多此类任务中不可行。我们提出在线级联学习,这是应对该挑战的首个方法。其目标是学习一个模型“级联”,从较低容量模型(如逻辑回归)开始,到强大的LLM结束,并配有一个延迟策略,用于决定给定输入应使用哪个模型。我们将在线学习级联的任务表述为一个模仿学习问题,其中较小的模型随时间更新,模仿所收集的LLM演示,并为该问题给出一种无悔算法。在四个基准测试上的实验结果表明,我们的方法在准确率上与LLM相当,同时将推理成本降低多达90%,并对输入分布偏移具有很强的鲁棒性,突显了其在流处理中的功效和适应性。

英文摘要:

Large Language Models (LLMs) have a natural role in answering complex queries about data streams, but the high computational cost of LLM inference makes them infeasible in many such tasks. We propose online cascade learning, the first approach to address this challenge. The objective here is to learn a "cascade" of models, starting with lower-capacity models (such as logistic regression) and ending with a powerful LLM, along with a deferral policy that determines the model to be used on a given input. We formulate the task of learning cascades online as an imitation-learning problem, where smaller models are updated over time imitating the collected LLM demonstrations, and give a no-regret algorithm for the problem. Experimental results across four benchmarks show that our method parallels LLMs in accuracy while cutting down inference costs by as much as 90% with strong robustness against input distribution shifts, underscoring its efficacy and adaptability in stream processing.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑