Manuscript Offprint
arXiv:2610.10275Active Inference for Interaction-Mediated Control of a High-Dimensional Robotic Arm
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.
Fraser C. Paterson [0009-0003-4392-7092], Sebastian Stein [0000-0003-1828-4008], Markus Klar [0000-0003-2445-152X], John H. Williamson [0000-0001-8085-7853], and Roderick Murray-Smith [0000-0003-4228-7962]
University of Glasgow, Glasgow, Scotland, UK
Abstract. We propose interaction-mediated control via Active Inference as a general architectural approach to high-dimensional control problems in Human–Computer Interaction (HCI). This architecture recasts user interaction as the provision of evidence about a latent task objective, rather than the direct specification of plant-control inputs. The mediating function is distributed between an interaction broker, which selects informative user queries and performs Bayesian inference over user preferences, and an Active Inference controller, which autonomously plans and acts under the resulting preference information to control the plant. This division of labour decouples the semantics of user interaction from those of low-level plant control. We instantiate the architecture in a simulated, multi-link robotic arm to perform a simultaneous whole-arm target-coverage task. A simulated user communicates exclusively through a clutch-style binary evaluative channel, without specifying joint-torque commands. Across increasing arm dimensionalities, the architecture achieves successful interaction-mediated control, although task success is lower than when the controller receives the true target preferences directly. Exact target-subset identification also remains imperfect, highlighting the distinction between preference inference and successful task completion. The experimental findings provide an initial computational demonstration of the proposed architecture under controlled, matched-model assumptions and motivate its further investigation in broader HCI applications.
Keywords: Active Inference · Human–Computer Interaction · high-dimensional Control · Interactive Robotics
1 Introduction
Users of interactive, computational systems often express their intentions and preferences at a higher semantic level than the space of controls required to realise them. “Tie my shoelaces” is a concise, abstract imperative, over and above all the constituent fine motor control commands that will constitute its execution. In consequence, there is a fundamental distinction between the specification of what a system should achieve and the determination of how it should
F. C. Paterson et al.
be achieved. Requiring users to directly interface with the low level controls can become burdensome when those controls involve many dynamically coupled variables or if they cannot be exposed through a tractable interface compatible with the limited bandwidth of human interaction [12]. This problem is especially prominent in robotic, assistive, and shared-autonomy settings, where low-bandwidth user input must be reconciled with comparatively high-dimensional control [7,4,3]. We address this problem through interaction-mediated control via Active Inference, in which user input communicates evidence about their latent, task-relevant preferences, as opposed to direct control. A mediating architecture infers the user's preferences from interaction and communicates the resulting user-preference information to an autonomous, active inference controller in direct control of the plant. We propose an explicit division of labour within the mediating system, separating an Interaction Broker Agent (IBA), responsible for querying and inferring user preferences, from a Low-Level Control Agent (LLCA), responsible for plant control, under the resulting preference information. Section 2 develops this architectural proposal.
Our principal contribution is the formal specification and computational realisation of this interaction-mediated architecture. We instantiate our approach in a simulated multi-link robotic arm and evaluate whether a clutch-style, binary evaluative user-interaction channel can convey useful information about a simulated user's latent target objective, without requiring the user to specify joint-torque controls. The resulting experiments provide an initial demonstration of the architecture and motivate its investigation in broader HCI applications.
2.1 Mediated Interaction as a General Architectural Response
As opposed to a direct mapping from user input into low-level plant controls, a mediating mechanism may stand between the user and the plant. We refer to this general arrangement as interaction-mediated control. The mere fact of mediation does not prescribe a particular semantics for user input. For example, user input might retain the semantics of a control command, expressed through a lower-dimensional latent control space afforded by the mediating mechanism. An alternative semantics is to treat user input as evaluative evidence about whether the mediator's proposed behaviour accords with the user's task objective. This alternative decouples the semantics of user interaction from the semantics of Low-Level plant actuation. We adopt this latter semantics: user interaction provides evidence about the user's latent task-preference, while the mediating system determines the plant actions through which the inferred objective may be realised.
2.2 Active Inference as an Interaction-Mediating Mechanism
We propose Active Inference (AIF) as a framework for instantiating this evaluative form of interaction-mediated control [2]. Rather than treating user input as a direct control command, an Active-Inference mediator maintains probabilistic beliefs about latent user preferences. User-facing queries serve the epistemic role of soliciting user-feedback expected to reduce uncertainty about user-preferences. The resulting preference information can subsequently guide pragmatic, plant-facing actions, directed towards the realisation of the inferred objective. This provides a common, inferential perspective on the related issues of learning what the user wants in addition to how these preferences can be realised.
Recent work on Active Inference for HCI has similarly identified an online “transduction” configuration in which an Active Inference interface lies between a user and an existing system and mediates information flow between them [8]. We refer to the resulting arrangement as interaction-mediated control via Active Inference. Active Inference has also been investigated for robotic body perception and reaching [9], and for robot-arm torque control [6]. Our focus here is on coupling autonomous plant control to preference information inferred through user interaction. Previous work has also employed Active Inference to model mouse pointing and clicking in continuous state, observation, and action spaces [5]. The present work instead investigates a mediated architecture in which a simulated user’s latent objective is inferred from evaluative interaction before autonomous plant control.
2.3 Decomposing the AIF-Mediator: Inferential Division of Labour
The proposed mediating function exists to solve two distinct problems: inference over what the user wants and determining how the inferred objective can be realised through autonomous plant control. We make this division explicit by decomposing the mediating function into an Interaction Broker Agent (IBA) and Low-Level Control Agent (LLCA). The IBA queries the user and performs exact Bayesian inference over latent user preferences. The LLCA performs autonomous plant control under the resulting posterior-marginal preference information supplied by the IBA. We simulate the user side of the interaction and refer to this entity as the Human/User Agent (HUA) which has private access to the task objective and provides evaluative feedback to the IBA. The resulting architecture is deliberately heterogeneous: its components perform distinct, local computations and communicate through restricted interfaces rather than forming a single, monolithic inference-and-control mechanism.
3 AIF Interaction-Mediated Control for a Multi-Link Arm
3.1 Task Definition
We consider a simultaneous whole-arm coverage task for a planar robotic arm comprising equal-length links. The configuration of the arm is given as the vector of angles: , where is measured relative to the fixed base frame and subsequent angles relative to the preceding link. Low-Level
F. C. Paterson et al.

Fig. 1. Four arrangements illustrate the progression from (A) direct user–system control to (B) interaction-mediated control, (C) Active Inference-mediated control, and (D) its distributed realisation through the HUA, IBA, and LLCA. In (D), the IBA and LLCA jointly constitute the mediating mechanism.
actions are per-joint torques . The arm is situated inside a workspace which contains circular objects . The private target subset is represented by , with indicating that object is a target. Let denote the region occupied by arm-link and be the geometry of the whole arm. Object is covered when , and the task succeeds when all target objects are covered simultaneously. Non-target coverage is not penalised and no unique arm pose is prescribed; the LLCA determines how the target objective is realised through joint torques.
3.2 Local Models, Objectives, and Interface Contracts
The three interacting components are functionally heterogeneous and implement distinct inference, evaluation, and control processes. We therefore specify the minimal local model, operative computation, and interface contract of each component. Full implementation details are given in Appendices A–C. Fig. 2 depicts one whole interaction cycle.
Human/User Agent The simulated HUA privately knows . At outer cycle t, it receives the LLCA-generated rollout-pool context and IBA-selected query index , and samples
Relative to the current rollout-pool context, denotes satisfaction with the selected preview and dissatisfaction. The HUA communicates neither nor motor commands and is not implemented as an Active Inference agent. Consequently, the HUA performs no VFE minimisation or EFE planning. The response model is specified in Appendix A.
Interaction Broker Agent The IBA treats the HUA’s private target indicator as a latent variable , where is the finite set of admissible target-subset hypotheses. At outer interaction cycle , it maintains a categorical pre-query belief over this hypothesis space. Given the LLCA-generated rollout-pool context , the IBA evaluates candidate preview queries using the same pool-contextual HUA response-model family introduced above. The IBA selects the candidate query expected to provide the greatest information about the latent target subset, instantiating an epistemic objective related to Bayesian optimal experimental design [10]:
After receiving the HUA’s binary evaluation , the IBA updates its belief via direct application of Bayes’ rule:
The resulting posterior is normalised over Z. The IBA does not perform VFE minimisation for this update. Rather than communicating either the full categorical belief or its MAP target hypothesis to the LLCA, the IBA marginalises over target hypotheses to obtain object-wise preference vectors:
Each component is the marginal probability that workspace object belongs to the HUA's target subset. The pre-feedback vector is supplied to the LLCA for query-rollout generation, whereas the post-feedback vector is supplied for subsequent execution planning. The IBA itself issues no torque commands and does not select an execution rollout. Full likelihood, expected-information-gain, and posterior-update expressions are given in Appendix B.
F. C. Paterson et al.
Low-Level Control Agent The LLCA is the exclusive controller of the multi-link arm plant. The LLCA observes all joint angles through the coordinate vector , corresponding to the unmodified MuJoCo joint positions representing the physical configuration . No stochastic observation noise is added to this observation stream, although the LLCA represents observation uncertainty internally through its likelihood model. See Appendix C for details. Joint angular velocities, Cartesian geometry, and task-state variables are omitted from the LLCA observation modality. The LLCA receives an object-wise preference vector from the IBA, where during query planning and during execution planning. It issues joint-torque control actions to the plant. Internally, the LLCA represents the latent arm state using Euclidean joint-coordinate representations of the joint angles and their angular velocities, maintaining Gaussian beliefs over this state representation: . The LLCA maintains a generative model of the arm's dynamics, which it uses to predict the evolution of the latent arm state. At each filtering step, the LLCA first propagates its current Gaussian state belief forward under this internal dynamical model to obtain a predictive prior . It subsequently updates its predictive prior belief into the variational posterior by performing variational inference on the observed joint-angle configuration . Specifically, the variational posterior is obtained by minimising the variational free energy
(6)
Predictive-prior propagation is performed using an Unscented Transform, whereas the subsequent perceptual correction is obtained by minimising this variational free energy with respect to the parameters of the Gaussian posterior. Motor actions are selected using receding-horizon random-shooting control. For each planning call, the LLCA samples candidate finite-horizon torque sequences. We denote the resulting candidate-plan pool by , where each candidate plan contains planned torque vectors. Each candidate torque sequence is propagated from the LLCA's current Gaussian state belief through its internal dynamical model, yielding the corresponding predicted state-belief trajectory. We use the term “rollout pool” to refer to these candidate plans together with their predicted consequences. When the role of a particular pool must be distinguished, we write for a pool used for query construction and for a pool used for action selection.
The object-wise preference vector parameterises an embodied preference over whole-arm coverage. Let denote smooth, object-wise, whole-arm coverage features for a joint-angle coordinate vector . We define the
The LLCA’s generative model is implemented in JAX [1].
If variable x belongs to the plant/generative process, we use a “hat” to denote the corresponding variable in the agent’s generative model: .
LLCA preference density as
Thus, each IBA marginal directly weights the LLCA's preference for covering object ; no MAP target subset is extracted before planning. For candidate rollout , the pragmatic value at planning step is
In the reported implementation, this expectation is approximated by evaluating the log preference at the joint-angle component of the predicted Gaussian mean. The exact implementation is specified in Appendix C. In all experiments reported in this paper the LLCA's computation of information gain is disabled. Consequently, rollout selection is driven solely by whole-horizon pragmatic value. For the post-feedback execution planning call
The first planned torque vector in the selected execution rollout is clipped to the plant actuator bounds. The resulting torque is held fixed and repeatedly applied for the configured action-repeat block before the next round of planning and action selection. Subsequent torque vectors in the planned rollout are discarded before replanning. During the pre-query planning call, the LLCA additionally exposes the unweighted object-wise terminal basis pool to the IBA for query selection. The LLCA does not itself select the HUA query, infer , or receive an execution command from the IBA. Full dynamical-model, state-inference, rollout-generation, coverage, and planning details are given in Appendix C.
3.3 Complete Outer Interaction Cycle
The plant does not advance during query construction, HUA evaluation, or IBA belief updating; physical action follows the second LLCA planning call (Fig. 2). Algorithm 1 in Appendix D provides pseudocode for the complete interaction cycle.
-
Query planning. The IBA supplies to the LLCA, which generates the query rollout pool and its terminal basis .
-
Query selection and evaluation. The IBA selects by expected information gain. The HUA returns the binary evaluation .
-
Posterior inference and preference communication. The IBA updates its categorical belief to and marginalises this posterior to obtain .
F. C. Paterson et al.
- Replanning and execution. Under the updated preference information, the LLCA independently generates a fresh execution pool , selects a rollout, and executes only its first torque.
A Query planning

B Probe selection / presentation

C Feedback + posterior update

D Replan + act

Fig. 2. An outer interaction cycle at t = 111 from an illustrative simulation demonstrates query selection, feedback assimilation, and execution. (A) The LLCA generates a query rollout pool, coloured by pragmatic-value rank. The solid yellow rollout has the highest pragmatic-value. (B) The IBA ranks the same pool by expected information gain (measured in nats) and selects a query, which is not executed. The solid pink rollout has the greatest expected information gain. (C) User feedback (dissatisfaction , in this case) allows the IBA to update its posterior. Red-shaded interiors identify the HUA's private targets. (D) The LLCA generates a fresh execution pool and applies the selected plan's first torque over the action-repeat block. Object-centred values and magenta rings represent target marginals; A and D share a pragmatic-value ranking scale. The solid blue arm remains fixed in A–C; the dash-dotted blue arm in D shows the realised post-action pose.
The queried rollout is an epistemic probe rather than an execution command. The IBA carries its posterior into the next cycle as .
4 Experimental Design
4.1 Experimental Question and Task
We evaluate the interaction-mediated control architecture in silico using the MuJoCo-based generative process implemented via dm_control [11]. We use the simultaneous whole-arm coverage task defined in Section 3, with circular workspace objects arranged in a grid and exactly two target objects per episode. All six possible two-object target subset hypotheses are evaluated. The principal experimental variable is the arm's dimensionality (number of links: N, from 3 to 6). For each N, all six target subsets are evaluated over 24 repeated episodes, yielding 144 episodes per arm dimensionality and 576 episodes per experimental condition.
4.2 Matched Experimental Conditions
An LLCA-only parameter search selected one configuration per arm dimensionality. For , the respective settings were , , , and , where is the number of candidate plans, the temporal depth per candidate plan, and the action-repeat factor. The isotropic process-noise covariance was fixed at for all arm dimensionalities. These settings are held fixed across both experimental conditions.
In the direct-preference reference condition, the HUA–IBA interaction loop is disabled and the true object-wise target preference is directly supplied to the LLCA. This condition assesses controller task competence under direct access to the objective. The interaction-mediated condition is the primary experimental condition. In this setting, the HUA alone has direct access to the true target subset . The IBA infers target preferences from binary HUA feedback and communicates posterior-marginal object preferences to the LLCA, as specified in Section 3. The LLCA receives no direct target information and independently plans under the communicated marginals. Task and controller settings are otherwise matched. The simulated HUA uses the same pool-contextual response-model family as the IBA: this is a controlled matched-model comparison, not an evaluation of real human behaviour or user-model mismatch.
4.3 Evaluation
We report the task success rate and time-to-first-success. An episode succeeds when the arm simultaneously covers all target objects at least once before termination. Success is checked after every generative-process step. Time-to-first-success is reported as , the zero-based index of the first successful generative-process step, and , the zero-based index of the outer interaction cycle containing success. Each generative-process step advances the MuJoCo plant by s; hence, the simulated time at success is . An outer cycle executes up to AR plant steps, with its final execution block truncated if success occurs. Neither timing metric measures wall-clock computation or HUA response latency. Timing summaries include successful episodes only. For the interaction-mediated condition, we additionally report the final posterior probability assigned to the true hypothesis, ; posterior entropy, ; MAP accuracy; and the frequency of HUA responses. These diagnostics are reported separately from task performance since exact latent-target identification and successful control under posterior-marginal preferences are distinct problems.
5 Results
Table 1 reports task performance by condition and arm dimensionality. The direct-preference reference succeeded in 564/576 episodes (97.9%), compared
The source code and experimental configurations are publicly available at https://github.com/FraserP117/DIFAI-Arm-IWAI2026.
F. C. Paterson et al.
with 423/576 (73.4%) under interaction-mediated control. The reference achieved higher success at every tested arm dimensionality. Among successful episodes, median time-to-first-success was longer under interaction mediation at every tested dimensionality.
Table 1. Task performance by condition and arm dimensionality with matched LLCA settings. Success rates are proportions. Timing summaries include successful episodes only. is measured in generative-process steps ( per step), and in outer interaction cycles. Each complete execution block spans AR plant steps, corresponding to 0.05 s for and 0.03 s for .
| Condition | Plans | H | AR | Episodes | Success Rate | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Mean | Median | IQR | Mean | Median | |||||||
| Direct-Preference LLCA | 3 | 64 | 2 | 25 | 144 | 1.00 | 357.2 | 252 | 301.3 | 13.8 | 10 |
| 4 | 64 | 2 | 15 | 144 | 1.00 | 249.3 | 177 | 197.3 | 16.1 | 11 | |
| 5 | 64 | 4 | 15 | 144 | 0.97 | 621.9 | 528 | 542.5 | 41.0 | 35 | |
| 6 | 32 | 4 | 15 | 144 | 0.95 | 883.8 | 683 | 777.0 | 58.4 | 45 | |
| Interaction-Mediated | 3 | 64 | 2 | 25 | 144 | 0.67 | 1048.9 | 318 | 1154.0 | 41.5 | 12 |
| 4 | 64 | 2 | 15 | 144 | 0.77 | 771.5 | 413 | 918.5 | 50.9 | 27 | |
| 5 | 64 | 4 | 15 | 144 | 0.72 | 804.4 | 568 | 824.5 | 53.2 | 37 | |
| 6 | 32 | 4 | 15 | 144 | 0.78 | 1047.5 | 774 | 1114.5 | 69.4 | 51 | |
Table 2 reports final inference and interaction diagnostics. Exact target identification remained imperfect: MAP accuracy ranged from 0.167 to 0.472 across arm dimensionalities, while mean final posterior entropy remained non-zero. Figure 3 illustrates the feedback and belief evolution within one illustrative, successful episode, not an aggregate trend. The mean dissatisfaction-response frequency ranged from 0.430 to 0.468. The LLCA acts on posterior-marginal preferences, not the MAP target subset; neither exact target identification nor posterior concentration is equivalent to achieving the coverage task within the episode horizon.
6 Discussion and Conclusion
Interaction-mediated control succeeded in 423/576 episodes (73.4%), compared with 564/576 (97.9%) under direct preference access. This difference plausibly reflects the additional challenge of inferring the task objective, although the experiment does not isolate the contributions of inference uncertainty, query selection, and control. The architecture achieved successful control across all tested arm dimensionalities despite imperfect target-subset identification. Since the LLCA acts on posterior-marginal object preferences rather than a MAP target hypothesis, exact preference identification and task completion constitute distinct experimental outcomes.
Our present implementation employs a simulated user whose feedback process matches the response-model family assumed by the mediator. Consequently, the experiments do not establish robustness to human-model mismatch or actual
(A) HUA binary feedback
Snapshot: t = 111

(B) IBA posterior target marginals

(C) Query expected information gain

Fig. 3. Temporal diagnostics show one illustrative, successful interaction-mediated episode. (A) Explicit HUA evaluations across outer cycles (0: satisfaction; 1: dissatisfaction). (B) Post-feedback IBA target marginals; true-target labels identify HUA-private ground truth shown for offline diagnosis only. (C) Expected information gain of the IBA-selected (max-IG) and LLCA-default (max-PV) queries from the same pre-feedback rollout pool. The dotted line marks t = 111, illustrated in Fig. 2.
F. C. Paterson et al.
Table 2. Interaction-mediated inference and feedback diagnostics by arm dimensionality; posterior statistics are evaluated at episode termination.
| Episodes | HUA Dissatisfaction Rate Mean | MAP Accuracy | |||||
|---|---|---|---|---|---|---|---|
| Mean | Median | Mean | Median | ||||
| 3 | 144 | 0.468 | 0.225 | 0.176 | 0.292 | 1.611 | 1.699 |
| 4 | 144 | 0.449 | 0.337 | 0.241 | 0.472 | 1.428 | 1.638 |
| 5 | 144 | 0.435 | 0.179 | 0.174 | 0.250 | 1.678 | 1.721 |
| 6 | 144 | 0.430 | 0.182 | 0.169 | 0.167 | 1.695 | 1.730 |
human interaction behaviour. This matched-model assumption was deliberately adopted to evaluate an initial realisation of the proposed architecture under controlled conditions. The experimental task is restricted to a fixed object layout and target cardinality, while the controller employs calibrated random-shooting planning and the mediator uses a single expected-information-gain query-selection strategy. Furthermore, the simulation treats query selection and user feedback as instantaneous, without modelling human response latency or the real-time consequences of pausing plant execution during interaction. Future work should investigate user–mediator model mismatch, alternative interaction and query-selection mechanisms, and more computationally efficient planning methods for the low-level controller. Human-in-the-loop experiments and evaluations across other interactive systems will be necessary to establish the practical applicability and broader generality of the proposed architecture.
We have formulated and implemented a distributed Active Inference architecture that separates user-preference inference from autonomous plant control. In a simulated whole-arm coverage task, binary evaluative interaction enabled successful control without user-specified joint torques, albeit with lower success than direct preference access. These initial findings motivate further evaluation with human users and more varied interactive systems.
Acknowledgements. This work was funded by the Designing Interaction Freedom via Active Inference (DIFAI) ERC Advanced Grant (101097708), funded under the UK Horizon guarantee as EPSRC EP/Y029178/1. R.M-S. and J.H.W. acknowledge EPSRC EP/R018634/1; R.M-S. additionally acknowledges EP/T00097X/1 and EP/T021020/1. M.K. acknowledges the AI-Twin ERC Advanced Grant (101200584), funded by HORIZON.1.1–European Research Council (ERC).
Appendix
A Human/User Agent Implementation Details
HUA Variables and Interface The simulated Human/User Agent (HUA) privately knows the true target indicator , where iff object is a target. Its effective object-preference vector is therefore , which is not directly observable by either the IBA or LLCA. For LLCA candidate rollout , define the terminal object-wise basis terms and collect all candidates into
The HUA receives in addition to the IBA-selected query index . Although the corresponding predicted rollout geometry may be visualised as the preview, the implemented response model is conditioned on the full basis pool and selected index rather than on the selected terminal-basis vector alone. The public response denotes satisfaction or dissatisfaction with the selected preview relative to the current rollout-pool. The absence of a “dissatisfaction” response is interpreted as “satisfaction” , rather than a missing observation.
HUA Feedback Process For target hypothesis z and candidate m, define the target-conditioned terminal value
Let and denote the population mean and standard deviation of across the complete candidate pool, respectively. The pool-relative value of candidate is
and its probability of eliciting a satisfaction response is
where provides numerical stability and controls response steepness. Dependence on is implicit through the rollout pool statistics. The public feedback likelihood is then
The simulated HUA samples this likelihood at the privately known and selected query . Candidates that are comparatively favourable to
F. C. Paterson et al.
within the current rollout pool are therefore more likely to elicit satisfaction. The HUA and IBA use the same pool-contextual response-model family, with the HUA evaluation at and the IBA under alternative latent target hypotheses (matched-model assumption). The HUA is a stochastic evaluative-feedback process and performs no VFE minimisation, EFE optimisation, or temporal planning.
B Interaction Broker Agent Implementation Details
B.1 Latent Intent Model and Query Selection
The Interaction Broker Agent (IBA) treats the HUA’s private target subset as a latent variable , where for fixed target cardinality , we have:
At outer cycle , the IBA maintains a categorical pre-query belief over and models prospective HUA feedback using the pool-contextual likelihood defined in Appendix A. In the reported experiments, and , giving six hypotheses with uniform initial belief . For candidate query , the predictive feedback distribution is
The IBA evaluates the mutual information between latent target hypothesis and prospective, binary HUA feedback directly as
(17)
where
In consequence, query selection is purely epistemic in the present implementation; no separate pragmatic term enters the IBA objective.
B.2 Posterior Inference and Preference Communication
After observing the HUA’s evaluative response: , the IBA performs exact categorical Bayesian inference:
Hence, the IBA updates its categorical belief via a direct application of Bayes' rule over the enumerated hypothesis space. The IBA does not perform VFE minimisation for this update. The raw categorical posterior is not sent to the LLCA. Instead, the IBA forms the object-wise marginal vector as defined in Eq. 5. Thus is the posterior probability that object belongs to the HUA's target subset. These marginals, rather than the MAP hypothesis or full categorical posterior, parameterise the LLCA's object-wise preferences. After execution, the IBA's posterior is carried forward as .
C Low-Level Control Agent Implementation Details
C.1 Generative Model: States, Observations, and Actions
The Low-Level Control Agent (LLCA) is the exclusive controller of the articulated arm. It does not infer the HUA's latent target subset or model the HUA-IBA interaction. Instead, it receives an object-indexed preference vector from the IBA and determines the joint-torque actions required to realise those preferences. The true task environment is a planar N-link arm simulated by the MuJoCo/dm-control generative process. For the implementation, the physical angular configuration is represented by its MuJoCo joint-coordinate vector in , which we denote by the same symbol when discussing the implementation. We therefore write the generative process (plant) state in implemented coordinates as where and are the joint-angle and joint-angular-velocity vectors, respectively. The LLCA acts directly on the plant through joint torques . The exact MuJoCo plant transition is treated as a generative-process black box and is not assumed to be available to the LLCA. The LLCA instead maintains an internal torque-driven dynamical model with latent state .
The corresponding control variable in the LLCA’s internal model is . Let and denote the agent’s model of the length and mass of link , respectively. Because gives the orientation of the first link and each subsequent joint angle is relative to the preceding link, the world-frame orientation of link is the sum over all joint angles. The LLCA uses standard planar serial-link kinematics for links with uniform mass. Let denote the Jacobian of the position of the centre-of-mass of link , with respect to the joint coordinates. Let denote the corresponding angular-velocity
F. C. Paterson et al.
Jacobian, and let denote the moment of inertia of link about its centre of mass. The configuration-dependent inertia matrix used by the LLCA's model is
With joint-damping matrix D and integration step , the internal model applies a semi-implicit Euler update with implicit damping,
Writing the resulting deterministic transition as , the LLCA transition model is
where represents process uncertainty and model mismatch. The LLCA has an angle-only observation modality. The active plant adapter passes the MuJoCo joint-position coordinates to the LLCA unchanged: . No stochastic observation noise is added to this generative-process observation stream. Joint angular velocities, Cartesian arm geometry, and task-state variables are omitted from the LLCA observation vector. The LLCA's internal observation map is therefore , with observation model
Thus, represents assumed observation uncertainty within the LLCA's generative model rather than noise injected into the plant observation stream. In the reported experiments, and hence .
C.2 LLCA State Inference
Here, indexes individual generative-process filtering steps. The LLCA maintains Gaussian beliefs over its latent continuous state. At simulation initialisation, the Gaussian mean is bootstrapped from the full, generative-process reset state ; the reported experiments use zero initial joint velocities. Thereafter, joint angular velocities are absent from the LLCA observation stream and remain latent variables inferred through dynamical prediction and angle-based perceptual updates. Given the corrected Gaussian state belief from the preceding filtering step and the torque applied during the intervening transition, the LLCA propagates that belief through its internal dynamics using an Unscented Transform (UT),
after incorporating process uncertainty as . The resulting Gaussian predictive prior is denoted . Upon receiving observation
, the LLCA obtains the corrected Gaussian variational posterior by minimising the perceptual variational free energy defined in Eq. 6.
Unlike the IBA’s direct categorical Bayesian update, this LLCA perceptual update is implemented as an explicit variational optimisation. The expected observation-surprisal term is estimated using reparameterised Monte Carlo samples from the Gaussian posterior. The Gaussian mean and Cholesky-factor parameters are optimised using Adam. All reported experiments use 50 posterior samples, 25 Adam optimisation steps per perceptual update, and a learning rate of 0.05. During an action-repeat block, each repeated generative-process step is accompanied by an LLCA predictive update, a plant transition, and a variational perceptual correction using the resulting joint-angle observation. Thus, perceptual correction occurs at every repeated plant step rather than only at the end of the action-repeat block. Replanning occurs after the complete block.
C.3 LLCA Rollout Generation
For each rollout pool defined in the main text, candidate torque vectors are sampled element-wise from the configured uniform proposal distribution. In all reported experiments, candidate torque values are drawn from . This sampling process is independent of the object-wise preference vector . The latter affects the LLCA's preference-weighted rollout scores rather than the sampled torque sequences themselves. Each planned torque vector is propagated internally for action_repeat model steps. Thus, a candidate plan of horizon has effective model-prediction depth .
For each candidate rollout, the LLCA recursively propagates its current Gaussian state belief through the internal transition model. If denotes the predictive belief associated with candidate m at planning step h, the corresponding Gaussian belief is propagated under each planned torque using the same Unscented-Transform prediction described above. This propagation is repeated internally according to action_repeat before the rollout is scored at the next planning step. Each sampled plan therefore determines a predicted state-belief trajectory over the planning horizon. Rollout generation additionally produces an unweighted object-wise basis for each candidate plan. Let denote the basis value for object k at planning step h. Its terminal value is
Collecting the terminal basis vectors for all candidate rollouts yields . These unweighted basis values are computed from the deterministically reconstructed arm geometry, from the predicted joint-angle means and before application of the object-wise preference vector . Their precise coverage-based construction is specified below.
F. C. Paterson et al.
C.4 LLCA Preference Model and Pragmatic Action Selection
For either LLCA planning call, let denote the object-wise preference vector currently supplied to the LLCA. The LLCA converts these object-wise preference weights into an embodied whole-arm coverage preference. Recall from Section 3 that denotes the geometry occupied by the whole arm under a joint-angle configuration. During LLCA rollout evaluation, the corresponding arm geometry is reconstructed deterministically from the joint-angle component of the predicted Gaussian mean. For an arbitrary joint-angle coordinate vector and task object , with centre and radius , define the minimum centre-to-arm distance as
The penetration-adjusted distance is , such that iff intersects object . We then define a smooth coverage feature as
Collecting these features yields , which is the coverage-feature vector entering the preference density in Eq. 7. For candidate rollout , let denote the mean of the predicted Gaussian state belief at planning step , and let denote its joint-angle component. Rather than evaluating the expectation over the predicted state belief in Eq. 8, the reported implementation uses the following mean-state approximation,
This approximation evaluates the coverage preference at the predicted joint-angle mean and therefore neglects the contribution of predicted state covariance to the pragmatic value. For notational simplicity, we continue to denote the resulting implemented approximation by . The LLCA evaluates whole-arm coverage deterministically at this predicted joint-angle mean. The unweighted object-wise basis term for candidate m is therefore
The pragmatic value at planning step h is obtained by weighting these object-wise basis terms by the current LLCA preference message,
The LLCA implementation supports the pragmatic value/information-gain decomposition of the negative expected free energy (NEFE) planning objective,
(34) where weights pragmatic value and denotes the LLCA's prospective information-gain contribution, distinct from the IBA's information gain over user preferences. In all reported experiments, LLCA information gain is disabled and . Consequently, the implemented rollout-selection objective reduces to maximising mean whole-horizon pragmatic value, as specified in the main text. Only the first distinct torque vector of the newly selected execution rollout is used for plant control. The candidate planning range may exceed the physical actuator range; the plant therefore clips the selected torque component-wise to its actuator bounds. In the reported environment these bounds are , so the applied torque is .
This torque vector is held fixed and repeatedly applied for the configured action_repeat generative-process steps. During each repeated step, the LLCA performs the filtering sequence described above: predictive propagation, plant transition, and variational perceptual correction. The remaining distinct torque vectors in the sampled rollout are discarded, and the LLCA replans after completion of the action-repeat block.
D Complete Interaction Algorithm
Algorithm 1 One complete outer interaction cycle
1: procedure OUTERINTERACTIONCYCLE( ) 2: ▷ pre-feedback preferences 3: 4: 5: ▷ query only; not executed 6: 7: 8: 9: 10: 11: for 12: 13: 14: 15: 16: if TASKSUCCEEDED then 17: return ▷ episode terminates 18: end if 19: end for 20: ▷ carry belief forward 21: end procedure
F. C. Paterson et al.
—— True plant state × Planning belief --○-- Predictive prior --♦-- Corrected posterior
Joint angle (rad)

Joint angular velocity (rad/s)
Generative-process step
Fig. 4. LLCA state-estimation trajectories for an illustrative four-link episode. Rows correspond to links 0–3; the left and right columns show joint angles and angular velocities, respectively. True plant states are compared with planning-time beliefs, predictive priors, and corrected posteriors. Error bars indicate standard deviations for the prior and posterior at selected filtering steps. Following initialisation, the LLCA observes joint angles only; angular velocities remain latent and are inferred through dynamical prediction and perceptual correction.
References
-
Bradbury, J., Frostig, R., Hawkins, P., Johnson, M.J., Katariya, Y., Leary, C., Maclaurin, D., Necula, G., Paszke, A., VanderPlas, J., Wanderman-Milne, S., Zhang, Q.: JAX: composable transformations of Python+NumPy programs (2018), http://github.com/jax-ml/jax
-
Friston, K., FitzGerald, T., Rigoli, F., Schwartenbeck, P., Pezzulo, G.: Active inference: A process theory. Neural Computation 29(1), 1–49 (01 2017). https://doi.org/10.1162/NECO_a_00912, https://doi.org/10.1162/NECO_a_00912
-
Gopinath, D.E., Argall, B.D.: Active intent disambiguation for shared control robots. IEEE Transactions on Neural Systems and Rehabilitation Engineering 28(6), 1497–1506 (2020). https://doi.org/10.1109/TNSRE.2020.2987878
-
Javdani, S., Srinivasa, S.S., Bagnell, J.A.: Shared autonomy via hindsight optimization. In: Robotics: Science and Systems (2015), https://www.roboticsproceedings.org/rss11/p32.pdf
-
Klar, M., Stein, S., Paterson, F., Williamson, J.H., Murray-Smith, R.: An active inference model of mouse point-and-click behaviour. In: Albarracin, M., Benrimoh, D., Buckley, C.L., Lanillos, P., Pitliya, R.J., Shimazaki, H., Stoianov, I.P., Verbelen, T., Wisse, M. (eds.) Active Inference. pp. 235–254. Springer Nature Switzerland, Cham (2026)
-
Meo, C., Franzese, G., Pezzato, C., Spahn, M., Lanillos, P.: Adaptation through prediction: multisensory active inference torque control. IEEE Transactions on Cognitive and Developmental Systems 15(1), 32–41 (2023). https://doi.org/10.1109/TCDS.2022.3156664
-
Muelling, K., Venkatraman, A., Valois, J.S., Downey, J.E., Weiss, J., Javdani, S., Hebert, M., Schwartz, A.B., Collinger, J.L., Bagnell, J.A.: Autonomy infused teleoperation with application to brain computer interface controlled manipulation. Auton. Robots 41(6), 1401–1422 (Aug 2017). https://doi.org/10.1007/s10514-017-9622-4, https://doi.org/10.1007/s10514-017-9622-4
-
Murray-Smith, R., Williamson, J.H., Stein, S.: Active Inference and Human-Computer Interaction. ACM Trans. Comput.-Hum. Interact. 32(6) (Dec 2025). https://doi.org/10.1145/3762812, https://doi.org/10.1145/3762812
-
Oliver, G., Lanillos, P., Cheng, G.: An empirical study of active inference on a humanoid robot. IEEE Transactions on Cognitive and Developmental Systems 14(2), 462–471 (June 2022). https://doi.org/10.1109/tcds.2021.3049907, http://dx.doi.org/10.1109/TCDS.2021.3049907
-
Sajid, N., Da Costa, L., Parr, T., Friston, K.: Active Inference, Bayesian Optimal Design, and Expected Utility. In: Cogliati Dezza, I., Schulz, E., Wu, C.M. (eds.) The Drive for Knowledge: The Science of Human Information Seeking, p. 124–146. Cambridge University Press (2022). https://doi.org/10.1017/9781009026949.007
-
Tunyasuvunakool, S., Muldal, A., Doron, Y., Liu, S., Bohez, S., Merel, J., Erez, T., Lillicrap, T., Heess, N., Tassa, Y.: dm_control: Software and tasks for continuous control. Software Impacts 6, 100022 (2020). https://doi.org/10.1016/j.simpa.2020.100022, https://www.sciencedirect.com/science/article/pii/S2665963820300099
-
Zheng, J., Meister, M.: The unbearable slowness of being: Why do we live at 10 bits/s? Neuron 113(2), 192–204 (2025). https://doi.org/10.1016/j.neuron.2024.11.008, https://www.sciencedirect.com/science/article/pii/S0896627324008080