arXiv:2609.06888cs.ROSep 2026

Manuscript Offprint

arXiv:2609.06888

Predictive-Coding-Based Autonomous Regulation of Internally Generated and Externally Coupled Processing in Human-Robot Interaction

Henrique Oyama, Hiroki Sawada, Jun Tani

Henrique Oyama

Cognitive Neurorobotics Research Unit Okinawa Institute of Science and Technology Graduate University Okinawa henrique.oyama@oist.jp

Hiroki Sawada

Cognitive Neurorobotics Research Unit Okinawa Institute of Science and Technology Graduate University Okinawa hiroki.sawada1@oist.jp

Jun Tani

Cognitive Neurorobotics Research Unit Okinawa Institute of Science and Technology Graduate University Okinawa jun.tani@oist.jp

ABSTRACT

Predictive coding characterizes adaptive behavior as a dynamic balance between internally generated predictions and external sensory evidence, yet how an embodied cognitive system can regulate this balance online during ongoing interaction remains poorly understood. This study proposes a predictive-coding-based mechanism for regulating internally generated and externally coupled processing during physical human–robot interaction. The framework employs a predictive-coding-inspired variational recurrent neural network (PV-RNN), in which a meta-prior controls the degree to which posterior inference is constrained by learned prior dynamics. We extend this architecture with an online mechanism that uses reconstruction error accumulated over recent interaction history to select between predefined meta-prior regimes. The mechanism was evaluated across three physical human–robot interaction tasks involving fixed structured, changing structured, and less-constrained interaction. Across all tasks, lower meta-prior values produced the expected increase in posterior–prior divergence and reduction in reconstruction error. More importantly, reconstruction-history-driven regime selection was also associated with reduced prospective prediction error and robot-side physical interaction conflict, demonstrating consequences beyond the retrospective reconstruction objective itself. Task 3 further showed that recent sensory observations can be successfully accommodated while subsequent human motion still departs from the model's prior-generated future trajectory. Overall, these findings show that accumulated reconstruction mismatch can provide an endogenous signal for regulating how strongly subsequent inference relies on learned internal dynamics relative to ongoing sensory input during embodied interaction.

Keywords predictive coding · free energy principle · human–robot interaction · cognitive neurorobotics · variational recurrent neural networks

1 Introduction

Adaptive behavior requires an embodied agent to balance internally generated expectations with sensory evidence arising from ongoing interaction. Predictive coding provides a computational account of this process in which top-down predictions are compared with bottom-up sensory signals and resulting prediction errors drive inference [1, 2]. Within the free energy principle (FEP) and active inference frameworks, perception and action can similarly be understood as inference under a generative model [3, 4, 5]. Adaptive behavior therefore depends not only on reducing sensory mismatch, but also on regulating the relative influence of prior expectations and sensory evidence [6, 7, 8].

This balance is particularly important in embodied systems. Excessive reliance on learned internal dynamics may prevent adaptation to unexpected environmental changes, whereas excessive sensitivity to sensory fluctuations may disrupt previously learned temporal organization. Predictive processing accounts relate this balance to the precision or confidence assigned to predictions and sensory evidence [7, 9, 10]. Related robotic frameworks have investigated closed-loop coupling among generative models, the body, and the environment [11, 12, 13], while cognitive neurorobotics emphasizes the acquisition and use of internal models through embodied sensorimotor interaction [14].

Predictive-coding-inspired variational recurrent neural networks (PV-RNNs) provide a framework for investigating this relationship in temporally extended sensorimotor behavior [15]. Hierarchical organization is particularly relevant in predictive coding, where interactions across representational levels can support the integration of information over different levels of abstraction and temporal structure [16]. PV-RNN combines hierarchical recurrent dynamics with variational inference, such that learned prior dynamics generate temporal predictions while posterior inference accommodates sensory observations. A meta-prior weights posterior-prior divergence relative to sensory reconstruction and regulates this balance: stronger regularization constrains inference toward learned prior dynamics, whereas weaker regularization permits greater sensory-driven posterior adaptation [17].

This prior-sensory balance has direct consequences for embodied and social interaction. Predictive and free-energy-based robotic studies have examined imitation, turn-taking, sensorimotor adaptation, and coordination [18, 14]. In physical human-robot interaction, PV-RNN has been combined with compliant force-feedback control to investigate how learned generative dynamics interact with human-imposed motion [19], while related active inference approaches have examined the balance between goal-directed behavior and adaptation to an interaction partner [20]. Together, these studies establish the importance of regulating the influence of internal predictions and external sensory information in embodied interaction.

A key unresolved question is how an embodied predictive system can determine online when to rely more strongly on learned internal dynamics and when to become more strongly coupled to sensory input. Existing approaches generally examine a given precision, meta-prior, or interaction regime, or externally specify its change. However, interaction conditions can evolve continuously, motivating mechanisms that can adjust this balance online according to ongoing interaction dynamics. Persistent mismatch with reliable sensory observations may favor stronger sensory accommodation, whereas preserving prior dynamics may be advantageous when sensory information is unreliable or unavailable. These considerations motivate mechanisms for regulating this balance online during embodied interaction.

Previous PV-RNN work suggests that such regulation can arise from the system's own inference dynamics: the meta-prior was adapted according to reconstruction error accumulated over recent observations [17]. Here, reconstruction error denotes the mismatch between sensory observations and their reconstructions obtained through posterior inference. Its temporal evolution may serve not only as a local signal for updating inferred states, but also as a higher-order signal regulating how subsequent inference balances prior expectations and sensory evidence. Whether this principle can regulate continuous physical interaction, where inference and prediction have immediate behavioral consequences, remains to be established.

In this study, we propose a predictive-coding-based mechanism in which reconstruction error accumulated over a recent temporal window drives online selection between predefined PV-RNN meta-prior regimes. Persistent reconstruction mismatch promotes a lower meta-prior, allowing greater posterior departure from learned prior dynamics and stronger sensory accommodation, whereas sufficiently low mismatch promotes a higher meta-prior and stronger prior constraint. The learned generative-model parameters remain fixed during interaction, allowing the mechanism to regulate the conditions of inference rather than modify the internal model itself.

The mechanism is evaluated using a humanoid robot in three physical human-robot interaction tasks: fixed structured interaction, changing structured interaction that violates learned transition dynamics, and continuous less-constrained interaction. We characterize the resulting processing regimes using reconstruction error, posterior-prior divergence, prospective prediction error, physical interaction conflict, and latent dynamics. This enables us to distinguish accommodation of recent sensory observations from prediction and coordination with the interaction partner.

The main contributions of this work are threefold. First, we introduce an embodied predictive-coding mechanism in which the recent history of reconstruction mismatch provides an endogenous signal for online selection between predefined inference regimes with different degrees of prior constraint. Second, we show that this regulation has consequences beyond the expected reconstruction–KL trade-off, affecting prospective prediction and robot-side physical interaction. Third, we demonstrate the operation of the mechanism across fixed structured, changing structured, and less-constrained human–robot interaction, including conditions in which successful accommodation of recent sensory observations does not ensure accurate prediction of subsequent interaction.

References (25)