Papers
Topics
Authors
Recent
Search
2000 character limit reached

Cache & Distil: Optimising API Calls to Large Language Models

Published 20 Oct 2023 in cs.CL and cs.LG | (2310.13561v1)

Abstract: Large-scale deployment of generative AI tools often depends on costly API calls to a LLM to fulfil user queries. To curtail the frequency of these calls, one can employ a smaller LLM -- a student -- which is continuously trained on the responses of the LLM. This student gradually gains proficiency in independently handling an increasing number of user requests, a process we term neural caching. The crucial element in neural caching is a policy that decides which requests should be processed by the student alone and which should be redirected to the LLM, subsequently aiding the student's learning. In this study, we focus on classification tasks, and we consider a range of classic active learning-based selection criteria as the policy. Our experiments suggest that Margin Sampling and Query by Committee bring consistent benefits across tasks and budgets.

Citations (2)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.

Collections

Sign up for free to add this paper to one or more collections.