Extended Data Fig. 2: Procedure of DAT without internal states for the MPNN.

The flow charts with blue and yellow backgrounds denote the forward inferences in the physical system and the numerical model, respectively. Four steps of DAT without internal states, labelled using dotted arrows with four different colours, are repeated over all training samples to minimize the loss functions and optimize the physical model, that is, the phase coefficients Θn and Φn of the nth photonic mesh for 1≤n≤N. See Supplementary Section 10 for a detailed description.