Abstract
It is doubtful that animals have perfect inverse models of their limbs (e.g., what muscle contraction must be applied to every joint to reach a particular location in space). However, in robot control, moving an arm's end-effector to a target position or along a target trajectory requires accurate forward and inverse models. Here we show that by learning the transition (forward) model from interaction, we can use it to drive the learning of an amortized policy. Hence, we revisit policy optimization in relation to the deep active inference framework and describe a modular neural network architecture that simultaneously learns the system dynamics from prediction errors and the stochastic policy that generates suitable continuous control commands to reach a desired reference position. We evaluated the model by comparing it against the baseline of a linear quadratic regulator, and conclude with additional steps to take toward human-like motor control.
Introduction
In traditional robotics, precise motor control typically relies on an "inverse model"—a mathematical mapping that determines the exact torque or force required to reach a specific spatial coordinate. However, biological evidence suggests that animals do not possess such rigid, perfect inverse models. Instead, biological systems likely utilize "forward models" to predict the sensory outcomes of actions, employing Active Inference to minimize the discrepancy between anticipated and actual sensory input.
While Deep Active Inference (dAIF) has demonstrated success in discrete decision-making tasks, applying it to continuous motor control—where position, velocity, and acceleration evolve simultaneously—presents significant challenges. This paper addresses these challenges by proposing a low-level controller that learns system dynamics from scratch through prediction errors, bridging the gap between abstract inference and continuous physical interaction.
Methods and Architecture
The researchers proposed a dual-network architecture designed to learn and act within a continuous environment without prior knowledge of the underlying physics equations.
The Transition Model
The transition model is a Recurrent Neural Network (RNN) that serves as the agent's internal "world model." It processes the current state and a chosen action to predict the resulting change in state ($\Delta x$). Training is driven by minimizing "surprise," or the prediction error between the model's guess and the actual environmental outcome.
The Policy Model
The policy model, implemented as a Gated Recurrent Unit (GRU), acts as the "actor" by generating control commands. A key innovation in this framework is the use of the learned transition model as a bridge for training the policy. By "rolling out" imagined trajectories through the transition model, the system can backpropagate gradients from the target position directly to the policy parameters. This process, known as amortized inference, allows the network to learn general rules for reaching targets rather than re-calculating paths for every new instance.
Experimental Setup
The architecture was evaluated using a 2D Reaching Task simulation where an agent controls acceleration to move from a central point to one of eight equidistant targets. The study tested both stationary and moving targets. Performance was benchmarked against a Linear Quadratic Regulator (LQR), a gold-standard classical controller that requires full access to the system's ground-truth physics.
Key Results
The experimental results demonstrated that the modular architecture could effectively learn complex dynamics within a relatively short timeframe (approximately 150 iterations, or 100 minutes of experience).
As shown in the performance metrics, both the transition model loss and policy model loss decreased steadily. In stationary reaching tasks, the learned policy's trajectories closely approximated the LQR baseline. While the learned model did not surpass the LQR, it achieved high precision without any initial knowledge of the system's physics. Furthermore, the model exhibited biological-like failure modes; when control inputs were rotated by 60 degrees, the performance degradation mirrored that of the LQR baseline, suggesting the learned model captured the fundamental physical constraints of the task.
Discussion and Future Work
While the results are promising, the authors identified several areas for future development. Currently, the model learns "offline" from a memory buffer, meaning it lacks the real-time online adaptation seen in biological systems. If the physical properties of the agent (e.g., limb weight) were to change suddenly, a new training session would be required.
Additionally, there is a trade-off between the speed of amortized inference and the flexibility of iterative inference. Future research will focus on integrating this low-level motor controller with higher-level cognitive models capable of handling visual input and complex planning, moving closer to a comprehensive, human-like robotic control system.
Summary updated