The Effect of Sampling Temperature on Problem Solving in Large Language Models

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Renze, Matthew, Guven, Erhan
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866913735078051840
author Renze, Matthew
Guven, Erhan
author_facet Renze, Matthew
Guven, Erhan
contents In this research study, we empirically investigate the effect of sampling temperature on the performance of Large Language Models (LLMs) on various problem-solving tasks. We created a multiple-choice question-and-answer (MCQA) exam by randomly sampling problems from standard LLM benchmarks. Then, we used nine popular LLMs with five prompt-engineering techniques to solve the MCQA problems while increasing the sampling temperature from 0.0 to 1.6. Despite anecdotal reports to the contrary, our empirical results indicate that changes in temperature from 0.0 to 1.0 do not have a statistically significant impact on LLM performance for problem-solving tasks. In addition, these results appear to generalize across LLMs, prompt-engineering techniques, and problem domains. All code, data, and supplemental materials are available on GitHub at: https://github.com/matthewrenze/jhu-llm-temperature
format Preprint
id arxiv_https___arxiv_org_abs_2402_05201
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle The Effect of Sampling Temperature on Problem Solving in Large Language Models
Renze, Matthew
Guven, Erhan
Computation and Language
Artificial Intelligence
In this research study, we empirically investigate the effect of sampling temperature on the performance of Large Language Models (LLMs) on various problem-solving tasks. We created a multiple-choice question-and-answer (MCQA) exam by randomly sampling problems from standard LLM benchmarks. Then, we used nine popular LLMs with five prompt-engineering techniques to solve the MCQA problems while increasing the sampling temperature from 0.0 to 1.6. Despite anecdotal reports to the contrary, our empirical results indicate that changes in temperature from 0.0 to 1.0 do not have a statistically significant impact on LLM performance for problem-solving tasks. In addition, these results appear to generalize across LLMs, prompt-engineering techniques, and problem domains. All code, data, and supplemental materials are available on GitHub at: https://github.com/matthewrenze/jhu-llm-temperature
title The Effect of Sampling Temperature on Problem Solving in Large Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2402.05201