Rational Metareasoning for Large Language Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: De Sabbata, C. Nicolò, Sumers, Theodore R., AlKhamissi, Badr, Bosselut, Antoine, Griffiths, Thomas L.
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911019905843200
author De Sabbata, C. Nicolò
Sumers, Theodore R.
AlKhamissi, Badr
Bosselut, Antoine
Griffiths, Thomas L.
author_facet De Sabbata, C. Nicolò
Sumers, Theodore R.
AlKhamissi, Badr
Bosselut, Antoine
Griffiths, Thomas L.
contents Being prompted to engage in reasoning has emerged as a core technique for using large language models (LLMs), deploying additional inference-time compute to improve task performance. However, as LLMs increase in both size and adoption, inference costs are correspondingly becoming increasingly burdensome. How, then, might we optimize reasoning's cost-performance tradeoff? This work introduces a novel approach based on computational models of metareasoning used in cognitive science, training LLMs to selectively use intermediate reasoning steps only when necessary. We first develop a reward function that incorporates the Value of Computation by penalizing unnecessary reasoning, then use this reward function with Expert Iteration to train the LLM. Compared to few-shot chain-of-thought prompting and STaR, our method significantly reduces inference costs (20-37\% fewer tokens generated across three models) while maintaining task performance across diverse datasets.
format Preprint
id arxiv_https___arxiv_org_abs_2410_05563
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Rational Metareasoning for Large Language Models
De Sabbata, C. Nicolò
Sumers, Theodore R.
AlKhamissi, Badr
Bosselut, Antoine
Griffiths, Thomas L.
Computation and Language
Artificial Intelligence
Machine Learning
Being prompted to engage in reasoning has emerged as a core technique for using large language models (LLMs), deploying additional inference-time compute to improve task performance. However, as LLMs increase in both size and adoption, inference costs are correspondingly becoming increasingly burdensome. How, then, might we optimize reasoning's cost-performance tradeoff? This work introduces a novel approach based on computational models of metareasoning used in cognitive science, training LLMs to selectively use intermediate reasoning steps only when necessary. We first develop a reward function that incorporates the Value of Computation by penalizing unnecessary reasoning, then use this reward function with Expert Iteration to train the LLM. Compared to few-shot chain-of-thought prompting and STaR, our method significantly reduces inference costs (20-37\% fewer tokens generated across three models) while maintaining task performance across diverse datasets.
title Rational Metareasoning for Large Language Models
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2410.05563