{"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/arxiv-2607-03574","title":"Differentiate the Evaluator, Not the Program: An Efficient Runtime Representation for Neuro-Symbolic Learning","arxiv_id":"2607.03574","date":"2026-07-03","proceeding":null,"authors":["Lucas Sheneman"],"abstract":"AI systems increasingly propose executable scientific models whose value depends on both their symbolic structure and their fitted continuous parameters. This makes parameter calibration the bottleneck of program-and-parameter co-search: an outer loop can generate thousands of candidate programs, but each needs an inner gradient-based optimization before it can be assessed. Staging each candidate into its own differentiable graph makes individual models fast but sacrifices the program-as-data property that keeps search fluid; interpreter-based approaches preserve programs as runtime data but pay interpreter overhead that dominates the numerical work. We present the Native Differentiable Virtual Machine (NDVM), a runtime representation that differentiates executable programs without compiling each candidate into a separate graph. NDVM separates symbolic structure from differentiable numeric state: tags, symbols, environments, and control remain native runtime data, while numeric payloads live in dense batched buffers with exact reverse-mode gradients recorded along the realized execution trace, so one evaluator walk is amortized across large populations of parameter vectors. A locked cost model of a real differentiable self-hosted Scheme interpreter motivates the design. We realize NDVM as a native runtime with forward and gradient equivalence to the reference backend, about 60x per-lane batch amortization, near-linear multicore scaling, and two independent front ends. In fixed-budget co-search over LLM-proposed programs, NDVM reaches high-quality solutions about 24x sooner in wall-clock time, suggesting runtime differentiation as a practical systems foundation for scientific discovery workflows.","url_abs":"https://arxiv.org/abs/2607.03574","url_pdf":"https://arxiv.org/pdf/2607.03574","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2607.03574","atlas_url":null,"mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2607.03574"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/sheneman/ndvm","reach":null}],"summary":{"ran":14,"unverified":1},"by_repo_kind":{"found_in_text":{"samples":15,"ran":14,"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":"447169e61f9816ff","entry":"build_obs_matrix","repo":"sheneman/ndvm","repo_kind":"found_in_text","path":"ndvm/profiling/perlane_sweep.py","file_url":"https://github.com/sheneman/ndvm/blob/HEAD/ndvm/profiling/perlane_sweep.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":"447169e61f9816ff"}},{"code_sha256_prefix":"3780cc81a37c42dd","entry":"extract","repo":"sheneman/ndvm","repo_kind":"found_in_text","path":"ndvm/profiling/cosearch_propose.py","file_url":"https://github.com/sheneman/ndvm/blob/HEAD/ndvm/profiling/cosearch_propose.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3780cc81a37c42dd"}},{"code_sha256_prefix":"ae6099fe7e8b4144","entry":"gen_candidates","repo":"sheneman/ndvm","repo_kind":"found_in_text","path":"ndvm/profiling/cosearch_cached_staging.py","file_url":"https://github.com/sheneman/ndvm/blob/HEAD/ndvm/profiling/cosearch_cached_staging.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":"ae6099fe7e8b4144"}},{"code_sha256_prefix":"8e73eecea3c9504f","entry":"kalman_src","repo":"sheneman/ndvm","repo_kind":"found_in_text","path":"ndvm/profiling/perlane_sweep.py","file_url":"https://github.com/sheneman/ndvm/blob/HEAD/ndvm/profiling/perlane_sweep.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8e73eecea3c9504f"}},{"code_sha256_prefix":"a0de5e44e10b04d6","entry":"leaf_list","repo":"sheneman/ndvm","repo_kind":"found_in_text","path":"ndvm/profiling/bytecode_vm_e2e.py","file_url":"https://github.com/sheneman/ndvm/blob/HEAD/ndvm/profiling/bytecode_vm_e2e.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":"a0de5e44e10b04d6"}},{"code_sha256_prefix":"6d21b06c77371c5c","entry":"make_mats","repo":"sheneman/ndvm","repo_kind":"found_in_text","path":"ndvm/profiling/alloc_counters.py","file_url":"https://github.com/sheneman/ndvm/blob/HEAD/ndvm/profiling/alloc_counters.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":"6d21b06c77371c5c"}},{"code_sha256_prefix":"353ead5dbed47585","entry":"make_obs","repo":"sheneman/ndvm","repo_kind":"found_in_text","path":"ndvm/profiling/cosearch_budget.py","file_url":"https://github.com/sheneman/ndvm/blob/HEAD/ndvm/profiling/cosearch_budget.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"353ead5dbed47585"}},{"code_sha256_prefix":"17102751a2d4873c","entry":"make_task","repo":"sheneman/ndvm","repo_kind":"found_in_text","path":"ndvm/profiling/cosearch_e2e.py","file_url":"https://github.com/sheneman/ndvm/blob/HEAD/ndvm/profiling/cosearch_e2e.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":"17102751a2d4873c"}},{"code_sha256_prefix":"f71d85a81f058340","entry":"one","repo":"sheneman/ndvm","repo_kind":"found_in_text","path":"ndvm/profiling/cosearch_propose.py","file_url":"https://github.com/sheneman/ndvm/blob/HEAD/ndvm/profiling/cosearch_propose.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":"f71d85a81f058340"}},{"code_sha256_prefix":"a0ba6a06dd81d2f6","entry":"one","repo":"sheneman/ndvm","repo_kind":"found_in_text","path":"ndvm/profiling/cosearch_rec_propose.py","file_url":"https://github.com/sheneman/ndvm/blob/HEAD/ndvm/profiling/cosearch_rec_propose.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":"a0ba6a06dd81d2f6"}},{"code_sha256_prefix":"f3c66f815c78ccaa","entry":"params_used","repo":"sheneman/ndvm","repo_kind":"found_in_text","path":"ndvm/profiling/cosearch_e2e.py","file_url":"https://github.com/sheneman/ndvm/blob/HEAD/ndvm/profiling/cosearch_e2e.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":"f3c66f815c78ccaa"}},{"code_sha256_prefix":"9fb61c6b4d55945f","entry":"skeleton","repo":"sheneman/ndvm","repo_kind":"found_in_text","path":"ndvm/profiling/cosearch_e2e.py","file_url":"https://github.com/sheneman/ndvm/blob/HEAD/ndvm/profiling/cosearch_e2e.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9fb61c6b4d55945f"}},{"code_sha256_prefix":"e82dcaee1e843df5","entry":"target","repo":"sheneman/ndvm","repo_kind":"found_in_text","path":"ndvm/profiling/cosearch_gradcheck.py","file_url":"https://github.com/sheneman/ndvm/blob/HEAD/ndvm/profiling/cosearch_gradcheck.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e82dcaee1e843df5"}},{"code_sha256_prefix":"9556ab92d190dfdc","entry":"w_params","repo":"sheneman/ndvm","repo_kind":"found_in_text","path":"ndvm/profiling/bytecode_vm_e2e.py","file_url":"https://github.com/sheneman/ndvm/blob/HEAD/ndvm/profiling/bytecode_vm_e2e.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":"9556ab92d190dfdc"}},{"code_sha256_prefix":"14dd2e31402021fc","entry":"time_one_B","repo":"sheneman/ndvm","repo_kind":"found_in_text","path":"ndvm/profiling/perlane_sweep.py","file_url":"https://github.com/sheneman/ndvm/blob/HEAD/ndvm/profiling/perlane_sweep.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":"14dd2e31402021fc"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 7,081 of the 9,623 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9623,"papers_checked":7081},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}