- Rating
- 4
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 2
- Significance
- 3
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:
- The problem formulation in this paper is highly valuable, and the choice of supervision format is well-motivated.
- The DFST architecture is concise and offers favorable theoretical analyzability.
- Experimental results demonstrate that the method exhibits strong length generalization capabilities.
Weaknesses:
- The rigorous proof covers only the
add2case and relies on the Graph Stability assumption. Furthermore, the results foradd10andmult2are based merely on empirical testing and structural similarity.mult10explicitly fails, and no formal proof of equivalence is provided for the general simulation component. - Figure 4 and Section 4.3 indicate that the RLG for
mult10is 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. - 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
- Do general-purpose simulation tasks truly test generality, or do they merely test pattern generalization across a limited family of tasks?
- How are the 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.
Paper formatting concerns
No.
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.
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:
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 onadd10,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_Softmaxmodel which applies a column-wise softmax to the transition matrices A[x], B[x], and C[x] for each input symbol x∈Σ and a softmax to the initial hidden vector h0. Hence, every hidden state and output lies on a probability simplex throughout the execution trajectory. Onadd2,mult2, and the universal task, training with a sparsity regularization drove every softmaxxed column and h0 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 theDFST_Softmaxmodel 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 trainingDFST_Softmaxon theadd10andmult10tasks. 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:
add2DFST_SoftmaxM with direct M≡T equivalence proof, without Assumption 4.2add10DFSTtraining;DFST_Softmaxfails to trainmult2DFSTtraining; learned one-hotDFST_SoftmaxM with direct M≡T equivalence proof, without Assumption 4.2mult10DFST_Softmaxfails to trainDFST_SoftmaxM with direct M≡T equivalence proof, without Assumption 4.2add2,mult2with a GRU controlleradd2and RLG ≥1000 formult2; extreme length generalization does not depend on our DFST architecture2. Decimal multiplication. We agree that the submitted results do not establish robust decimal multiplication. Almost all
mult10runs reach ULG ≥500 on random decimal products, and some reach ULG ≥1000, while no submitted schedule exceeds RLG =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. 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×3 ablation varies eight training-program combinations and maximum training lengths n∈5,10,15. Training only on
scaling-A(10),scaling-B(10), andparitywith n≤10 reaches the length-generalization cap of 500 on all ten programs, including all seven unseen programs. Second, the one-hotDFST_Softmaxresult 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 ε and S chosen? Assumption 4.2 simply postulates that such ε and S exist. Then, our ε-chaining algorithm (Algorithm 1) progressively refines a hypothesized value of ε 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, after finitely many divisions by 2, Algorithm 1 will output a deterministic extracted FST.
However, as we mentioned above, our new
DFST_Softmaxapproach removes the need for Assumption 4.2.