Manuscript Offprint
arXiv:2608.23887Interpreting Control Latents for System Identification via Conditional Flow Matching
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Dingqi Zhang ,1, Ruiqi Zhang ,1, and Mark W. Mueller
Abstract—Latent-conditioned adaptive policies can control robots across changing dynamics, but their learned latents remain internal representations of the policy rather than physical models that can be inspected, rolled out, or used by other control modules. This limits closed-loop analysis, diagnosis, and further improvement of a fixed policy. A direct mapping from latent to physical parameters is also under-specified, because multiple systems can induce similar closed-loop behavior. We therefore decode each operational latent into a distribution of quadrotor models using conditional flow matching. The decoded distribution enables two downstream uses without modifying the policy: online predictive tuning of a high-level controller around the fixed low-level policy, and robustness analysis under specified disturbances. Under perturbed actuator dynamics, decoded-model predictive tuning reduces position tracking RMSE by 23% and heading RMSE by 45% relative to fixed gains. Under Gaussian force disturbances, decoded-model ensembles closely predict the lateral tracking-error evolution. Together, these results show that control latents can be converted into physical model ensembles for tuning, robustness analysis, and diagnosis of frozen adaptive policies.

Fig. 1. Overview of the proposed interpretation framework. Observation history is encoded into a compact latent, which a conditional flow-matching decoder then maps to a distribution of physically consistent system models (distributional system identification). Each decoded model is interpretable and approximates the true system's closed-loop behavior under the deployed policy: they are run in parallel simulations (parametrized by the decoded models) and predictive rollouts are compared against real responses, enabling downstream tasks such as controller tuning and robustness analysis without modifying the policy.
I. INTRODUCTION
Latent-based adaptive control has enabled robots to operate across environments where dynamics vary. The standard paradigm, popularized by frameworks such as [1], [2], [3], infers a compact latent representation from recent sensorimotor history, and a control policy conditioned on this latent adapts online to shifting conditions. By learning a task-sufficient representation [4] rather than identifying the full system, this pipeline has been applied to legged locomotion [1], [5], dexterous in-hand manipulation [6], and quadrotor flight [7], [8]. However, a conceptual gap remains: these latent representations lack grounded physical meaning. While they capture the information necessary for control, the specific physical structures or parameters they encode remain opaque. This opacity complicates safety certification and post-hoc diagnosis of the learned controller. Prior work evaluates these latents primarily through downstream task success, leaving the physical content of these latents unexamined.
A primary reason for this opacity is that the inverse mapping from observed behavior to physical parameters is ill-posed [9]. In robotics, the relationship between behavior and dynamics is often non-injective: many physically distinct systems can exhibit indistinguishable behavior under the same trajectories. For example, a heavier quadcopter can exhibit the same closed-loop motion as a lighter vehicle with weaker actuation. We hypothesize that latent-based methods do not learn unique physical constants, but rather encode equivalence classes of plausible dynamics models. Consequently, approaches in this spirit that regress each latent to a single set of ground-truth parameters (e.g., [2]) are limited, because such one-to-one mappings cannot represent this physical non-identifiability.
In this work, we propose to interpret latent representations by explicitly modeling the one-to-many structure of the latent-to-parameter map. Rather than regressing each latent to a single point estimate of physical parameters, we use conditional flow matching [10] to decode each latent into a continuous distribution over the physically distinct models consistent with it. We instantiate the framework on quadrotor systems, where the decoded distribution supports two downstream uses without modifying the policy: online predictive tuning of a high-level controller around the fixed policy, and robustness analysis under Gaussian force disturbances. We then evaluate whether the decoded parameters explain the policy's adaptation by comparing motor commands from decoded parametric controllers against those from the latent-conditioned policy under identical hardware state histories.
Conceptually, our approach is inspired by model reference adaptive control (MRAC) [11], where a nominal reference model defines the desired closed-loop behavior and adaptation drives the controller to match it. Rather than tune a controller toward a fixed reference, we recover a family of reference models from the latent itself. The decoded models can run as parallel simulation environments that approximate the learned policy's closed-loop behavior, supporting analysis without further hardware experiments.
The authors are with the High Performance Robotics Lab, Dept. of Mechanical Engineering, UC Berkeley. Contact at {dingqi, richzhang, mwm}@berkeley.edu. *Equal contribution.
Another line of work examines what learned representations encode about the physical world. Physically Interpretable World Models [18] align latent states with known physical variables through weak distribution-based supervision and constrain their evolution through partially known dynamics. Phys2Real [19] fuses vision-language-model priors with online adaptation to condition manipulation policies directly on interpretable physical parameters such as center of mass, using ensemble-based uncertainty quantification. These methods shape the representation during training so that latent dimensions correspond to physical quantities.
Classical adaptive control takes a complementary, model-based perspective, maintaining online estimates of parameters or matched uncertainties to guarantee desired closed-loop behavior. Indirect Model Reference Adaptive Control (MRAC) [11] and adaptive control [20] follow this line. System identification methods recover dynamics models from input/output data; traditional techniques such as prediction-error minimization [9] and subspace identification [21] return point estimates of system parameters and typically assume identifiability. Structural identifiability theory [22] shows, however, that inverse mappings from behavior to physical parameters are not always unique: multiple distinct systems can produce indistinguishable responses under limited excitation, so a single best-fit estimate does not capture the ambiguity in the solution set.
Probabilistic system identification [23], [24] represents parameters as distributions rather than single estimates. Many of these methods return a uni-modal posterior that concentrates around a single model: this captures estimation uncertainty, but not physical non-identifiability, where a whole set of distinct models is simultaneously consistent with the observed behavior. Representing that structure requires a flexible distribution able to cover the full solution set, whose shape is not known a priori and may be broad or even multimodal. In robotics, simulation-based inference approximates posteriors over simulator parameters when the likelihood is intractable. BayesSim [25] estimates them with mixture-density networks and uses them to drive adaptive domain randomization, and later work leverages differentiable simulation to obtain gradient-based posterior particles [26]. The
(a) Unified Policy Training

(b) Flow-Match SysID
Fig. 2. Overview of the training pipeline. (a) Unified training aligns the privileged latent with the history-based latent so the policy can adapt across randomized dynamics. (b) Conditional flow matching decodes the latent into a distribution of dynamically consistent physical models.
central change in viewpoint we adopt is thus from point estimation to distributional estimation that represents the full set of physically distinct models compatible with a given latent, rather than a single best-fit model with error bars.
Diffusion and flow-based generative models [27], [10], [28] model complex, multi-modal distributions on nonlinear manifolds. Recent work applies such models to parameter estimation in nonlinear dynamical systems, using joint conditioning on multiple observations to mitigate non-identifiability in the inverse mapping [29]. Their intersection, in which a generative model decodes a conditioning signal into a distribution of physical parameters consistent with it, is the setting of this paper.
III. METHODOLOGY
Our framework consists of two components: (1) learning a latent-based adaptive controller, and (2) decoding the latent representation into a distribution of dynamically consistent models via conditional flow matching. An overview is shown in Figure 2.
A. Unified Latent-Based Adaptive Control
We consider a dynamical system with states , actions , and physical parameters . The parameters are unavailable at deployment. Our goal is to learn a control policy that adapts to environment-dependent dynamics without direct access to . We learn a policy conditioned on a latent variable . During training, the latent is produced by two encoders:
where maps physical parameters to a privileged latent and estimates a latent from recent sensorimotor history . At deployment, only is available and the policy operates as
Traditional approaches [13], [1] train and first using privileged information and subsequently train to imitate the teacher. This two-stage scheme leaves a gap between and , because can exploit information not recoverable from sensorimotor history.
We instead optimize , , and jointly, inspired by [30]. This unified training produces a latent space that is consistent across privileged and history-based representations, reducing the mismatch between and . The latent must also serve as a stable conditioning variable for the subsequent system identification stage: a representation trained separately from the policy, or one that collapses, no longer encodes the physical variation needed for decoding. Joint optimization avoids both failure modes by keeping the latent control-sufficient and recoverable from history. During training, the policy is conditioned on
where increases from 0 to after an initial warmup period. This scheduled substitution gradually couples the adaptation module to the policy.
The reinforcement learning objective is
Naively optimizing the unified objective may lead to a degenerate solution in which the latent representation collapses to a constant vector, allowing the policy to ignore environment variation. To promote observability and prevent collapse, we augment the objective with alignment and regularization terms, yielding the joint loss
(5)
where denotes the stop-gradient operator. The first alignment term constrains the privileged latent to remain predictable from sensorimotor history, while the second trains the adaptation module to track the privileged encoder online. The auxiliary term aggregates additional stabilization objectives, including a variance regularization on to prevent representational collapse and a reconstruction loss that maps back to the physical parameters through a decoder network. After convergence, unified training enforces consistency between the privileged latent and the history-based estimate , so both live on a shared latent manifold. Because only is observable at deployment, the system identification stage described next conditions on throughout training and inference.
B. Generative System Identification via Conditional Flow Matching
We model the conditional distribution of physical parameters given the operational latent,
using Conditional Flow Matching (CFM) [10]. CFM defines a probability path that transports a simple base distribution to the empirical parameter distribution conditioned on the latent. A neural network approximates the conditional vector field governing this transport.
We adopt a Gaussian-smoothed linear interpolation path between and sampled from the dataset of physical parameters:
where is a small smoothing parameter. The perturbation prevents the path from becoming degenerate and smooths the marginal velocity field. Truncating the flow time to with avoids ill-conditioned regression near , where the smoothing noise becomes comparable to the residual signal . The target conditional vector field is
which is independent of the noise realization . The flow-matching objective is therefore
where is the operational latent associated with through the unified training process.
At inference, given a latent obtained from sensorimotor history, a sample of physical parameters is generated by integrating the learned vector field from :
from to using a fixed-step Euler solver. The resulting is a sample from the learned conditional distribution , giving a dynamically consistent estimate of the system parameters.
IV. IMPLEMENTATION
While the proposed framework applies to general parametric dynamical systems, we instantiate it on quadrotor platforms following the cross-platform adaptation setting of [8]. This instantiation is motivated by two considerations. First, quadrotors admit accurate first-principles modeling and a standard parametric controller, which lets decoded parameters be evaluated against policy actions. Second, cross-platform adaptation spans orders-of-magnitude variation in mass, inertia, and motor constants, providing a broad and well-characterized distribution of systems from which to decode.
A. Training Setup
The base adaptive policy , privileged encoder , and adaptation module follow the architecture in [8] and produce a latent representation . The policy acts as a platform-agnostic inner-loop controller: it receives IMU measurements (angular velocity and linear acceleration) together with high-level commands (desired mass-normalized collective thrust
and desired angular velocity ), and outputs normalized motor speed commands , where is the maximum rotor speed of the platform. The body-frame and motor-indexing conventions used throughout are shown in Figure 3. Unified training is performed in simulation under extensive domain randomization over physical parameters, covering cross-platform quadrotor variations spanning orders of magnitude as defined in [8]. The policy is trained with scheduled substitution between and as described in Section III-A, ensuring alignment between privileged and history-based representations.
After convergence, we collect a dataset of 20,000 parameter and latent pairs by sampling physical parameters from the training distribution and recording the corresponding operational latent representation produced by the adaptation module. This dataset is used to train the conditional flow matching model. The flow-matching velocity field is implemented as a 4-layer residual network with hidden dimension 512 and SiLU activations [31]. The noisy parameter vector is embedded by a two-layer MLP and the diffusion time is encoded via a sinusoidal positional embedding [32] followed by a two-layer MLP; the two embeddings are concatenated and linearly projected to the hidden dimension. The latent condition is mapped to the same hidden dimension by a three-layer MLP, and at each residual block its output modulates the intermediate features through FiLM [33] scale-and-shift parameters. The network contains approximately 5M parameters. We train using CFM [10] with , the AdamW optimizer [34] with learning rate , weight decay , gradient clipping at 1.0, and cosine annealing over 100 epochs with a batch size of 256. The flow time is sampled uniformly from [0, 0.95] during training. At inference, the learned vector field is integrated using Euler's method with 50 fixed steps.
B. Parameter Space
The parameter vector is defined as Equation (11), where denotes the mass, the arm length, the thrust coefficient, and the torque coefficient. The inertia matrix is , the linear drag matrix is (diagonal), is the maximum rotor speed, are motor effectiveness factors, is the motor time constant, and represents external torque disturbances. The randomization range follows [8] and spans large variations to ensure that the latent representation captures substantially different flight regimes.
C. Experimental Setup
a) Simulation Environment: All unified training is conducted in Flightmare [35], which provides quadrotor dynamics with parameter randomization over the defined physical space. The trained policy, adaptation module, and generative model are evaluated in simulation before hardware deployment.

Fig. 3. Quadrotor convention used in this work. The body-fixed reference frame consists of the orthogonal basis . Four motor-propeller pairs are arranged symmetrically about the vehicle center of mass. Motors 1 and 3 rotate in the opposite direction from motors 2 and 4. The nominal hardware parameters, measured directly from the vehicle and its components, are listed in Table I.
TABLE I QUADCOPTER PARAMETERS
| Parameter | Value | Unit |
|---|---|---|
| m | 0.925 | kg |
| l | 0.184 | m |
| J | diag(8.5, 7.5, 15.5) | |
| D | diag(0.20, 0.20, 0.85) | kg/s |
| 0.03 | s | |
| 1360 | rad/s |
b) Hardware Platform: Figure 3 shows the quadrotor used for real-world experiments. Its nominal parameters, listed in Table I, are obtained independently of the latent decoder by direct measurement and bench characterization: mass, arm length, and geometry are measured directly from the vehicle, and the thrust and torque coefficients are obtained from static motor bench tests. The platform is equipped with four 2208 1500kV brushless motors and 8045-2 propellers. The Pixracer R15 flight control unit provides IMU measurements, including linear acceleration and body rates. The adaptation module and policy network are deployed on an NVIDIA Jetson Orin Nano and execute at 500 Hz. Control commands are transmitted from the onboard computer to the flight controller via a USB-TTL link and subsequently executed by the electronic speed controllers.
V. DECODED MODELS FOR CONTROL AND ROBUSTNESS ANALYSIS
We examine two representative uses of the decoded models around the fixed latent-conditioned policy: online predictive tuning of a high-level controller and robustness analysis under specified disturbance distributions.
A. Predictive Control on the Decoded Models
The low-level policy tracks high-level commands, including desired mass-normalized collective thrust and desired body rates, and remains frozen after training. A high-level controller converts the reference trajectory into these commands. Here,
TABLE II PREDICTIVE HIGH-LEVEL CONTROLLER TUNING OVER 100 ONLINE RANDOM TRAJECTORIES WITH RANDOMIZED QUADROTOR DYNAMICS. VALUES ARE MEAN ± STANDARD DEVIATION ACROSS ROLLOUTS.
| Metric | Naive | Baseline | CFM-tuned |
|---|---|---|---|
| Pos. RMSE (m) | |||
| Max Pos. Err. (m) | |||
| Heading RMSE (deg) |
we use the decoded models to tune this high-level controller online, while keeping the neural policy unchanged.
The CFM-tuned controller starts from naive gains and updates the high-level controller at 10 Hz, matching the CFM inference rate used in the action-replay experiments. At each update, CFM samples decoded models from the current latent, initializes parallel predictive simulations from the current state, and rolls out the frozen policy under candidate high-level controller settings. A cross-entropy method (CEM) optimizer [36] then selects the setting with the lowest short-horizon cost, which penalizes position tracking error, motor saturation, and rollout failure. In this use case, the decoded models provide local predictive rollouts for online command tuning.
a) Nominal Predictive Control: As a nominal check, we evaluate predictive tuning for 5 s on 100 randomized quadrotor environments, each tracking online random trajectories [37]. We compare three high-level controllers: Naive, which uses uninformed default gains; Baseline, a hand-tuned reference controller; and CFM-tuned, which starts from the naive gains and updates them online using decoded-model rollouts. Table II reports position RMSE, maximum position error, and heading RMSE.
In the nominal setting, CFM-tuned improves over Naive, but does not surpass Baseline. It reduces position RMSE by 34% and maximum position error by 18% relative to Naive, closing most of the gap to Baseline using only decoded-model rollouts. Even when started from uninformed gains, the decoded models are therefore accurate enough to support a competitive predictive tuner. Baseline, in contrast, is iteratively retuned offline against the nominal system through trial and error.
b) Predictive Control with Slower Actuator Dynamics: Actuator latency and state-transition delay are well-known failure modes for learning-based control policies, where they measurably degrade closed-loop performance [38], [39]. Motivated by this, we deliberately stress the same fixed policy with slower actuators by widening the motor first-order time constant from the nominal s to s. The slower actuator response lengthens the effective input delay and pushes the frozen policy toward saturation under aggressive high-level commands, putting it in a regime where the policy alone is expected to track poorly. We reuse the same CFM-based tuner without retraining the policy or changing the cost, which tests whether the CFM can decode the slower actuators from the latent and detune the
TABLE III PREDICTIVE TUNING WITH INCREASED MOTOR RESPONSE TIME CONSTANTS. VALUES ARE MEAN ± STANDARD DEVIATION OVER 100 ONLINE RANDOM TRAJECTORIES.
| Metric | Baseline | Nominal +CEM | CFM-tuned |
|---|---|---|---|
| Pos. RMSE (m) | |||
| Max Pos. Err. (m) | |||
| Heading RMSE (deg) |
high-level controller before saturation occurs.
CFM-tuned achieves the best performance under the stressed actuator dynamics, reducing position RMSE by 23%, maximum position error by 31%, and heading RMSE by 45% over Baseline. To separate the decoded ensemble from the CEM optimizer itself, the Nominal+CEM ablation runs the same CEM tuner over the nominal system with ±20% parameter perturbations. It improves over Baseline but remains worse than CFM-tuned on every metric, so the gains come from the decoded models rather than from the optimizer alone. We note that CFM-tuned reaches this performance zero-shot and without any nominal-system information, with both the policy and the decoder driven solely by the observation history. The Nominal+CEM ablation, by comparison, has access to the nominal parameters under a bounded ±20% uncertainty set.
c) Hardware Gain Tuning: We finally deploy the same predictive tuner on hardware for 3D lemniscate tracking, using slow, medium, and fast references that complete one cycle in 15 s, 10 s, and 7.5 s, respectively. These references excite all three translational axes and test whether the tuner transfers from simulation to hardware. Baseline is the hand-tuned controller used in the nominal experiments, while CFM-tuned starts from the same naive gains as above and updates them online from decoded-model rollouts.
Table IV shows that CFM-tuned tracks comparably to Baseline across all three hardware speeds, with mean position errors differing by only a few centimeters. CFM-tuned also lowers both the peak position error and the position-error standard deviation at every speed, suggesting that it picks less extreme gains than Baseline while matching average accuracy. Figure 4 visualizes the medium-speed trial, where CFM-tuned follows the 3D reference with reduced tracking spread.
B. Robustness Analysis under Disturbances
We next use the decoded models to estimate robustness and uncertainty of the fixed policy under external disturbances. For each latent, CFM gives a distribution of physically plausible quadrotor models. Rolling out this model distribution under the same policy and disturbance gives an uncertainty envelope for the closed-loop response.
- Individual Step-Disturbance Analysis: We first evaluate deterministic step responses from hover, using the nominal parameters in Table I. We apply either a constant horizontal force N or a constant vertical force N. For
TABLE IV HARDWARE GAIN TUNING FOR 3D LEMNISCATE TRACKING AT SLOW, MEDIUM, AND FAST REFERENCE SPEEDS (THREE COMPLETE CYCLES EACH). POSITION AND HEADING COLUMNS REPORT RMSE STD. OF PER-SAMPLE ERROR; MAX POSITION ERROR IS THE PEAK OVER THE WINDOW. BOLD MARKS THE LOWER VALUE FOR EACH SPEED AND METRIC.
| Speed | Ctrl. | Pos. RMSE (m) | Max pos. err. (m) | Heading RMSE (deg) |
|---|---|---|---|---|
| Slow | Baseline | 0.046 ± 0.012 | 0.079 | 1.197 ± 0.177 |
| CFM-tuned | 0.025 ± 0.009 | 0.048 | 1.303 ± 0.302 | |
| Medium | Baseline | 0.060 ± 0.015 | 0.090 | 1.316 ± 0.291 |
| CFM-tuned | 0.038 ± 0.010 | 0.062 | 1.258 ± 0.268 | |
| Fast | Baseline | 0.110 ± 0.045 | 0.252 | 1.354 ± 0.341 |
| CFM-tuned | 0.129 ± 0.035 | 0.187 | 1.386 ± 0.365 |

Fig. 4. Hardware tracking of the 3D lemniscate at medium reference speed. CFM-tuned achieves tracking comparable to Baseline while reducing the spread of the position error, consistent with Table IV.
each disturbance, we run one true-system rollout and 100 decoded-model rollouts from the same latent, all with identical initial conditions and identical disturbance profiles. To separate decoder-induced uncertainty from policy-induced behavior, we also include a baseline that rolls out true-system dynamics with independently sampled uniform parameter perturbations.
Figure 5 shows that the decoded models provide a useful uncertainty envelope for the step response, especially in the lateral direction. For the horizontal force, the true lateral error stays inside the predicted envelope over the rollout. For the vertical force, the lateral error remains small and is also predicted at the correct scale. The vertical-error panels are less accurate: the decoded rollouts have a wider spread and a larger offset from the true trace. Thus, on this individual trajectory, the decoded models capture the lateral closed-loop response better than the vertical response. The rollouts from the true system with parameter perturbations show a much larger envelope in both directions, indicating that CFM rollouts stay close to the true response because of the decoded models, not because of the policy alone.

Fig. 5. Single-trajectory response to deterministic constant force steps on the nominal hardware-scale system for horizontal force N and vertical force N. The top row reports lateral error and the bottom row reports vertical error . In each panel, we compare the true closed-loop rollout, decoded-model rollouts sampled from the latent posterior, and a true-system uncertainty baseline (uniform parameter perturbation) under matched initial conditions and matched disturbance inputs; shaded regions indicate the 5–95% confidence interval. The decoded-model envelope brackets the true lateral response at the correct scale and is far tighter than the baseline, while the vertical response is less well captured, localizing the decoder's reliability to the lateral channel.

Fig. 6. Temporal tracking-error envelopes under i.i.d. Gaussian force disturbances with per-axis standard deviation N, 3 N, and 5 N. The top row reports lateral error and the bottom row reports vertical error ; shaded regions indicate the 5–95% confidence interval. The decoded envelopes track the growth of the true lateral error as increases, providing a calibrated robustness envelope in the lateral channel.
- Monte-Carlo Disturbance Analysis: We then test random disturbances, where the exact force realization is unknown but its distribution is specified. The force disturbance is i.i.d. zero-mean Gaussian on all three axes, with per-axis standard deviation N. For each , we run real-system rollouts in simulation. For every rollout, the decoded-model rollouts use the same initial condition and the same sampled disturbance sequence. We sample 20 decoded models per rollout, giving 2000 predicted rollouts per disturbance level.
We report two complementary views. Figure 6 shows the

Fig. 7. Final tracking-error distributions at the end of the Gaussian disturbance rollouts. Columns correspond to N, 3N, and 5N; rows show lateral and vertical error. The decoded final-error distributions closely match the true lateral distribution across all , while overestimating the vertical spread, consistent with the temporal envelopes.
temporal error envelope, which is the more relevant quantity for robustness monitoring because it indicates whether the tracking error may exceed a tolerance at any time during the rollout. Figure 7 summarizes the final tracking-error distribution, which is closer to a finite-horizon steady-offset measure. In both figures we separate lateral and vertical errors.
Across the three disturbance levels, the decoded lateral-error envelopes increase as increases, matching the trend of the true rollouts in Figure 6. The final lateral-error histograms in Figure 7 also remain close to the true distributions. The vertical-error plots show a different behavior: the decoded distribution is broader and shifted relative to the true distribution, especially at larger . This repeats the pattern from the deterministic step test. The decoded models identify that vertical error grows under stronger forcing, but they overestimate or misplace part of that vertical spread.
These experiments show two uses of the decoded ensemble. First, it provides a useful lateral robustness envelope: for both deterministic and Gaussian disturbances, the predicted lateral error has the correct scale and trend, and the deterministic step test rules out that the agreement comes only from Monte Carlo aggregation. Second, the analysis exposes a specific weakness, since the vertical response is less reliable than the lateral one, pointing to where the training distribution or the decoded parameter set should be strengthened.
VI. ABLATION OF DISTRIBUTIONAL DECODING
This section tests whether the latent-to-parameter map should be modeled as a distribution rather than a single point estimate. We compare CFM with a deterministic regression baseline that uses the same latent conditioning architecture but predicts one parameter vector. This ablation targets the main modeling choice in our decoder: whether a latent should map to or to a single .
The neural policy does not explicitly receive physical parameters; it receives only the operational latent, but its motor commands change with that latent. Action replay measures whether decoded parameters can reproduce this latent-to-action map. We fix a recorded hardware trajectory and reuse the same state, command, and latent history for every decoder under comparison. At each time step, the decoder produces a parameter sample that instantiates a parametric controller (defined in Appendix A), and we compare its motor command with the command issued by the latent-conditioned policy on the original rollout. Here serves as a probe that exposes in action space, not as a competing controller. Because the procedure is identical across decoders and the only varying input is how is produced from the latent, the resulting motor-command similarity reflects how well each decoder produces parameters whose induced controller behavior matches the latent-conditioned policy.
A. Action Prediction on Hardware
- Lemniscate Tracking: We evaluate action replay in two hardware settings: aggressive lemniscate tracking and an abrupt off-center payload. For each recorded trajectory, the adaptation module produces the operational latent from the measured state history, CFM decodes a parameter sample , and the resulting parametric controller predicts normalized motor commands. These predictions are compared with the commands issued by the latent-conditioned policy on the same recorded trajectory. Because both controllers are evaluated on the same state, command, and latent history, the comparison isolates action-level consistency between the policy and the decoded dynamics.
We test three lemniscate tracking trajectories, with one cycle completed in 5s, 10s, and 15s. Figure 8 shows the most aggressive 5s case. Both the neural policy and the CFM-decoded controller output normalized motor speeds at 500 Hz. CFM updates the decoded parameters at 10 Hz to instantiate .
We include two baselines. Random instantiates with a parameter vector obtained by independently perturbing each entry of the measured nominal in Table I by ; a fresh sample is drawn at every CFM update step. Regression predicts a single point estimate of from the latent using the same conditioning architecture as CFM but without distributional generative modeling, so that the baseline isolates the effect of treating the latent-to-parameter map as a distribution rather than a deterministic function. Table V reports the root-mean-square error (RMSE) of raw normalized motor commands and the Pearson correlation coefficient (PCC) of action histories.
Across all three tracking speeds, CFM gives the lowest motor-command RMSE and the highest PCC. On the 5s trajectory, CFM reaches RMSE 0.032 and PCC 0.723, compared with 0.059 and 0.077 for Regression. The regression baseline reduces raw command error relative to Random, but its low PCC indicates that the predicted actions do not follow the policy's temporal structure. The gap is largest on the aggressive 5s trajectory and shrinks at slower speeds, matching the distributional view: when the latent is strongly excited, the conditional is broad because the latent-to-parameter map is not fully identifiable, so the regression target is not a well-defined function. A deterministic regressor is then forced to fit a conditional average that varies erratically as the latent moves and need not correspond to any single self-consistent

Lemniscate Trajectory
Time (s)
Time (s)
Fig. 8. Lemniscate tracking and open-loop action prediction on hardware. The quadrotor completes one lemniscate cycle in 5 s with position tracking RMSE 0.121 m. The right panels show the latent evolution and normalized motor commands from the neural policy, the CFM-instantiated parametric controller, and the regression baseline. The policy runs at 500 Hz, while CFM and regression decode the latent at 10 Hz. The CFM-decoded controller reproduces the policy's motor commands in both magnitude and temporal pattern, whereas the regression baseline oscillates around them, indicating that the decoded parameters capture the policy's latent-to-action mapping even under aggressive flight.
TABLE V OPEN-LOOP ACTION PREDICTION PERFORMANCE ON HARDWARE ROLLOUTS. RMSE IS COMPUTED ON RAW NORMALIZED MOTOR COMMANDS; PCC IS COMPUTED AFTER LOW-PASS FILTERING THE ACTION HISTORIES. ARROWS INDICATE THE PREFERRED DIRECTION: ↓ LOWER IS BETTER (RMSE), ↑ HIGHER IS BETTER (PCC). BEST VALUE PER ROW IN BOLD.
| Task | Method | RMSE↓ | PCC↑ |
|---|---|---|---|
| Tracking (5 s) | Random | 0.141 | 0.202 |
| Regression | 0.059 | 0.077 | |
| CFM | 0.032 | 0.723 | |
| Tracking (10 s) | Random | 0.151 | 0.080 |
| Regression | 0.064 | 0.145 | |
| CFM | 0.034 | 0.710 | |
| Tracking (15 s) | Random | 0.154 | 0.103 |
| Regression | 0.073 | 0.172 | |
| CFM | 0.032 | 0.775 | |
| Payload | Random | 0.156 | 0.205 |
| Regression | 0.064 | 0.614 | |
| CFM | 0.031 | 0.812 |
system. Regression's sensitivity to latent variations is visible in Figures 8 and 9, where the regression traces oscillate around the policy's smoother response. CFM instead draws coherent samples from the conditional and so reproduces both the magnitude and the temporal pattern of the policy commands, keeping RMSE near 0.03 and PCC above 0.70 at every speed.
- Off-Center Payload Adaptation: We further evaluate action prediction under an abrupt physical change. The vehicle hovers while a payload, approximately of the

Time (s)
Time (s)
Fig. 9. Off-center payload experiment. A payload is attached during hover at position [0.1, 0.0, 0.0] m in the body frame; the shaded interval marks the attachment event. The upper panel shows latent evolution, and the lower panels compare normalized motor commands from the neural policy, the CFM-instantiated parametric controller, and the regression baseline. When the payload attaches, the latent shifts abruptly and the CFM-decoded commands continue to match the policy through the transient while the regression baseline does not, showing that the decoder follows a sudden physical change and stays consistent with the policy.
vehicle mass, is attached off-center at 54% of the arm length. This perturbation changes the effective mass and inertia and introduces a torque bias. During replay, the same measured state and latent history are used to decode online and evaluate .
The payload case gives the strongest action-prediction result in Table V: CFM achieves RMSE 0.031 and PCC 0.812. Regression attains a moderate PCC of 0.614, which is noticeably better than on aggressive tracking and consistent with the near-hover setting exciting the latent less aggressively, but its RMSE remains roughly twice that of CFM, and Random stays both less accurate and weakly correlated. With the tracking results, this confirms that the decoded distribution reproduces the policy's motor commands under both nominal flight and an abrupt mass change.
VII. Conclusion and Limitations
This work presents a framework for interpreting latent representations in adaptive control. Although latent-conditioned policies adapt across varying dynamics, their physical meaning is typically unclear due to non-identifiability. We address this by decoding learned control latents into distributions of dynamically consistent physical models using conditional flow matching, rather than predicting a single parameter estimate.
The decoded model distribution supports two downstream uses around the fixed policy. In predictive control, it improves high-level gain tuning from naive initialization and adapts better than fixed gains under a motor-lag stress test. In robustness analysis, decoded-model ensembles yield calibrated lateral tracking-error envelopes under Gaussian force disturbances while localizing a residual mismatch to the vertical thrust channel. Overall, learned control latents can be read as distributions over physically meaningful dynamics that support downstream analysis around the frozen policy. Action-replay ablations further show that distributional decoding predicts policy motor commands more accurately than deterministic regression, supporting the need to model the latent-to-parameter map as a distribution.
Several limitations remain. The recovered models are sensitive to observation and state-estimation noise, which propagates through the latent and can degrade the decoded parameter distribution. The current validation is limited to a quadrotor platform and a structured parametric model; systems with stronger nonlinearities, contacts, or hybrid dynamics may require richer model classes and controller probes.
Future work will use CFM decoding as an active probing loop for improving the adaptive policy. Starting from a learned latent, we can perturb or stretch the latent representation and run the policy in decoded-model rollouts until the closed-loop response fails or leaves a desired robustness envelope. We can then decode those failure latents back into physical system distributions, revealing what kinds of dynamics correspond to the weak regions of the policy. Those decoded weak systems can be injected into the training distribution, or used to motivate additional identified parameters, so that the next policy is trained directly on the regimes where the current one fails.
REFERENCES
[1] A. Kumar, Z. Fu, D. Wen, and J. Malik, “Rma: Rapid motor adaptation for legged robots,” in Robotics: Science and Systems (RSS), 2021.
[2] W. Yu, J. Tan, C. K. Liu, and G. Turk, “Preparing for the unknown: Learning a universal policy with online system identification,” in Robotics: Science and Systems (RSS), 2017.
[3] K. Rakelly, A. Zhou, D. Quillen, C. Finn, and S. Levine, "Efficient off-policy meta-reinforcement learning via probabilistic context variables," CoRR, vol. abs/1903.08254, 2019. [Online]. Available: http://arxiv.org/abs/1903.08254
[4] A. A. Alemi, I. Fischer, J. V. Dillon, and K. Murphy, “Deep variational information bottleneck,” in International Conference on Learning Representations (ICLR), 2017.
[5] A. Kumar, Z. Li, J. Zeng, D. Pathak, K. Sreenath, and J. Malik, "Adapting rapid motor adaptation for bipedal robots," in 2022 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). IEEE, 2022, pp. 1161–1168.
[6] H. Qi, A. Kumar, R. Calandra, Y. Ma, and J. Malik, “In-hand object rotation via rapid motor adaptation,” in Conference on Robot Learning. PMLR, 2023, pp. 1722–1732.
[7] D. Zhang, A. Loquercio, X. Wu, A. Kumar, J. Malik, and M. W. Mueller, "Learning a single near-hover position controller for vastly different quadcopters," in 2023 IEEE International Conference on Robotics and Automation (ICRA), 2023, pp. 1263–1269.
[8] D. Zhang, A. Loquercio, J. Tang, T.-H. Wang, J. Malik, and M. W. Mueller, “A learning-based quadcopter controller with extreme adaptation,” IEEE Transactions on Robotics, vol. 41, pp. 3948–3964, 2025.
[9] L. Ljung, System Identification: Theory for the User. Prentice Hall, 1999.
[10] Y. Lipman, R. T. Chen, H. Ben-Hamu, M. Nickel, and M. Le, “Flow matching for generative modeling,” arXiv preprint arXiv:2210.02747, 2022.
[11] P. Ioannou and S. Baldi, Robust Adaptive Control. CRC Press, 12 2010, pp. 1–22.
[12] D. P. Kingma and M. Welling, “Auto-encoding variational bayes,” arXiv preprint arXiv:1312.6114, 2013.
[13] J. Lee, J. Hwangbo, L. Wellhausen, V. Koltun, and M. Hutter, “Learning quadrupedal locomotion over challenging terrain,” Science Robotics, vol. 5, no. 47, p. eabc5986, 2020.
[14] C. S. Brito and D. McNamee, “World models as reference trajectories for rapid motor adaptation,” arXiv preprint arXiv:2505.15589, 2025.
[15] Y. Duan, J. Schulman, X. Chen, P. Wohlhart, P. Abbeel, and P. Chen, "RI : Fast reinforcement learning via slow reinforcement learning," in arXiv preprint arXiv:1611.02779, 2016.
[16] D. Hafner, T. Lillicrap, I. Fischer, R. Villegas, D. Ha, H. Lee, and J. Glover, “Dream to control: Learning behaviors by latent imagination,” in International Conference on Learning Representations (ICLR), 2020.
[17] D. Hafner, J. Pasukonis, J. Ba, and T. Lillicrap, “Mastering diverse control tasks through world models,” Nature, pp. 1–7, 2025.
[18] Z. Mao, M. E. Umasudhan, and I. Ruchkin, “Physically interpretable world models via weakly supervised representation learning,” arXiv preprint arXiv:2412.12870, 2024.
[19] M. Wang, S. Tian, A. Swann, O. Shorinwa, J. Wu, and M. Schwager, “Phys2Real: Fusing VLM priors with interactive online adaptation for uncertainty-aware sim-to-real manipulation,” arXiv preprint arXiv:2510.11689, 2025. [Online]. Available: https://arxiv.org/abs/2510.11689
[20] N. Hovakimyan and C. Cao, adaptive control theory: Guaranteed robustness with fast adaptation. SIAM, 2010.
[21] P. Van Overschee and B. De Moor, Subspace identification for linear systems: Theory—Implementation—Applications. Springer Science & Business Media, 2012.
[22] R. Bellman and K. J. Åström, “On structural identifiability,” Mathematical Biosciences, vol. 7, no. 3-4, pp. 329–339, 1970.
[23] J. L. Beck, “Bayesian system identification based on probability logic,” Structural Control and Health Monitoring, vol. 17, no. 7, pp. 825–847, 2010.
[24] V. Peterka, “Bayesian approach to system identification,” in Trends and Progress in System identification. Elsevier, 1981, pp. 239–304.
[25] F. Ramos, R. C. Possas, and D. Fox, “BayesSim: Adaptive domain randomization via probabilistic inference for robotics simulators,” in Robotics: Science and Systems (RSS), 2019.
[26] E. Heiden, C. E. Denniston, D. Millard, F. Ramos, and G. S. Sukhatme, “Probabilistic inference of simulation parameters via parallel differentiable simulation,” in IEEE International Conference on Robotics and Automation (ICRA). IEEE, 2022.
[27] J. Ho, A. Jain, and P. Abbeel, “Denoising diffusion probabilistic models,” Advances in neural information processing systems, vol. 33, pp. 6840–6851, 2020.
[28] A. Tong, N. Malkin, G. Huguet, Y. Zhang, J. Rector-Brooks, K. Fatras, G. Wolf, and Y. Bengio, “Improving and generalizing flow-based generative models with minibatch optimal transport,” Transactions on Machine Learning Research, 2023.
[29] F. Zhu, D. Torbunov, Y. Ren, Z. Jiang, T. Zhao, A. Yogarathnam, and M. Yue, “Diffusion model-based parameter estimation in dynamic power systems,” arXiv preprint arXiv:2411.10431, 2024.
[30] Z. Fu, X. Cheng, and D. Pathak, “Deep whole-body control: learning a unified policy for manipulation and locomotion,” in Conference on Robot Learning. PMLR, 2023, pp. 138–149.
[31] S. Elfwing, E. Uchibe, and K. Doya, “Sigmoid-weighted linear units for neural network function approximation in reinforcement learning,” Neural networks, vol. 107, pp. 3–11, 2018.
[32] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin, “Attention is all you need,” in Advances in Neural Information Processing Systems, vol. 30, 2017.
[33] E. Pérez, F. Strub, H. de Vries, V. Dumoulin, and A. Courville, “FiLM: Visual reasoning with a general conditioning layer,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 32, no. 1, 2018.
[34] I. Loshchilov and F. Hutter, “Decoupled weight decay regularization,” in International Conference on Learning Representations, 2019.
[35] Y. Song, S. Naji, E. Kaufmann, A. Loquercio, and D. Scaramuzza, "Flightmare: A flexible quadrotor simulator," in Conference on Robot Learning. PMLR, 2021, pp. 1147–1157.
[36] P.-T. de Boer, D. P. Kroese, S. Mannor, and R. Y. Rubinstein, “A tutorial on the cross-entropy method,” Annals of Operations Research, vol. 134, no. 1, pp. 19–67, 2005.
[37] D. Mellinger and V. Kumar, “Minimum snap trajectory generation and control for quadrotors,” in 2011 IEEE International Conference on Robotics and Automation, 2011, pp. 2520–2525.
[38] S. S. Sandha, L. Garcia, B. Balaji, F. Anwar, and M. Srivastava, "Sim2real transfer for deep reinforcement learning with stochastic state transition delays," in Proceedings of the 2020 Conference on Robot Learning, ser. Proceedings of Machine Learning Research, J. Kober, F. Ramos, and C. Tomlin, Eds., vol. 155. PMLR, 16–18 Nov 2021, pp. 1066–1083. [Online]. Available: https://proceedings.mlr.press/v155/sandha21a.html
[39] J. Tan, T. Zhang, E. Coumans, A. Iscen, Y. Bai, D. Hafner, S. Bohez, and V. Vanhoucke, “Sim-to-real: Learning agile locomotion for quadruped robots,” in Robotics: Science and Systems (RSS), 2018.
[40] M. W. Mueller, Dynamics and Control of Autonomous Flight, 1st ed., ser. Mathematical Engineering. Springer Cham, 2025. [Online]. Available: https://doi.org/10.1007/978-3-031-91871-1
[41] D. Zhang, R. Tao, S. Cheng, N. Hovakimyan, and M. W. Mueller, "A simulation evaluation suite for robust adaptive quadcopter control," 2025. [Online]. Available: https://arxiv.org/abs/2510.03471
APPENDIX A PARAMETRIC CONTROLLER
This appendix details the parametric controller used to instantiate the decoded parameters in Section VI-A. Given a physical parameter vector , maps a high-level reference to rotor-speed commands via inertia-weighted rate feedback and a rigid-body thrust/torque allocation, following the standard formulation in [40], [41].
a) Reference and rate loop.: The high-level reference is
i.e. a commanded mass-normalized collective thrust and a commanded body rate. The desired body torque is produced by a proportional rate loop,
where is the inertia matrix supplied by , is the measured body rate, and is a diagonal rate-gain matrix shared across platforms.
b) Thrust/torque allocation.: Using the allocation matrix , which encodes arm length , thrust coefficient , and torque coefficient , together with the per-rotor efficiency vector , the commanded squared rotor speeds are
The per-rotor speed command is , and the normalized command used in the policy action space is , matching the policy output defined in Section IV-C.
Through , the map depends explicitly on , so replacing with a decoded sample yields the controller \mathcal{K}_\hat{\theta} evaluated in the experiments of Section VI.