lodestone
Halfway through writing code, you usually can't tell if you're heading somewhere that works or into a dead end. I built a network that tries to tell you before you get there.
I built a network that estimates whether a partial program can be completed to satisfy a given verifier. Lodestone learns across verifier families, measures its probabilities against exact values, and combines learned inference with symbolic solvers.
- role
- Amortized, verifier-conditioned Doob h-transform with calibration as the target.
- language
- Python, PyTorch, Lean, cvc5 for comparisons.
- scale
- 103 entries in an append-only validation ledger; 50k training specs; SyGuS-COMP string benchmarks.
- status
- Research complete.
- source
- Private repository.
- paper
- Read it below · Web version
Learning completion probabilities
The target is the Doob h-function: the probability that a random completion will satisfy a verifier. I condition a single network on the verifier and train it against exact enumeration and the harmonic recursion that these probabilities satisfy.
On the Boolean program benchmark, the reported in-distribution Brier skill is 0.952 ± 0.017. A separate function-disjoint evaluation reaches 0.921 ± 0.042 across three seeds, including one seed below 0.90.
Routing by structure
The experiments distinguish three useful routes: compile tractable verifiers exactly, amortize over familiar families, and use active queries or abstention for unfamiliar ones. A position-weighted modular family exposes a boundary for the tested label-based learners; exact algebra solves the noiseless cases. A structural screen separates that family from the five tested in-prior families with AUC 1.0.
Program synthesis with noisy examples
On 45 clean SyGuS string tasks, the learned search solves 15.6 ± 1.8, compared with cvc5’s 41. The strongest external result comes from a hybrid: preserve cvc5’s returned solutions and invoke fallback inference when it returns none.
On 21 noisy string tasks, that hybrid improves held-out accuracy by 0.258 at 15% label noise and 0.469 at 30%, while preserving the clean score. Changing the grammar substantially changes the gain, making grammar structure a useful candidate predictor of when fallback inference helps.
Symbolic verification supplies a measurable probability target for learning across tasks.
The strongest calibration results are on enumerable domains. Broader synthesis benchmarks, cold-start Monte Carlo training and component ablations would test the method’s reach.