Research
Benchmarking Generative Trajectory Models for Active-Inference Control
Active inference describes how an agent should couple perception and action through an internal generative model, but it is computationally expensive: the controller must search continuous action…

- arXiv
- 2610.05692 · Preprint · not peer-reviewed
- Published
- 2026-10-05 · revised · 2026-10-07
- Authors
- Yulin Li, Mohsen A. Jafari, Andrea Matta
In plain words
Active inference describes how an agent should couple perception and action through an internal generative model, but it is computationally expensive: the controller must search continuous action sequences while predicting uncertain consequences.
AI summary
Overview
Research area: Robotics and control — specifically active inference (AIF), model-based control, and generative trajectory modeling for manipulation.
Technical level: Advanced. The paper builds on variational free energy, expected free energy, and four generative modeling families (diffusion, autoregressive Transformers, conditional VAEs, flow matching), though its empirical conclusions are stated in accessible terms.
Scope: The paper proposes generative active-inference control (GenAIF), in which a single learned trajectory model serves as both action proposer and predictive world model, and benchmarks four generative model families against the three capabilities that role requires in a custom MuJoCo ball-pushing task.
What This Paper Is About
Active inference describes how an agent should couple perception and action through an internal generative model, but it is computationally expensive: the controller must search continuous action sequences while predicting uncertain consequences. The authors ask whether one learned generative trajectory model, trained from demonstrations and measured action interventions, can supply everything the loop needs — a goal-conditioned policy distribution for proposing candidate actions, action-conditioned predictions of future observations, and probabilistic evidence for updating beliefs about hidden operating conditions. They then test which generative model families can actually deliver all three capabilities at a useful computational cost.
Key Contributions
- The GenAIF formulation. A single generative trajectory model, learned offline from demonstrations plus measured action interventions, provides both a goal-conditioned policy distribution and an approximate state-to-observation likelihood mapping, with the learned parameters held fixed during control.
- Three explicit model requirements. The authors derive, from the control design, the demands a shared model must meet: useful action proposals, accurate prediction under externally imposed actions, and observation evidence good enough for variational-free-energy belief updates and expected information gain. They show that plausible generated trajectories do not by themselves establish the latter two.
- A MuJoCo benchmark. A custom ball-pushing environment with nine physical conditions (three lateral tilts × three obstacle positions), a dataset of 216 successful reference episodes expanded to 65,195 short action interventions, and an evaluation protocol covering control success, controlled prediction, condition identification, trajectory reuse, and wall-clock cost.
- A four-family comparison plus recovery fine-tuning. Diffusion, autoregressive Transformers, CVAEs, and flow matching are compared under a shared training-data exposure budget, and a belief-tracking replay experiment tests adaptation after a hidden tilt change, including a diffusion variant fine-tuned on recovery demonstrations.
Main Findings
- Diffusion gave the strongest direct control. Across the nine physical conditions (90 episodes per setting), diffusion reached 90% success, versus 54% for CVAE and 48% for flow matching. The autoregressive model succeeded in only 2/90 episodes and stayed unreliable even in the easier zero-lateral-tilt subset.
- Correct conditioning is decisive. Supplying the wrong tilt reduced diffusion's success by 80 percentage points, with large losses for CVAE and flow as well. Since the true tilt was supplied in this experiment, the gap cannot be attributed to condition-estimation error — an accurate belief still needs a model that can turn it into effective actions.
- CVAE matched diffusion on short-horizon prediction at far lower cost. At the sixth prediction step the mean Euclidean ball-position error was 7.1 mm for diffusion, 8.7 mm for CVAE, 14.4 mm for flow, and 44.9 mm for the autoregressive model. Endpoint RMSE over 841 valid endpoints was 14.295 mm (diffusion), 15.264 mm (CVAE), 24.776 mm (flow), and 65.809 mm (autoregressive).
- Inference cost separates the families sharply. Model-plus-checker time per executed action was 5.6 ms for CVAE versus 57.1 ms for diffusion, with flow matching the most expensive option at 199.571 ms. Predicting consequences and generating useful actions are therefore separate achievements, and the choice is between CVAE's speed and diffusion's stronger control.
- Trajectory reuse trades computation against plan quality in a model-dependent way. Reusing a trajectory while its predicted observations agree with actual motion cut model-plus-checker time by 73–83%, but CVAE's success rose by 13 percentage points while diffusion's fell by 14. The authors conclude that the execution schedule should be chosen jointly with the proposal model.
- Most families supply good observation evidence for single-step identification. Over 864 action–observation pairs, diffusion, CVAE, and flow all identified the hidden tilt at roughly 99% accuracy (98.96%, 99.07%, 99.07%), against 79.28% for the autoregressive model. Probability quality still differed: CVAE had the lowest log loss (0.434 nats) and calibration error (0.057), versus 0.540/0.062 for diffusion, 0.474/0.069 for flow, and 0.959/0.127 for autoregressive.
- Diffusion adapted its belief fastest after an unannounced dynamics change. In a replay experiment where lateral tilt switched from 0° to +15° after ten actions, diffusion's median delay to 90% confidence was 3 observations [2,4], versus 4 for CVAE [3,10] and flow [3,4], and 5 for autoregressive [5,8]. Diffusion and flow identified the new tilt within six observations in all 12 trials.
- Recovery demonstrations substantially improved belief tracking. Fine-tuning diffusion offline on tilt-change recovery demonstrations cut median identification delay from 3 observations to 1 [1,2], raised correctness at observation 30 from 5/12 to 12/12, and kept the mean posterior near one after identification. The authors attribute the pretrained models' later fluctuations to the ball slipping away from the pusher, a motion absent from the original fixed-condition demonstrations.
- With a simulator available, learned proposals beat sampling-based planning at small budgets. In the appendix, using MuJoCo transitions rather than learned dynamics, learned proposals succeeded in most trials at only eight candidates while the cross-entropy method (CEM) failed throughout. At K = 128, diffusion produced 100.0% feasible candidates and succeeded in 18/18 episodes; CVAE reached 17/18 with a proposal latency of 0.39 ms versus 50.05 ms for diffusion, though total plan times were much closer (352 ms vs 411 ms) because rollouts and scoring dominate.
- The proposal advantage held at matched measured cost. Calibrated to a 50 ms CPU planning target, CVAE (K = 16) succeeded in 16/18 nominal and 18/18 transfer trials, while CEM (K = 8) solved neither, at nearly identical measured planning time (43.8/43.5 ms vs 44.5/44.4 ms).
Methodology in Plain English
The authors first write down what an active-inference controller needs from a learned model, then turn that design into a checklist. The controller keeps a belief over hidden conditions, proposes candidate action sequences, predicts what would happen under each candidate for every hypothesis in the belief, scores candidates by expected task cost minus the value of the information they would reveal, executes the first action, and updates the belief from the resulting observation. Every one of those steps is supplied by the same trained model, queried in different modes: proposal queries generate actions and observations conditioned on the task goal, while prediction queries fix the supplied actions and drop the goal conditioning.
To test this, they built a MuJoCo task in which a rectangular pusher must move a ball uphill, around an obstacle, and into a goal region. They varied lateral tilt over {−15, 0, +15}° and used three obstacle positions, giving nine physical conditions, with longitudinal tilt fixed at +20° everywhere. A feedback controller generated 216 successful reference episodes; from these, the authors restored recorded simulator states and executed reference variants, perturbations, and exploratory actions to collect 65,195 short action interventions. Demonstrations show useful behaviour, while the interventions reveal what happens when actions depart from it. Training, development, calibration, and test sets were separated by source rollout so that each intervention stayed with its reference episode, and no private simulator state was ever an input.
Four generative families were trained for the same number of training-data-exposure steps and selected on development performance across proposal usefulness, controlled prediction, and observation likelihood. The authors kept the smallest model that development performance justified, noting that larger configurations hurt some families while diffusion kept improving with scale; they explicitly avoid claiming fairness from matched parameter counts, since architecture changes how trajectory information is represented. For belief updating, Gaussian observation likelihoods were built from each model's predictive samples, with yaw treated as circular and uncertainty calibrated on a separate split. Evaluation ran in two groups: a capability benchmark measuring direct control, prediction under imposed actions, single-step condition identification, condition sensitivity, reuse, and computation; and a replay experiment in which recorded actions and observations were fed to each model after a hidden tilt switch, so beliefs updated but no model selected actions.
Why This Matters
Impact on research. The paper reframes model selection for active inference as a multi-capability problem rather than a single accuracy number. Its central point — that a model can generate convincing trajectories or accurate forecasts and still fail as a controller, and that accurate means do not guarantee usable observation evidence — gives other researchers concrete, separable criteria for combining AIF with modern generative models. It also supplies a rare head-to-head cost comparison across four families under one protocol and one dataset.
Real-world applications:
- Industrial systems whose interacting dynamics make detailed first-principles models impractical to construct or maintain — the authors' stated long-term target.
- Manipulation in variable physical conditions, where tilt, friction, or surface properties change and must be inferred online from observations rather than measured directly.
- Autonomous parking, the authors' earlier application area, where generated maneuver proposals were combined with active-inference evaluation and observation-driven adjustment.
- Model-based planning pipelines that already have a simulator: the appendix shows learned proposal distributions cutting the candidate budget needed for reliable planning.
Industry relevance. The computation numbers matter for deployment. A 5.6 ms versus 57.1 ms per-action model-plus-checker cost determines whether control can run at high frequency, and the finding that trajectory reuse saves 73–83% of that cost — but helps one model and hurts another — means execution schedules must be tuned per model rather than assumed. The appendix's result that total planning time is dominated by rollouts and scoring, not proposal latency, cautions against selecting models by generation speed alone.
Future Directions
- Closing the control loop. Evaluation so far covers either proposal quality with a simulator (appendix) or belief inference under replay (E2). The authors identify using the inferred condition and expected free energy to actually select actions, then measuring control adaptation and the value of information-seeking behaviour, as the next step.
- Learning the hidden structure instead of specifying it. In this benchmark the hidden variables, their possible values, and the context-transition matrix are all specified in advance. The stated goal is a feature-learning loop that extracts hidden-state representations and operating conditions from trajectory data, progressively removing the need to specify their form and range.
- Better belief maintenance after unfamiliar transitions. Beliefs degraded once contact was lost and the resulting motion fell outside the demonstrations. The recovery fine-tuning result suggests that coverage of post-change states and transitions, not just of the possible hidden values, is what determines sustained inference.
- Choosing execution schedules jointly with the model. Reuse helped CVAE and hurt diffusion, so how long a plan should be followed cannot be decided from prediction agreement alone. A principled trigger remains open.
Target Audience
Robotics and control researchers working on model-based learning, active inference, and generative planners; practitioners choosing among diffusion, CVAE, autoregressive, and flow-matching models for action generation or world modeling; and benchmark-oriented researchers interested in evaluation protocols that separate proposal quality, predictive accuracy, and probabilistic evidence. Readers need familiarity with generative models and Bayesian belief updating to follow the framework equations, but the experimental results and the three-requirement checklist are usable without the derivations. Code is released at https://github.com/lyeeonardo/generative-trajectory-benchmark; detailed architectures, optimization settings, and sampling configurations are deferred to that code rather than reported in the paper text.
Authors’ abstract
Learning from trajectory demonstrations offers a route to active-inference control of complex systems whose dynamics are difficult to model explicitly. We introduce generative active-inference control (GenAIF), in which one generative trajectory model learns from demonstrations and measured action interventions to supply a goal-conditioned policy distribution and a state-to-observation likelihood mapping. From this control design, we derive three model requirements: (i)…
The full abstract on arXivRelated papers
- Control-Ready Uncertainty for Trajectory Diffusion 2026-10-08 · cs.RO · Key terms of the title in common
- Embodiment-aware control by inference over the operator: a simulation study 2026-09-29 · cs.RO · Key terms of the title in common
- Smoothness Ranks Skill, Not Success: An Audit of Published Trajectory-Smoothness Curation Metrics Under Episode-Length Controls 2026-10-12 · cs.RO · Key terms of the title in common
- Robust Active-Perception Control for Global-State-Free Aerial-Ground Cooperation 2026-09-22 · cs.RO · Key terms of the title in common
- Reinforced Iterative Learning Control for elastic joint arms: Guaranteed cross-trajectory generalization under model uncertainties 2026-10-20 · cs.RO · Key terms of the title in common