AI surrogate models for coupled multi-physics systems require large simulation datasets, yet conventional generation demands hand-derived adjoint equations whose complexity grows combinatorially with the number of coupled physics—confining analytical-sensitivity topology optimization (TO) largely to two-physics problems. We present MultiPhysJAX, an open-source, modular JAX framework that removes this bottleneck: reverse-mode automatic differentiation (AD) with custom vector–Jacobian-product (VJP) rules propagates exact gradients through an arbitrary chain of coupled PDE solvers, replacing ∼1500+ lines of hand-derived adjoint code with ∼200 lines of VJP rules for a three-physics chain. In contrast to analytical-sensitivity TO, adding or extending a physics requires no re-derivation of coupled adjoints, and the gradients are exact to machine precision (cosine similarity >0.9999 against finite differences). The framework chains Stokes–Brinkman, conjugate heat transfer, and thermoelastic solvers (one-way thermal→structural) with O(n1.1) sparse scaling and 72× GPU acceleration. Validated on TO – the most demanding data-generation scenario, where each sample is a full optimization run – it generates 500 coupled samples in 3.1 h on a single workstation. A controlled ablation establishes that structural-coupling benefits are exclusively three-dimensional (compliance 21%–45%, stress 7%–15%), while 2D gains are β-continuation-driven. Modularity is demonstrated by Stokes-to-Navier–Stokes and 2D-to-3D extensions without modifying existing solver code.
