The Shape of a Program: Path Signatures for Trace-to-Program Induction
Not on the map. Why?
Abstract (arXiv)
Synthesizing programs from execution traces is a fundamental challenge in algorithmic interpretability and the reverse engineering of complex systems. We bring a rough-path-theoretic perspective to program induction, treating execution traces as high-dimensional rough paths and encoding them with the path signature transform, a tool from stochastic analysis whose expectation provably characterizes the distribution of traces a program induces. On three program-induction domains, Karel, List, and RASP, our log-signature trace encoder outperforms LSTM, Transformer, and Fourier baselines in almost every setting, with its largest margins when training data is scarce. We further observe that the trace-to-program pipeline is naturally contractive: it often produces valid programs that are shorter than the ground truth. We turn this into a bootstrapping procedure that exposes redundancy in the ground-truth supervision without any external oracle, which we demonstrate on redundancy-injected versions of our datasets. Finally, the log-signature encoder induces a markedly more interpretable latent geometry than the baselines, in which the nearest neighbors of every state lie on its own execution trace.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 18 of its 33 references that are in the map. Submitted 8 Nov 2026.
Builds on
18 of 33 references.
References · 18
- 2017Attention Is All You Needcited by 62,125
- 2014Neural Turing Machinescited by 693
- 2018Programmatically Interpretable Reinforcement Learningcited by 201
- 2021Thinking Like Transformerscited by 201
- 2016DeepCoder: Learning to Write Programscited by 153
- 2020Neural Rough Differential Equations for Long Time Seriescited by 145
- 2017RobustFill: Neural Program Learning under Noisy I/Ocited by 129
- 2023Tracr: Compiled Transformers as a Laboratory for Interpretabilitycited by 125
- 2016A Primer on the Signature Method in Machine Learningcited by 117
- 2015Neural Programmer-Interpreterscited by 108
- 2018Leveraging Grammar and Reinforcement Learning for Neural Program Synthesiscited by 86
- 2019Deep Signature Transformscited by 79
6 more
- 2021Learning to Synthesize Programs as Interpretable and Generalizable Policiescited by 62
- 2020Signatory: differentiable computations of the signature and logsignature transforms, on both CPU and GPUcited by 49
- 2023Learning Transformer Programscited by 48
- 2020Neural Execution Engines: Learning to Execute Subroutinescited by 40
- 2015Neural Programmer: Inducing Latent Programs with Gradient Descentcited by 36
- 2019Offline Writer Identification based on the Path Signature Featurecited by 4
Built on by
Not cited yet.