Differentiable Exact Learning
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: 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 over the transition probabilities yields discrete controllers which provably 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 at https://github.com/fanagor/DEL.
Related
- Exact Collision Gradients for Ellipsoids in Differentiable Simulation
- Hide&Seek: Learning to Explain in an End-to-End Differentiable Network
- Difference-of-Convex Regularization for Graph Learning by Differentiable Programming
- Differentiable Hybrid Modelling for Learning and Optimising Chemical Transport Processes from Experimental Data
- CuPIQP: A Batched and Differentiable QP Solver on GPUs for Robot Learning and Control
BibTeX
@misc{papazov2026differentiable,
title = {{Differentiable Exact Learning}},
author = {Hristo Papazov and Francesco D'Angelo and Nicolas Flammarion},
howpublished = {arXiv},
year = {2026},
month = nov,
doi = {10.48550/arxiv.2611.21486},
eprint = {2611.21486},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.21486},
note = {CC BY 4.0},
}
RIS
TY - UNPB
TI - Differentiable Exact Learning
AU - Hristo Papazov
AU - Francesco D'Angelo
AU - Nicolas Flammarion
PY - 2026
DA - 2026/11/16
PB - arXiv
DO - 10.48550/arxiv.2611.21486
UR - https://arxiv.org/abs/2611.21486
AB - 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: 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 over the transition probabilities yields discrete controllers which provably 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 at https://github.com/fanagor/DEL.
ER -