Object Files and Schemata: Factorizing Declarative and Procedural Knowledge in Dynamical Systems

Anirudh Goyal, Alex Lamb, Phanideep Gampa, Philippe Beaudoin, Sergey Levine, Charles Blundell, Yoshua Bengio, Michael MozerarXiv 2020

Introduction

Standard "black-box" recurrent neural networks (RNNs), such as LSTMs or GRUs, typically employ a monolithic hidden state to represent an entire scene. This approach often lacks systematicity: if a model learns the movement patterns of one entity in a video game, it does not inherently apply that logic to another entity of the same type. This occurs because the model conflates object identity (declarative knowledge) with behavioral rules (procedural knowledge) within a single vector.

Human cognition, by contrast, separates these two types of knowledge. We recognize specific objects and their states (position, health) independently of the general rules governing their behavior. This paper introduces SCOFF (Schema / Object-File Factorization), a neural architecture designed to bake this object-oriented intuition directly into deep learning.

The SCOFF Architecture

SCOFF mimics the principles of Object-Oriented Programming (OOP) by separating what an object is from how it behaves. The architecture consists of two primary components:

  1. Object Files (OFs): Active memory slots that track an individual object's state over time. These slots are interchangeable and do not possess unique weights for dynamics.
  2. Schemata: Passive sets of parameters defining specific behaviors (e.g., "move in a straight line" or "bounce").
The SCOFF architecture factorizes object states (Object Files) and behavioral rules (Schemata) using an attention mechanism.

The model operates in a four-step cycle:

  • Input Selection: OFs use spatial attention to compete for relevant visual features from a CNN-processed image.
  • Schema Binding: Each OF performs a "hypothetical update" using every available schema. A Gumbel-Softmax mechanism then selects the schema that best explains the current input.
  • State Update: The OF updates its internal state using the parameters of the selected schema.
  • Communication: OFs exchange messages via attention to handle interactions like collisions.

Evaluation and Results

The researchers evaluated SCOFF across several challenging domains, including synthetic video sequences, bouncing ball simulations, the BabyAI maze environment, and the IntPhys intuitive physics benchmark.

Key results include:

  • Superior Prediction: On bouncing ball tasks, SCOFF significantly outperformed standard GRUs and modular baselines like Recurrent Independent Mechanisms (RIMs), particularly in long-term (30-step) future predictions.
  • Reinforcement Learning: In BabyAI, SCOFF reached the goal in 82% of trials, compared to only 56% for a standard GRU.
  • Physical Intuition: SCOFF showed lower error rates on the IntPhys benchmark for detecting physical anomalies like disappearing or teleporting objects.
  • Zero-Shot Scaling: The model successfully handled more objects at test time than it encountered during training, a scenario where standard RNNs typically fail.

Interpretability and Systematicity

A major advantage of SCOFF is its inherent interpretability. By forcing each Object File to select a specific schema, the model's "reasoning" becomes transparent.

SCOFF demonstrates interpretability in a Pac-Man environment by mapping specific Object Files (A-E) to behavioral Schemata (PacMan, Normal Ghost, Scared Ghost).

Because schemata are shared, the model only needs to learn a behavior once to apply it to any number of object instances. This factorization allows for systematic generalization, where the model remains robust even as the number of objects in a scene increases.

Conclusion

While SCOFF offers a significant step toward object-oriented neural networks, challenges remain. The model currently uses a fixed number of Object File slots and requires a predefined number of schemata. Future research may focus on dynamic schema discovery and improving the computational efficiency of the hypothetical update step. Nevertheless, SCOFF demonstrates that separating declarative and procedural knowledge is a powerful inductive bias for modeling complex dynamical systems.

Summary updated

BibTeX
@misc{goyal2020object,
  author = {Anirudh Goyal and Alex Lamb and Phanideep Gampa and Philippe Beaudoin and Sergey Levine and Charles Blundell and Yoshua Bengio and Michael Mozer},
  title = {{Object Files and Schemata: Factorizing Declarative and Procedural Knowledge in Dynamical Systems}},
  year = {2020},
  eprint = {2006.16225},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.16225},
}
Figure