MAP-TD
A deep reinforcement learning method for controlling systems whose physics is unknown. A parsimonious dynamics model, discovered offline with sparse Bayesian learning, predicts long-horizon trajectories inside the agent, which improves sample efficiency and control quality. Demonstrations include deflection control of a cantilever beam, wind-induced vibration control of a 76-degree-of-freedom structure, and active flow control around a circular cylinder, with zero-shot transfer to a square cylinder.
Walkthrough
Why a discovered model?
Reinforcement learning on its own needs a huge amount of interaction with the system, which is not realistic for structures. Model-based methods save data by learning a dynamics model, but errors in a learned model pile up over long horizons and spoil the control. Classical model predictive control (MPC) needs an accurate model and an optimization at every step, which is slow. MAP-TD takes a different route: it discovers a small, interpretable model once, offline, from a single noisy trajectory, and then learns a policy that plans over a predictive horizon with that model.
How it works
1. Discover the physics. Sparse Bayesian learning with a spike-and-slab prior picks a few terms from a library of candidate functions, using one noisy trajectory. Terms with a marginal posterior inclusion probability above 0.5 are kept. The action then enters the discovered model as an external force:
Here \(\mathbf D\) is the library of candidate functions, \(\boldsymbol\theta^{s}\) is the sparse weight vector found by the Bayesian step, and \(\mathbf f\) is the external disturbance.
2. Build a fast surrogate. Solving the discovered model with a physics solver is slow inside a training loop. So a coarse machine-learning solver is trained on the discovered model: a wavelet neural operator for the beam, and an MLP for the tower. Training alternates between the fine and the coarse solver, which makes it faster without drifting away from the discovered physics.
3. Plan and learn. At each step the agent samples action sequences, rolls them through the model over a short horizon, and adds a learned terminal value for the long-term return. A policy network guides the sampling and gives fast inference. The value function and the policy are trained together by temporal-difference learning.
The first term is the learned terminal value. The sum is the reward collected along the predicted trajectory.
Example 1: a cantilever beam
The goal is to suppress the tip deflection of a beam under a distributed harmonic load, using a piezoelectric patch as the actuator, without knowing the beam equation. From a single noisy trajectory of one second, the Bayesian step finds that, apart from the forcing, only the fourth-order spatial term is present among 19 candidates, and recovers:
This matches the equation used to generate the data. The coarse solver is a wavelet neural operator, with an average rollout error of 1.15% over 500 time steps.
Example 2: a 76-storey tower
The second benchmark is a 76-storey, 306.1 m tower under wind load, with twelve actuators, a tuned mass damper at the top, and nonlinearity added to some floors. The form of that nonlinearity is treated as unknown. The Bayesian step searches 774 candidate functions (466 once the nonlinearity is assumed to depend on displacement only) and finds the missing physics from one noisy trajectory. The coarse solver is an MLP, with a rollout error of about 11.9%. Because the policy search is guided by the discovered model, that surrogate error does not carry into the policy.
Learning the policy
MAP-TD is compared with two Baseline-MPC controllers that use the true equations (a gradient-based one and a derivative-free one using the cross-entropy method), with TDMPC, which learns a latent model, and with MAP-TD variants whose model is a neural network. On the beam, MAP-TD reaches the return of the gradient-based Baseline-MPC within 0.1 million environment steps. On the tower it gets close to that return after about 300 episodes. TDMPC and the neural-network variants improve only a little, which the paper attributes to errors in their neural dynamics models that carry into the policy.
Control results
On the beam, Baseline-MPC holds the deflection near zero and MAP-TD stays close to it, with some residual oscillation, while TDMPC behaves much like the uncontrolled beam. On the tower, MAP-TD and Baseline-MPC both reduce the displacement and keep the velocity within the target bounds, with only small, occasional violations.
The average tracking error, as a percent of the L2 norm, is below. Baseline-MPC uses the true equations. MAP-TD, which discovers its model from data, matches it on the beam (16.5% against 15.5%) and is about 37% lower on the tower (17.1% against 27.3%).
| Tracking error (%) | Baseline-MPC | Baseline-MPC (CEM) | TDMPC | MAP-TD | MAP-TD-NN (offline) | MAP-TD-NN (online) |
|---|---|---|---|---|---|---|
| Cantilever beam | 15.5 | 103.6 | 72.7 | 16.5 | 73.5 | 74.9 |
| 76-DOF tower | 27.3 | 49.0 | 100.3 | 17.1 | 69.3 | 69.1 |
MAP-TD is also fast at run time. Wall-clock time per planning step:
| Time per planning step | Baseline-MPC | Baseline-MPC (CEM) | TDMPC | MAP-TD | MAP-TD-NN |
|---|---|---|---|---|---|
| Cantilever beam | 38 s | 74 s | 1 ms | 15 ms | 2.1 ms |
| 76-DOF tower | 43 s | 446 s | 1.1 ms | 71 ms | 2.1 ms |
That is roughly 2,500 times faster than gradient-based Baseline-MPC on the beam and roughly 600 times faster on the tower. TDMPC is faster still, but it does not control either structure well.
Limits and outlook
MAP-TD is built for deterministic control. It does not propagate uncertainty about the environment, and its reward and exploration cannot tell random disturbances from a poor policy. The next steps are stochastic control with random loads, and non-stationary excitations.