Saved in:
Bibliographic Details
Main Authors: Yue, Murong, Zhao, Jie, Zhang, Min, Du, Liang, Yao, Ziyu
Format: Preprint
Published: 2023
Subjects:
Online Access:https://arxiv.org/abs/2310.03094
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911773792141312
author Yue, Murong
Zhao, Jie
Zhang, Min
Du, Liang
Yao, Ziyu
author_facet Yue, Murong
Zhao, Jie
Zhang, Min
Du, Liang
Yao, Ziyu
contents Large language models (LLMs) such as GPT-4 have exhibited remarkable performance in a variety of tasks, but this strong performance often comes with the high expense of using paid API services. In this paper, we are motivated to study building an LLM cascade to save the cost of using LLMs, particularly for performing reasoning (e.g., mathematical, causal) tasks. Our cascade pipeline follows the intuition that simpler questions can be addressed by a weaker but more affordable LLM, whereas only the challenging questions necessitate the stronger and more expensive LLM. To realize this decision-making, we consider the "answer consistency" of the weaker LLM as a signal of the question difficulty and propose several methods for the answer sampling and consistency checking, including one leveraging a mixture of two thought representations (i.e., Chain-of-Thought and Program-of-Thought). Through experiments on six reasoning benchmark datasets, with GPT-3.5-turbo and GPT-4 being the weaker and stronger LLMs, respectively, we demonstrate that our proposed LLM cascades can achieve performance comparable to using solely the stronger LLM but require only 40% of its cost.
format Preprint
id arxiv_https___arxiv_org_abs_2310_03094
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Large Language Model Cascades with Mixture of Thoughts Representations for Cost-efficient Reasoning
Yue, Murong
Zhao, Jie
Zhang, Min
Du, Liang
Yao, Ziyu
Computation and Language
Artificial Intelligence
Machine Learning
Large language models (LLMs) such as GPT-4 have exhibited remarkable performance in a variety of tasks, but this strong performance often comes with the high expense of using paid API services. In this paper, we are motivated to study building an LLM cascade to save the cost of using LLMs, particularly for performing reasoning (e.g., mathematical, causal) tasks. Our cascade pipeline follows the intuition that simpler questions can be addressed by a weaker but more affordable LLM, whereas only the challenging questions necessitate the stronger and more expensive LLM. To realize this decision-making, we consider the "answer consistency" of the weaker LLM as a signal of the question difficulty and propose several methods for the answer sampling and consistency checking, including one leveraging a mixture of two thought representations (i.e., Chain-of-Thought and Program-of-Thought). Through experiments on six reasoning benchmark datasets, with GPT-3.5-turbo and GPT-4 being the weaker and stronger LLMs, respectively, we demonstrate that our proposed LLM cascades can achieve performance comparable to using solely the stronger LLM but require only 40% of its cost.
title Large Language Model Cascades with Mixture of Thoughts Representations for Cost-efficient Reasoning
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2310.03094