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.
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.
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