Large Language Model Cascades with Mixture of Thought Representations for Cost-Efficient Reasoning

Abstract

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 ''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. 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.

Cite

Text

Yue et al. "Large Language Model Cascades with Mixture of Thought Representations for Cost-Efficient Reasoning." ICLR 2024 Workshops: R2-FM, 2024.

Markdown

[Yue et al. "Large Language Model Cascades with Mixture of Thought Representations for Cost-Efficient Reasoning." ICLR 2024 Workshops: R2-FM, 2024.](https://mlanthology.org/iclrw/2024/yue2024iclrw-large/)

BibTeX

@inproceedings{yue2024iclrw-large,
  title     = {{Large Language Model Cascades with Mixture of Thought Representations for Cost-Efficient Reasoning}},
  author    = {Yue, Murong and Zhao, Jie and Zhang, Min and Du, Liang and Yao, Ziyu},
  booktitle = {ICLR 2024 Workshops: R2-FM},
  year      = {2024},
  url       = {https://mlanthology.org/iclrw/2024/yue2024iclrw-large/}
}