Nonlinear input design as optimal control of a Hamiltonian system

Jack Umenberger, Thomas B. Schön · DOI

Abstract

We propose an input design method for a general class of parametric probabilistic models, including nonlinear dynamical systems with process noise. The goal of the procedure is to select inputs such that the parameter posterior distribution concentrates about the true value of the parameters; however, exact computation of the posterior is intractable. By representing (samples from) the posterior as trajectories from a certain Hamiltonian system, we transform the input design task into an optimal control problem. The method is illustrated via numerical examples, including MRI pulse sequence design.

Introduction

In system identification and experiment design, the objective is to probe a system with specific inputs to extract the most accurate mathematical model possible. For linear systems, this is a well-understood problem: researchers can optimize the Fisher Information Matrix (FIM) using standard convex optimization techniques.

However, for nonlinear systems—especially those incorporating internal process noise—computing the FIM is notoriously difficult and often intractable. Instead of relying on the FIM, this work proposes directly optimizing the posterior distribution of model parameters. The goal is to choose inputs that force the posterior to tightly concentrate around the true parameter values. The primary challenge lies in the fact that computing expected values with respect to this posterior is computationally intractable for general probabilistic models.

Methodology: Inference as Optimal Control

The core innovation of this paper is a creative workaround using Hamiltonian Monte Carlo (HMC), a popular algorithm for statistical inference.

The Physics Analogy

HMC works by constructing a simulated physical system (a Hamiltonian system) where the "position" corresponds to the model parameters to be estimated. The physics are designed so that simulating the system's trajectories naturally generates samples from the target posterior distribution.

Reframing the Problem

Since the trajectories of this Hamiltonian system represent the posterior distribution, the authors reframe the input design problem as an optimal control problem. They seek an input sequence $u$ that "drives" the position of the Hamiltonian system as close as possible to the true parameter values $\theta^*$.

Figure 1: Visualization of HMC trajectories in the parameter space. The optimized inputs drive the final positions (red triangles) closer to the true parameter value (black cross) compared to nominal inputs (blue crosses).

Handling Complexity

For systems with unobserved internal noise, calculating the exact likelihood is impossible. The authors bypass this by augmenting the Hamiltonian state to include these latent variables, requiring only that the gradients of the joint likelihood are computable. To solve this control problem, they use a deterministic approximation for the system outputs and discretize the continuous Hamiltonian dynamics using the "leapfrog" method. The resulting discrete-time optimal control problem—resembling nonlinear Model Predictive Control (MPC)—is then solved locally using projected gradient descent.

Experimental Evaluation

The method was evaluated on several simulated environments:

  • Linear Dynamical System: Used as a proof of concept.
  • Nonlinear State-Space Model: A model featuring process noise to test the handling of latent variables.
  • MRI Pulse Sequence Design: Simulating magnetization dynamics to estimate tissue relaxation times, representing a practical, real-world application.

Key Results and Insights

A critical insight from this work is that control and inference are mathematically linked. Minimizing the expected distance of HMC trajectories from the true parameter is equivalent to minimizing the trace of the posterior variance plus the squared bias.

Furthermore, the results demonstrate that for nonlinear systems, amplitude isn't everything. In linear systems, increasing input power usually improves estimates. However, the authors show that for nonlinear systems, a pseudo-random binary signal with maximum amplitude can perform worse than a carefully optimized signal of lower average amplitude. Nonlinear systems require carefully shaped inputs to maximize information gain.

Figure 6: Histogram of parameter estimate errors over 500 trials. The optimized input (red) results in a much more concentrated distribution around zero error compared to the pseudo-random input (black).

In the nonlinear state-space model trials, the optimized input significantly reduced the variance of Maximum Likelihood Estimation (MLE) errors. In the MRI pulse sequence design task, the HMC-based optimal input outperformed baseline dynamic programming approaches, yielding a more concentrated posterior distribution across 1,000 simulated trials.

Limitations and Future Work

While powerful, the method faces a "chicken and egg" problem: the optimization requires an initial guess of the true parameters to design the optimal input. The authors suggest using multi-stage adaptive optimization to iteratively refine this guess. Additionally, the computational cost scales linearly with the number of HMC samples, effectively requiring the simultaneous solution of multiple nonlinear MPC problems. Future work will explore stochastic gradient methods to reduce this burden by using mini-batches of HMC samples during optimization.

Summary updated

BibTeX
@article{umenberger2019nonlinear,
  author = {Jack Umenberger and Thomas B. Schön},
  title = {{Nonlinear input design as optimal control of a Hamiltonian system}},
  journal = {IEEE Control. Syst. Lett.},
  year = {2019},
  doi = {10.1109/lcsys.2019.2921954},
}
Figure