Saved in:
Bibliographic Details
Main Authors: Nie, Lunyiu, Ding, Zhimin, Hu, Erdong, Jermaine, Christopher, Chaudhuri, Swarat
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2402.04513
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929388592824320
author Nie, Lunyiu
Ding, Zhimin
Hu, Erdong
Jermaine, Christopher
Chaudhuri, Swarat
author_facet Nie, Lunyiu
Ding, Zhimin
Hu, Erdong
Jermaine, Christopher
Chaudhuri, Swarat
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_04513
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Online Cascade Learning for Efficient Inference over Streams
Nie, Lunyiu
Ding, Zhimin
Hu, Erdong
Jermaine, Christopher
Chaudhuri, Swarat
Machine Learning
Computation and Language
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.
title Online Cascade Learning for Efficient Inference over Streams
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2402.04513