Sampling-Based Control on Uncalibrated Physical Noise

Some of the most capable controllers for fast robots work by guessing. Model Predictive Path Integral control (MPPI) is a controller that, every few milliseconds, perturbs its current plan with thousands of random nudges, simulates each nudged plan forward, and averages the nudges weighted by how well they did. The random nudges come from digital pseudo-random number generators. Meanwhile, a separate line of hardware research builds devices that produce randomness for almost no energy by letting thermal noise flip a nanoscale magnet or jostle an analog circuit. The obvious marriage is to feed MPPI from these devices. This note argues that the naive version of that marriage is either unimportant or broken, and proposes the version that is worth doing.

The version that is broken is swapping the random source and hoping for the best. Physical samplers are biased, programmable only to 3–10 bits, and drift with temperature. An MPPI update is a weighted average of the nudges, so any mean offset in the device noise passes directly into the commanded action, and any variance error silently retunes the exploration, which is the most sensitive knob in the method. The version that may be unimportant is claiming large energy savings, because in digital MPPI the forward simulations, not the random numbers, may dominate cost. Our core claim is narrower and testable. Sampling-based MPC does not need a calibrated noise source, because the controller already reads every sample it uses. It can therefore estimate the device's actual mean and covariance from those same samples and correct its weights on the fly. We will build this correction, bound how much residual error it leaves, map how much device imperfection closed-loop control tolerates with and without it, and measure honestly where in the design space the energy argument holds.

What exists and what is missing

The hardware side supplies the samplers and their failure modes. Energy-Efficient Sampling Using Stochastic Magnetic Tunnel Junctions biases individual stochastic magnetic tunnel junctions (tiny magnets whose random flipping probability is set by an input current) so that each bit of a Float16 number is drawn with the right probability. It reports 1 µs per sample, 20.86 pJ per sample, and 9,721 times less energy than Mersenne-Twister, but it tests only static Bayesian updates. Thermodynamic computing system for AI applications samples multivariate Gaussians from an 8-cell resistor–inductor–capacitor circuit relaxing under thermal noise, and it is evaluated on static regression and classification. A Fully Hardware Implemented Accelerator Design in ReRAM Analog Computing without ADCs uses amplifier thermal noise to realize stochastic neurons, tested only on MNIST. These papers motivate the proposal, since cheap physical randomness exists, and none of them closes a feedback loop.

Two papers constrain the design. Error Mitigation for Thermodynamic Computing shows that analog parameter imprecision causes first-order bias. Its fix, dithering across hardware configurations and averaging, reduces the error to second order but requires repeated reconfiguration. Magnetic Tunnel Junction as an On-Chip Temperature Sensor shows that junction switching probability tracks temperature closely enough to serve as a thermometer. The same sensitivity means an uncalibrated sampler's statistics will wander during operation. Any proposal that assumes a fixed, known noise distribution is ruled out by these two results.

The control side supplies the method and the benchmarks. Model Predictive Path Integral Control: From Theory to Parallel Computation derives MPPI with a likelihood-ratio term that depends on the assumed sampling covariance. It shows that exploration variance must be hand-scaled, and that cart-pole swing-up stalls at cost around 2000 with the natural variance. Information Theoretic Model Predictive Control: Theory and Applications to Autonomous Driving runs about 1,200 sampled trajectories per cycle at 40–60 Hz on the AutoRally platform. Both assume a perfect digital sampler. We reuse their update rule and change only the assumption about where the noise comes from and what the controller knows about it.

Core Claim

Let the device deliver perturbations $\delta u_k$, for $k=1,\dots,K$, with unknown mean $\mu_d$ and covariance $\Sigma_d$, while the controller's cost is defined with a nominal exploration covariance $\Sigma$. Standard MPPI sets the new plan to $u + \sum_k w_k\,\delta u_k$ with weights $w_k \propto \exp(-\tfrac{1}{\lambda}(S_k + \lambda\, u^\top \Sigma^{-1}\delta u_k))$. Here $S_k$ is the simulated cost of rollout $k$ and $\lambda$ is the temperature parameter. When $\mu_d \neq 0$, the update inherits a drift of size $\mu_d$ even when all costs are equal. When $\Sigma_d \neq \Sigma$, the likelihood-ratio term is wrong and the effective exploration scale is not the tuned one. Our moment-corrected MPPI replaces $\delta u_k$ by the centered sample $\delta u_k - \hat\mu$. It replaces $\Sigma$ in the likelihood-ratio term by a running estimate $\hat\Sigma$, computed from the current batch and an exponentially forgotten history. It then rescales the centered samples by $\Sigma^{1/2}\hat\Sigma^{-1/2}$, so that exploration matches the tuned value regardless of device state.

For a Gaussian-like device, the residual error in the update should shrink as $O(1/\sqrt{K_{\text{eff}}})$, where $K_{\text{eff}}$ is the effective number of samples across the forgetting window. This rate is the standard error of a sample mean, so the correction turns a first-order bias into a vanishing variance term, at the cost of a small covariance estimate per cycle. It adds no hardware reconfiguration, which is what distinguishes it from Thermies-style dithering. Non-Gaussian device noise, such as the mixture-of-uniform distributions the magnetic-junction sampler produces, is handled only up to second moments. How much the higher moments matter is an empirical question we measure directly.

Research Program

The first stage is a cost audit that decides whether the energy story survives. We will instrument MPPI on an embedded CPU and a small embedded GPU for three dynamics models of increasing cost: linear cart-pole, a kinematic bicycle car, and a neural-network vehicle model of the kind used in IT-MPC. For each, we measure the fraction of cycle energy and time spent generating random numbers with a fast counter-based or PCG generator versus rolling out dynamics. Combining the measured random-number share with the reported 20.86 pJ per sample gives an upper bound on the achievable saving. We commit in advance to reporting the result even if the random-number share is small.

The second stage builds device-faithful noise models. For magnetic junctions, we reproduce the Float16 bit-probability scheme with realistic bias errors, bit-level correlations, and a temperature-dependent switching curve whose sensitivity is taken from the thermometer result. For the thermodynamic sampler, we simulate Langevin relaxation with capacitance errors at 3, 6, and 10 bits, and with finite relaxation time, which produces correlation between successive samples. If collaborators provide an 8-cell board, we will also stream real samples into a small-horizon controller whose perturbation vector fits in eight dimensions (for example, a car with two inputs over a four-step horizon). We treat this as a sanity check rather than the main evidence.

The third stage is the tolerance map and the corrected controller. We sweep bias, variance error, drift rate, quantization, and correlation independently and jointly. For each setting we record closed-loop performance for standard MPPI and moment-corrected MPPI. The output is a set of tolerance curves: the largest imperfection at which each controller stays within a fixed margin of the ideal-digital controller.

Baselines

The naive reference point is standard MPPI driven directly by the device noise model with no correction, under the same horizon, sample count, temperature, and exploration scale tuned for ideal noise. It shows what happens if one simply swaps the random source.

The strongest existing method is standard MPPI/IT-MPC with an ideal digital generator, as in Model Predictive Path Integral Control: From Theory to Parallel Computation and Information Theoretic Model Predictive Control. The latter reports 100% success at 6 and 8.5 m/s on AutoRally with a neural-network dynamics model, where the Cross-Entropy Method fell below 50% at 8.5 m/s. This is an upper reference rather than something to beat. Success here means moment-corrected MPPI on imperfect device noise stays statistically indistinguishable from it, within a fixed margin on success rate and cost, over a much wider imperfection range than the uncorrected controller. Every controller gets the same dynamics model, sample budget, and a tuning budget of equal size spent on the ideal-noise setting.

Two further baselines represent competing corrections. The first is periodic offline calibration: every $T$ seconds, estimate device moments from a dedicated burst and correct with fixed constants. The second is Thermies-style ensemble dithering from Error Mitigation for Thermodynamic Computing, charged its reconfiguration time against the cycle deadline. Two ablations isolate the key ingredient: mean-centering alone, and covariance rescaling alone. Together they show which error dominates the closed-loop damage.

Why not just…?

Why not just use a cheap digital random generator, since rollouts dominate cost anyway? This is the most serious threat, and the file contains no measurement of MPPI's random-number energy share. The cost audit in stage one settles it. If the share is only a few percent on neural-network dynamics, we will say the energy case holds only for cheap-dynamics, microcontroller-class controllers. The remaining contribution would then be the correction method and the tolerance map, which apply to any analog or physical sampler, including the thermodynamic and ReRAM devices above.

Why not just calibrate the device once, or periodically? Temperature sensitivity of junction switching (Magnetic Tunnel Junction as an On-Chip Temperature Sensor) suggests calibration goes stale as a robot heats up. This is not proven at control timescales, so periodic calibration is a real baseline rather than a straw man. If it matches moment correction at modest calibration rates, we will report that the simpler scheme suffices. The drift-rate sweep shows where the two diverge.

Why not just let the thermodynamic chip solve the whole MPC problem? Its projected advantage over a GPU appears only near dimension 3000 (Thermodynamic computing system for AI applications). Typical MPC problems have far fewer variables, which is exactly the regime where even GPUs lose to a CPU (SOLVING QUADRATIC PROGRAMMING PROBLEMS ON GRAPHICS PROCESSING UNIT). Using the device only as a noise source avoids that scale mismatch.

Why not just use Thermies dithering to remove the bias? Dithering removes first-order error but requires reprogramming the hardware several times per estimate. That cost competes directly with a 20 ms control deadline. Moment correction needs no reprogramming, and the dithering baseline, charged its latency, tests whether that matters.

Proposed Experiments

We use the MPPI simulation suite (cart-pole swing-up, miniature race car, quadrotor forest) and an AutoRally-style simulated dirt track with a learned vehicle model. On cart-pole we report final cost, where natural-variance MPPI is known to stall near 2000. On the forest task we report completion time against the reported MPPI times of about 15.2 s, 15.3 s, and 14.5 s at 3 m, 4 m, and 5 m tree spacing. On the track we report lap success rate at 6, 8.5, and 11 m/s and lap time. Across all tasks we also report the per-cycle energy estimate from stage one.

The first decisive check is the drift test. During a simulated run we ramp device temperature according to the modeled switching sensitivity. The prediction is that uncorrected MPPI's success rate collapses once the effective exploration scale leaves the tuned band, while the corrected controller holds. Failure of this prediction would falsify the core claim.

The second check targets the higher moments. We compare Gaussian device noise against mixture-of-uniform noise with matched mean and covariance. A significant closed-loop gap would show that second-moment correction is insufficient and that the sampler's full shape must be modeled.

The third check is the energy audit. Its outcome determines whether this is an efficiency result or a robustness result, and we will state which in the abstract of the eventual paper.