Manuscript Offprint

arXiv:2608.28421

Program Learning with Verifiable Rewards: Symbolic Backpropagation for Post-Training LLMs

Vishvesh Bhat

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Post-training a language model to reason means updating its weights. Supervised fine-tuning and reinforcement learning both place the acquired capability inside the model, where it cannot be inspected, cannot be checked step by step, and cannot be moved to another model. We argue that for tasks whose intermediate steps admit verification, reasoning is better placed outside the base model's weights, as an explicit program composed from deterministic and neural primitives. We introduce PLVR (Program Learning with Verifiable Rewards), a post-training method that learns such programs directly from input–output examples. Its mechanism is symbolic backpropagation: each program layer carries a typed ontology, a loss is computed at the output against ground truth, and required input ontologies are propagated backward by type inference over primitive signatures—an analogue of the chain rule in which credit assignment is a derivation rather than an estimate. Where RLVR verifies a terminal outcome, PLVR's reward is a per-step contract verdict, dense over program structure. On LiveCodeBench v6 and τ2\tau^{2}-Bench, ≈\approx30B base models with PLVR outperform RL at matched budget by 27.8 points on average, and frontier models an order of magnitude larger by 13.6 points. A single primitive library serves two benchmarks, so the marginal cost of a new task is ≈\approx100 examples of program search and no new fine-tuning data; identification of the best available program is reliable within seventy. Replacing the loss-guided search with uniform sampling over the same type-admissible space, at equal budget, collapses the median program from 65.6% to 17.5%, identifying the backward pass rather than the type system as the source of the advantage. We release the symbolic backpropagation library and a conformance checker so the method can be applied to primitive libraries other than our own.

1 Introduction

Post-training has converged on a single locus. Supervised fine-tuning adjusts weights toward demonstrated behaviour; reinforcement learning adjusts them toward rewarded outcomes (Guo et al., 2025). Both store what was learned in the same place it was already stored, and inherit three properties of that choice. The acquired capability is opaque: nothing in the weights says which step of a multi-step task the model now performs better. It is unverifiable in progress: a trajectory can only be judged once complete. And it is bound to one model: capability learned for a 12B checkpoint does not transfer to a 30B one without repeating the procedure.

For a large class of tasks, none of this is necessary. Agentic tool-calling, policy-constrained dialogue, and program generation all decompose into steps whose intermediate outputs can be checked—a tool call either matches a signature or does not, a derived task list either covers the request or does not, an ordering either respects declared dependencies or does not. Where such checks exist, the reasoning that composes those steps can live in an explicit artifact rather than in weights.

Reasoning outside the base model. We take this position concretely. A reasoning program is a composition of primitives—some deterministic, some small fine-tuned language models—arranged by a typed domain-specific language, where every primitive carries an output contract enforced at execution. The base model is not updated. What is learned is the program: which primitives, in what arrangement, with what parameters.

This raises the question the rest of the paper answers. Gradient methods learn because backpropagation assigns credit through a differentiable composition. A program of discrete, partly symbolic primitives is not differentiable,

A PREPRINT

and the obvious substitute—search over program structure guided by a scalar score, as in recent agentic workflow optimisation (Hu et al., 2025; Zhang et al., 2025)—estimates credit from coarse signals over whole trajectories. How should credit be assigned through a program that cannot be differentiated?

Symbolic backpropagation. Our answer is that in a typed, contract-verified program, credit need not be estimated at all. A program is organised into N layers, each carrying an ontology: a structured, typed representation of the state at that point, and an inspection point in the sense of a debugger breakpoint. A forward pass produces an output ontology, compared against ground truth by a loss that treats each object as a separate axis and orders type errors strictly before value errors.

The backward pass then propagates required ontologies rather than gradients. Given the ontology required at layer k and the declared signatures of the primitives, the compositions that could produce it induce, by type inference, the ontology required at layer k - 1. That derived requirement plays the role the upstream gradient plays in the differentiable case. Type resolution is deterministic; only the search over parameter values within each primitive's declared range is not. Contract verdicts prune this search and localise failure to the step that produced it.

Verifiable rewards, densified. The relationship to RLVR is direct. RLVR replaced learned reward models with programmatically verifiable outcomes—a signal checked rather than modelled. That signal remains terminal and scalar: it reports that a trajectory succeeded or failed, not where it went wrong. PLVR extends verifiability inward. Every step carries a typed output contract, so correctness is checkable at each step. The reward is verifiable in RLVR's sense—no learned model, checked against a specification—but dense over the program's structure rather than sparse over its trajectory.

Scope. The method applies where intermediate outputs admit checking. This is a precondition entailed by the mechanism, not a limitation discovered after the fact: contracts that localise failure require checkable outputs. Tasks whose quality is a matter of judgement rather than satisfaction—summarisation, open generation—remain the domain of gradient post-training, and we make no claim about them. We compare only against reinforcement-learning post-training, which is the stronger target, and make no claim relative to supervised fine-tuning.

References (41)