Lune

EMNLP Findings2023

Cache me if you Can: an Online Cost-aware Teacher-Student framework to Reduce the Calls to Large Language Models

Ilias Stogiannidis, Stavros Vassos, Prodromos Malakasiotis, Ion Androutsopoulos

摘要

Prompting Large Language Models (LLMs) performs impressively in zero-and few-shot settings. Hence, small and medium-sized enterprises (SMEs) that cannot afford the cost of creating large task-specific training datasets, but also the cost of pretraining their own LLMs, are increasingly turning to third-party services that allow them to prompt LLMs. However, such services currently require a payment per call, which becomes a significant operating expense (OpEx). Furthermore, customer inputs are often very similar over time, hence SMEs end-up prompting LLMs with very similar instances. We propose a framework that allows reducing the calls to LLMs by caching previous LLM responses and using them to train a local inexpensive model on the SME side. The framework includes criteria for deciding when to trust the local model or call the LLM, and a methodology to tune the criteria and measure the tradeoff between performance and cost. For experimental purposes, we instantiate our framework with two LLMs, GPT-3.5 or GPT-4, and two inexpensive students, a k-NN classifier or a Multi-Layer Perceptron, using two common business tasks, intent recognition and sentiment analysis. Experimental results indicate that significant OpEx savings can be obtained with only slightly lower performance.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Self-training Improves Pre-training for Few-shot Learning in Task-oriented Dialog Systems 引用了 End-to-End Neural Pipeline for Goal-Oriented Dialogue Systems using GPT-2
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper3

  1. MobileGPT: Augmenting LLM with Human-like App Memory for Mobile Task AutomationSunjae Lee, Junyoung Choi, Jungjae Lee, Munim Hasan Wasi 等MobiCom 2024 · 21 次引用
  2. Online Cascade Learning for Efficient Inference over StreamsLunyiu Nie, Zhimin Ding, Erdong Hu, Christopher M. Jermaine 等ICML 2024 · 20 次引用
  3. Semantic Caching for Low-Cost LLM Serving: From Offline Learning to Online AdaptationXutong Liu, Baran Atalar, Xiangxiang Dai, Jinhang Zuo 等INFOCOM 2026 · 2 次引用

它引用的 Paper5

  1. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida 等NeurIPS 2022 · 24,707 次引用
  2. MPNet: Masked and Permuted Pre-training for Language UnderstandingKaitao Song, Xu Tan, Tao Qin, Jianfeng Lu 等NeurIPS 2020 · 1,957 次引用
  3. End-to-End Neural Pipeline for Goal-Oriented Dialogue Systems using GPT-2DongHoon Ham, Jeong-Gwan Lee, Youngsoo Jang, Kee-Eung KimACL 2020 · 167 次引用
  4. Self-training Improves Pre-training for Few-shot Learning in Task-oriented Dialog SystemsFei Mi, Wanhao Zhou, Lingjing Kong, Fengyu Cai 等EMNLP 2021 · 18 次引用
  5. Task-adaptive Pre-training and Self-training are Complementary for Natural Language UnderstandingShiyang Li, Semih Yavuz, Wenhu Chen, Xifeng YanEMNLP Findings 2021 · 9 次引用

相关 Paper

  1. Selective Deferred Routing: Enabling Cost-Efficient Collaboration between Local SLMs and Remote LLMsQijun Miao, Zhixuan FangICML 2026
  2. AIMS: Cost-Efficient LLM-Based Agent Deployment in Hybrid Cloud-Edge EnvironmentsShiyi Liu, Haiying Shen, Shuai Che, Mahdi Ghandi 等EuroSys 2026 · 1 次引用
  3. Cache & Distil: Optimising API Calls to Large Language ModelsGuillem Ramírez, Matthias Lindemann, Alexandra Birch, Ivan TitovACL Findings 2024 · 4 次引用
  4. Want To Reduce Labeling Cost? GPT-3 Can HelpShuohang Wang, Yang Liu, Yichong Xu, Chenguang Zhu 等EMNLP Findings 2021 · 177 次引用
  5. Generative Caching for Structurally Similar Prompts and ResponsesSarthak Chakraborty, Suman Nath, Xuchao Zhang, Chetan Bansal 等NeurIPS 2025 · 5 次引用
黄昏的海面,两侧是细线勾勒的悬崖