{"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/reevo-large-language-models-as-hyper","title":"ReEvo: Large Language Models as Hyper-Heuristics with Reflective Evolution","arxiv_id":"2402.01145","date":"2024-02-02","proceeding":null,"authors":["Haoran Ye","Jiarui Wang","Zhiguang Cao","Federico Berto","Chuanbo Hua","Haeyeon Kim","Jinkyoo Park","Guojie Song"],"abstract":"The omnipresence of NP-hard combinatorial optimization problems (COPs) compels domain experts to engage in trial-and-error heuristic design. The long-standing endeavor of design automation has gained new momentum with the rise of large language models (LLMs). This paper introduces Language Hyper-Heuristics (LHHs), an emerging variant of Hyper-Heuristics that leverages LLMs for heuristic generation, featuring minimal manual intervention and open-ended heuristic spaces. To empower LHHs, we present Reflective Evolution (ReEvo), a novel integration of evolutionary search for efficiently exploring the heuristic space, and LLM reflections to provide verbal gradients within the space. Across five heterogeneous algorithmic types, six different COPs, and both white-box and black-box views of COPs, ReEvo yields state-of-the-art and competitive meta-heuristics, evolutionary algorithms, heuristics, and neural solvers, while being more sample-efficient than prior LHHs.","url_abs":"https://arxiv.org/abs/2402.01145v3","url_pdf":"https://arxiv.org/pdf/2402.01145v3.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":"reevo-large-language-models-as-hyper","repo_url":"https://github.com/ai4co/llm-as-hh","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"reevo-large-language-models-as-hyper","repo_url":"https://github.com/XAI-liacs/BLADE","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"reevo-large-language-models-as-hyper","repo_url":"https://github.com/ai4co/reevo","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"combinatorial-optimization","task_name":"Combinatorial Optimization"},{"task_slug":"evolutionary-algorithms","task_name":"Evolutionary Algorithms"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2402.01145","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2402.01145"}},"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/XAI-liacs/BLADE","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ai4co/llm-as-hh","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ai4co/reevo","reach":null}],"summary":{"ran":2,"ran_fixture":1,"ran_draft_wrong":2,"unverified":5},"by_repo_kind":{"official":{"samples":8,"ran":4,"repositories":1},"listed":{"samples":2,"ran":1,"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":"baa0f6551fb92434","entry":"BaseClient","repo":"ai4co/reevo","repo_kind":"listed","path":"reevo.py","file_url":"https://github.com/ai4co/reevo/blob/HEAD/reevo.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"baa0f6551fb92434"}},{"code_sha256_prefix":"6dc103e776ff9eed","entry":"multi_head_attention","repo":"ai4co/llm-as-hh","repo_kind":"official","path":"problems/cvrp_pomo/CVRPModel.py","file_url":"https://github.com/ai4co/llm-as-hh/blob/HEAD/problems/cvrp_pomo/CVRPModel.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6dc103e776ff9eed"}},{"code_sha256_prefix":"388642e538834053","entry":"multi_head_attention","repo":"ai4co/llm-as-hh","repo_kind":"official","path":"problems/cvrp_lehd/VRPModel.py","file_url":"https://github.com/ai4co/llm-as-hh/blob/HEAD/problems/cvrp_lehd/VRPModel.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"388642e538834053"}},{"code_sha256_prefix":"3ce72bef872610ae","entry":"multi_head_attention","repo":"ai4co/llm-as-hh","repo_kind":"official","path":"problems/tsp_lehd/TSPModel.py","file_url":"https://github.com/ai4co/llm-as-hh/blob/HEAD/problems/tsp_lehd/TSPModel.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3ce72bef872610ae"}},{"code_sha256_prefix":"459fe521069329c6","entry":"reshape_by_heads","repo":"ai4co/llm-as-hh","repo_kind":"official","path":"problems/cvrp_lehd/VRPModel.py","file_url":"https://github.com/ai4co/llm-as-hh/blob/HEAD/problems/cvrp_lehd/VRPModel.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"459fe521069329c6"}},{"code_sha256_prefix":"a401fd4d14204c6f","entry":"ReEvo","repo":"ai4co/reevo","repo_kind":"listed","path":"reevo.py","file_url":"https://github.com/ai4co/reevo/blob/HEAD/reevo.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a401fd4d14204c6f"}},{"code_sha256_prefix":"4030db5033718067","entry":"heuristics_seed","repo":"ai4co/llm-as-hh","repo_kind":"official","path":"problems/cvrp_lehd/VRPModel.py","file_url":"https://github.com/ai4co/llm-as-hh/blob/HEAD/problems/cvrp_lehd/VRPModel.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4030db5033718067"}},{"code_sha256_prefix":"1c283fdaa36724b7","entry":"heuristics_seed","repo":"ai4co/llm-as-hh","repo_kind":"official","path":"problems/tsp_lehd/TSPModel.py","file_url":"https://github.com/ai4co/llm-as-hh/blob/HEAD/problems/tsp_lehd/TSPModel.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1c283fdaa36724b7"}},{"code_sha256_prefix":"c86f90cdf060dee7","entry":"seed_heuristics","repo":"ai4co/llm-as-hh","repo_kind":"official","path":"problems/cvrp_pomo/CVRPModel.py","file_url":"https://github.com/ai4co/llm-as-hh/blob/HEAD/problems/cvrp_pomo/CVRPModel.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c86f90cdf060dee7"}},{"code_sha256_prefix":"33152f946f8f0b74","entry":"seed_heuristics","repo":"ai4co/llm-as-hh","repo_kind":"official","path":"problems/tsp_pomo/TSPModel.py","file_url":"https://github.com/ai4co/llm-as-hh/blob/HEAD/problems/tsp_pomo/TSPModel.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"33152f946f8f0b74"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}