Tapas Tripura

Thrust III

A reinforcement learning agent with a learned model controls a system whose physics is unknownUnknown systemstateactionRL agentnowlearned model predicts ahead

Research Thrust III

Predictive control without known physics

Learning effective control policies for systems whose physics is unknown, with high sample efficiency, which matters most where trial-and-error interaction is infeasible.

Methods and developments

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

Schematic of MAP-TD: sparse Bayesian learning, a neural operator surrogate, and a temporal-difference agent with model predictive planning in a loop with the environment.
The MAP-TD framework. (I) Data are turned into a physical model by sparse Bayesian learning. (II) A neural operator surrogate is trained on that model. (III) The agent plans with the model and learns its policy and value function by temporal-difference learning.

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:

$$\dot{\mathbf s}=\mathbf D(\mathbf s_t,t)\,\boldsymbol\theta^{s}+\mathbf f(\mathbf s_t,t)+\mathbf a_{\Pi_\theta}(\mathbf s_t,t)$$

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.

$$R_{\wp}(\mathbf s_t)=\gamma^{t+N_c}\,Q_{\theta^{q}}\big(\mathbf s_{t+N_c},\mathbf a_{t+N_c}\big)+\sum_{i=0}^{N_c-1}\gamma^{t+i}\,\mathcal R\big(\mathbf s_{t+i},\mathbf a_{t+i}\big)$$

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:

$$\partial_{tt}u=8.5494\pm0.1922\,\partial_{xxxx}u+0.9772\pm0.003\,f(x,t)$$

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.

Drawing of a cantilever beam with a fixed support, a distributed load, a piezoelectric patch and a free end.
Setup of the cantilever beam. The red strip is the piezoelectric patch that applies the control, and a distributed load acts on the beam (lengths in meters).

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.

Drawing of a 76-storey tower with wind load, nonlinear floors and actuator floors marked.
Setup of the 76-storey tower under lateral wind load. The nonlinear floors are in blue and the floors with actuators are in red.

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.

Plots of episodic return against environment steps for MAP-TD, TDMPC, neural-network variants and Baseline-MPC, for the beam and the tower.
Episodic return during training for (a) the cantilever beam and (b) the 76-DOF tower. The dashed lines are the Baseline-MPC returns. The black MAP-TD curve is a variant that updates its model online.

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.

Animated plot of beam displacement along the beam for no control, MPC, TDMPC and MAP-TD.
Control response of the cantilever beam: displacement along the beam with no control, with MPC, with TDMPC, and with MAP-TD. The dashed lines mark the target bounds.
Animated plots of displacement and velocity at four floors of the tower for no control, MPC, TDMPC and MAP-TD.
Control response of the tower at four floors (DOF 10, 35, 52, 70): (a) displacement and (b) velocity with no control, with MPC, with TDMPC, and with MAP-TD. The dashed lines mark the target bounds.

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-MPCBaseline-MPC (CEM)TDMPCMAP-TDMAP-TD-NN (offline)MAP-TD-NN (online)
Cantilever beam15.5103.672.716.573.574.9
76-DOF tower27.349.0100.317.169.369.1

MAP-TD is also fast at run time. Wall-clock time per planning step:

Time per planning stepBaseline-MPCBaseline-MPC (CEM)TDMPCMAP-TDMAP-TD-NN
Cantilever beam38 s74 s1 ms15 ms2.1 ms
76-DOF tower43 s446 s1.1 ms71 ms2.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.

Applications

FlowMARL

Model-agnostic reinforcement learning for active flow control. Manuscript submitted.

Results

Animated flow fields behind a circular cylinder for the uncontrolled case, baseline MPC, TDMPC and FlowMARL.
Flow control of the wake behind a circular cylinder. Flow fields for the uncontrolled case, baseline MPC, TDMPC, and FlowMARL.
Animated flow fields behind a square cylinder for the uncontrolled case and two controlled cases, with the jet locations marked.
Zero-shot generalization to a square geometry. Flow fields for the uncontrolled case and two controlled cases, with the two jet locations marked.
Plots of the drag and lift coefficients of a circular cylinder over environment steps, and their power spectra, for the uncontrolled flow, TDMPC and FlowMARL.
Drag and lift of the circular cylinder. (a) Drag coefficient, (b) lift coefficient, and (c, d) their power spectra, for the uncontrolled flow, TDMPC, and FlowMARL. The shaded band marks the first 2,000 environment steps. Both controllers lower the drag and almost remove the lift oscillations, and FlowMARL gives the lowest drag.
Plots of the drag and lift coefficients of a square cylinder over environment steps, and their power spectra, for the uncontrolled flow, TDMPC and FlowMARL.
Drag and lift of the square cylinder. The same four panels for the square cylinder.

Related publications

    See all publications