Learning, planning, and control in a monolithic neural event inference architecture

Martin V. Butz, David K. Bilkey, Dania Humaidan, Alistair Knott, Sebastian Otte · DOI

Abstract

This paper introduces REPRISE (REtrospective and PRospective Inference SchEme), a monolithic neural architecture that learns to identify and control multiple dynamical systems without explicit supervision. By integrating retrospective inference to determine latent context and prospective inference for goal-directed planning, REPRISE demonstrates adaptive control across varying physical environments. We show that the system naturally develops internal "event codes" that distinguish between different physical regimes, such as varying gravity or friction.

Introduction

Artificial neural networks often lack a deep, flexible understanding of their environment, frequently failing when a robot's dynamics change—for instance, when moving from a flat floor to a rug. In contrast, humans excel at event cognition, segmenting continuous experiences into discrete, manageable events. REPRISE aims to bridge this gap by creating a system that can learn multiple sensorimotor dynamics within a single model, infer its current context based on recent experience, and use that knowledge to plan future actions.

Methods: The REPRISE Architecture

The core of REPRISE is a Temporal Forward Model ($\Phi$), which predicts the next state based on the previous hidden state ($\sigma^{t-1}$), current sensory input ($s^t$), motor commands ($x^t$), and a latent context vector ($c^t$).

REPRISE operates in two distinct phases during every time step:

  • Retrospective Inference: The system "looks back" at the last $R$ time steps, calculating the error between predicted and actual states. It uses gradient descent to adjust the context neurons ($c$) and internal hidden states to better explain the recent past, effectively identifying which "event" or vehicle it is currently controlling.
  • Prospective Inference: Once the context is identified, the system "looks forward" $P$ steps. It imagines a sequence of motor commands and optimizes them via gradient descent to minimize the distance to a target goal, a process known as active inference.
The REPRISE inference cycle: Retrospective inference (left) identifies context, while prospective inference (right) plans actions.

Experimental Results

The researchers evaluated REPRISE in a simulated 2D environment featuring three distinct vehicles: a Rocket (influenced by gravity and inertia), a Stepper (static and omnidirectional), and a Glider (inertia without friction).

Emergent Event Encodings

One of the most striking findings is that the context neurons ($c$) naturally clustered into distinct regions for each vehicle type, even without explicit labels. The system "invented" its own internal labels for the different sets of physics. This monolithic approach allows a single network to act as a versatile controller where the contextual neurons act as a "switch" to reconfigure behavior.

Performance and Adaptive Control

Evaluations showed that LSTMs significantly outperformed standard RNNs in learning complex temporal dynamics. Once trained, REPRISE achieved an average Euclidean distance to the goal of just 0.0027 units. The following sequences illustrate the system's ability to navigate; while the Rocket required continuous counter-thrusting to stay at a goal, the Stepper and Glider reached it more directly.

Navigation sequences for the three vehicle types, showing 'imagined' future trajectories (red lines) toward target goals (green circles).

Discussion and Limitations

While REPRISE demonstrates powerful adaptive capabilities, it faces challenges regarding computational cost. The system relies on iterative gradient descent during every control step for both retrospective and prospective inference. Future work may explore curiosity-driven learning to improve the efficiency of the forward model and investigate how this monolithic approach scales to high-dimensional robotics or complex hierarchical tasks.

Summary updated

Abstract

We introduce REPRISE, a REtrospective and PRospective Inference SchEme, which learns temporal event-predictive models of dynamical systems. REPRISE infers the unobservable contextual event state and accompanying temporal predictive models that best explain the recently encountered sensorimotor experiences retrospectively. Meanwhile, it optimizes upcoming motor activities prospectively in a goal-directed manner. Here, REPRISE is implemented by a recurrent neural network (RNN), which learns temporal forward models of the sensorimotor contingencies generated by different simulated dynamic vehicles. The RNN is augmented with contextual neurons, which enable the encoding of distinct, but related, sensorimotor dynamics as compact event codes. We show that REPRISE concurrently learns to separate and approximate the encountered sensorimotor dynamics: it analyzes sensorimotor error signals adapting both internal contextual neural activities and connection weight values. Moreover, we show that REPRISE can exploit the learned model to induce goal-directed, model-predictive control, that is, approximate active inference: Given a goal state, the system imagines a motor command sequence optimizing it with the prospective objective to minimize the distance to the goal. The RNN activities thus continuously imagine the upcoming future and reflect on the recent past, optimizing the predictive model, the hidden neural state activities, and the upcoming motor activities. As a result, event-predictive neural encodings develop, which allow the invocation of highly effective and adaptive goal-directed sensorimotor control.
BibTeX
@article{butz2019learning,
  author = {Martin V. Butz and David K. Bilkey and Dania Humaidan and Alistair Knott and Sebastian Otte},
  title = {{Learning, planning, and control in a monolithic neural event inference architecture}},
  journal = {Neural Networks},
  year = {2019},
  doi = {10.1016/j.neunet.2019.05.001},
}
Figure