potentialpaper

Differentiable Exact Learning

Hristo Papazov, Francesco D'Angelo, Nicolas Flammarion

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. We introduce a framework for differentiable exact learning that couples an unbounded external environment to a state-tracking neural controller, which we train on policy-trajectory observations (PTOs): expert behavior traces that expose observations and actions while hiding internal states. In addition to the learning framework, we introduce Differentiable Finite-State Transducers (DFSTs) which use multilinear updates, support log-parallel training, and emulate arbitrary finite-state controllers, yielding computational universality through environmental interaction. From tiny training datasets, compact DFSTs achieve extreme length generalization on arithmetic and universal-simulation tasks. We replicate the success of DFSTs on RNNs and GRUs, thereby supporting a broader learning recipe: \textbf{State-Tracking Controller + Unbounded External Environment + PTOs = Extreme Length Generalization}. Beyond length generalization, our metric-extraction protocol recovers interpretable discrete controllers from trained DFSTs, which we prove equivalent to the target arithmetic and universal-simulation algorithms. Furthermore, for our Softmax DFST models, simply taking argmax\mathrm{argmax} over the transition probabilities yields discrete controllers which exactly perform universal Turing-machine simulation and binary arithmetic. Proving exact learning for the neural controllers requires assumptions, which we empirically support. We make our code, training recipes, model weights, and proof checkers publicly available: https://github.com/fanagor/DEL.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
27 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:49 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper develops a model of computation that is Turing-complete and shows a way to learn it using policy traces. The model consists of an infinite tape, organized as Z^2. There is a finite alphabet and set of states. At any step, the controller reads the symbol at the current position and then (a) writes a symbol to that position, (b) changes state, (c) moves up/down/left/right. It halts when a "halt" move is taken.

The model is Turing complete, so there is no hope of learning it from input-output pairs. Instead, traces are presented of how the tape evolves over time for given inputs; these are called policy-trajectory observations (PTOs). Earlier work (Papazov and Flammarion) suggested PTOs as a way to learn such models and showed identifiability (of any computable function) in the limit. This paper suggests an alternative way of learning: using a "differentiable finite-state transducer" (DFST): a fully-linear controller with real-valued state and input/output, in which the world's input/output are mapped using one-hot encoding, with the reverse map using argmax.

The experimental results show, among other things, how addition is learned with length generalization. The authors also show a way of extracting a finite-state machine from the learned controller using geometric assumptions about state clustering.

The reviewers are positive about the paper's framework, results, and overall novelty. They have a few basic questions, e.g.

Q. How sensitive are the results to the completeness of the PTOs? Is it possible to accommodate missing or corrupted steps?

The authors have given detailed responses to the reviewers' questions, for which they are thanked. However, since these involve additional (and un-verified) material, the reviewers have largely maintained their initial scores.

Final justification

The justification is spelled out in the meta-review.

Area Chair aSRS · Meta-reviewOpenReview ↗
Final justification
The justification is spelled out in the meta-review.
Read meta-review
Meta-review

This paper develops a model of computation that is Turing-complete and shows a way to learn it using policy traces. The model consists of an infinite tape, organized as Z^2. There is a finite alphabet and set of states. At any step, the controller reads the symbol at the current position and then (a) writes a symbol to that position, (b) changes state, (c) moves up/down/left/right. It halts when a "halt" move is taken.

The model is Turing complete, so there is no hope of learning it from input-output pairs. Instead, traces are presented of how the tape evolves over time for given inputs; these are called policy-trajectory observations (PTOs). Earlier work (Papazov and Flammarion) suggested PTOs as a way to learn such models and showed identifiability (of any computable function) in the limit. This paper suggests an alternative way of learning: using a "differentiable finite-state transducer" (DFST): a fully-linear controller with real-valued state and input/output, in which the world's input/output are mapped using one-hot encoding, with the reverse map using argmax.

The experimental results show, among other things, how addition is learned with length generalization. The authors also show a way of extracting a finite-state machine from the learned controller using geometric assumptions about state clustering.

The reviewers are positive about the paper's framework, results, and overall novelty. They have a few basic questions, e.g.

Q. How sensitive are the results to the completeness of the PTOs? Is it possible to accommodate missing or corrupted steps?

The authors have given detailed responses to the reviewers' questions, for which they are thanked. However, since these involve additional (and un-verified) material, the reviewers have largely maintained their initial scores.

3 comments
Authors · CommentOpenReview ↗

Addressing the question about incomplete or corrupted PTOs

Thank you for the meta-review and for raising the question about the sensitivity of our framework to incomplete or corrupted PTOs.

The current framework assumes uncorrupted and complete PTOs. In order to support learning from sparse or noisy trajectories of expert observation-action pairs, we could consider an alternative scenario where the learner observes the whole workspace of the algorithm (that is, the the full finite world-state wtw_t) at certain times t1<t2<…t_1 < t_2 < \dots without recording the actions of the expert. Then, the learner would need to carry out a reconstruction procedure (using assumptions on the structure of the expert policy) in order to determine a sequence of probable expert moves that transform wtiw_{t_i} into wti+1w_{t_{i+1}}. Finally, after the reconstruction step, the learner would have obtained full PTOs on which to train by following the procedures in our paper. A possible real-world analogy for this type of learning comes from a student who observes the whole blackboard at certain times (without paying close attention to the teacher) and tries to reconstruct the lesson.

We regard this observation-reconstruction-learning pipeline as a promising route toward learning from incomplete or corrupted demonstrations. The present paper does not implement or analyze this extension: Our current results assume clean, aligned, step-complete PTOs generated by handcrafted experts.

Authors · CommentOpenReview ↗

We thank the Area Chair for the careful meta-review and guidance. During the rebuttal and discussion periods, we explicitly addressed the concerns of the reviewers (AgbP, 1RPL, o1Lb) and answered the question highlighted in the meta-review. Furthermore, we carried out a substantial amount of additional experimental and theoretical work, complementing the results of the paper.

Across the reviews, the reviewers consistently pointed out as strengths

  • the well-motivated learning signal in the form of PTOs;
  • the concise and analyzable DFST architecture;
  • the impressive length-generalization results on arithmetic from tiny models and datasets;
  • and the strong generalization on the task of learning a universal agent.

With our rebuttal, we addressed all of the raised concerns by our reviewers as follows:

  1. Genuine program induction (1RPL). We argued that for add2 a 16-state grid agent can exactly replicate the behavior of the 12-state ground-truth agent on up-to 3-digit sums and loop forever on longer inputs. We train a DFST of hidden dimension d=24d=24, which can express both agents, but learns to emulate the ground-truth. Hence, gradient descent avoids spurious solutions and selects simpler generalizing ones.
  2. Optimization robustness (AgbP, 1RPL). We explained that our simple 2-hyperparameter optimization procedure leads to solutions that robustly generalize to average-case examples. Indeed, almost all of our runs reach the pre-defined ULG caps. We conjecture that optimization will become robust to structured repdigit inputs if such instances feature more strongly in the training dataset.
  3. Experimental generality (AgbP, 1RPL, o1Lb). The current framework requires uncorrupted and complete PTOs. We outlined a path to a more robust training procedure using partial PTOs while also allowing whole-workspace observations. We plan to explore this new direction in subsequent work.
  4. Failure to learn mult10 (AgbP, 1RPL, o1Lb). We clarified that our mult10 experiments fail to reach high RLG but consistently reach SotA ULG (which the arithmetic LG literature usually considers). We conjectured that adding structured hard inputs to the training dataset will increase RLG. Post-submission experiments show that adding short repdigit inputs to the training dataset raises the RLG from 13 to 250. Further training-set engineering could lead to exact learning.
  5. Certification of exact learning (AgbP, 1RPL, o1Lb). We emphasized that our training pipeline consists of a (i) differentiable DFST training step and (ii) an FST extraction step. In our paper, we formally proved that the extracted add2 FST exactly replicates the target behavior. We provided empirical evidence for Assumption 4.2, which we used to show that the trained DFST exactly matches the target behavior. Thus, Assumption 4.2 is not required to certify exact learning from the full training pipeline. Post-submission, we proved that the extracted FSTs from the add10, mult2, and the universal tasks exactly replicate the target behavior.

Post-submission, we considered a DFST_Softmax model which applies a column-wise softmax to the transition matrices A[x]A[x], B[x]B[x], and C[x]C[x] for each input symbol x∈Σx \in \Sigma and a softmax to the initial hidden vector h0h_0. Training DFST_Softmax on add2, mult2, and universal with the specified regularization loss drives every softmaxxed column and h0h_0 to a one-hot value (one entry equals 1, and all other entries equal the minimal float32 subnormal value). This allows for a straightforward argmax extraction procedure of an FST. The extracted FSTs were proved equivalent to the respective target agents. In particular, we are the first to show exact learning of a universal Turing machine through our differentiable training + argmax extraction pipeline.

Finally, we want to emphasize that our additional results only extend our previous work and do not contain fundamentally new ideas. Indeed, in our submission, for add2, we formally proved the behavior equivalence of the extracted-FST through tedious casework and comparison of transition tables. Similarly, the post-submission equivalence proofs for the mult2, add10, and universal tasks follow the exact same comparison structure. Furthermore, even though the DFST_Softmax model provides a more straightforward extraction procedure, the learning pipeline remains the same: differentiable training + fixed extraction algorithm = certifiable exact behavior.

Thank you again for your consideration.

Authors · CommentOpenReview ↗

We summarize our results below:

Task Submission results Additional results
add2 Extracted-FST equivalence proved; DFST equivalence conditional on Assumption 4.2 A sparsity-regularized DFST_Softmax directly yields a discrete FST with an equivalence proof, avoiding geometric clustering and Assumption 4.2.
add10 RLG ≥5000\geq 5000 Completed a case-based proof that the extracted FST matches the expert on every valid input. DFST_Softmax still fails to train.
mult2 RLG ≥1000\geq 1000 A sparsity-regularized DFST_Softmax directly yields a discrete FST with an equivalence proof, avoiding geometric clustering and Assumption 4.2.
mult10 ULG ≥1000\geq 1000, RLG =13=13 Added 5-digit repdigit examples without changing the architecture or hidden dimension; several runs now reach RLG ≥250\geq 250.
universal ULG ≥500\geq 500 on seven unseen programs A sparsity-regularized DFST_Softmax directly yields a discrete FST with an equivalence proof, avoiding geometric clustering and Assumption 4.2.
Controller baselines Elman RNN results on binary tasks Matched GRU controllers reach RLG ≥5000\geq 5000 on add2 and RLG ≥1000\geq 1000 on mult2, showing that the phenomenon does not depend exclusively on the DFST architecture.
Reviewer o1LbOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
2/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes a framework for differentiable exact learning of algorithms from policy-trajectory observations. The learner consists of a state-tracking neural controller coupled to an unbounded symbolic grid environment, and is trained through next-action prediction to imitate the expert agent’s symbol-writing and motion actions at each step. The authors further introduce Differentiable Finite-State Transducers, a minimalist multilinear controller family, and show that DFSTs can exactly emulate any finite-state grid agent. Empirically, DFSTs and some Elman RNN controllers achieve strong length generalization on binary and decimal addition, binary multiplication, and several universal-simulation tasks. The paper also proposes an FST extraction procedure based on hidden-state clustering, and provides a conditional exact-equivalence proof for the binary addition task under a geometric stability assumption.

Strengths and weaknesses

Strengths:

  1. The problem formulation in this paper is highly valuable, and the choice of supervision format is well-motivated.
  2. The DFST architecture is concise and offers favorable theoretical analyzability.
  3. Experimental results demonstrate that the method exhibits strong length generalization capabilities.

Weaknesses:

  1. The rigorous proof covers only the add2 case and relies on the Graph Stability assumption. Furthermore, the results for add10 and mult2 are based merely on empirical testing and structural similarity. mult10 explicitly fails, and no formal proof of equivalence is provided for the general simulation component.
  2. Figure 4 and Section 4.3 indicate that the RLG for mult10 is at most 13, and that the extracted FST diverges from the expert on certain inputs. This suggests that the abstract may overstate the robustness of the multiplication results, especially for decimal multiplication.
  3. Comparisons with prior work are not entirely fair due to differences in supervision signals. This paper employs PTO (expert action labels at each step), whereas many of the Transformer or Neural GPU studies used for comparison rely primarily on input-output pairs or scratchpad formats.
Questions
  1. Do general-purpose simulation tasks truly test generality, or do they merely test pattern generalization across a limited family of tasks?
  2. How are the ϵ\epsilon and the sample set S for Graph Stability determined?
Limitations

The paper would benefit from a more detailed discussion of how PTO supervision differs from standard input-output supervision in practice, particularly in terms of annotation cost, availability of expert trajectories, dependence on manually designed expert agents, sensitivity to training hyperparameters, and computational overhead in realistic algorithmic learning scenarios.

Final justification

Most of my concerns have been addressed. My main remaining concern is decimal multiplication, which is still not shown to be learned exactly. The comparison with prior work should also be framed as demonstrating the benefit of richer PTO supervision rather than as a matched architecture comparison.

Formatting concerns

No.

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for the careful review. We agree that the paper should distinguish more sharply among finite empirical evidence, equivalence of an extracted FST, and equivalence of the original differentiable controller. We address the three weaknesses and two questions in order.

1. Scope of the formal guarantees. We have to distinguish between two separate claims:

  1. The extracted FST T^=E(M)\hat{T}=E(M) matches the behavior of the target agent TT on every valid input.
  2. The trained DFST MM matches the behavior of the extracted FST T^=E(M)\hat T = E(M) on every valid input.

Assumption 4.2 supports only the second claim. The first claim permits a direct proof for a concrete pair of FSTs and does not invoke graph stability. Such proofs require extensive and tedious case analysis over the action of the respective transition maps on different valid inputs, but undecidability of a general equivalence test does not preclude them.

The submission provides such a proof for add2. Post-submission, we completed analogous case-based proofs for the extracted FSTs on add10, mult2, and the universal-agent task. Thus, for these particular runs, the pipeline “gradient training followed by extraction” returns a finite program with the target behavior without Assumption 4.2. The assumption remains necessary only for claiming that each original unconstrained DFST itself matches the extracted FST on every valid input.

Post-submission, we also developed a route that bypasses the graph stability assumption. We train a DFST_Softmax model which applies a column-wise softmax to the transition matrices A[x]A[x], B[x]B[x], and C[x]C[x] for each input symbol x∈Σx \in \Sigma and a softmax to the initial hidden vector h0h_0. Hence, every hidden state and output lies on a probability simplex throughout the execution trajectory. On add2, mult2, and the universal task, training with a sparsity regularization drove every softmaxxed column and h0h_0 to a one-hot value. We used the following regularization loss to make the softmaxxed hidden-state and column vectors one-hot:

\lambda*\left\\{(1-||\texttt{softmax}(h_0)||^2)+\frac1{d|\Sigma|}\sum_{x\in\Sigma}\sum_{i=1}^d\left[(1-||\texttt{softmax}(A[x,:,i])||^2)+(1-||\texttt{softmax}(B[x,:,i])||^2)+(1-||\texttt{softmax}(C[x,:,i])||^2)\right]\right\\}.

Thus, the one-hot weights of the DFST_Softmax model directly give rise to a small FST, without geometric clustering. We proved that each extracted FST in this manner has the same behavior as the target expert, thereby certifying exact differentiable learning without Assumption 4.2. We run into optimization issues when training DFST_Softmax on the add10 and mult10 tasks. The softmax saturates early, gradients collapse, and optimization stops in poor local minima. Solving this optimization problem remains open.

The following table summarizes the revised claim boundaries:

Task Submission results New results
add2 T^≡T\hat T\equiv T proved; M≡TM\equiv T conditional on Assumption 4.2 Learned one-hot DFST_Softmax MM with direct M≡TM\equiv T equivalence proof, without Assumption 4.2
add10 RLG ≥5000\geq5000; T^≡T\hat T\equiv T conjectured Direct case proof that T^≡T\hat T \equiv T for DFST training; DFST_Softmax fails to train
mult2 RLG ≥1000\geq1000; T^≡T\hat T\equiv T conjectured Direct case proof that T^≡T\hat T \equiv T for DFST training; learned one-hot DFST_Softmax MM with direct M≡TM\equiv T equivalence proof, without Assumption 4.2
mult10 ULG ≥1000\geq1000, RLG =13=13 Repdigit-augmented training reaches RLG ≥250\geq250; DFST_Softmax fails to train
universal ULG ≥500\geq 500 on seven unseen programs From three programs and inputs of length at most 10, RLG ≥500\geq500 on all ten tested programs; learned one-hot DFST_Softmax MM with direct M≡TM\equiv T equivalence proof, without Assumption 4.2
add2, mult2 with a GRU controller not in submission RLG ≥5000\geq 5000 for add2 and RLG ≥1000\geq1000 for mult2; extreme length generalization does not depend on our DFST architecture

2. Decimal multiplication. We agree that the submitted results do not establish robust decimal multiplication. Almost all mult10 runs reach ULG ≥500\geq500 on random decimal products, and some reach ULG ≥1000\geq1000, while no submitted schedule exceeds RLG =13=13 on rare repdigit products (completely absent from the randomly sampled training set). We should foreground this distinction and qualify the abstract’s multiplication claim accordingly.

Theorem 2.4 explicitly embeds the 108-state decimal-multiplication expert in a 108-dimensional DFST, so the failure cannot stem from the absence of an exact solution in the model class. The evidence instead implicates optimization and sample coverage as the main contributors to the generalization failure. The training set contains 10,000 products with operands of at most five digits, and many FSTs with around 100 states can agree on all observed PTOs while diverging elsewhere. Post-submission, we added repdigit products to the training set which led to several runs reaching RLG ≥250\geq250. Hence, characteristic examples strongly influence which consistent program gradient descent selects. This circumstance raises the question of whether our training recipe can learn any target grid agent if the training dataset contains sufficiently important characteristic examples.

3. Supervision comparisons and practical scope. We agree that Table 1 compares different supervision regimes. PTOs supply an observable action label at every computation step, whereas input-output examples supply only endpoints; scratchpad formats occupy another point between these regimes. The comparison illustrates what richer behavioral supervision enables, not an architecture-level ranking against Neural GPU or Transformers under matched supervision.

Post-submission, we support this reading empirically. Replacing our DFST with a GRU controller, under the same PTO supervision and the same external environment, reproduces the binary results and reaches the predefined RLG caps on both tasks. The effect therefore comes from the supervision regime together, the state-tracking capabilities of the models, and the unbounded external memory, not from our specific architecture.

We agree that this richer PTO supervision carries real costs. Collection and storage scale with the full execution trace, and prefix scans reduce sequential training depth but not the total amount of trace data processed. In principle, PTOs could come from humans, robots, or other policies whenever observations and environmental actions can be logged without exposing internal state. Our experiments, however, use clean, aligned, step-complete traces from hand-designed experts. The current estimator does not support missing steps or corrupted actions: missing steps break one-step alignment, while corrupted labels can conflict with the observed world evolution. Larger local observations or world-state snapshots might constrain missing actions as latent variables, but we have neither experiments nor guarantees for that setting.

4. Do the universal-simulation tasks test genuine generality? Our experiment goes beyond length extrapolation within one fixed program. The DFST trains on three Turing-machine simulation tasks, and generalizes to seven unseen Turing-machine simulations implementing qualitatively different procedures. Nevertheless, ten hand-designed programs form a finite test set, so our experiment alone cannot distinguish universal behavior from pattern generalization across that family.

Two post-submission results strengthen the claim. First, an 8×38\times3 ablation varies eight training-program combinations and maximum training lengths n∈5,10,15n\in{5,10,15}. Training only on scaling-A(10), scaling-B(10), and parity with n≤10n\leq10 reaches the length-generalization cap of 500 on all ten programs, including all seven unseen programs. Second, the one-hot DFST_Softmax result mentioned above yields a directly decoded FST for which we proved equivalence to the universal expert on every valid encoded machine/input pair, rather than only on the ten tested programs. The formal transition-map proof, not the finite benchmark alone, supports the claim of exact universal behavior.

5. How were ε\varepsilon and SS chosen? Assumption 4.2 simply postulates that such ε\varepsilon and SS exist. Then, our ε\varepsilon-chaining algorithm (Algorithm 1) progressively refines a hypothesized value of ε\varepsilon by starting from a given constant and dividing by 2 every time the extracted FST is non-deterministic. Since Assumption 4.2 guarantees the existence of some ε>0\varepsilon >0, after finitely many divisions by 2, Algorithm 1 will output a deterministic extracted FST.

However, as we mentioned above, our new DFST_Softmax approach removes the need for Assumption 4.2.

Reviewer o1Lb · CommentOpenReview ↗

Thank you for the detailed rebuttal. Most of my concerns have been addressed. My main remaining concern is decimal multiplication, which is still not shown to be learned exactly. The abstract should therefore qualify the multiplication claim and distinguish uniform from robust generalization. The comparison with prior work should also be framed as demonstrating the benefit of richer PTO supervision rather than as a matched architecture comparison. Overall, I am inclined to maintain my borderline accept assessment.

Reviewer 1RPLOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper introduces a framework for learning algorithms from Policy-Trajectory Observations (PTOs), which provide only sequences of observations, written symbols, and movements, avoiding both the limitations of input–output supervision and the need for expert internal-state annotations. It proposes Differentiable Finite-State Transducers (DFSTs), a simple recurrent architecture with log-parallel training that is proven capable of exactly emulating any finite-state grid agent and thus achieving Turing completeness on the grid. Experiments show that small DFSTs generalize from tiny datasets to sequences orders of magnitude longer than those seen during training, including unseen Turing-machine simulations exceeding 12 million steps. The authors also present a method for extracting compact finite-state transducers from trained models and prove conditions under which the extracted automata are behaviorally faithful, including a full equivalence proof for binary addition, while transparently reporting failure on decimal multiplication.

Strengths and weaknesses

Strengths. The framework is clean and well motivated. Viewing PTOs as a compromise between input–output supervision and internal-state supervision is useful, and the connection to Gold's impossibility results and the Papazov–Flammarion identifiability results provides a principled justification. The DFST architecture is elegant and interpretable for an algorithm-learning model. Its multilinear, nonlinearity-free structure allows a simple universality proof and enables the FST extraction procedure, which is arguably the most distinctive contribution of the paper. The length-generalization results are impressive, especially given the small models and datasets.

Weaknesses The main conceptual concern is that PTOs provide almost complete step-by-step traces of the target algorithm, so training effectively becomes next-action prediction. As noted by the authors, this is closely related to scratchpad or chain-of-thought supervision. Since the controller size is chosen to match the expert's number of states and DFSTs can exactly represent any FST by construction (Theorem 2.4), generalization to very long inputs follows naturally once the correct transition function is learned. Thus, the key challenge is not long-range generalization itself, but whether gradient descent reliably converges to the correct FST. The experiments support this strongly, but the paper often presents the large length-generalization numbers as the main result rather than as a consequence of recovering the exact transducer. Making this distinction clearer would help explain what is truly surprising.

The strongest verification result is for add2. The inductive proof in Theorem G.3 is valid, but it proves correctness only under Assumption 4.2 (graph stability), which is supported empirically but not proven. In particular, observing stable node and edge counts on finite samples cannot guarantee a property over the infinite input space. Since this assumption underlies the only certified result, its importance should be emphasized. For add10 and mult2, equivalence is only suggested by visual similarity and finite testing, which is reasonable but should not be presented as a proof.

A substantial part of the theoretical foundation comes from earlier work. PTOs, the identifiability guarantees, the hardness results, and the Maximum Similarity Merging strategy are inherited from Papazov and Flammarion (2025), while the controller-plus-external-memory architecture goes back to Zaremba and Sutskever (2015). The new contributions are the DFST architecture, its multilinear and prefix-scan formulation, the geometric extraction procedure, and the empirical demonstrations. These are meaningful contributions, but describing the originality as "excellent" somewhat overstates the novelty.

The only task that fails is also the most complex one, involving 108 states. It fails both in terms of generalization and extraction. This raises concerns about whether the approach scales beyond relatively simple algorithms. In addition, the experiments are limited to arithmetic tasks and hand-designed Turing machines, with no noisy demonstrations or richer data structures, making it difficult to judge how broadly the framework applies.

Table 1 compares DFST with Neural GPU, but the two methods use different supervision settings: behavioral traces versus input–output examples. The comparison is useful, but not entirely fair, and claims of state-of-the-art length generalization should be qualified accordingly.

Questions
  1. How sensitive are the results to the completeness and fidelity of PTOs? Since PTOs are close to full step-level supervision, it would be useful to test what happens when trajectories are corrupted or sparsified, for example by masking or removing a fraction of intermediate steps. This would help distinguish true program induction from learning a near-explicit per-step transition function, and directly addresses the concern that much of the difficulty may be absorbed by the supervision signal.

  2. Assumption 4.2 is the key ingredient behind the only fully certified result, but it is currently supported only by finite-sample evidence such as plateauing node and edge counts. Can the authors provide stronger justification for why this stability should extend to the full infinite input space rather than only the observed sample distribution? For instance, are there conditions on the learned weights, margins, or transition separability that would imply global stability? It would also help to clarify in what regimes this assumption is expected to fail.

  3. Appendix B.3 already shows a capacity ablation for add2 by varying the hidden dimension d^∈{6,…,24}\hat{d}\in\{6,\dots,24\}. It would be valuable to extend this analysis to other tasks, in particular mult10, where sensitivity to under- or over-parameterization is likely more informative. Does performance or convergence systematically depend on whether d^\hat{d} matches, exceeds, or falls below the expert state count? Clarifying whether the observed 'sub-linear capacity' behavior generalizes beyond add2 would strengthen the claim significantly.

  4. Although the grid agent is Turing-complete, the experiments focus only on arithmetic tasks and hand-designed Turing machine traces. Is there any evidence, even preliminary, that the method generalizes to richer domains such as stack manipulation, tree or graph-structured computation, or settings with noisy or partial demonstrations? This would help assess whether the approach extends beyond tightly controlled synthetic benchmarks.

  5. The paper already shows two advantages of DFSTs over standard RNNs: lower loss (∼10−13\sim 10^{-13} vs ∼10−9\sim 10^{-9}) and a larger stable region in the (ω,κ\omega, \kappa) landscape for binary tasks (Figures 3, 4, 6, 7). Does this robustness persist in more complex settings such as decimal arithmetic and Turing-machine tasks, where only DFSTs are currently evaluated? A matched RNN baseline in those regimes would clarify whether the advantage is general or specific to simpler binary tasks.

Limitations

Yes, partially. The authors are transparent about the mult10 failure and acknowledge the undecidability of finite-horizon verification, and the NeurIPS checklist reflects a generally careful treatment of assumptions. However, a key limitation that is not sufficiently emphasized is the close relationship between PTO supervision and full step-by-step (scratchpad-like) supervision. The paper would benefit from a more explicit analysis of how much of the observed generalization comes from the richness of PTO traces versus genuine program induction, as well as a clearer discussion of scalability to higher state-complexity algorithms in light of the mult10 failure.

Final justification

Recommendation: Borderline accept (4)

My recommendation reflects a paper that is technically sound and conceptually interesting, whose authors engaged unusually well during rebuttal, but whose strongest claims are supported largely by post-submission material that could not be reviewed in this cycle.

Issues resolved during the discussion

  • The central conceptual concern. My main worry was that PTOs are close to full step-level supervision, making length generalization a near-automatic consequence of DFST expressivity (Theorem 2.4) rather than a finding. The authors rebutted this convincingly with a concrete 16-state grid agent that agrees with add2 on all operands of at most three digits and loops on longer ones, a spurious solution representable in the model class. Since gradient descent nonetheless recovers the compact extrapolating program for every tested d∈[8,24]d \in [8,24], the informative phenomenon is the optimization bias, not the extrapolation itself. I consider this resolved, and it materially improved my view of the paper.

  • Overstated certification scope. The authors conceded my point in full: absent Assumption 4.2, only the training-plus-extraction pipeline is certified; Assumption 4.2 is what lifts the argument to the pre-extraction continuous model. They committed to stating this plainly and to separating DFST from DFST$_{\text{Softmax}}$ results.

  • The universal-computation claim. Originally supported only empirically. The authors supplied a proof sketch whose structure is sound: a finite simulation relation (46 non-halting state-context pairs plus halt, 99 reachable configurations) with successor closure, quantifying over all valid encodings ⟨M,w⟩\langle M,w\rangle rather than the ten tested programs, plus a legitimate reduction from the 40-state extracted agent to a minimized 18-state one.

  • Architecture-specificity. A GRU controller reaching the same caps on both binary tasks supports the claim that the recipe depends on state-tracking + external environment + PTOs, not on the multilinear model.

Issues that remain unresolved

  • The decisive evidence is not in the manuscript. DFST$_{\text{Softmax}}$, the add10/mult2/universal case analyses, and the (\sim!3)-page universal casework are all post-submission and deferred to a revised or final version. I saw a sketch, not a verifiable proof.

  • The one-hot margin needs numerical clarification. γ<5⋅10−44\gamma < 5\cdot 10^{-44} lies below float32 machine epsilon (∼1.2⋅10−7)(\sim1.2\cdot 10^{-7}) and near the smallest subnormal; whether this is a measured or analytic quantity changes how the "∼1043\sim10^{43} steps" guarantee should be read.

  • "Differentiable" is partly definitional. Since an argmax is applied regardless, the certified object is a discrete FST; exactness of the trained continuous model holds only where Assumption 4.2 or the DFST$_{\text{Softmax}}$ route establishes it. Defensible, but it must be explicit in the abstract and introduction.

  • Narrow evaluation persists. No noisy or sparsified demonstrations (the reconstruction pipeline is future work), no richer data structures, and DFST$_{\text{Softmax}}$ still fails to optimize on add10 and mult10.

How I weighted these

I weighted the resolved conceptual objection heavily: it converted my strongest criticism into a point in the paper’s favour. Against that, I weighted the unreviewability of the new results heavily as well: I do not think a score should rest on content no reviewer has seen. These roughly offset, which is why I hold at Borderline accept rather than moving to Accept, with higher confidence and a positive disposition than at submission. The remaining scope limitations I weighted moderately; they bound the paper’s generality but not its correctness.

Formatting concerns

The paper contains minor presentation issues, including inconsistent use of 'DFST' and 'DSFT' and a typographical error ('W ran extensive sweeps' in the RNN appendix). These issues are purely cosmetic and do not affect the evaluation. No anonymity violations were identified.

5 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for the thoughtful review. We agree with the central distinction that once learning has recovered the correct FST, arbitrary-length execution follows naturally. The surprising empirical question concerns why gradient descent selects that FST from a small, non-identifying sample.

PTOs reveal neither the expert’s hidden state nor behavior on unvisited configurations. The resulting problem remains highly underdetermined. For example, we constructed a 16-state grid agent that agrees with add2 on every operand of at most 3 digits and loops on longer inputs. Our model class of DFSTs can represent that spurious solution. Nevertheless, the reported dimension sweep generalizes without error to at least 10,000 digits for every tested d∈[8,24]d\in[8,24]. We view this optimization bias towards a compact, extrapolating program as the main empirical phenomenon.

1. Completeness and fidelity of PTOs. The current framework assumes uncorrupted and complete PTOs. In order to support learning from sparse or noisy trajectories of expert observation-action pairs, we could consider an alternative scenario where the learner observes the whole workspace of the algorithm (that is, the the full finite world-state wtw_t) at certain times t1<t2<…t_1 < t_2 < \dots without recording the actions of the expert. Then, the learner would need to carry out a reconstruction procedure (using assumptions on the structure of the expert policy) in order to determine a sequence of probable expert moves that transform wtiw_{t_i} into wti+1w_{t_{i+1}}. (Like a student who observes the blackboard at certain times and tries to reconstruct the lesson.) Finally, after the reconstruction step, the learner would have obtained full PTOs on which to train by following the procedures in our paper.

We regard this observation-reconstruction-learning pipeline as a promising route toward learning from incomplete or corrupted demonstrations. The present paper does not implement or analyze this extension: Our current results assume clean, aligned, step-complete PTOs generated by handcrafted experts.

Thus, learning from partial or noisy demonstrations remains open. However, we maintain that our learning setup features genuine program induction despite the rich observation signal. Indeed, as we reference in Section C.3, learning a target FST from restricted input sources (as is the case for algorithmic tasks) is a computationally hard and data-hungry procedure. Hence, the fact that gradient descent recovers an extremely well generalizing solution from the enormous pool of spurious FSTs consistent with our tiny training sets attests to the useful inductive biases of our framework and demonstrates that genuine simplicity-guided learning is occurring.

2. Graph stability and exact learning. We agree that a plateau in extracted node and edge counts cannot establish Assumption 4.2 over the infinite valid-input set. Proving that the graph stability assumption holds is complicated and beyond the scope of our paper. Such a proof would require a careful study of how the weights of the trained DFST interact with SPS_\mathcal{P} -- the set of valid input trajectories for task P\mathcal{P}. We could not find a natural, verifiable sufficient condition for MM and SPS_\mathcal{P} that would guarantee Assumption 4.2. We leave this research direction open. Instead, we provide considerable empirical evidence (but not proof) that, for the considered tasks and trained models, Assumption 4.2 holds.

However, even if Assumption 4.2 fails, the pipeline “gradient training followed by extraction” provably recovers the target behavior for a variety of tasks. Indeed, two claims require separation:

  1. The extracted FST T^=E(M)\hat{T}=E(M) matches the behavior of the target agent TT on every valid input.
  2. The trained DFST MM matches the behavior of the extracted FST T^=E(M)\hat T = E(M) on every valid input.

Assumption 4.2 supports only the second claim. The first claim permits a direct proof for a concrete pair of FSTs and does not invoke graph stability. Such proofs require extensive and tedious case analysis over the action of the respective transition maps on different valid inputs, but undecidability of a general equivalence test does not preclude them.

Post-submission, we completed analogous case-based proofs for the extracted FSTs for add10, mult2, and the universal task. Thus, for these particular runs, the recipe “gradient training followed by extraction” returns a finite program with the desired target behavior without Assumption 4.2. The assumption remains necessary only for claiming that each original unconstrained DFST matches the extracted FST on all valid inputs. The full state correspondences and case analyses for add10, mult2, and the universal-agent task can accompany a final version of the paper if accepted.

Post-submission, we also developed a route that bypasses the graph stability assumption. We train a DFST_Softmax model which applies a column-wise softmax to the transition matrices A[x]A[x], B[x]B[x], and C[x]C[x] for each input symbol x∈Σx \in \Sigma and a softmax to the initial hidden vector h0h_0. Hence, every hidden state and output lies on a probability simplex throughout the execution trajectory. On add2, mult2, and the universal task, training with a sparsity regularization drove every softmaxxed column and h0h_0 to a one-hot value. Thus, the one-hot weights of the DFST_Softmax model directly give rise to a small FST, without geometric clustering. We proved that each extracted FST in this manner has the same behavior as the target expert, thereby certifying exact differentiable learning without Assumption 4.2. We run into optimization issues when training DFST_Softmax on the add10 and mult10 tasks. The softmax saturates early, gradients collapse, and optimization stops in poor local minima. Solving this optimization problem remains open.

3. Hidden dimension size and themult10 failure. We have not yet run a matched hidden-dimension sweep for mult10, but we believe that the sub-linear-state observation should also hold for tasks different from add2. Theorem 2.4 makes d=∣Q∣d=|Q| sufficient, not necessary. We will provide such ablations in the final version of the paper.

The mult10 failure does not reflect an expressivity barrier. Theorem 2.4 explicitly embeds the 108-state decimal-multiplication expert in a 108-dimensional DFST. Rather, the failure exposes optimization and sample-coverage limits in a highly underdetermined problem.

For mult10, we expect that there exist many short spurious solutions which fit the up-to 5-digit training set. Nevertheless, the submitted mult10 runs show extreme length generalization on average-case examples. Almost all reach ULG ≥500\geq 500 on random decimal products (and some reach ULG ≥1000\geq 1000), while no schedule exceeds RLG =13=13 on rare repdigit products which do not feature in the training set. Post-submission, we added repdigit products to the training set; several resulting runs now reach RLG ≥250\geq 250. We believe that with further injection of hard instances into the training set, we could push the RLG beyond the 1000 cap and possibly exactly learn the task. This circumstance raises the question of whether our training recipe can learn any target grid agent if the training dataset contains sufficiently important characteristic examples.

4. Richer domains and universal simulation. Apart from showing that our DFST models can learn arithmetic tasks from PTOs, we also demonstrate that DFSTs can learn the policy of a universal grid agent which can simulate any Turing machine. Interestingly, we show that a DFST only needs to observe the PTOs from 3 simulated tasks in order to generalize to all the rest.

In a post-submission 8×38\times3 ablation, we vary eight training-program combinations and maximum training lengths n∈5,10,15n\in{5,10,15}. Training only on scaling-A(10), scaling-B(10), and parity with n≤10n\leq10 reaches the ULG cap of 500 on all ten programs, including all seven unseen programs. Moreover, the DFST_Softmax result above proves that the directly decoded FST matches the universal expert on every valid machine encoding rather than only on the ten tested programs. Thus, we have demonstrated that the universal learning task really exercises the Turing-completeness of the setup. As far as we know, we are the first to show gradient-based exact learning of a universal Turing machine (grid agent).

5. RNN comparisons and prior work. Post-submission, we replicated both binary tasks with a GRU controller. A GRU trained on the same PTOs, in the same external environment, reaches the predefined RLG caps on both tasks, matching the DFST results reported in the submission. The phenomenon therefore does not depend on our multilinear architecture: the necessary ingredients are the state-tracking controller, the unbounded external environment, and PTO supervision. We will add a matched GRU and RNN baseline also for the decimal tasks, together with a comparison of the generalizing (ω,κ)(\omega,\kappa) regions, in the final version of the paper.

We agree that Table 1 compares deliberately different supervision regimes. PTOs supply an observable action at every computation step, whereas input-output examples supply only endpoints. The comparison only illustrates what richer behavioral supervision enables -- exact differentiable learning.

Finally, prior work introduced PTO identifiability and controller-plus-external-memory computation. Our contributions comprise the multilinear prefix-scan DFST, the geometric extraction procedure, and the empirical finding that gradient optimization can recover compact generalizing programs from PTOs. Post-submission we also demonstrated that for add2, mult2, and the universal task, training a DFST_Softmax model on PTOs provably exactly recovers the target algorithm.

We will correct the DSFT and “W ran” typographical errors.

Reviewer 1RPL · CommentOpenReview ↗

I thank the authors for a detailed and constructive rebuttal, and for the substantial post-submission work.

I accept the central reframing. The 16-state agent that agrees with add2 on all operands of at most three digits but loops on longer inputs is a convincing demonstration that the correct FST is not built into the setup; it sits in the model class alongside many spurious solutions, and the informative phenomenon is gradient descent's bias toward the compact, extrapolating program. This addresses our main conceptual concern.

The separation of the two equivalence claims is helpful, and the DFST_Softmax construction (one-hot columns yielding an FST directly, without geometric clustering) is an elegant way to sidestep Assumption 4.2. I would ask the authors to address two points:

  1. Certification of the universal task. The strongest claim, namely provable exact learning of a universal grid agent, currently rests on the DFST_Softmax result and a case analysis that are not in the submitted manuscript. Could the authors provide at least a proof sketch here: how the extracted FST is shown equivalent to the universal expert on all valid machine encodings (not only the ten tested programs), and how one-hot-ness is certified given that softmax outputs are never exactly one-hot in floating point (i.e. is there an argmax-margin argument)?

  2. Explicit separation of what is certified. I would like the paper to state plainly that, absent Assumption 4.2, the direct proofs certify the output of the extraction pipeline (the extracted FST matches the expert), not the trained differentiable controller M itself, since "differentiable exact learning" is a claim about M. Relatedly, please make explicit that the DFST_Softmax model that admits certification is a distinct, separately trained object from the plain DFST whose thousand-digit generalization is the empirical highlight; outside add2, certification and headline generalization currently concern different models.

Authors · CommentOpenReview ↗

We thank you for the deep engagement with our paper and the swift response.

To address your second point, in the final version of the paper, we will emphasize that without Assumption 4.2 we only certify that the differentiable training + extraction pipeline exactly yields the target algorithmic behavior. We will make it clear that Assumption 4.2 allows us to lift the certification argument to the pre-extraction trained DFST model. Additionally, we will carefully separate the results which pertain to the DFST model and the ones obtained through the DFST_Softmax model.

We move on to address your first point. Our proof sketch is succinct due to the character limit. We will provide the complete proof with tables showing the compared transition functions in the revised manuscript.

Let UU be the 20-state universal grid agent operating over a 9-symbol alphabet Γ\Gamma and having an extended move set featuring 3 teleportation runes (as described in the paper). UU faithfully simulates the execution of any Turing machine (TM) operating over the alphabet λ,0,1{\lambda, 0, 1} and satisfying the conventions from the paper (having start and halt states and always halting after emitting a stop-motion symbol S). For such a Turing machine MM and binary input vector w∈0,1⋆w \in {0,1}^\star, there is precise encoding ⟨M,w⟩\langle M, w \rangle of the pair, with which UU is initialized on the grid.

We train a DFST_Softmax controller of hidden dimension d=40d=40 on 10235 PTOs obtained from UU's simulation of 5 TMs on strings from 0,1≤10{0,1}^{\leq 10} using the MSE loss + the regularization loss described in the rebuttal. Let DD denote the trained model. Let h0,A,B,Ch_0, A, B, C denote the softmaxxed initial hidden state and transition tensors of DD. Due to the regularization loss, the maximal entry of h0h_0 and the maximal entries of the columns of A[x],B[x],C[x]A[x], B[x], C[x] for any x∈Γx \in \Gamma are all greater than 1−γ1 - \gamma, where γ<5∗10−44\gamma < 5*10^{-44}. Hence, DD's transition maps are almost exactly one-hot. Then, by taking the argmax over the columns of A[x],B[x],C[x]A[x], B[x], C[x] and h0h_0, we extract a 40-state grid agent (or FST) U^\hat U, which we prove to have equivalent behavior to UU on every valid pair ⟨M,w⟩\langle M, w \rangle (not just the constructed 10 from the paper).

To reduce the complexity of the proof, we first run the training PTOs through U^\hat U and delete all of the transitions between states that were never used. Then, we minimize the obtained partial FST by merging states which are indistinguishable and arrive at a more compact 18-state FST U^′\hat U'. If we manage to show that U^′\hat U' is equivalent to UU on valid encodings, then the same will hold for U^\hat U since all of the transition paths of U^′\hat U' exist in U^\hat U.

The equivalence of UU and U^′\hat U' on valid encodings ⟨M,w⟩\langle M, w \rangle amounts to a tedious 3-page casework. We group each execution into controller macrosteps, one per simulated TM transition. At every macrostep boundary, we verify the invariant that both agents have identical grid contents and head positions. Each macrostep (i) locates the row for the current state-symbol pair, (ii) decodes the successor-state code symbol by symbol, (iii) repositions the state marker, and (iv) performs the prescribed write and tape motion. We verify the invariant through a finite simulation relation containing 46 nonhalting state-context pairs plus the halt pair, spanning 99 reachable state/read configurations. Direct inspection gives matching outputs and successor closure in every configuration. Induction over macrosteps therefore yields identical simulated TM configurations; the halt conventions make both agents emit S and halt together.

Thus, we prove that the argmax-extracted FST U^\hat U from DD is equivalent to UU. We want to argue that this constitutes differentiable learning of the ground-truth agent for several reasons. First, the weights of DD are approximately one-hot and the extraction of U^\hat U becomes trivial. Second, in the limit (due to the regularization loss) the weights would become one-hot, and only the finite precision of the float32 format and the discrete nature of digital computing prevent this convergence from happening. Finally, since γ<5∗10−44\gamma < 5*10^{-44}, we can show that DD will exactly replicate the policy of U^\hat U (and hence UU) for at least log⁡2/γ≈1.3×1043\log 2 / \gamma \approx 1.3 \times 10^{43} steps before numerical errors possibly kick in.

We believe that using gradient descent to search the combinatorial space of possible grid agents and then rounding to a discrete FST by using argmax on the transition matrix columns constitutes an instance of differentiable exact learning since the extraction procedure is fixed and gradient descent accounts for the actual learning. We will make the extraction step explicit and clear in our final version.

Reviewer AgbPOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes a framework for learning algorithms exactly, via gradients, from behavior observations rather than input-output pairs. A state-tracking neural controller is coupled to an unbounded external environment (a symbolic grid), and is trained on policy-trajectory observations (PTOs) -- traces that record how the environment changes under an expert's actions without revealing the expert's internal state. The authors argue this supervision sits between two extremes: plain input-output data, which Gold's theorem shows is insufficient for exact learning, and the internal-state traces used by Neural Programmer-Interpreters, which are unrealistically rich. They lean on recent results (Papazov and Flammarion, 2025) showing PTOs suffice for exact identification in the limit.

As controllers they introduce Differentiable Finite-State Transducers (DFSTs): a multilinear model with no nonlinearities, built from input-indexed weight tensors, which is Turing-complete when coupled to the grid and trains in log-parallel fashion via prefix scans. Empirically, small DFSTs and Elman RNNs trained on tiny datasets (e.g. 25 traces for binary addition) generalize without observed error to operands thousands of digits long, far beyond prior arithmetic length-generalization results. They further train a ~6.7k parameter DFST to emulate a universal grid agent, generalizing to unseen simulated Turing machines and traces exceeding several million steps. Finally, they give an extraction procedure that recovers a compact finite-state transducer from a trained controller, prove that finite-horizon equivalence checking is undecidable in general, and -- under a geometric graph stability assumption -- prove for binary addition that the extracted transducer, and hence the DFST, exactly reproduces the expert policy on all valid inputs.

Strengths and weaknesses

Strengths and weaknesses of the work:

  • The central idea -- that the supervision signal, not just the model, is what makes exact algorithmic learning possible, and that policy-trajectory observations are a realistic middle ground -- is interesting and well-motivated. The framing "state-tracking controller plus unbounded environment plus PTO" is simple, and the analogy to how children learn procedures from watching behavior is apt.

  • Empirical results are quite novel: length generalization to operands thousands of digits long, from tiny models and a handful of traces, goes well beyond prior arithmetic work, and the universal-computer demonstration is also quite striking. The DFST is an appealing model class (multilinear, interpretable, parallelizable, Turing-complete here), and the fact that plain RNNs work too suggests the recipe hinges on state-tracking supervision rather than the underlying architecture. The parameter-count formula and the basic claims seem to hold up as well.

  • There are some caveats concerning what is proven versus demonstrated. The exact-learning certificate rests on Assumption 4.2 (graph stability), supported empirically in Figure 5 but not proven, and the full proof seems to cover only the simplest task, so "certifying differentiable exact learning" is real but narrower than the abstract claims. Optimization also looks brittle: Fig 4 shows runs flipping between full generalization and collapse under small schedule changes, and decimal multiplication never clears single digits. Adding to this point, the training loss seems quite low already and it is not clear if we can count further minimization with DFST as a gain given the oscillations. So the recipe requires searching for a working configuration per task and seed. The setting is favorable by construction, which is the point but it is unclear how it behaves without a clean expert.

Questions

Questions

  1. Assumption 4.2 carries the certification. Are there conditions under which graph stability provably holds, even just for the add2 controller, or a way to bound the usable range of the threshold ε\varepsilon?

  2. Only add2 is fully proven, add10 and mult2 are conjectured, and mult10 fails on a specific input. Could you comment if one more operation could be proof, or comment on whether mult10's divergence is an optimization failure or a limit of the recipe?

  3. The (ω,κ)(\omega, \kappa) landscapes look brittle. Across random schedules and seeds, how often does a run reach the cap, and is there any principled way to locate the working regime rather than searching? Some robustness statistics would clarify how practical the current method is.

  4. How sensitive is the framework to imperfect or noisy PTOs, and is there a route to settings where a hand-built expert isn't available?

  5. Could the claims be stated as a short table of proven (add2) versus conjectured (add10, mult2) versus empirical (universal computer), and the ``empirical proof" phrasing softened accordingly?

Limitations

The paper proves the undecidability of finite-horizon verification, separates proven from conjectured from failed tasks, and reports the mult10 failure rather than hiding it. Three things would round this out: state plainly that the exact-learning certificate is contingent on the unproven Assumption 4.2 and currently complete only for binary addition; foreground the optimization brittleness as a limitation rather than leaving it to the heatmaps; and note the reliance on hand-constructed experts and clean PTOs. A short dedicated limitations paragraph (the conclusion is currently brief) would help. No societal-impact concerns for work of this kind.

Formatting concerns

No violation of formatting is observed.

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for the careful assessment and constructive questions. We agree that the submission should distinguish more sharply among finite empirical evidence, equivalence of an extracted FST, and equivalence of the original differentiable controller.

1. Exact learning and graph stability. We have to distinguish between two separate claims:

  1. The extracted FST T^=E(M)\hat{T}=E(M) matches the behavior of the target agent TT on every valid input.
  2. The trained DFST MM matches the behavior of the extracted FST T^=E(M)\hat T = E(M) on every valid input.

Assumption 4.2 supports only the second claim. The first claim permits a direct proof for a concrete pair of FSTs and does not invoke graph stability. Such proofs require extensive and tedious case analysis over the action of the respective transition maps on different valid inputs, but undecidability of a general equivalence test does not preclude them.

We require the extraction step because we cannot tractably compare the full transition table of MM to that of TT. Indeed, a dd-dimensional, pp-bit DFST can visit up to 2dp2^{dp} finite-precision hidden state vectors. Even add2 gives rise to a state-space of 212⋅32=23842^{12\cdot32}=2^{384} candidates. Consequently, Phase A of the extraction algorithm clusters the hidden vectors encountered on valid executions, and Phase B produces a much smaller FST that admits direct inspection. The submission proves T^≡T\hat T\equiv T for add2. Post-submission, we completed analogous case-based proofs for the extracted FSTs for add10, mult2, and the universal task. Thus, for these particular runs, the pipeline “gradient training followed by extraction” returns a finite program with the desired target behavior without Assumption 4.2. The assumption remains necessary only for claiming that each original unconstrained DFST matches the extracted FST on all valid inputs. The full state correspondences and case analyses for add10, mult2, and the universal-agent task can accompany a final version of the paper if accepted.

Proving that the graph stability assumption holds is complicated and beyond the scope of our paper. Such a proof would require a careful study of how the weights of the trained DFST interact with SPS_\mathcal{P} -- the set of valid input trajectories for task P\mathcal{P}. We could not find a natural, verifiable sufficient condition for MM and SPS_\mathcal{P} that would guarantee Assumption 4.2. We leave this research direction open. Instead, we provide considerable empirical evidence (but not proof) that, for the considered tasks and trained models, Assumption 4.2 holds.

Post-submission, we also developed a route that bypasses the graph stability assumption. We train a DFST_Softmax model which applies a column-wise softmax to the transition matrices A[x]A[x], B[x]B[x], and C[x]C[x] for each input symbol x∈Σx \in \Sigma and a softmax to the initial hidden vector h0h_0. Hence, every hidden state and output lies on a probability simplex throughout the execution trajectory. On add2, mult2, and the universal task, training with a sparsity regularization drove every softmaxxed column and h0h_0 to a one-hot value. We used the following regularization loss to make the softmaxxed hidden-state and column vectors one-hot:

\lambda*\left\\{(1-||\texttt{softmax}(h_0)||^2)+\frac1{d|\Sigma|}\sum_{x\in\Sigma}\sum_{i=1}^d\left[(1-||\texttt{softmax}(A[x,:,i])||^2)+(1-||\texttt{softmax}(B[x,:,i])||^2)+(1-||\texttt{softmax}(C[x,:,i])||^2)\right]\right\\}.

Thus, the one-hot weights of the DFST_Softmax model directly give rise to a small FST, without geometric clustering. We proved that each extracted FST in this manner has the same behavior as the target expert, thereby certifying exact differentiable learning without Assumption 4.2. We run into optimization issues when training DFST_Softmax on add10 and mult10. The softmax saturates early, gradients collapse, and optimization stops in poor local minima. Solving this optimization problem remains open.

2. The mult10 failure. The failure does not reflect an expressivity barrier. Theorem 2.4 explicitly embeds the 108-state mult10 expert in a 108-dimensional DFST. Rather, the failure exposes optimization and sample-coverage limits in a highly underdetermined problem.

Notice that a finite PTO training set admits many FSTs (of comparable size to the target) that agree on every observed step but diverge outside of the training set. For example, we have constructed a 16-state grid agent that agrees with add2 on every operand of at most 3 digits and loops on longer inputs. Our model class of DFSTs can represent that spurious solution (see Section B.3 where a dd-dimensional DFSTs for d∈[8,24]d \in [8,24] achieve RLG ≥10,000\geq 10,000 on the add2 task). Hence, our paper elicits the curious empirical phenomenon that gradient-based optimization appears to have an inductive bias towards simple programs that extrapolate without error far beyond the observed trajectories.

For mult10, we expect that there exist many short spurious solutions which fit the up-to 5-digit training set. Nevertheless, the submitted mult10 runs show extreme length generalization on average-case examples. Almost all reach ULG ≥500\geq 500 on random decimal products (and some reach ULG ≥1000\geq 1000), while no schedule exceeds RLG =13=13 on rare repdigit products (which do not feature in the training set). Post-submission, we added repdigit products to the training set, and several resulting runs now reach RLG ≥250\geq 250. We believe that with further injection of hard instances into the training set, we could push the RLG beyond the 1000 cap and possibly exactly learn the task. This circumstance raises the question of whether our training recipe can learn any target grid agent if the training dataset contains sufficiently important characteristic examples for the underlying task.

3. Schedule and seed robustness. On the submitted single-seed RLG (ω,κ)(\omega,\kappa) heatmaps, add2 reaches the predefined RLG cap in 8/9 cells, mult2 in 3/9, add10 in 5/16, and mult10 in 0/16. Across the four reported data-generation seeds, at least one tested schedule reaches the cap for each of add2, mult2, and add10. The corresponding ULG results look much more stable: Almost every schedule reaches the cap, including many mult10 runs. Thus, gradient-based optimization robustly finds solutions that generalize on random long inputs but remains brittle on rare structured inputs that do not feature in the training data. We currently lack a principled rule for locating a successful (ω,κ)(\omega,\kappa) basin. The new mult10 results suggest that targeted characteristic examples can broaden the useful regime, which we plan to study systematically.

4. Incomplete and noisy PTOs. The current framework assumes uncorrupted and complete PTOs. In order to support learning from sparse or noisy trajectories of expert observation-action pairs, we could consider an alternative scenario where the learner observes the whole workspace of the algorithm (that is, the the full finite world-state wtw_t) at certain times t1<t2<…t_1 < t_2 < \dots without recording the actions of the expert. Then, the learner would need to carry out a reconstruction procedure (using assumptions on the structure of the expert policy) in order to determine a sequence of probable expert moves that transform wtiw_{t_i} into wti+1w_{t_{i+1}}. (Like a student who observes the blackboard at certain times and tries to reconstruct the lesson.) Finally, after the reconstruction step, the learner would have obtained full PTOs on which to train by following the procedures in our paper.

We regard this observation-reconstruction-learning pipeline as a promising route toward learning from incomplete or corrupted demonstrations. The present paper does not implement or analyze this extension: Our current results assume clean, aligned, step-complete PTOs generated by handcrafted experts.

5. Claim/evidence table.

Task Submission results New results
add2 T^≡T\hat T\equiv T proved; M≡TM\equiv T conditional on Assumption 4.2 Learned one-hot DFST_Softmax MM with direct M≡TM\equiv T equivalence proof, without Assumption 4.2
add10 RLG ≥5000\geq5000; T^≡T\hat T\equiv T conjectured Direct case proof that T^≡T\hat T \equiv T for DFST training; DFST_Softmax fails to train
mult2 RLG ≥1000\geq1000; T^≡T\hat T\equiv T conjectured Direct case proof that T^≡T\hat T \equiv T for DFST training; learned one-hot DFST_Softmax MM with direct M≡TM\equiv T equivalence proof, without Assumption 4.2
mult10 ULG ≥1000\geq1000, RLG =13=13 Repdigit-augmented training reaches RLG ≥250\geq250; DFST_Softmax fails to train
universal ULG ≥500\geq 500 on seven unseen programs From three programs and inputs of length at most 10, RLG ≥500\geq500 on all ten tested programs; learned one-hot DFST_Softmax MM with direct M≡TM\equiv T equivalence proof, without Assumption 4.2
add2, mult2 with a GRU controller not in submission RLG ≥5000\geq 5000 for add2 and RLG ≥1000\geq1000 for mult2; RLG ≥5000\geq 5000 for add2 and RLG ≥1000\geq1000 for mult2; extreme length generalization does not depend on our DFST architecture

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…