arXiv:2608.23000cs.ROAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.23000

Free-Energy-Gated Plasticity for Real-Time Online Motor Learning in Physical Human-Robot Interaction

Hiroki Sawada, Jun Tani

Abstract

Fully online embodied learning requires synaptic adaptation to acquire new behaviors while preserving previously learned dynamics during ongoing interaction. We extend the Predictive-Coding-inspired Variational Recurrent Neural Network (PV-RNN) to continuously adapt its synaptic weights and propose Free-Energy-Gated Plasticity (FEGP), which regulates the effective learning rate according to variational free energy. In real-time physical human-robot interaction, a randomly initialized network acquired three cyclic motor patterns without offline pretraining, replay, or task-boundary signals, with all three patterns emerging in autonomous rollouts. Controlled experiments over ten randomized teaching streams and five network initializations per stream showed that FEGP substantially improved repertoire coverage and retention of previously acquired patterns after they left the recent observation window. Neither a constant learning rate matched to the gate's time-averaged effective rate nor replay of the same gain values with disrupted temporal organization reproduced these improvements. These results indicate that the temporal allocation of plasticity relative to model-environment mismatch, rather than simply its average magnitude or distribution, is critical for maintaining previously acquired behaviors during continued online learning.

Keywords: Physical Human–Robot Interaction, Continual Learning, Stability–Plasticity Trade-off, Free Energy Principle, Embodied Online Learning.

1 Introduction

Humans and animals acquire motor skills through continuous interaction with their environment, without a clear separation between inference and learning. Perception, prediction, action, and synaptic modification unfold together within an ongoing sensorimotor loop, such that adaptation directly shapes subsequent actions and observations. This differs from many artificial learning systems in which learning and generation are temporally separated and weight updates are performed offline or episodically. To distinguish the setting considered here from such approaches, we refer to it as fully online, real-time, and boundary-free: weights are updated at every sensory sample without a separate training phase, each model update is completed before the next sensory sample is processed, and no task identity or transition signal is supplied to the learner. The central challenge in such a setting is not merely rapid adaptation, but regulation of adaptation. Synaptic updates must remain sufficiently plastic to acquire new behavioral dynamics while limiting interference with those already learned, reflecting the classical stability-plasticity dilemma [1] and its manifestation

*Cognitive Neurorobotics Research Unit, Okinawa Institute of Science and Technology Graduate University, Okinawa, Japan 904-0302. Email: hiroki.sawada1@oist.jp

†^{\dagger}Cognitive Neurorobotics Research Unit, Okinawa Institute of Science and Technology Graduate University, Okinawa, Japan 904-0302. Email: jun.tani@oist.jp. Corresponding author.

as catastrophic forgetting in neural networks. This challenge is particularly important for embodied agents because weight changes affect subsequent actions, which in turn alter the observations that drive future adaptation. Fully online embodied learning therefore requires a mechanism that regulates when and how strongly synaptic adaptation occurs.

Modern continual learning (CL) research has largely focused on mitigating catastrophic forgetting. Regularization-based methods such as Elastic Weight Consolidation [2] and Synaptic Intelligence [3] constrain parameter changes according to their estimated importance to previously acquired knowledge, while later approaches have relaxed assumptions about task labels or explicit task boundaries [4–6]. These methods progressively reduce the amount of task information required during learning, but they have not generally addressed the acquisition of recurrent motor dynamics from scratch in a fully online, real-time, and boundary-free embodied setting. In such a setting, the learner's own actions shape the observations that drive subsequent adaptation, coupling continual learning directly to ongoing physical interaction.

Replay-based continual-learning methods mitigate forgetting by revisiting stored examples or regenerated past experience [7–9]. Meta-learning provides another approach by learning initial conditions or mechanisms that support rapid or selective adaptation, as in MAML [10] and ANML [11]. These approaches demonstrate effective ways to preserve or allocate plasticity, but they rely on retained or regenerated past experience, or on offline meta-training over a predefined task distribution. They therefore differ from the setting considered here, where plasticity must be regulated directly from signals available during ongoing interaction, without replay or prior meta-training.

In robotics and physical human-robot interaction (pHRI), motor learning is often framed as learning from demonstration (LfD) [12], where demonstrations are collected before policy or model optimization. Dynamic Movement Primitives [13], for example, represent movements as stable dynamical systems whose parameters are fitted to recorded demonstrations. Recent continual robot learning has also explored task-structured benchmarks, skill libraries, and mechanisms for preserving previously acquired dynamics [14–16]. These approaches differ from the setting considered here, in which state inference, motor generation, physical interaction, and synaptic adaptation proceed continuously within a single uninterrupted sensorimotor process.

A key open problem in recurrent embodied learning is therefore how to regulate synaptic plasticity so that multiple motor patterns can be acquired from scratch during uninterrupted, real-time interaction without interfering with previously acquired dynamics.

A natural way to regulate plasticity online is to use a mismatch signal that is already available within the inference process. Predictive coding provides such a framework by continuously comparing predictions with sensory observations [17], and related free-energy formulations extend this idea by expressing inference and learning in terms of variational free-energy minimization [18]. These principles have also been applied to robotic control and active inference [19, 20]. The Predictive Coding inspired Variational Recurrent Neural Network (PV-RNN) [21] provides a concrete implementation for temporal sequences and has been applied to goal-directed behavior and physical human-robot interaction [22–24]. During online interaction, PV-RNN performs inference through error regression over a sliding window of recent observations, adapting its latent states so that the generative model better explains the observed sequence. Its synaptic weights, however, remain fixed after training, preventing the recurrent dynamics themselves from being learned during interaction.

Allowing synaptic weights to adapt online would enable the recurrent dynamics themselves to change as new behaviors are encountered. In real-time interaction, however, inference and weight updates must be completed within each model-update interval, making it impractical to optimize over the entire interaction history. Adaptation must therefore rely on a finite window of recent observations. Because each weight update is then driven primarily by this recent context, continuous adaptation can bias the model toward recent behavior and interfere with previously acquired dynamics. Fully online learning therefore requires not only synaptic adaptation, but also a mechanism that regulates when and how strongly that adaptation is expressed.

Biological and computational accounts of learning suggest that the rate of synaptic change can be regulated by internally generated signals of prediction error, surprise, or uncertainty. Prediction errors have been linked to adaptive updates of internal models [25], while surprise- and uncertainty-dependent regulation of plasticity has been studied through metaplastic synapses [26], neuronal-surprise signals [27], hierarchical Bayesian filters [28], and neuromodulatory mechanisms that amplify learning under unexpected observations [29]. Related work in predictive-coding robotics has further shown that internally generated prediction errors can reflect confidence in ongoing perceptual inference [30]. These accounts motivate treating plasticity as a dynamically regulated quantity driven by model-environment mismatch rather than as a fixed learning rate. Recent formulations of synaptic learning as free-energy minimization provide further theoretical motivation for linking plasticity regulation to variational free energy [31]. Importantly, variational free energy is already computed within PV-RNN during online inference, making it a natural internal signal for regulating synaptic adaptation without requiring an external task or novelty signal.

We therefore propose Free-Energy-Gated Plasticity (FEGP), which scales synaptic updates as a sigmoidal function of variational free energy. We use variational free energy as an internally generated signal of model-environment mismatch, increasing plasticity under substantial mismatch and suppressing it as the model comes to explain the recent interaction better. FEGP thus couples synaptic adaptation directly to a signal already computed within the predictive-coding inference process.

The contributions of this work are threefold. 1) We establish and evaluate a fully online embodied learning setting without task boundaries, replay, or offline consolidation, and show that unregulated online adaptation provides little retention of previously acquired motor patterns. 2) We introduce FEGP, a sigmoidal mechanism that regulates synaptic plasticity according to variational free energy. FEGP improves repertoire coverage and retention, and controlled comparisons show that this effect depends on the temporal allocation of plasticity relative to model-environment mismatch. 3) We demonstrate the incremental acquisition of multiple motor behaviors from scratch during continuous physical human-robot interaction, with all three instructed patterns emerging in autonomous model rollouts. 1^{1}

Together, these results show that internally generated mismatch signals can regulate plasticity online to support continual motor learning during ongoing physical interaction.

References (31)