{"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/generalizable-heuristic-generation-through","title":"Generalizable Heuristic Generation Through Large Language Models with Meta-Optimization","arxiv_id":"2505.20881","date":"2025-05-27","proceeding":null,"authors":["Yiding Shi","Jianan Zhou","Wen Song","Jieyi Bi","Yaoxin Wu","Jie Zhang"],"abstract":"Heuristic design with large language models (LLMs) has emerged as a promising approach for tackling combinatorial optimization problems (COPs). However, existing approaches often rely on manually predefined evolutionary computation (EC) optimizers and single-task training schemes, which may constrain the exploration of diverse heuristic algorithms and hinder the generalization of the resulting heuristics. To address these issues, we propose Meta-Optimization of Heuristics (MoH), a novel framework that operates at the optimizer level, discovering effective optimizers through the principle of meta-learning. Specifically, MoH leverages LLMs to iteratively refine a meta-optimizer that autonomously constructs diverse optimizers through (self-)invocation, thereby eliminating the reliance on a predefined EC optimizer. These constructed optimizers subsequently evolve heuristics for downstream tasks, enabling broader heuristic exploration. Moreover, MoH employs a multi-task training scheme to promote its generalization capability. Experiments on classic COPs demonstrate that MoH constructs an effective and interpretable meta-optimizer, achieving state-of-the-art performance across various downstream tasks, particularly in cross-size settings.","url_abs":"https://arxiv.org/abs/2505.20881v1","url_pdf":"https://arxiv.org/pdf/2505.20881v1.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":[],"tasks":[{"task_slug":"combinatorial-optimization","task_name":"Combinatorial Optimization"},{"task_slug":"meta-learning","task_name":"Meta-Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2505.20881","atlas_url":"https://app.syntology.ai/?focus=2505.20881","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2505.20881"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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":"deterministic:regex_extraction","url":"https://github.com/yiding-s/MoH","reach":null}],"summary":{"ran":2,"ran_draft_wrong":6,"ran_honours":1,"unverified":4},"by_repo_kind":{"found_in_text":{"samples":13,"ran":9,"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":"6bbb074549eb8d0a","entry":"BaseClient","repo":"yiding-s/MoH","repo_kind":"found_in_text","path":"moh.py","file_url":"https://github.com/yiding-s/MoH/blob/HEAD/moh.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":"6bbb074549eb8d0a"}},{"code_sha256_prefix":"91a30e2df0db4521","entry":"Pop","repo":"yiding-s/MoH","repo_kind":"found_in_text","path":"moh.py","file_url":"https://github.com/yiding-s/MoH/blob/HEAD/moh.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":"91a30e2df0db4521"}},{"code_sha256_prefix":"7bb761fcfadb6e28","entry":"clean_code","repo":"yiding-s/MoH","repo_kind":"found_in_text","path":"moh.py","file_url":"https://github.com/yiding-s/MoH/blob/HEAD/moh.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7bb761fcfadb6e28"}},{"code_sha256_prefix":"8a5a672d8056c8eb","entry":"code_only","repo":"yiding-s/MoH","repo_kind":"found_in_text","path":"moh.py","file_url":"https://github.com/yiding-s/MoH/blob/HEAD/moh.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8a5a672d8056c8eb"}},{"code_sha256_prefix":"c4556869df45be56","entry":"extract_idea","repo":"yiding-s/MoH","repo_kind":"found_in_text","path":"moh.py","file_url":"https://github.com/yiding-s/MoH/blob/HEAD/moh.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c4556869df45be56"}},{"code_sha256_prefix":"e0a5d1dfc846373b","entry":"find_braces","repo":"yiding-s/MoH","repo_kind":"found_in_text","path":"moh.py","file_url":"https://github.com/yiding-s/MoH/blob/HEAD/moh.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e0a5d1dfc846373b"}},{"code_sha256_prefix":"d73d0729456794d7","entry":"find_txt_block","repo":"yiding-s/MoH","repo_kind":"found_in_text","path":"moh.py","file_url":"https://github.com/yiding-s/MoH/blob/HEAD/moh.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d73d0729456794d7"}},{"code_sha256_prefix":"f5955b21dc0ea936","entry":"match_number","repo":"yiding-s/MoH","repo_kind":"found_in_text","path":"moh.py","file_url":"https://github.com/yiding-s/MoH/blob/HEAD/moh.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f5955b21dc0ea936"}},{"code_sha256_prefix":"6869ebaec683982d","entry":"read_file_as_str","repo":"yiding-s/MoH","repo_kind":"found_in_text","path":"moh.py","file_url":"https://github.com/yiding-s/MoH/blob/HEAD/moh.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6869ebaec683982d"}},{"code_sha256_prefix":"b10d5f52bf08e39a","entry":"MoH","repo":"yiding-s/MoH","repo_kind":"found_in_text","path":"moh.py","file_url":"https://github.com/yiding-s/MoH/blob/HEAD/moh.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":"b10d5f52bf08e39a"}},{"code_sha256_prefix":"a64e631a6334c5e0","entry":"RunLogger","repo":"yiding-s/MoH","repo_kind":"found_in_text","path":"moh.py","file_url":"https://github.com/yiding-s/MoH/blob/HEAD/moh.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":"a64e631a6334c5e0"}},{"code_sha256_prefix":"02ffbc411e44afd8","entry":"extract_code","repo":"yiding-s/MoH","repo_kind":"found_in_text","path":"moh.py","file_url":"https://github.com/yiding-s/MoH/blob/HEAD/moh.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":"02ffbc411e44afd8"}},{"code_sha256_prefix":"f8269cf574311791","entry":"find_largest_code_block_line_by_line","repo":"yiding-s/MoH","repo_kind":"found_in_text","path":"moh.py","file_url":"https://github.com/yiding-s/MoH/blob/HEAD/moh.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":"f8269cf574311791"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}