Differentiable Algorithm Networks for Composable Robot Learning

Péter Karkus, Xiao Ma, David Hsu, Leslie Pack Kaelbling, Wee Sun Lee, Tomás Lozano-Pérez

Introduction

In the field of robotics, designers often face a fundamental trade-off between model-based and model-free system architectures. Model-based approaches decompose complex tasks into interpretable, modular components such as perception, state estimation, planning, and control. While these systems are highly data-efficient due to their use of physical and algorithmic priors, they can be brittle. A failure in any single module—often caused by violated assumptions like Gaussian noise or perfect Markov transitions—can lead to total system failure.

Conversely, model-free approaches map raw sensory observations directly to actions. These "black box" systems are robust to modeling errors but require immense amounts of training data and offer little interpretability. This paper introduces Differentiable Algorithm Networks (DANs), a framework designed to bridge this gap by encoding classical robotics algorithms as differentiable neural network modules.

The DAN Framework

The core innovation of the Differentiable Algorithm Network (DAN) is the explicit structuring of a neural network's computational graph to mimic classical algorithms. Unlike standard deep learning models that use generic layers, a DAN utilizes modules that perform specific algorithmic steps, such as filtering or value iteration.

Comparison of Model-based, DAN, and Model-free architectures.

By ensuring that every operation within these modules is differentiable, the entire modular system can be trained end-to-end via backpropagation. This allows the system to retain the structural benefits of model-based design while gaining the flexibility of model-free learning. The authors demonstrate this with a navigation system comprising four components: a CNN for vision, a differentiable Histogram Filter for state estimation, a differentiable Value Iteration module for planning, and an LSTM for local control.

Experimental Evaluation

The researchers evaluated DANs in both simplified toy environments and complex 3D simulations. For the latter, they utilized a custom Unity 3D simulator to generate randomized 19x19 grid mazes filled with household furniture, textures, and lighting conditions. The training set consisted of 10,000 environments with expert demonstrations, while evaluation was performed on 500 unseen environments.

Toy grid-world environments: Puddle-MDP and Puddle-POMDP.

The toy environments, such as the Puddle-MDP and Puddle-POMDP shown above, were used to isolate specific challenges like short planning horizons and state uncertainty. These experiments highlighted how DANs can overcome the limitations of their constituent algorithms through end-to-end optimization.

Insights and Results

A key finding is that end-to-end training allows the DAN to "hack" its internal models to compensate for algorithmic approximations. For instance, when the Value Iteration planner was restricted to a short horizon, the network learned a "fake" transition model with "macro-actions" to reach the goal. Similarly, when using a model that ignored walls, the DAN learned an exaggerated penalty for collisions in its reward model to ensure safety.

Quantitatively, DANs significantly outperformed traditional baselines:

  • Discrete MDP (Short Horizon): DAN achieved a 97.8% success rate, compared to 59.0% for modular systems trained independently.
  • POMDP (Decoupled Modules): DAN reached a 99.6% success rate, while independent training stalled at 63.8% due to robot "freezing" under uncertainty.
  • Full Visual Navigation: The complete DAN system achieved a near-perfect 99.8% success rate. In contrast, an unstructured neural network given the same data only succeeded 38.4% of the time.

Conclusion

DANs provide a powerful middle ground for robot learning, combining the data efficiency of structured priors with the robustness of end-to-end optimization. However, challenges remain regarding the scalability of unrolling complex algorithms and the loss of model reusability, as the learned internal representations are often distorted to serve the global task. Future work will focus on improving optimization for deeper graphs and exploring hybrid training curricula to stabilize the learning process.

Summary updated

BibTeX
@inproceedings{karkus2019differentiable,
  author = {Péter Karkus and Xiao Ma and David Hsu and Leslie Pack Kaelbling and Wee Sun Lee and Tomás Lozano-Pérez},
  title = {{Differentiable Algorithm Networks for Composable Robot Learning}},
  booktitle = {Robotics: Science and Systems},
  year = {2019},
  doi = {10.15607/rss.2019.xv.039},
}
Figure