Optimising Calls to Large Language Models with Uncertainty-Based Two-Tier Selection
Ramírez, Guillem, Birch, Alexandra, Titov, Ivan
–arXiv.org Artificial Intelligence
The challenging decision often centers on whether to use a large LLM with better performance or a smaller one with reduced costs. This has motivated recent research in the optimisation of LLM calls. Either a cascading strategy is used, where a smaller LLM or both are called sequentially, or a routing strategy is used, where only one model is ever called. Both scenarios are dependent on a decision criterion which is typically implemented by an extra neural model. In this work, we propose a simpler solution; we use only the uncertainty of the generations of the small LLM as the decision criterion. We compare our approach with both cascading and routing strategies using three different pairs of pre-trained small and large LLMs, on nine different tasks and against approaches that require an additional neural model. Our experiments reveal this simple solution optimally balances cost and performance, outperforming existing methods on 25 out of 27 experimental setups.
arXiv.org Artificial Intelligence
May-3-2024
- Country:
- North America
- United States
- Washington > King County
- Seattle (0.04)
- Utah > Salt Lake County
- Salt Lake City (0.04)
- Pennsylvania > Philadelphia County
- Philadelphia (0.04)
- New York > New York County
- New York City (0.04)
- Michigan > Washtenaw County
- Ann Arbor (0.04)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- Hawaii > Honolulu County
- Honolulu (0.04)
- Washington > King County
- Puerto Rico > San Juan
- San Juan (0.04)
- United States
- Europe
- Netherlands > North Holland
- Amsterdam (0.04)
- Belgium > Brussels-Capital Region
- Brussels (0.04)
- Netherlands > North Holland
- Asia > China
- Hong Kong (0.04)
- Africa > Rwanda
- North America
- Genre:
- Research Report > New Finding (1.00)
- Technology: