{"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/lambdabeam-neural-program-search-with-higher","title":"LambdaBeam: Neural Program Search with Higher-Order Functions and Lambdas","arxiv_id":"2306.02049","date":"2023-06-03","proceeding":"NeurIPS 2023 11","authors":[],"abstract":"Search is an important technique in program synthesis that allows for adaptive strategies such as focusing on particular search directions based on execution results. Several prior works have demonstrated that neural models are effective at guiding program synthesis searches. However, a common drawback of those approaches is the inability to handle iterative loops, higher-order functions, or lambda functions, thus limiting prior neural searches from synthesizing longer and more general programs. We address this gap by designing a search algorithm called LambdaBeam that can construct arbitrary lambda functions that compose operations within a given DSL. We create semantic vector representations of the execution behavior of the lambda functions and train a neural policy network to choose which lambdas to construct during search, and pass them as arguments to higher-order functions to perform looping computations. Our experiments show that LambdaBeam outperforms neural, symbolic, and LLM-based techniques in an integer list manipulation domain.","url_abs":"https://arxiv.org/abs/2306.02049v2","url_pdf":"https://arxiv.org/pdf/2306.02049v2.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":"lambdabeam-neural-program-search-with-higher","repo_url":"https://github.com/ellisk42/lambdabeam","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"program-synthesis","task_name":"Program Synthesis"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2306.02049","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2306.02049"}},"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/ellisk42/lambdabeam","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":7},"by_repo_kind":{"listed":{"samples":7,"ran":0,"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":"05e00ea04f0b2145","entry":"compute_example_signature","repo":"ellisk42/lambdabeam","repo_kind":"listed","path":"lambdabeam/algorithm/property_signatures.py","file_url":"https://github.com/ellisk42/lambdabeam/blob/HEAD/lambdabeam/algorithm/property_signatures.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"05e00ea04f0b2145"}},{"code_sha256_prefix":"5900b8381a2175b5","entry":"compute_value_signature","repo":"ellisk42/lambdabeam","repo_kind":"listed","path":"lambdabeam/algorithm/property_signatures.py","file_url":"https://github.com/ellisk42/lambdabeam/blob/HEAD/lambdabeam/algorithm/property_signatures.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5900b8381a2175b5"}},{"code_sha256_prefix":"16d2ed61bce1cb76","entry":"generate_partitions","repo":"ellisk42/lambdabeam","repo_kind":"listed","path":"lambdabeam/algorithm/baseline_enumeration.py","file_url":"https://github.com/ellisk42/lambdabeam/blob/HEAD/lambdabeam/algorithm/baseline_enumeration.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"16d2ed61bce1cb76"}},{"code_sha256_prefix":"99f6727919426a80","entry":"get_int_mapped","repo":"ellisk42/lambdabeam","repo_kind":"listed","path":"lambdabeam/model/encoder.py","file_url":"https://github.com/ellisk42/lambdabeam/blob/HEAD/lambdabeam/model/encoder.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"99f6727919426a80"}},{"code_sha256_prefix":"1fc957c1eb03370c","entry":"get_pad","repo":"ellisk42/lambdabeam","repo_kind":"listed","path":"lambdabeam/model/encoder.py","file_url":"https://github.com/ellisk42/lambdabeam/blob/HEAD/lambdabeam/model/encoder.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1fc957c1eb03370c"}},{"code_sha256_prefix":"6a92b8c8f6066e6d","entry":"pad_sequence","repo":"ellisk42/lambdabeam","repo_kind":"listed","path":"lambdabeam/model/base.py","file_url":"https://github.com/ellisk42/lambdabeam/blob/HEAD/lambdabeam/model/base.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6a92b8c8f6066e6d"}},{"code_sha256_prefix":"39fa178f536052cb","entry":"update_masks","repo":"ellisk42/lambdabeam","repo_kind":"listed","path":"lambdabeam/algorithm/synthesis.py","file_url":"https://github.com/ellisk42/lambdabeam/blob/HEAD/lambdabeam/algorithm/synthesis.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"39fa178f536052cb"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}