Physical policy gradient theorem for in situ stochastic-adjoint training
Organizations: Bradley Department of Electrical and Computer Engineering, Virginia Tech, Blacksburg, Virginia 24061, USA
Abstract
In situ adjoint training extracts parameter gradients directly from measurement, but has so far been limited to reciprocal or restricted systems. Here, we introduce the physical counterpart of the policy gradient theorem: a stochastic-adjoint gradient estimator that lifts these constraints by trading reciprocity for nondegenerate diffusion. As validation, we train a nonlinear resonator network, whose own dynamics supply the policy, against antagonistic temporal modulations with gradients from measured stochastic trajectories alone, without finite differences or a separate adjoint experiment.
Figures & tables
Policy Gradient Methods
Policy gradient methods optimize stochastic policies by estimating how parameter changes affect expected reward.
See all 158 papersAutomatic Differentiation from Scratch: How PyTorch Computes Gradients in Physics-Informed Neural Networks
create\_graph=True enables correct differentiation through the physics-informed residual. Every adjoint value is verified against the hand derivations of Tahimi (2026), connecting the sensitivity framework to the vector--Jacobian products used by PyTorch's autograd engine.