- Rating
- 4
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 2
Read review
Summary
This paper studies trace-to-program induction from execution traces. The main idea is to view an execution trace as a path in a learned latent state space and encode this path using a truncated path log-signature. The resulting trace embedding is then used by a Transformer decoder to generate a program in a target DSL. The paper evaluates this approach on Karel and List DSL program-induction tasks, comparing the log-signature encoder against LSTM, Transformer, and Fourier trace encoders. The paper also studies a bootstrapping procedure that replaces ground-truth programs with shorter model-generated programs when they reproduce the same traces, and visualizes latent geometries using t-SNE.
Strengths and weaknesses
The main strength of the paper is the interesting connection between path signatures and trace-to-program induction. The rough-path motivation is appealing: program executions do have temporal structure, and the Chen identity gives a principled algebraic view of how path signatures compose under temporal concatenation. I also appreciate that the paper compares several trace encoders under a shared encoder-decoder framework, includes data-efficiency curves, studies truncation depth, and reports a bootstrapping analysis showing that many ground-truth programs are non-minimal representatives of their behavioral equivalence classes.
However, I have several major concerns about whether the empirical evidence actually supports the stronger claims of the paper.
First, the implemented method is much simpler than the rough-path framing suggests. The actual encoder uses a truncated log-signature with , followed by a learned linear projection . At , the representation is essentially displacement plus second-order/pairwise interaction or Levy-area-like features over latent trajectory increments. This is a reasonable and potentially useful feature map, but it is much less clear that the empirical gains require the full rough-path/signature framework. The appendix shows that is inadequate and that often degrades performance, so the successful regime appears to be specifically the low-order pairwise regime. A more direct ablation against hand-built first-order plus second-order increment features, or symmetric/antisymmetric pairwise interaction features, would be important. Without this, it is difficult to know whether the improvement comes from log-signature theory or simply from giving the decoder fixed pairwise temporal features.
Second, I could not find an ablation comparing the ordinary truncated signature against the truncated log-signature at the same . This is important because the log-signature is a central part of the proposed encoder and is presented as a compact Lie-algebra representation that removes shuffle-product redundancy. But empirically the paper only seems to ablate the truncation depth , not the log operation itself. A signature-vs-log-signature comparison at and possibly would help isolate whether the logarithmic/Lie-algebra step is actually responsible for the performance.
Third, I am not fully convinced by the strength of the Transformer baseline. The paper states that the Transformer encoder uses relative positional encoding and mean-pooling over the output state embeddings. Meanwhile, the log-signature encoder uses additive sinusoidal positional encoding and then applies a potentially large projection from the log-signature feature space. This raises several issues. Mean-pooling can be a severe information bottleneck for trace-to-program induction, because program structure may depend on localized or ordered subsegments of the trace. The log-signature encoder, especially at , effectively exposes global pairwise temporal interaction features before projection, while the Transformer baseline compresses states through mean-pooling. I would be more convinced by a Transformer baseline using absolute positional encoding and a stronger readout, such as attention pooling, a learned query/[CLS]-style pooling token, or allowing the decoder to cross-attend directly to all state embeddings rather than to a single mean-pooled trace vector.
Relatedly, the paper does not clearly compare parameter counts across encoders. The projection can itself be large, depending on the log-signature dimension. If the log-signature encoder has a substantially larger readout/projection module than the baselines, part of the improvement could come from capacity rather than the geometric inductive bias. Parameter counts and matched-capacity baselines would make the comparison more convincing.
Fourth, the current trace-compression design may itself be a bottleneck. All trace encoders appear to output a fixed trace-level embedding , which the decoder then attends to. But for program induction, one might naturally want the decoder to attend over all state embeddings, or over local/signature segment embeddings, rather than over one compressed trace vector. The paper argues that attention over long traces is expensive, but the final program decoder already uses attention, and the relevant traces in these DSL domains may not be so long that stronger decoder access is impossible. A stronger comparison would include a Transformer encoder/decoder setup where the program decoder attends directly over state-level trace memories, or where the signature method computes signatures over subsegments and exposes multiple memory tokens rather than a single global embedding.
Fifth, Finding #2 is interesting as a dataset/label observation, but it does not strongly support the specific log-signature contribution. The bootstrapping results show that all encoders, including LSTM, Transformer, and Fourier, discover nontrivial shorter programs. Thus, this seems to be a property of the trace-to-program pipeline and the non-minimality of the dataset labels, not a distinctive advantage of the log-signature encoder. I think this should be framed more modestly.
Finally, I am cautious about the interpretation of the t-SNE visualizations in Finding #3. The log-signature encoder explicitly imposes a strong low-order geometric bias: it summarizes paths through displacement and pairwise geometric/order interactions. Therefore, it is not surprising that the resulting latent geometry looks more path-like or clustered by trace/program under t-SNE. The visualization is consistent with the design, but I do not think it provides strong independent evidence that the method has learned a deeper program structure beyond its imposed geometric regularization.
Overall, I find this submission interesting in motivation, but not yet empirically convincing. The rough-path connection is attractive, but the implemented model is essentially a low-order deterministic pairwise temporal feature map followed by a learned projection and a decoder. The current experiments do not sufficiently rule out simpler explanations, such as second-order temporal features, a stronger projection/readout, weaker Transformer pooling, or parameter-count differences. I would be much more convinced if the paper showed that log-signatures outperform stronger APE + attention-over-states Transformer baselines and simpler first/second-order pairwise interaction baselines under matched capacity.
Questions
- Can the authors provide an ablation of ordinary truncated signature features versus truncated log-signature features at the same ? This would clarify whether the log/Lie-algebra compression is actually important.
- Can the authors compare against simpler first- and second-order trajectory feature baselines, e.g., features based on , , and/or antisymmetric pairwise area terms, followed by the same projection and decoder? This would test whether the gain is due to log-signature structure or generic pairwise temporal interactions.
- Can the authors include a stronger Transformer baseline, e.g., with absolute positional encoding, learned attention pooling/[CLS] pooling, or decoder cross-attention over all state embeddings rather than mean-pooled trace embeddings? The current mean-pooling readout may discard information that the log-signature projection preserves.
- What are the parameter counts for each encoder, including in the log-signature encoder? Are the performance gains preserved under matched parameter counts?
- Can the authors better separate the conclusions of Finding #2 from the proposed encoder? Since all encoders discover shorter valid programs, the bootstrapping result seems more like a property of the dataset and trace-to-program setup than evidence for the log-signature encoder specifically.
Limitations
The paper discusses the dimensional growth of the truncated log-signature, but I do not think it adequately addresses several important limitations: the gap between full signature theory and the actual implementation, the absence of signature-vs-log-signature ablation, the lack of simple second-order feature baselines, possible weakness of the Transformer mean-pooling baseline, and missing parameter-count comparisons. These should be discussed and, ideally, empirically addressed.
Paper formatting concerns
N/A
Final justification
The rebuttal resolved my main empirical concerns.
Two issues remain: higher-order rough-path features are not yet practically realized, as performance already drops at ; and even at , a fixed LogSig bias is not always better than learnable attention, as shown by APE + learned on Karel.
These are follow-up questions rather than blocking flaws. I recommend 4.
Meta-review
Summary
The authors define a new method to do program induction from traces, i.e. given a set of traces, they train an NN to synthesize the program that created the traces. Each trace consists of a sequence of program states, so the synthesis pipeline consists of three parts:
The authors train models to generate programs for two toy domain-specific languages: Karel, for grid worlds, and List, for list manipulation. In these experiments, the decoder and state encoder are fixed (i.e. have a fixed architecture), while the trace encoder varies. All models are trained from scratch. The authors compare four trace encoder architectures: LSTM, transformer, Fourier, and path signature.
The path signature encoder is the novel part of this work, and defining the underlying theory comprises the bulk of the paper. Path signatures have a deep mathematical theory, and have previously been used for ML, but primarily for time-series prediction. Thus, this paper is the first work applying them to program traces.
The authors argue convincingly that the path signature encoder has an inductive bias that is well suited to program traces. It strongly outperforms LSTM, transformer, and Fourier baselines, while running at a fraction of the wall-clock time. In addition, the t-SNE visualizations show tight clustering of state embeddings within traces, and of traces belonging to the same program, which the other encoders do not have.
Reviews
As AC, I would like to thank all of the reviewers for writing exceptionally detailed and clear reviews. This was a difficult paper to review, yet review quality for this paper was well above average across the board.
Reviews for this paper were generally negative, 2, 2, 4. The reviewers had many concerns, including:
AC Opinion
As AC, I am actually going to push back on the negative reviews here; I think the reviewers were overly harsh.
The paper is exceptionally well-written, and it does something that is not easy: introducing a very difficult mathematical topic (path signatures) to an audience that will generally be unfamiliar with it. The theory is well-motivated. The experiments seem well-designed, and are focused on answering a focused question: do path signatures have a useful inductive bias for encoding program traces? To my eye, the experimental results (including t-SNE) are convincing in answering this question.
Reviewer complaints that the DSLs are toy languages are absolutely valid; this technique may not be scalable to real-world problems. However, I would treat this paper primarily as a seminal theory paper, rather than one that is attempting to beat SOTA program synthesis. The authors are applying a branch of mathematics to a new area, and small-scale studies are accepted practice for such work. For initial exploratory work, it makes sense to use simple DSLs that operate in well-defined state-spaces. The models here have to be trained from scratch, so it also makes sense that they are small. Compressing entire traces to a single vector may not be the best way to do program induction, but it’s the right way to test the inductive bias of a trace encoder; etc. I would expect future work to build on these results in more realistic settings.
That being said, I would encourage the authors to engage with and address as many reviewer concerns as they can; there is a lot of detailed feedback here. Reviewer 8Ahq’s comments on clarity are especially important -- what is the algorithm for computing the log-signature of a trace, in a form that can be implemented by a practicing ML researcher? (This can be in the appendix if need be.) Additional experiments to create stronger baselines are always good as well.