Neural Production Systems

Anirudh Goyal, Aniket Didolkar, Nan Rosemary Ke, Charles Blundell, Philippe Beaudoin, Nicolas Heess, Michael Mozer, Yoshua Bengio

Abstract

Neural Production Systems (NPS) address the limitations of standard deep learning models in systematic generalization and modular reasoning. By combining object-centric representations with a library of learnable "if-then" production rules, NPS facilitates sparse, factorized interactions between entities. This architecture allows for dynamic binding of rules to objects, enabling the model to generalize across varying numbers of entities and complex physical dynamics. Experimental results across physics simulations and world-modeling tasks demonstrate that NPS outperforms traditional Graph Neural Networks (GNNs) in both predictive accuracy and interpretability.

Introduction

Standard deep learning models, particularly Graph Neural Networks (GNNs), are the current state-of-the-art for modeling object interactions. However, GNNs often suffer from two primary issues: density and a lack of factorization. They typically assume dense interactions where every object potentially influences every other object at each time step, which is both computationally inefficient and physically inaccurate. Furthermore, GNNs struggle to separate the underlying physical laws (rules) from the specific entities involved. Neural Production Systems (NPS) overcome these hurdles by implementing a modular, rule-based architecture inspired by classical symbolic AI.

Methods

NPS operates on object-centric "slots" extracted from visual input. The core of the system is a library of learnable production rules, each consisting of a condition template and an action MLP. The interaction process involves dynamic binding: a primary slot "bids" for a rule based on its state, and the selected rule then identifies a contextual slot for interaction. This mechanism ensures that interactions are sparse and directional, mirroring causal physical relationships.

Comparison of interaction rules between NPS and GNNs.

The system can operate in two modes: Sequential NPS, where rules are applied one by one, and Parallel NPS, where multiple rules act on different objects simultaneously. This flexibility allows the model to adapt to different environmental dynamics, such as the sequential nature of collisions or the parallel nature of gravitational forces in a stack.

Results and Insights

A key strength of NPS is its ability to achieve systematic generalization. By decoupling rules from specific slots, the model can be trained on scenes with few objects and successfully extrapolate to scenes with many more. Additionally, the model exhibits natural rule specialization. During training, individual rules begin to consistently handle specific types of transformations or physical events without explicit supervision.

Rule specialization over training epochs.

In the Shapes Stack task, NPS outperformed the RPIN baseline, particularly in long-term transfer settings (5.411 vs 6.377 MSE). In world-modeling tasks like Atari games, NPS consistently achieved higher accuracy than GNN-based models. The interpretability of the learned rules is a significant advantage; for instance, in block-stacking tasks, the model learns to apply a "null rule" to stable base blocks while applying active physical rules to falling blocks.

Conclusion

Neural Production Systems represent a significant step toward integrating symbolic reasoning into neural architectures. By enforcing sparsity and rule-based factorization, NPS achieves better generalization and interpretability than dense interaction models. Future work will explore automated transitions between sequential and parallel regimes and improving the robustness of the underlying object-centric encoders in complex, real-world environments.

Summary updated

BibTeX
@inproceedings{goyal2021neural,
  author = {Anirudh Goyal and Aniket Didolkar and Nan Rosemary Ke and Charles Blundell and Philippe Beaudoin and Nicolas Heess and Michael Mozer and Yoshua Bengio},
  title = {{Neural Production Systems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=xQGYquca0gB},
}
Figure