atlas

Research map / Large language models / Reasoning and chain of thought

Online Cascade Learning for Efficient Inference over Streams

ICML 2024 · Large language models › Reasoning and chain of thought · approach: Efficient LLM serving · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes online cascade learning, which trains a cascade of small models (logistic regression, BERT) online by imitating an LLM expert and learns deferral policies jointly, cutting LLM inference cost by up to 90% while matching LLM accuracy on four stream classification benchmarks.

Problem

LLM inference over data streams is too expensive, and existing cascade and distillation methods require a pre-labeled training set, making them unsuitable for streaming settings.

Approach

Formulates learning a model cascade with deferral policies as an episodic MDP that trades prediction loss against deferral cost, and learns it fully online by imitation of the LLM expert (DAgger-style with decaying jump probability), with calibrated MLP deferral functions and a no-regret OGD guarantee.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add learned deferral policy to online ensemble learning (ablation)Online Cascade Learning · IMDBaccuracy: 88.80 -> 92.48Helped
Add learned deferral policy to online ensemble learning (ablation)Online Cascade Learning · HateSpeech, N=2700accuracy: 77.48 -> 85.35Helped
Add learned deferral policy to online ensemble learning (ablation)Online Cascade Learning · ISEAR, N=2700accuracy: 61.78 -> 69.75Helped
Add learned deferral policy to online ensemble learning (ablation)Online Cascade Learning · FEVER, N=700accuracy: 61.69 -> 61.95No clear effect
Use Llama 2 70B Chat instead of GPT-3.5 Turbo as the cascade LLMOnline Cascade Learning · HateSpeech, N=4900accuracy: 83.26 -> 78.32Mixed
Use a larger cascade with BERT-largeOnline Cascade Learning · HateSpeechaccuracyHurt
Process IMDB reviews in ascending input-length orderOnline Cascade Learning · IMDB, GPT-3.5 Turbo cascadeaverage accuracy: 90.77% -> 90.23%; -0.54%Hurt
Process IMDB reviews in ascending input-length orderOnline Cascade Learning · IMDB, Llama 2 70B cascadeaverage accuracy: 90.97% -> 90.64%; -0.33%Hurt
Put Comedy reviews in the last part of the IMDB streamOnline Cascade Learning · IMDB, GPT-3.5 Turbo cascadeaverage accuracy: 90.77% -> 90.85%; +0.08%Helped
Put Comedy reviews in the last part of the IMDB streamOnline Cascade Learning · IMDB, Llama 2 70B cascadeaverage accuracy: 90.97% -> 91.46%; +0.49%Helped

Surprising findings

Limitations

Experimental setup

Datasets: IMDB HateSpeech ISEAR FEVER

Benchmarks: IMDB HateSpeech ISEAR FEVER

Metrics: accuracy recall F1 inference cost (LLM calls)

Baselines: GPT-3.5 Turbo Llama 2 70B Chat Distilled LR Distilled BERT-base Online Ensemble Learning

Builds on: DAgger knowledge distillation online gradient descent

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy