{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/the-effect-of-sampling-temperature-on-problem","title":"The Effect of Sampling Temperature on Problem Solving in Large Language Models","arxiv_id":"2402.05201","date":"2024-02-07","proceeding":null,"authors":["Matthew Renze","Erhan Guven"],"abstract":"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","url_abs":"https://arxiv.org/abs/2402.05201v3","url_pdf":"https://arxiv.org/pdf/2402.05201v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"the-effect-of-sampling-temperature-on-problem","repo_url":"https://github.com/matthewrenze/jhu-llm-temperature","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"BSD-2-Clause"}}],"tasks":[{"task_slug":"multiple-choice","task_name":"Multiple-choice"},{"task_slug":"prompt-engineering","task_name":"Prompt Engineering"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2402.05201","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2402.05201"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/matthewrenze/jhu-llm-temperature","reach":{"status":"ok","spdx":"BSD-2-Clause"}}],"summary":{"ran":3},"by_repo_kind":{"official":{"samples":3,"ran":3,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"ff7d8f16bdc65ec3","entry":"get_bag_of_words_similarity","repo":"matthewrenze/jhu-llm-temperature","repo_kind":"official","path":"source/2_process_text.py","file_url":"https://github.com/matthewrenze/jhu-llm-temperature/blob/HEAD/source/2_process_text.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"ff7d8f16bdc65ec3"}},{"code_sha256_prefix":"72bd6b3cc27f934f","entry":"get_jaccard","repo":"matthewrenze/jhu-llm-temperature","repo_kind":"official","path":"source/2_process_text.py","file_url":"https://github.com/matthewrenze/jhu-llm-temperature/blob/HEAD/source/2_process_text.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"72bd6b3cc27f934f"}},{"code_sha256_prefix":"dfa0d88280dd8767","entry":"get_jaccard_simiarity","repo":"matthewrenze/jhu-llm-temperature","repo_kind":"official","path":"source/2_process_text.py","file_url":"https://github.com/matthewrenze/jhu-llm-temperature/blob/HEAD/source/2_process_text.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"dfa0d88280dd8767"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}