{"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/lense-learning-to-navigate-subgraph","title":"LeNSE: Learning To Navigate Subgraph Embeddings for Large-Scale Combinatorial Optimisation","arxiv_id":"2205.10106","date":"2022-05-20","proceeding":null,"authors":["David Ireland","Giovanni Montana"],"abstract":"Combinatorial Optimisation problems arise in several application domains and are often formulated in terms of graphs. Many of these problems are NP-hard, but exact solutions are not always needed. Several heuristics have been developed to provide near-optimal solutions; however, they do not typically scale well with the size of the graph. We propose a low-complexity approach for identifying a (possibly much smaller) subgraph of the original graph where the heuristics can be run in reasonable time and with a high likelihood of finding a global near-optimal solution. The core component of our approach is LeNSE, a reinforcement learning algorithm that learns how to navigate the space of possible subgraphs using an Euclidean subgraph embedding as its map. To solve CO problems, LeNSE is provided with a discriminative embedding trained using any existing heuristics using only on a small portion of the original graph. When tested on three problems (vertex cover, max-cut and influence maximisation) using real graphs with up to $10$ million edges, LeNSE identifies small subgraphs yielding solutions comparable to those found by running the heuristics on the entire graph, but at a fraction of the total run time.","url_abs":"https://arxiv.org/abs/2205.10106v1","url_pdf":"https://arxiv.org/pdf/2205.10106v1.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":"lense-learning-to-navigate-subgraph","repo_url":"https://github.com/davidireland3/lense","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"navigate","task_name":"Navigate"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2205.10106","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2205.10106"}},"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":"deterministic:regex_extraction","url":"https://github.com/davidireland3/LeNSE","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/davidireland3/lense","reach":{"status":"ok"}}],"summary":{"ran":2,"ran_honours":4,"ran_draft_wrong":4,"ran_fixture":1,"unverified":9},"by_repo_kind":{"official":{"samples":20,"ran":11,"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":20,"samples":[{"code_sha256_prefix":"3e065407364bc76f","entry":"Worker","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3e065407364bc76f"}},{"code_sha256_prefix":"8b977e858e065127","entry":"generate_rr","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8b977e858e065127"}},{"code_sha256_prefix":"bfac2181c831ea72","entry":"generate_rr_ic","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bfac2181c831ea72"}},{"code_sha256_prefix":"b47c4238e4bc15f3","entry":"generate_rr_lt","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b47c4238e4bc15f3"}},{"code_sha256_prefix":"d43be97e1132fc8f","entry":"get_graph","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.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":"d43be97e1132fc8f"}},{"code_sha256_prefix":"9d331a19f8957fa6","entry":"logcnk","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9d331a19f8957fa6"}},{"code_sha256_prefix":"90d49c367c418c13","entry":"make_graph_features_for_encoder","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.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":"90d49c367c418c13"}},{"code_sha256_prefix":"23c3ca8a0aef28fd","entry":"node_selection","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.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":"23c3ca8a0aef28fd"}},{"code_sha256_prefix":"c1ba64834670d871","entry":"relabel_edgelist","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c1ba64834670d871"}},{"code_sha256_prefix":"fda53e336a8bdbfa","entry":"relabel_graph","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fda53e336a8bdbfa"}},{"code_sha256_prefix":"46936d1547cdad31","entry":"sampling","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"46936d1547cdad31"}},{"code_sha256_prefix":"ac916420d1fd853a","entry":"BaseEnvironment","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ac916420d1fd853a"}},{"code_sha256_prefix":"615fee04c551f7eb","entry":"Graph","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"615fee04c551f7eb"}},{"code_sha256_prefix":"97cd6b4c29a422a6","entry":"GraphModification","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"97cd6b4c29a422a6"}},{"code_sha256_prefix":"78b0e7b7e4da9f30","entry":"GuidedExplorationEnv","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"78b0e7b7e4da9f30"}},{"code_sha256_prefix":"e027d64126246691","entry":"create_worker","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e027d64126246691"}},{"code_sha256_prefix":"596d1f7c21defb6c","entry":"expected_spread","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"596d1f7c21defb6c"}},{"code_sha256_prefix":"5d2523ccb379f385","entry":"finish_worker","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5d2523ccb379f385"}},{"code_sha256_prefix":"e202328780981f8d","entry":"imm","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e202328780981f8d"}},{"code_sha256_prefix":"591f1210480b0800","entry":"spread","repo":"davidireland3/lense","repo_kind":"official","path":"IM/environment.py","file_url":"https://github.com/davidireland3/lense/blob/HEAD/IM/environment.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"591f1210480b0800"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}