cd /news/machine-learning/the-shape-of-a-program-path-signatur… · home › topics › machine-learning › article
[ARTICLE · art-167432] src=arxiv.org ↗ pub= topic=machine-learning verified=true sentiment=↑ positive

The Shape of a Program: Path Signatures for Trace-to-Program Induction

A rough-path-theoretic approach to program induction, detailed in arXiv paper 2611.13005v1, encodes execution traces with the path signature transform and outperforms LSTM, Transformer, and Fourier baselines in almost every setting across the Karel, List, and RASP domains, with the largest margins when training data is scarce. The log-signature trace encoder also yields a trace-to-program pipeline that is naturally contractive, often producing valid programs shorter than the ground truth, which the authors turn into a bootstrapping procedure that exposes redundancy in ground-truth supervision without an external oracle, demonstrated on redundancy-injected versions of their datasets. The encoder induces a latent geometry in which the nearest neighbors of every state lie on its own execution trace.

by read1 min views1 publishedNov 11, 2026

arXiv:2611.13005v1 Announce Type: new Abstract: 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.

── more in #machine-learning 4 stories · sorted by recency
── more on @karel 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/the-shape-of-a-progr…] indexed:0 read:1min 2026-11-11 · —