Papers › Compile Once, Differentiate Everywhere: A Differentiable Meta-Circular Interpreter

Compile Once, Differentiate Everywhere: A Differentiable Meta-Circular Interpreter

7 Jun 2026arXiv:2606.09930added by Syntology

Lucas Sheneman

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

The boundary between program execution and gradient-based optimization has long limited the use of code itself as a learnable scientific model. We present a compiler that translates a self-hosting subset of Scheme into differentiable computation graphs for autograd backends. Because the subset can compile its own evaluator, this yields differentiable meta-circular interpretation (DMCI): a compiled Scheme interpreter executes programs supplied as data, while reverse-mode autodiff propagates gradients to continuous constants embedded in those programs. The interpreter is compiled once, so new programs inherit differentiability without recompilation or custom gradient machinery, while retaining closures, recursion, and data structures. We prove that gradients through the compiled interpreter are correct almost everywhere and show that they match direct compilation to numerical precision across 171 recursive and higher-order program-seed pairs. We then use DMCI for program-and-parameter co-search, where a large language model proposes Scheme programs and exact gradients calibrate their continuous parameters through a single frozen interpreter. This enables OpenEvolve-style program search in which an outer loop proposes discrete program structures and DMCI supplies exact gradient-based calibration of each candidate's continuous parameters. On battery capacity-fade data, the search recovers a knee-like degradation structure and improves held-out extrapolation over hand-crafted baselines on the harder early-extrapolation split, matching them on the later split. On a high-dimensional El Nino inverse problem, DMCI optimizes an interpreted Kalman-filter likelihood where gradient-free search fails. These results extend symbolic regression and neurosymbolic search from closed-form expressions to executable, stateful programs, making model-generated code directly optimizable against data.

PaperPDFCode Syntology ran

In Syntology For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2606.09930")

Code

Syntology Ran 9 of 13 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 9 ran with no contract checked.

By repository: found in paper text by Syntology: 13 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

sheneman/dmci found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 9 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

9ran
4unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from sheneman/dmci. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

compose_product sheneman/dmci/experiments/exp_g/modules.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 2f9b95133bdfab29 · report
compose_sum sheneman/dmci/experiments/exp_g/modules.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 7910057042a93b28 · report
load_data sheneman/dmci/benchmarks/plot_benchmarks.py found in paper text by Syntology ran MIT (permissive) · 8875030ea2485c34 · report
make_chain sheneman/dmci/benchmarks/run_benchmarks.py found in paper text by Syntology ran MIT (permissive) · b233d4e94dc70dbc · report
make_tree sheneman/dmci/benchmarks/run_benchmarks.py found in paper text by Syntology ran MIT (permissive) · 2420c254d5ba9c8a · report
manifest_text sheneman/dmci/experiments/check_manifests.py found in paper text by Syntology ran MIT (permissive) · 5885ea8c05d86d9f · report
read_manifest sheneman/dmci/experiments/check_manifests.py found in paper text by Syntology ran MIT (permissive) · ad5da3ef9764d7ec · report
split_top_level_forms sheneman/dmci/neural_compiler/dmci.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 203ca9d3ae2046d6 · report
unsupported_interpreter_ops sheneman/dmci/neural_compiler/dmci.py found in paper text by Syntology ran MIT (permissive) · d67550ff7c4be8e2 · report
bench sheneman/dmci/benchmarks/run_benchmarks.py found in paper text by Syntology unverified MIT (permissive) · 2d07c976b1334d89 · report
dmci_wrap sheneman/dmci/neural_compiler/dmci.py found in paper text by Syntology unverified MIT (permissive) · 373ef1fde5910993 · report
plot_large_programs sheneman/dmci/benchmarks/plot_benchmarks.py found in paper text by Syntology unverified MIT (permissive) · 7d97cce990a1e71a · report
tracked_basenames sheneman/dmci/experiments/check_manifests.py found in paper text by Syntology unverified MIT (permissive) · 8f5dbe719f430fe1 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2606.09930, was issued in June 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections