{"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/deepcoder-learning-to-write-programs","title":"DeepCoder: Learning to Write Programs","arxiv_id":"1611.01989","date":"2016-11-07","proceeding":null,"authors":["Matej Balog","Alexander L. Gaunt","Marc Brockschmidt","Sebastian Nowozin","Daniel Tarlow"],"abstract":"We develop a first line of attack for solving programming competition-style\nproblems from input-output examples using deep learning. The approach is to\ntrain a neural network to predict properties of the program that generated the\noutputs from the inputs. We use the neural network's predictions to augment\nsearch techniques from the programming languages community, including\nenumerative search and an SMT-based solver. Empirically, we show that our\napproach leads to an order of magnitude speedup over the strong non-augmented\nbaselines and a Recurrent Neural Network approach, and that we are able to\nsolve problems of difficulty comparable to the simplest problems on programming\ncompetition websites.","url_abs":"http://arxiv.org/abs/1611.01989v2","url_pdf":"http://arxiv.org/pdf/1611.01989v2.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":"deepcoder-learning-to-write-programs","repo_url":"https://github.com/dkamm/deepcoder","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"deepcoder-learning-to-write-programs","repo_url":"https://github.com/lcary/io-generation","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":null},{"paper_slug":"deepcoder-learning-to-write-programs","repo_url":"https://github.com/HiroakiMikami/deep-coder","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"none","reach":{"status":"ok"}}],"tasks":[{"task_slug":"enumerative-search","task_name":"Enumerative Search"},{"task_slug":"program-synthesis","task_name":"Program Synthesis"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1611.01989","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1611.01989"}},"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/dkamm/deepcoder","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/lcary/io-generation","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/HiroakiMikami/deep-coder","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":3,"unverified":5},"by_repo_kind":{"listed":{"samples":8,"ran":3,"repositories":2}},"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":3,"samples":[{"code_sha256_prefix":"9a6e7bf5b92722cf","entry":"get_tasks","repo":"lcary/io-generation","repo_kind":"listed","path":"iogen/iogen.py","file_url":"https://github.com/lcary/io-generation/blob/HEAD/iogen/iogen.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9a6e7bf5b92722cf"}},{"code_sha256_prefix":"c8528013d546438b","entry":"progress","repo":"lcary/io-generation","repo_kind":"listed","path":"iogen/iogen.py","file_url":"https://github.com/lcary/io-generation/blob/HEAD/iogen/iogen.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c8528013d546438b"}},{"code_sha256_prefix":"7cd9850de8c20aa3","entry":"read_json","repo":"lcary/io-generation","repo_kind":"listed","path":"iogen/iogen.py","file_url":"https://github.com/lcary/io-generation/blob/HEAD/iogen/iogen.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7cd9850de8c20aa3"}},{"code_sha256_prefix":"6226638f508b08ae","entry":"get_input_prefix","repo":"dkamm/deepcoder","repo_kind":"listed","path":"deepcoder/nn/encoding.py","file_url":"https://github.com/dkamm/deepcoder/blob/HEAD/deepcoder/nn/encoding.py","link_basis":"harvester_set","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":"6226638f508b08ae"}},{"code_sha256_prefix":"8e0afcd90da2176e","entry":"get_input_typename","repo":"dkamm/deepcoder","repo_kind":"listed","path":"deepcoder/nn/encoding.py","file_url":"https://github.com/dkamm/deepcoder/blob/HEAD/deepcoder/nn/encoding.py","link_basis":"harvester_set","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":"8e0afcd90da2176e"}},{"code_sha256_prefix":"deb6c67a74099fa1","entry":"get_max_nb_inputs","repo":"dkamm/deepcoder","repo_kind":"listed","path":"deepcoder/nn/model.py","file_url":"https://github.com/dkamm/deepcoder/blob/HEAD/deepcoder/nn/model.py","link_basis":"harvester_set","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":"deb6c67a74099fa1"}},{"code_sha256_prefix":"bd83420f86e6d415","entry":"get_unused_indices","repo":"dkamm/deepcoder","repo_kind":"listed","path":"deepcoder/dsl/program.py","file_url":"https://github.com/dkamm/deepcoder/blob/HEAD/deepcoder/dsl/program.py","link_basis":"harvester_set","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":"bd83420f86e6d415"}},{"code_sha256_prefix":"7ea6698dfb1db180","entry":"is_solution","repo":"dkamm/deepcoder","repo_kind":"listed","path":"deepcoder/search.py","file_url":"https://github.com/dkamm/deepcoder/blob/HEAD/deepcoder/search.py","link_basis":"harvester_set","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":"7ea6698dfb1db180"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}