Manuscript Offprint
arXiv:2610.41887Learning Nonlocal Interactions in Large-Scale Heterogeneous Metamaterials through Scientific Machine Learning
Abstract
In multiscale systems, nonlocal interactions among spatially distributed constituents can unlock collective, potentially emergent behavior irreducible to individual constituent responses. Beyond characterization, nonlocality in multiscale systems is increasingly viewed as a design element across fracture mechanics, wave physics, and disordered systems. Existing nonlocality theories provide rigorous descriptions and mechanistic insight, but often require prescribed analytic forms, range, symmetries, or periodicity. Machine learning offers a data-driven route to learn interactions, yet principled approaches that tie the network design to physical theory remain nascent. Here we present domain-decomposition attention neural operator (DANO), which learns configuration-dependent interactions in heterogeneous systems governed by linear field equations from field data.
alone. Through a case study in large-scale optical metasurfaces, we demonstrate DANO's full-field prediction under geometric heterogeneity and across drive conditions, small-to-large domain transfer, and multifunctional inverse design, with learned interactions validated through physics-based interrogation. As an AI-for-Science tool, it supports interaction discovery and scalable, customizable design of nonlocal multiscale systems, including virtual-reality optics.
Keywords: nonlocality, distributed interaction, multiscale systems, large-scale metasurfaces, scientific machine learning
Contents
1 Introduction 2
2 Results 5
2.1 Nonlocal interactions among discrete constituents ..... 5
2.2 Nonlocal interactions in heterogeneous metasurfaces ..... 6
2.3 A physics-structured neural operator for nonlocal interactions ..... 7
2.4 Predictive accuracy and transfer ..... 9
2.5 Physics-based interrogation of learned nonlocal interactions ..... 11
2.6 Large-scale inverse design and scaling of full-field evaluation ..... 13
2.6.1 Two-drive design: angle-multiplexed hologram ..... 13
2.6.2 Evaluation time and fabricated device sizes ..... 15
3 Discussion 15
4 Methods 17
4.1 Physical system and dataset generation ..... 18
4.2 DANO formulation and architecture ..... 19
4.3 Model training and evaluation ..... 21
4.4 Physics-based interrogation of the learned operator ..... 23
4.5 Inverse design and full-wave verification ..... 24
In multiscale engineering, a diverse array of local approximations has long provided a compact-yet-expressive abstraction that bridges constituents and the assembly [10, 11]. This abstraction has taken different forms across disciplines yet in general entails separation of scale, whereby constituent-level behavior is described through effective properties and reused in predicting the system-level behavior, thereby decoupling scales either top-down or bottom-up. In metamaterials—a special class of multiscale systems whose functionality comes mainly from geometry rather than material composition [12]—this principle supports the notion of constituent libraries or “lookup-table” approaches [13–15]. Capitalizing on the notion, AI-driven design for metamaterials accelerates the system-level multiscale design through constituent-level structure-to-property surrogates and generative models for spectral inverse design [16, 17], nonlinear properties [18, 19], and multiscale structural optimization [20, 21], as reviewed in a broader context [22, 23]. Locality is often harnessed in system-level design, too, where local growth rules produce irregular architected materials [24–26] or self-organized mechanical metamaterials [27] with effective local properties spatially programmed on-demand to achieve desired system-level behavior.
Despite covering this broad realm, separation of scale faces fundamental limitations when bringing multiscale engineering to fruition. The decoupling with separation of scale becomes less reliable when interactions cannot be neglected [28–31], such as higher-order effects introducing long-range interactions [32]. Interaction has often been treated as an undesirable effect to suppress under separation of scale [33, 34], while enforcing locality is known to possibly preclude theoretically achievable performance [13, 35, 36] and to often lead to geometric designs that are challenging to fabricate, such as high-aspect-ratio pillars in nanoscale fabrication [36, 37]. More fundamentally, locality leaves limited room for deliberately exploiting collective or emergent responses that only arise from nonlocal interactions—one of the founding scientific motivations of multiscale engineering despite its added complexity.
When nonlocal interactions are viewed as a design element, the central challenge lies in describing how distributed interactions govern system-level response. Multiple-scattering theory describes these interactions across linear wave systems, from acoustics and quantum mechanics to electromagnetics, through the Foldy–Lax equations and their recursive expansion, known as the Born series [38–40]. In metasurfaces, coupled-dipole [41, 42] and T-matrix models [43] apply this description to meta-atoms and explain collective lattice resonances [44] and their sensitivity to disorder [45]. Their closed-form solutions often require periodicity, symmetry or the dipole limit, and aperiodic arrays must be solved anew for each configuration [41, 46]. Heterogeneous (i.e., spatially varying constituent by constituent) systems hold promise yet fall outside these assumptions. System-level numerical optimization has provided a route to designing heterogeneous metasurfaces without needing to explicitly address interactions [13, 29, 36, 47–52]. However, computational and memory costs incurred in such system-level simulations are much more resource-intensive than constituent-level ones and escalate rapidly as the system size grows [53–55]. In addition, after optimization the underlying interactions remain implicit in repeated system-level simulations rather than being learned as a reusable constitutive prior that could accelerate subsequent design or help address associated scientific queries.
With the surge of scientific machine learning (SciML) [56–58], there has been growing interest in interaction engineering from deduction to induction: from predicting responses under a prescribed nonlocal interaction law to learning a reusable interaction law itself from data. When interactions' form, range, and strength vary with geometry and operating conditions of the system, machine learning with relational learning capabilities provides a compelling route. Early work in photonics reported the use of surrogates that compensate for locality-based effective properties through convolutional neural networks (CNN) [28], while subsequent work further explored metasurfaces with geometrically aperiodic and random constituents in large domains [59–61]. However, conventional CNNs retain a strong locality bias, so their vanilla implementations do not explicitly represent the distributed interactions dictating strongly nonlocal systems. Graph and attention models provide more explicit relational representations of constituent interactions [62–64], while broader SciML approaches introduce physics through partial differential equation (PDE) residuals, reduced-order models, or operator learning [54, 65–67]. Despite these advances, principled approaches that tie learned distributed nonlocal interactions to physical theory remain elusive, limiting their use for scientific interrogation and scalable nonlocal multiscale design. These challenges become particularly acute at large system sizes that commercialization of these multiscale systems demand [14, 37, 68–71], where both the number of constituents and the physical range of their interactions are of practical concern.
In multiscale systems formed by heterogeneous constituents, interactions are generally configuration-dependent. For wave propagation systems governed by linear field equations, this dependence is structured: changing the configuration changes the response operator, whereas at a fixed configuration the operator acts linearly on the incident field. For the learning problem considered here, an ideal framework would therefore respect this intrinsic structure. Within operator learning [57, 58, 72], neural Green's operators enforce this linearity by mapping the coefficient field to a Green's operator that acts linearly on the source [73]. Their formulation is expressed at the field/operator level rather than explicitly through interactions among discrete constituents. In related work, nonlocal attention operators interpret attention as a data-dependent interaction kernel for learning operators from observed input–output pairs [74]. Together, these developments motivate a formulation tailored to large-scale heterogeneous multiscale systems, in which configuration-dependent interactions are represented explicitly among constituents while spatially resolved prediction is retained beyond the training-domain size to enable small-to-large domain transfer.
In this work, we propose the domain-decomposition attention neural operator (DANO) to learn this family of configuration-dependent response operators (Fig. 1b). Motivated by self-consistent multiple-scattering theory, a geometry path contextualizes the constituent geometries and determines the coefficients of a separate field path. The field path is complex-linear in the drive (i.e., the externally applied excitation) by construction, while the dependence of its coefficients on the configuration is learned from numerical solutions of the governing equations. DANO reuses the same model across overlapping windows with surrounding context and assembles their predictions into a full-domain field. Through a case study in large-scale heterogeneous (geometrically aperiodic) optical metasurfaces with varying incidence angles, we evaluate prediction on unseen configurations of constituents and its transfer across drive conditions, spatial discretization and system domain size. Upon the statistical validations, we then probe the learned operator through changes in the drive and constituent geometry, revealing signatures of propagation and configuration-dependent interaction range as physics-based interrogation. Using the same model, we also report the inverse design results of an angle-multiplexed hologram generated by a metasurface over an order of magnitude larger than the training domain, demonstrating small-to-large domain transfer.

Fig. 1 Nonlocal constituent interactions and windowed prediction of a heterogeneous metasurface. Schematics and fields are illustrative. a, Nonlocal interactions among distributed constituents in polymer-like networks, active particle assemblies, disordered wave media and optical metasurfaces. In each panel, the interaction of one constituent (black) with the others extends beyond its nearest neighbors (blue, darker for a stronger interaction). Dotted circles mark an interaction range, drawn with the same radius in every panel. Arrows give the propulsion directions of the active particles. b, Windowed prediction of the response field across a large metasurface using the domain-decomposition attention neural operator (DANO). Tan squares mark context windows, each containing an interior prediction core (red). The same DANO uses the geometry and drive within each window to predict the response field on its core. Partition-of-unity (PoU) assembly combines the core predictions into a field over the full array.
2 Results
2.1 Nonlocal interactions among discrete constituents
Consider a system of spatially distributed constituents whose field solution satisfies a local linear partial differential equation (PDE), . Here denotes the linear operator containing derivatives, the coefficient represents the constituent configuration—such as a set of material and structural parameters—and is an external drive. Because contains spatial derivatives, a field produced by one constituent propagates beyond it and can change the field exciting another constituent and, consequently, its induced response. We refer to this cross-constituent influence as an interaction. Both these interactions and field propagation contribute to nonlocal responses that extend across space. We use nonlocality to describe the spatial range of a specified response arising from the solution of the local PDE; this differs from a nonlocal governing equation in which spatial coupling is prescribed directly in the form of . The problem is to determine how such responses depend on the configuration and the applied drive.
We examine the system through two controlled changes: varying the drive while holding the configuration fixed, and conversely varying the configuration at fixed drive. They define
The first is the source-to-solution Green's kernel: it describes how a configured system responds to a change in its drive. The second is the field sensitivity to a local coefficient change under a specified drive: it describes how changing a constituent affects the solution in its surrounding configuration. A coefficient change perturbs by and enters as an equivalent source , so its effect propagates through the same configuration-dependent Green operator . These two directions let us examine how the system responds both to external driving and to changes in its constituents.
Choose a background coefficient , and denote the constituent-induced change by . The solution can then be expressed in the form of multiple scattering:
where is the background solution, , and is supported where the constituents change the background operator. The term gives the first-order contribution in , while the inverse accounts for repeated interactions with the constituents [38–40]. Thus, the constituent-induced response is linear in at fixed configuration and generally nonlinear in , as examined for nonlinear expressivity in linear-optics computing [75]. We learn this family of configuration-dependent response operators from full-system solutions, then use it for field prediction and for the two response measurements defined above. In the next section, we specialize the problem to electromagnetic scattering from heterogeneous metasurfaces.
2.2 Nonlocal interactions in heterogeneous metasurfaces
We instantiate the preceding nonlocal interaction formalism in linear electromagnetic scattering, where the constituent configuration (the spatial arrangement and geometry of constituents) determines a scattering operator and the incident field provides the drive on which it acts. This separation provides a controlled setting in which geometric variation samples a family of configuration-dependent operators, while illumination variation spans the space of incident fields used to interrogate their responses. We consider a finite array of silicon nitride (SiN) pillars with rectangular cross-sections on a silica substrate, illuminated at a wavelength of 532 nm (Fig. 1b). The simple rectangular geometry keeps the constituent-level response interpretable. To support generalization to unseen configurations, we systematically design the arrays so that the training data contain many distinct interaction environments. At each lattice site, the pillar cross-section is independently and uniformly selected from a prescribed library (Methods, ‘Physical system and learning target’), and the site is left vacant with probability 0.2. Size disorder and vacancies thus let the dataset sample a broad family of configuration-dependent operators. We refer to one realized array as a layout, denoted . In Maxwell’s equations, the layout enters through the permittivity contrast , where is the permittivity of the bare substrate, the planar air–silica background without pillars. This contrast plays the role of . The background field , the same illumination on the bare substrate, serves as the drive. The scattered field is the constituent-induced response.
The collective response of these arrays is not determined by responses assigned to each constituent independently of its surroundings. For each layout, a finite-difference time-domain (FDTD) simulation provides the reference solution, which we treat as the ground truth throughout this work. The learning target is the scattered field recorded on a 350-nm plane above the tops of the pillars, defined relative to the same illumination on the bare substrate (Extended Data Fig. 1). A local phase approximation, an instantiation of separation of scale that assigns each pillar the response of its corresponding periodic unit cell, fails to reproduce the ground-truth response: on a fully populated random array, the predicted phase differs from the ground-truth phase by 1.45 rad root-mean-square (Extended Data Fig. 2). The same approximation has also been reported to fail in high-numerical-aperture metalenses, in which adjacent constituents (meta-atoms) vary rapidly [13, 30]. Identical pillar cross-sections appearing at different sites exhibit different responses depending on their surroundings. The collective field therefore depends on the distributed configuration rather than on transferable constituent responses alone.
Geometry and illumination play distinct roles in the dataset: geometric variation samples configuration-dependent operators, whereas illumination variation probes the incident-field space on which they act. We construct a plane-wave corpus of 426 arrays across 33 incidence directions and a structured-illumination corpus of 3,600 arrays driven by 300 band-limited random-phase speckle fields (Methods, 'Illumination corpora and data partitions'). The structured illumination is introduced to span a broader subspace of the incident-field space rather than simply to increase the number of samples. Because scattering is linear in the incident field, the dimension of this subspace is determined by the number of independent illumination directions represented in the corpus. Window-level analysis shows that speckle illumination spans this subspace far more efficiently than plane waves (Extended Data Fig. 1e).
2.3 A physics-structured neural operator for nonlocal interactions
DANO (domain-decomposition attention neural operator) is built around the self-consistent interactions of linear field-mediated systems. The response can be expressed in Lippmann–Schwinger form [40], as in Eq. (2). For spatially localized constituents, grouping the induced responses at the constituent level yields a Foldy–Lax-type relation [38, 39]: each constituent responds to a field shaped by the responses of its surroundings (Fig. 2a). For the metasurface considered here, this relation takes the form
where collects the transition operators of individual constituents, propagates responses between constituents, and maps them to the observation plane. The inverse accounts for repeated interactions. The whole-array scattering operator is the metasurface form of in Eq. (2), restricted to the observation plane: it maps the background field to the constituent-induced field. It depends nonlinearly on the layout , while its action on is linear.
DANO follows this multiple-scattering structure with separate geometry and field paths (Fig. 2b). In the geometry path, each occupied or vacant site is initially encoded from its local constituent geometry. Discrete–continuous (DISCO) convolutions construct these local descriptors using kernels defined in physical coordinates, allowing evaluation on different spatial meshes (Extended Data Fig. 3a; Methods, 'Geometry representation'). Self-attention then incorporates the surrounding configuration into the site representations. The geometry path does not receive the drive, so it determines the learned interaction operator independently of the drive.
a Physics level
Drive
Multiple scattering
Propagation to nearfield
Scattered field (Solution)

b DANO architecture
Window: Permittivity crop
Geometry path
DISCO encoder
Geometry self-attention layer
Geometry embeddings
: non-linear
: C-linear
Field path
C-linear lift
Window: Background field
Interaction layer
Local response
Configuration-conditioned gain
Gated channel mix
Transport G
Channel map
Phase rotor
Transport attention
Decoder
Query positions
Position embedding
RoPE
Query-token kernel
Kernel sum
Linear head
Predicted scattered field at
Geometry embedding
Token states
Fig. 2 Field-mediated interactions among constituents and their representation in DANO. Box colors connect the physical operations in a with their learned counterparts in b: light blue, the drive and propagation between constituents; red, constituent response and its configuration-conditioned representation; orange, mapping to observation points; green, the scattered field. a, In electromagnetic scattering, the background field and fields propagated from other constituents form the exciting field . Each constituent responds through , and maps those responses to the scattered field . b, For one prediction window, the geometry path encodes the constituent configuration independently of the drive. The field path repeatedly transports states between constituents, reinjects the drive and applies a configuration-conditioned response. A kernel-sum decoder maps the resulting states to the scattered field at observation points. Red arrows indicate operations that are complex-linear in the field. and , numbers of stacked layers.
As an analog of the repeated interactions encoded by the inverse in Eq. (3), which corresponds to multiple orders of scattering in its Born series, the field path uses an unrolled recurrence. Each update transports field states between constituents, reinjects the drive and applies configuration-conditioned local responses (Methods, 'Linear field path'). A kernel-sum decoder maps the resulting states to the scattered field at query positions on the observation plane (Methods, 'Decoder and full-field assembly'). All operations acting on the field are complex-linear, with coefficients determined by the geometry path; DANO is therefore exactly complex-linear in the drive by construction.
To extend predictions to large arrays, DANO applies the learned interaction operator to spatial windows with a surrounding context halo (Fig. 1b). Each window predicts the field on an interior core; the halo supplies surrounding geometry and field context without prescribing a hard physical interaction range (Methods, 'Windows and context halo'). The chosen halo width follows the validation study in Extended Data Fig. 4c. Overlapping core predictions are combined by linear partition-of-unity assembly, allowing independently evaluated windows to form a full-domain field (Methods, 'Decoder and full-field assembly'). The following section tests prediction accuracy when this operator is applied to new illuminations, meshes, layouts and array sizes.
2.4 Predictive accuracy and transfer
We evaluated field prediction on a separately generated test set of random layouts, followed by transfer tests involving a new illumination family, finer spatial meshes, a structured layout and larger arrays. For each case, we calculated the normalized mean squared error (NMSE) of the scattered field against the ground truth using both transverse field components. The random-layout test set comprised 213 plane-wave and 600 speckle cases with layouts absent from training and validation (Methods, 'Evaluation protocol'). For each training-corpus setting, the neural Green's operator (NGO), MIONet, the Fourier neural operator (FNO) and U-Net were trained on the same window draws and evaluated on the same test cases as DANO (Methods, 'Benchmarking'). All subsequent transfer tests used the DANO model trained on both illumination corpora without retraining.
On the held-out random layouts, DANO reproduced the ground-truth fields across the tested incidence angles (Fig. 3a). The model trained on both corpora achieved mean NMSEs of 0.0200 for plane waves and 0.1269 for speckle, compared with 0.068 and 0.25, respectively, for the best-performing baseline, U-Net (Fig. 3e). Across five training seeds, the corresponding errors were 0.0201 0.0003 and 0.1295 0.0023 for DANO and 0.0666 0.0007 and 0.2463 0.0010 for U-Net (mean s.d.). A variant that keeps the transport step but restricts it to each constituent's own state had test errors about 2.1 times higher for both illuminations. A fully local variant, in which each constituent responds independently of its neighbors, had errors 11 and 3.5 times higher for plane waves and speckle.
A DANO model trained only on plane waves reached 0.021 on the plane-wave test, close to the 0.0200 obtained after training on both corpora (Fig. 3e). Compared with the discrete plane-wave training directions, speckle fields combine angular components in many ways and span a larger window-level illumination space (Extended Data Fig. 1c,e). At fixed layout, both the scattering response and DANO are complex-linear in the drive (Methods, 'Physical system and learning target' and 'Linear field path'). Speckle training therefore probes the configuration-dependent response under a richer set of drives, consistent with the preserved plane-wave accuracy.
The speckle error nevertheless remains about six times the plane-wave error. Angular components that propagate in the silica substrate but not in air account for 74% of this error (Extended Data

b
c
d
e
Fig. 3 Full-field prediction accuracy across configurations and domain sizes. a, In-distribution prediction on held-out random layouts under plane-wave illumination at , and (rows). Columns show the layout (black, SiN pillars), the ground truth from finite-difference time-domain simulation, the domain-decomposition attention neural operator (DANO) prediction and their error (DANO minus ground truth) for , normalized by the root-mean-square incident-field amplitude. b, Structured-layout transfer to a hyperbolic metalens with a 10- m focal length, from a layout family absent from training. Rows show the same incidence angles, and columns follow a. c, Domain-size transfer from the -site training size to and sites at normal incidence, using one independently drawn layout at each size. The blue frame marks the training-array size; blue squares connected by dotted guides mark its 9.9- m width for scale. d, Normalized mean squared error (NMSE) of the assembled field against the ground truth for one layout at each array size. e, Mean test NMSE of DANO and the neural Green's operator (NGO), multiple-input operator network (MIONet), Fourier neural operator (FNO) and U-Net baselines, all trained on the same windows. Group labels give training corpus test illumination, with pw for plane waves and spk for speckle. Each bar is one training run evaluated on 213 plane-wave or 600 speckle test cases.
Fig. 5a,b,d; Methods, ‘Source-band decomposition’). Without these components, the mean NMSE is 0.040, close to the 0.039 obtained for plane waves at (Extended Data Fig. 5c).
Gaussian-beam illumination, another family of drives unseen during training, tests this drive-space transfer. A Gaussian beam is a coherent superposition of plane waves, and DANO's prediction obeys the same superposition rule because its drive linearity is built into the architecture rather than imposed through training (Methods, 'Mesh transfer and linearity tests'). The dominant angular components of these beams lie within the range represented by the speckle training fields (Extended Data Figs. 1c and 6b). On one held-out layout, DANO reproduced the ground-truth field patterns for four normally incident beams with waists from 0.5 to 2 µm and had lower prediction error than each baseline at every waist (Extended Data Fig. 6a,c). This result supports transfer to new combinations of angular components within the sampled spectral range.
We also examined whether the learned model transfers across spatial discretizations. Without retraining, DANO reproduced the main ground-truth field patterns on 12.5-nm and 9.375-nm meshes, finer than the 20-nm training mesh (Extended Data Fig. 3b). The learned kernels were evaluated on the new grids while their parameters and physical window dimensions remained fixed (Methods, 'Mesh transfer and linearity tests'). Across 50 layouts, mean NMSE increased from approximately 0.01 on the training mesh to approximately 0.03 on the finest mesh (Extended Data Fig. 3d). The model thus transferred to the finer meshes, with a measurable loss of accuracy.
In addition to validation on random layouts, we tested the DANO model on a deliberately structured array absent from training to assess transfer beyond the random-layout distribution. For this purpose, we considered a 33×33 hyperbolic metalens [76] designed with the local phase approximation (Fig. 3b). At incidence angles of 0°, 20° and 40°, DANO reproduced the main spatial features of the ground-truth scattered fields. This one-device comparison supports compositional generalization at the array level within the training domain size.
As another transfer test, we examined the fully ordered limit of a structured layout: a uniform array, which repeats one pillar cross-section on every site and is absent from training. We evaluated eight such 33×33 arrays under normally incident plane waves (Extended Data Fig. 7a). The NMSE ranged from 0.038 to 0.99, compared with a test mean of 0.0096 at normal incidence on random layouts (Extended Data Fig. 7b). One complex factor per array, fitted to the ground truth, removed 81–99% of the squared error and left NMSEs of 0.005–0.047, below 0.0096 for five of the eight arrays. In the ordered limit, DANO thus retained the overall spatial field pattern, and its error was dominated by a global amplitude and phase mismatch.
We finally examined whether the same DANO model transfers beyond the 33×33 training domain. Partition-of-unity assembly joins predictions from overlapping windows (Methods, 'Decoder and full-field assembly'); on a training-sized array, the assembled field follows the ground truth across the overlap between neighboring windows (Extended Data Fig. 4d–f). DANO also reproduced the field structure of larger arrays shown in Fig. 3c. For one layout at each size, assembled-field NMSE rose from approximately 0.008 at 33×33 sites to approximately 0.02 at 128×128 sites, then remained below 0.03 through 768×768 sites (Fig. 3d). These comparisons establish size transfer over the tested layouts, while showing that accuracy is not independent of array size.
2.5 Physics-based interrogation of learned nonlocal interactions
Having established predictive accuracy, we next examine how DANO represents interactions among constituents and propagation through the background. The two response directions in Eq. (1), the drive response at fixed configuration and the configuration response at fixed drive, organize this analysis. We probe their counterparts in the learned scattering operator , the trained approximation of in Eq. (3), using localized diagnostic drives and finite changes in single constituents (Fig. 4; Methods, 'Physics-based interrogation of the learned operator').
To test whether the learned drive response propagates like physical radiation, we apply a drive concentrated around one site. DANO's exact drive linearity allows its fixed-layout window operator to be extracted and probed directly. Across 71 validation windows, the response shares the four-lobed angular pattern and follows the radial decay of a multipole model of pillar radiation (Fig. 4a,b; Methods,

b
C
d
e
f
Fig. 4 Physics-based interrogation of the learned response operator. Panels a–c vary the drive at fixed layout. Panels d–f change both side lengths of one pillar by nm at fixed drive. Distances in a, b and d–f are in units of the constituent spacing nm. a, Angular contrast of the cross-polarized response to a localized diagnostic drive, defined as response magnitude divided by its angular mean at each radius. Left, DANO; right, a multipole model of pillar radiation. Maps are means over 71 validation windows. b, Radial decay of the copolarized response to the same drive. Blue circles and black line show the DANO and multipole-model medians across the same 71 windows, respectively. c, Commutation residual of the learned drive-to-field operator with the phase-ramp operator , which multiplies a field by . The free-space wavenumber is . Shading, beyond the plane-wave training coverage. d, Pillar footprints (top) and configuration-response magnitudes (bottom, common logarithmic scale) for disordered, uniform and metalens layouts at normal incidence. Responses are averaged over 361, 361 and 233 perturbed sites, respectively. Crosses mark perturbed sites; small circles, lattice sites; dashed circles, the 10% radii in e. e, Radial profiles of d, normalized at the perturbed site, with an isolated pillar on the bare substrate as a reference. Dashed line, 10%. f, Truncation error , the relative norm of the response omitted beyond radius . Black dashed curve, drive response. Gray dashed lines, 30% and 10%.
‘Localized drive probes and radiation reference’). The learned drive response is therefore consistent with propagation through the background, which mediates interactions between constituents.
We next ask whether the learned drive response, the counterpart of in Eq. (1), is pointwise, that is, whether the output at each position depends only on the drive at the same position. We multiply the drive by a phase that varies linearly across the array, . A pointwise response would return the original output multiplied by the same phase:
For one fixed window, the commutation residual, the relative mismatch between the two sides, reaches 38% at the smallest tested phase gradient and grows with the gradient (Fig. 4c; Methods, 'Phase-ramp commutation test'). The learned response is therefore exactly linear in the drive yet nonlocal: the output at one position depends on the drive at other positions.
Changing one constituent at fixed drive probes the configuration response : how far it extends and how this extent depends on the surrounding layout. We change both side lengths of one pillar by nm while holding the drive and background fixed. The unchanged background field makes the scattered-field difference a finite-change counterpart of (Methods, Eq. (14)). We denote by the mean response magnitude at distance from the changed pillar. The uniform layout produces a more persistent concentric response: falls below 10% after roughly seven constituent spacings, compared with four to five in the disordered and metalens layouts (Fig. 4d,e). Beyond this distance, the uniform profile stays near 10% up to ten spacings. Although the metalens is statistically inhomogeneous and the disordered layout is statistically homogeneous, their responses have a similar extent, consistent with the accurate metalens transfer (Fig. 3b). The radial profiles in Fig. 4e give the response at each distance, but not how much of the total response lies beyond a given radius.
At a chosen tolerance for neglected response, the learned configuration response has a finite effective range within the sampled region. The truncation error , the relative norm of the response omitted beyond radius , falls below 30% after retaining 4 to 4.5 constituent spacings and below 10% after 7.5 to 8.5 in the disordered and metalens layouts (Fig. 4f; Methods, Eq. (15)). The 10% radii exceed the distances at which the radial profiles in Fig. 4e fall below 10% because weak outer responses accumulate, and the uniform layout requires the largest radius, beyond the sampled ten spacings. The approximately 3-µm measurement motivates finite-context prediction without setting a global cutoff. The halo-width and size-transfer tests assess whether DANO predicts accurately with finite windows (Extended Data Fig. 4c; Fig. 3d). This windowed evaluation is used for the large-array geometric inverse design that follows.
2.6 Large-scale inverse design and scaling of full-field evaluation
2.6.1 Two-drive design: angle-multiplexed hologram
We used DANO to design one fixed configuration that produces different target images for two drives: a -site layout that forms the POSTECH seal at normal incidence () and the Northwestern logo at (Fig. 5a; Methods, 'Design task and parameterization'). Both images appear in the same output region, measured relative to the illumination direction, so the switch must come from how the array's response changes with angle. In a heterogeneous array, this angle dependence is shaped by each pillar's actual neighbors. DANO represents these neighbors, whereas a local model assumes that each pillar is surrounded by identical copies of itself. For the completed design, the ground-truth solver gave normalized cross-correlations of 0.65 and 0.71 with the intended images, compared with 0.04 and 0.08 with the other target at the respective angles. The optimized layout therefore preserves image separation.
A design based on an angle-resolved local model (Methods, 'The inverse design problem') loses that separation when its optimized layout is evaluated by the ground-truth solver. At , the local model predicted a correlation of 0.94 with the intended Northwestern logo and 0.04 with the other target, the POSTECH seal; the solver instead gave 0.35 with the logo and 0.63 with the seal (Fig. 5a). The unintended image is therefore more prominent than the intended one.

b

Fig. 5 Large-scale inverse design and scaling of full-field evaluation. a, Far-field intensity from two -site layouts (153.6 µm) designed to display the POSTECH seal at and the Northwestern logo at (rows). The displayed region follows the zero order at each angle. Columns show the target, the local design evaluated by the local model and by the ground-truth solver (finite-difference time-domain simulation), and the domain-decomposition attention neural operator (DANO) design evaluated by DANO and the ground-truth solver. The local model assigns each site the angle-dependent transmission of a periodic unit cell. Each column is normalized independently. b, Time per evaluation versus the number of meta-atoms. Open stars show DANO times on larger arrays not simulated with the ground-truth solver. Ground-truth solver and DANO times were measured on a 64-thread node and one GPU, respectively. Dark filled circles and open squares mark full-wave solvers and learned surrogates in the literature, and open triangles mark the sizes of fabricated devices, with reference numbers beside them. Dashed lines connect the times from this work, and dotted lines extrapolate power-law fits to them. The gray band spans the interval between the largest array with whole-array ground truth and the smallest fabricated device. The top axis gives the side length of a square array at a 300-nm pitch. Insets show the hologram in a and two fabricated devices: a 300-mm wafer-scale metalens array with a scanning electron micrograph of its nanostructures (ref. 69; scale bar, 1 µm) and an astronomical imager built around a 100-mm metalens (ref. 37). Insets in b reproduced from refs. 69 and 37, with permission from Springer Nature and under a CC BY 4.0 license, respectively.
To compare the two forward models directly, we used DANO to evaluate the unchanged local-design layout. DANO predicted intended-image correlations of 0.64 and 0.37 at the two angles, close to the ground-truth values of 0.65 and 0.35. At 20°, it also predicted a correlation of 0.64 with the seal, against 0.63 from the ground-truth solver. On the same layout, DANO therefore anticipates the loss of image separation that the local model misses.
2.6.2 Evaluation time and fabricated device sizes
Windowed inference makes full-field evaluations tractable on large arrays. For the largest array used for direct field comparisons (768 × 768 sites), DANO evaluated the full field in about one minute on a single GPU, whereas the FDTD ground-truth solver took about 17 h on a 64-thread node (Fig. 5b). DANO's assembled-field NMSE against the ground truth remained below 0.03 for this layout (Fig. 3d). On the hardware used here, this nearly three-order difference in evaluation time makes repeated field predictions practical for the 512 × 512-site angle-multiplexed hologram inverse design. Even with the one-time cost of generating the training data and training DANO, this design takes 25 times less time with DANO than an estimated FDTD-based design.
Full-wave ground-truth solvers in the surveyed studies treat considerably smaller coupled arrays than the fabricated metasurfaces shown in Fig. 5b. Several of the device studies themselves reported that whole-device full-wave simulation was infeasible and instead simulated a reduced lens or applied the local phase approximation [14, 34, 37, 55]. By reusing one learned operator across independently evaluated windows, DANO extends measured single-GPU full-field inference beyond meta-atoms, approaching the lower end of those fabricated-device sizes. These measurements narrow the computational gap between whole-array field evaluation and fabricated-device scale, while the hologram verified with the ground-truth solver establishes its use in inverse design at a validated scale.
3 Discussion
Inspired by an attention-based neural operator [74], DANO constructs its learned operator around a nonlocal physical formulation, making distributed constituent interactions an explicit learnable object. It draws complementary elements from major SciML paradigms: operator learning [57, 58, 72] provides reusable mappings across physical configurations, while graph and attention models [62] motivate explicit relational learning among constituents. Unlike PDE-residual-based approaches [54], the present one-loss training uses only a regression loss, with physics entering primarily through the architecture itself. The learned interaction allows physics-based interrogation as another validation mode, while using it to mediate full-field predictions validated from the perspective of statistical machine learning.
Conceived as an AI-for-Science tool, DANO turns the learned interaction representation into an object of scientific inquiry, rather than treating it only as an internal mechanism for prediction. Established theory on interactions can then provide representation-level validation beyond predictive accuracy. Where the effective interaction law is unknown or analytically inaccessible, the same representation could serve as a hypothesis-generating object for interaction or constitutive discovery, with resulting hypotheses subsequently examined through further analytical development or physical experiments.
DANO distills distributed interactions directly from local geometry fields without requiring a prescribed constituent parameterization or discrete interaction topology. Although the present case study uses simple rectangular constituents, the framework does not rely on this representation. This field-native construction complements graph-based approaches that explicitly prescribe entities (nodes) and connectivity (edges) for relational modeling [62]. In DANO, constituent representations are instead contextualized through geometry self-attention, while configuration-conditioned field-transport attention learns how field information is exchanged among them. The same formulation can extend from geometry fields of discrete constituents toward, in principle, irregular or continuous media with continuously varying material fields, although physical interpretation requires additional care.
Reusable interaction learning distilled through DANO could help narrow the growing gap between large-scale fabrication and interaction-aware modeling and design. This becomes particularly important under nonlocality, where increasing system size requires interactions among multiple constituents to be resolved jointly rather than simply replicating independent local responses. By reusing interactions learned on smaller domains, DANO enables full-field prediction and inverse design beyond the training scale, as demonstrated by the domain-size transfer in Fig. 3 and the angle-multiplexed hologram in Fig. 5. Fig. 5b further places this capability against the design-fabrication gap, where fabricated metasurfaces have reached scales beyond those routinely accessible to system-level modeling [53, 77]. Although the present implementation was not optimized for wall-clock performance, further acceleration is viable through approximate attention such as Performer [78], while preserving full-field prediction through domain decomposition rather than collapsing the response to task-specific outputs.
Learning nonlocal interactions through DANO requires full-field training data and therefore generally involves greater computational resources than approaches built on separation of scale, but this cost can be amortized through reuse across larger domains and repeated design queries. We claim that the cost of training simulations should be weighed against the lifecycle cost of repeatedly resolving the coupled physics, not against a single forward solve. Full-field learning further increases the information obtained from each high-fidelity simulation: because the solver already resolves the underlying high-dimensional state field, learning directly from that field preserves substantially more information than compressing it to a few task-specific quantities of interest (QoIs), while enabling reuse across multiple observables and design objectives. We deliberately retain this field-to-field formulation even at large scale, because collapsing the response to low-dimensional QoIs would discard the spatial information through which nonlocal interactions manifest. Instead, domain decomposition addresses the scaling burden while preserving the full-field representation needed for both prediction and interaction-level physics-based interrogation. In the presented results, we address scalability by decomposing the field problem, without sacrificing the information that we feed into the model.
The present DANO formulation relies on PDE linearity to guarantee its geometry-field factorization and exact source-linear structure. The results provide strong evidence that this linear structure is indeed absorbed by the model through architectural design alone (Fig. 5a and Extended Data Fig. 6), without additional physics-based regularization during training. For the systems governed by nonlinear PDEs, such as mechanical metamaterials characterized by nonlinear properties [18, 19, 79], this factorization and source linearity generally no longer hold and the field path would require modification without overhauling. Such problems may also exhibit stronger dependence on global position, boundaries, contact, or loading history, motivating explicit conditioning on global coordinates and boundary information in addition to the local contextual field. Extending DANO beyond linear PDEs therefore would require relaxing its exact linear structure while retaining the broader principle of learning configuration-dependent distributed interactions.
DANO can also serve as an empirical probe of effective interaction range, beyond its basic role as a full-field predictor. In many nonlocal formulations, including Green's-function-based descriptions, the underlying kernel may have formally global support, yet this differs from the effective range over which distant geometry measurably changes the response. In this regard, Fig. 3 can be interpreted as a diagnostic of context-halo sufficiency: if the dominant effective interaction range were enclosed by the prescribed halo, prediction error should approach a plateau as the surrounding domain is enlarged. Continued variation instead suggests that geometry outside the current halo still contributes to the target response. Unlike formulations that prescribe a nonlocal horizon a priori, the learned operator provides an empirical means to estimate how much context is required for a desired accuracy.
Beyond forward prediction and inverse design, DANO may help elucidate how constituent responses develop into collective nonlocal phenomena. Nonlocality is often studied through parameter sweeps in simplified, periodic settings [8]; for example, it is known that strong interactions among optical constituents can transform local resonances into collective high-Q resonances [80]. Complementing mode-level and reciprocal-space analyses, DANO learns a constituent-level interaction representation from field data. Under a linear governing PDE and appropriate geometry-field factorization, this operator could be interrogated across physical parameters without prescribing how nonlocality manifests. Future work could thus move beyond the rediscovery shown in this work toward elucidating the onset of delocalized modes, roton-like dispersion, or unconventional topological states [7, 8, 81, 82].
DANO could help close the sim-to-real gap in multiscale modeling and design [83] by representing constituent-specific fabrication uncertainty and its system-level propagation. In real-world fabrication, geometric imperfections often turn nominally periodic designs into heterogeneous realizations under aleatoric uncertainty [84–86], especially critical for metamaterials whose functionality derives primarily from geometry rather than material composition [12]. Under separation of scale, computational robust design has often treated constituent perturbations with periodic boundary conditions, using a prescribed [87] or learned [88] uncertainty representation. Under nonlocality, imperfections affect distributed interactions and collective response across constituents. By retaining constituent-specific geometry and physical context, DANO could capture realization-specific imperfections beyond nominal parameterizations, supporting system-level robust design. Our case study provides a simplified analog: nominally square-shaped constituents vary in their two side lengths across the array, while vacancies represent missing-constituent defects.
A remaining limitation is the computational overhead associated with very large effective interaction ranges. If the context required for accurate prediction grows with the physical domain, the number of constituent tokens can become large, particularly for full-field prediction in aperiodic systems. The present study prioritizes the network architecture design principle rather than runtime optimization, but several directions could reduce this burden, including approximate attention, adaptive or error-controlled context truncation, multi-resolution tokenization, and hierarchical operator evaluation. These strategies would become especially useful when interactions decay slowly or when the effective interaction range approaches the full system size.
4 Methods
We describe the physical system and full-wave data generation in the presented case study, the DANO formulation, the training and evaluation procedures, and the inverse-design and full-wave verification protocols.
4.1 Physical system and dataset generation
Physical system and learning target. We considered electromagnetic scattering from finite, aperiodic arrays of rectangular silicon nitride (SiN) pillars patterned on a silica substrate. Each array comprised lattice sites with a pitch of 300 nm, spanning . The pillars were 600 nm tall. Their cross-sections were drawn from a library of side-length pairs () from 50 to 250 nm at 5-nm increments, and each pillar was sampled independently and uniformly from this library. Each site was occupied independently with probability 0.8, so that both pillar-size disorder and vacancies contributed to the geometric heterogeneity. The pillars stood on a silica substrate with refractive index , with air above and between them. The pillar refractive index was at 532 nm, with no absorption. The simulated stack and the conversion from full-wave simulations to local training windows are summarized in Extended Data Fig. 1a,d.
All calculations were performed at the free-space wavelength nm using the convention. Positions are , with and along the lattice axes in the array plane and normal to the substrate, pointing into air. The electric field obeys
where separates the planar air-substrate background from the contrast introduced by a layout . For each source, we decomposed the total field as , where is the field produced by the same source in the bare layered stack and is the constituent-induced scattered field. At fixed layout, scattering is complex-linear in the background field, and we write
The operator depends nonlinearly on the layout but linearly on the illumination. This geometry-field separation defines the learning task used throughout the study.
Full-wave ground-truth simulations. Ground-truth fields were generated by three-dimensional finite-difference time-domain (FDTD) simulations in Ansys Lumerical FDTD 2024 R2, using a 20-nm mesh in the array plane and perfectly matched layer (PML) boundaries. Plane-wave illumination from the substrate was implemented with a total-field/scattered-field (TFSF) source to suppress finite-source edge diffraction at oblique incidence. The simulation geometry is shown in Extended Data Fig. 1a. On an observation plane 350nm above the pillar tops, we recorded the total field and the bare-stack background field on the same grid. From these we extracted the in-plane components and of the scattered field , whose real and imaginary parts formed the four learning targets. The normal component was not extracted because, in the homogeneous air above the pillars, it follows from and through . Source-only FDTD fields supplied . For arrays without such a simulation, was written in closed form.
Illumination corpora and data partitions. We generated 426 plane-wave cases across 33 substrate-side incidence conditions: normal incidence and polar angles of , , and , each at eight azimuths. The in-plane incident polarization was aligned with the sample axis. Each case pairs one layout with one illumination. A second corpus comprised 3,600 structured-illumination cases, obtained by pairing each of 300 band-limited speckle realizations with 12 independently sampled layouts. The speckle fields were synthesized from random - and -polarized angular-spectrum components within the substrate propagation cone (Extended Data Fig. 1b,c).
The plane-wave cases were divided into 355 training and 71 validation cases, and the speckle cases into 3,000 training and 600 validation cases. Layouts were disjoint between training and validation, whereas the incidence conditions and speckle realizations were represented in both. Validation data guided model selection. In-distribution accuracy was measured on the separate test set described under 'Evaluation protocol'. The test and transfer cases were not used for model development.
4.2 DANO formulation and architecture
Windowed scattering operator. In multiple-scattering form, the configuration-dependent response can be written as
where collects constituent transition operators, propagates responses between distinct sites through the layered background and maps constituent responses to the observation plane. This factorization motivates, but is not imposed exactly on, the learned architecture.
DANO approximates through local window operators that share one set of learned parameters. Let denote the subregion of the array covered by a prediction core and its context halo, and let apply the core's partition-of-unity weight and extend its prediction by zero to the full array. The assembled operator is
where denotes the learned parameters. The finite input window bounds the spatial context used to predict the field on each core, while the window operator models nonlocal interaction among the constituents within that context.
Windows and context halo. Each window contained a prediction core of about constituent spacings ( grid points, ) surrounded by a context halo of 7 spacings (2.1 m) on each side. The geometry encoder received a permittivity crop of grid points comprising the prediction core, the context halo and an additional 160-nm margin on each side. Extended Data Fig. 4a,b illustrates the prediction core, context halo, geometry crop and independent window predictions. Each occupied or vacant lattice site in the window was represented by a token at its site center, with both types processed by the same geometry and drive encoders. The halo width was selected by retraining models with widths from 1 to about 13 spacings (0.3 to 4 m) under otherwise fixed settings (Extended Data Fig. 4c).
Geometry representation. The geometry input was a permittivity map on the 20-nm grid in which each cell holds its SiN area fraction: zero in air, one inside a pillar and fractional in cells cut by a pillar boundary. Three discrete-continuous (DISCO) convolutions [89] mapped each crop to a spatial feature map. Their kernels were parameterized continuously in physical coordinates on a 60-nm-radius support, allowing the learned coefficients to be resampled at different mesh spacings (Extended Data Fig. 3a). The feature map was sampled bilinearly at lattice-site centers and projected to 128 dimensions.
The geometry path comprised eight self-attention layers of width 128, each with four heads and a residual multilayer perceptron [90]. Two-dimensional rotary embeddings with learned frequencies encoded token positions [91]. The attention and multilayer-perceptron residual branches used zero-initialized ReZero gains [92]. The geometry path received no illumination field. Linear heads on its per-token embeddings generated the transport attention patterns, complex local gains and decoder projections used by the field path.
Linear field path. The field path (Fig. 2b) applies the configuration-conditioned operator to the drive. At each token, the drive comprised the background field and its first- and second-order transverse derivatives,
Applied to all three Cartesian field components, this yielded 18 complex channels per token. The derivatives were approximated by central finite differences on the stored 20-nm grid. These channels are fixed linear functions of and provide information about field variation between the 300-nm-spaced tokens, mitigating aliasing from token-level sampling [93]. A bias-free complex-linear layer lifted the drive to a 256-dimensional complex state.
The field path contained eight interaction layers with no activation functions, normalization layers or biases. Let denote the stacked lifted drive and the token states, with . Each layer computes
where multiplies the 256 channels of token elementwise by the configuration-conditioned complex gains computed from its geometry embedding and is a complex matrix applied at every token. The learned scalar gates and are initialized to zero. The transport operator has blocks
where are softmax transport patterns determined by the geometry embeddings and token positions, selects the channel slice of head , and is a complex channel map. The conjugate factors and , with , , learned frequencies and window-relative token position , introduce the pairwise phase (phase rotor in Fig. 2b). and are the learned counterparts of T and in Eq. (7), the local-response and transport blocks of Fig. 2b, and the eight-layer recurrence unrolls the inverse in Eq. (7).
All coefficients in these updates depend only on geometry and position, so every state is complex-linear in . Spectral normalization [94] controls the gain of the complex-linear weights without introducing illumination-dependent normalization.
Decoder and full-field assembly. Two configuration-conditioned cross-attention layers mapped the final token states to arbitrary query positions inside the prediction core. Query embeddings were constructed from window-relative positions. The score of a query–token pair was the raw inner product of their rotary-encoded projections, without softmax normalization, so the decoder formed an additive sum of token contributions. A final bias-free complex-linear head emitted at the query points. DANO contained 3.86 million real scalar parameters, counting the real and imaginary components of complex weights separately.
At inference, each core was evaluated at every valid grid point. Core origins were placed on an overlapping grid with at least 320 nm of overlap. Window outputs were combined using a partition-of-unity weight normalized to sum to one wherever cores overlapped. Because the assembly is a linear weighted sum, the full-field map remains complex-linear in the illumination and supports gradient-based optimization of pillar dimensions. Extended Data Fig. 4d–f shows the assembled error, overlap weights and one seam-level comparison with FDTD.
Mesh transfer and linearity tests. The DISCO kernels and rotary phases were defined in physical coordinates. For evaluation on finer transverse meshes, we kept the learned parameters and physical window dimensions fixed and sampled the continuous geometry kernels at the new grid spacing. The model was not fine-tuned using fine-mesh data. Extended Data Fig. 3b–d reports transfer from the 20-nm training mesh to 12.5- and 9.375-nm meshes.
At a fixed layout, the architecture is complex-linear in : the prediction for a complex linear combination of illuminations equals the same combination of their predictions, up to numerical precision. A superposition check in single precision gave a relative deviation of .
4.3 Model training and evaluation
Training samples and objective. Training used local windows rather than complete arrays. For each draw, a case was selected from the structured-illumination corpus with probability 0.48 and from the plane-wave corpus otherwise. We randomly shifted the core grid by up to half a core width in each in-plane direction, so a given spatial location appeared at different positions within the prediction core across draws. The shifts also exposed the model to different local fields within each speckle realization (Extended Data Fig. 1d–f). For each window, we sampled 1,024 valid query points. Batches contained eight windows, with samples drawn online rather than organized into epochs.
For window w, let denote the sampled valid query points. The training objective was the mean relative squared error
with and . The energy floor prevented windows with very weak scattered fields from receiving arbitrarily large relative weight. Each window contributed equally to the batch loss. Input fields were used at their stored amplitudes without per-window normalization.
Training protocol. The model was optimized for 240,000 steps using AdamW [95], with an initial learning rate of , weight decay and gradient-norm clipping at 1.0. The learning rate was increased linearly over the first 500 steps and followed a cosine decay to 5% of its initial value over the final 60,000 steps. An exponential moving average of the weights with decay 0.999 was maintained during training.
Validation was performed every 5,000 steps on 16 fixed cases per corpus. For each of five training seeds, the best exponential-moving-average checkpoint on these cases was evaluated once on the test set to assess training-seed variability. All other analyses and the inverse design used one of these checkpoints.
Evaluation protocol. Full-field accuracy was quantified using normalized mean squared error (NMSE),
(13) where is the set of grid points on the observation plane outside a 540-nm perimeter strip, and the norm includes both transverse field components. NMSE was computed for each case, and case-level values were averaged for accuracy comparisons.
Field errors were computed from a non-overlapping grid of prediction cores on the plane. The overlapping partition-of-unity assembly was used for displayed fields, inverse design and the uniform-array, mesh-transfer and larger-array evaluations.
In-distribution accuracy was evaluated on a separate test set. It contained 213 plane-wave and 600 structured-illumination cases with newly sampled layouts under the incidence conditions and speckle realizations represented in training. Validation data guided checkpoint selection, halo-width selection and baseline learning-rate selection. Structured-layout transfer was evaluated on a hyperbolic metalens with a 10-m focal length at three incidence angles. Illumination transfer comprised 18 cases at held-out incidence settings, 18 coherent plane-wave superpositions and four Gaussian beams. Mesh transfer used independent FDTD solutions for 50 layouts at each of the two finer meshes. Domain-size transfer used the same checkpoint and physical window dimensions for one layout at each array size from to sites.
Source-band decomposition. At a fixed layout, the scattered field is linear in the incident field, and DANO is complex-linear in its drive, so the fields and predictions of a speckle source split into source bands sum over the bands. Each source band collected the angular components of the speckle source at the injection plane within a range of , where is the in-plane wavevector, without renormalization. Angular components with propagate in the silica substrate but not in air. Source bands were simulated for the bare stack and the array with the solver settings of the corpora. The two-band split at used 32 randomly selected test realizations, each on its two test layouts, and instead obtained the band by subtraction from the full-spectrum fields. The eight-band profile used 12 realizations, each on the first of its two test layouts. The share of is the case-averaged term of the NMSE plus half of the case-averaged cross term, divided by the case-averaged NMSE.
Benchmarking. We compared DANO with a U-Net [96], a Fourier neural operator (FNO) [57], a multiple-input operator network (MIONet) [97] and a neural Green's operator (NGO) [73] (Fig. 3e and Extended Data Fig. 6). The baselines used the same window draws, corpus splits, query regions and 240,000 training steps as DANO. They contained 3.76–4.20 million real scalar parameters, compared with 3.86 million for DANO. Each baseline received eight input channels—the permittivity, a domain mask marking the simulated region within the window, and the real and imaginary parts of the three Cartesian components of —and predicted the two transverse components of on the same core.
The baselines differ in how they combine the permittivity with the background field. U-Net and FNO process all input channels together on the window, through local convolutions and global Fourier layers, respectively. MIONet encodes the permittivity and the background field in separate branches and combines them with a position trunk. NGO followed the data-driven form of its original study [73], in which a convolutional network maps the permittivity to a complex operator that acts on the background field. NGO is therefore complex-linear in , as DANO is, but represents the permittivity through a fixed global basis rather than through interactions among discrete constituents.
To account for the large difference in background-field amplitudes between the two illumination corpora, the six background-field channels of U-Net, FNO and MIONet were divided by the window's root-mean-square background amplitude, and the predicted scattered field was rescaled by the same factor. The permittivity and domain-mask channels were left unscaled. This wrapper contained no learned parameters. Applying the corresponding drive and output rescaling to DANO or NGO leaves the prediction unchanged because both models are complex-linear in , so NGO was trained without it. Each baseline used one learning rate for both corpora. It was selected from , , and , with added for U-Net, by the lowest validation-subset error of the model trained on both corpora. The selected baselines trained on both corpora were also run with the five training seeds of DANO, with the data split fixed. All models were evaluated using the same full-field NMSE on the same test, validation and transfer cases. Extended Data Fig. 6 reports their Gaussian-beam transfer.
4.4 Physics-based interrogation of the learned operator
Following the two response directions in Eq. (1), we examined changes in the learned scattered field when varying the drive at fixed layout and when varying individual pillars at fixed drive. The analyses below use the trained window operator and controlled geometry perturbations, respectively.
Localized drive probes and radiation reference. To examine the drive-response direction introduced in Eq. (1), we held the layout fixed and applied x- and y-polarized Gaussian packets , centered at constituent sites with nm. Packet values and their first- and second-order derivatives supplied consistent drive features. The packets were used as diagnostic inputs without enforcing Maxwell transversality.
We compared the learned responses with a sum of independent pillar responses above an air-glass interface, weighted by the same packet envelope and evaluated on the observation plane. Each pillar response was taken from full-wave simulations of an isolated pillar of the same size and represented by electric-dipole, magnetic-dipole and electric-quadrupole sources. Radial profiles were computed by annular averaging, and angular contrast was defined as the response magnitude divided by its azimuthal mean at each radius.
Phase-ramp commutation test. For one fixed window and its background field , we compared with , corresponding to applying a phase ramp before or after the learned operator (Eq. (4)). Derivative input features were updated consistently with the ramp. The commutation residual was the norm of the difference divided by the norm of the unmodulated output.
Configuration-response measurements and spatial range. To probe the configuration-response direction represented by in Eq. (1), we held the drive and background fixed while changing one pillar at a time. The background field therefore remained unchanged, so changes in the total and scattered fields were identical. We analyzed three fully occupied layouts: disordered, uniform and a hyperbolic metalens. For pillar , let denote layouts in which both side lengths were increased or decreased by 20 nm. Using identical window and query positions, we measured
These finite pillar-size changes give a finite-difference counterpart of the functional derivative . Radial response profiles were averaged over displacement annuli and normalized by the response at the perturbed site.
To quantify how much of the measured response lay beyond a radius , let denote a sampled component of the response at query point to a change at pillar , and let be the in-plane distance between query point and pillar . We defined
was evaluated up to 3 µm. For the drive curve in Fig. 4f, , where omits token contributions farther than from each query point.
4.5 Inverse design and full-wave verification
Design task and parameterization. We used the trained DANO model, with its parameters fixed, to design a fully occupied -site metasurface for angle-multiplexed holography. The substrate-side input was an x-polarized plane wave at 532 nm, incident at either or in the x-z plane. The respective targets were the left half of the POSTECH seal and the right half of the Northwestern logo, occupying disjoint pixels of the far-field target region.
Far-field intensity was computed from the transverse total field on the observation plane,
and scored within the propagating cone . The target region was translated with the incident in-plane wavevector so that both angles used the same coordinates relative to the incident direction.
Each pillar side length , for , was parameterized as nm, where was unconstrained and was the logistic function. Side lengths were initialized independently and uniformly between 120 and 180 nm. We constructed the permittivity map on the 20-nm grid from the pillar dimensions with the same rule as the training input, in which each grid cell holds its SiN area fraction, so the map varies continuously with the side lengths. The background field and the assembled DANO prediction gave the total field , from which we computed the far-field objective and differentiated it with respect to the pillar dimensions.
The inverse design problem. The DANO and local designs solve the same optimization problem with different forward models ,
where collects the two side lengths of all pillars. DANO gives the observation-plane field with its trained parameters fixed. The local model assigns each site the complex transmission of its periodic unit cell at angle , taken from a library of 1,681 cells. In both cases, follows from Eq. (16). With the propagating cone and the target region , which moves with the incident in-plane wavevector,
(18) where is the other angle and is the zero-mean normalized cross-correlation over . Each target is zero outside , the target-power fraction is , and is the mean of over the array relative to that of the background field. Both designs used , and . DANO also used and . The local model, which does not resolve the array field, omitted the term and computed image matching over .
Optimization implementation. For DANO, the bounds were imposed by the logistic parameterization above, and we minimized over for 600 iterations using Adam [98] with a learning rate of 0.02. The DANO design in Fig. 5a came from a single run without selection among candidates. The local design was optimized with Adam directly on the side lengths for 2,000 iterations.
Full-wave ground-truth verification. The optimized DANO and local-baseline layouts were exported as pillar lists and independently simulated with the same finite-array FDTD setup at both incidence angles. Their far-field images were evaluated using identical Fourier conventions, propagating-cone masks, target regions and targets. For each angle, we computed the normalized cross-correlation of the target-region image with its intended target, its correlation with the other target, and the difference between the two. We also computed the correlation between the two target-region images in coordinates translated with the incident wavevector. DANO-predicted scores are given for comparison, and design verification used the FDTD scores.
Data Availability
The full-wave field data supporting the findings of this study are available from the corresponding author upon reasonable request.
Code Availability
The source code for DANO, including data preprocessing, model training, inference, and inverse-design demonstrations, is available from the corresponding author upon reasonable request.
CRediT author statement
Dex Doksoo Lee: Conceptualization, Methodology, Writing – Original Draft, Writing – Review & Editing, Visualization, Project Administration. Jehyeon Shin: Conceptualization, Methodology, Software, Validation, Formal Analysis, Investigation, Data Curation, Writing – Original Draft, Writing – Review & Editing, Visualization. Yue Yu: Methodology, Writing – Review & Editing. Sunkyu Yu: Methodology, Writing – Review & Editing. Junsuk Rho: Writing – Review & Editing, Supervision, Project Administration, Funding Acquisition. Wei Chen: Writing – Review & Editing, Supervision, Project Administration, Funding Acquisition.
Acknowledgements. W.C. and D.D.L. acknowledge support from the U.S. National Science Foundation (NSF) Boosting Research Ideas for Transformative and Equitable Advances in Engineering (BRITE) Fellow Program (CMMI-2227641) and NASA's Minority University Research and Education Project Institutional Research Opportunity (MIRO) through the Center for In-Space Manufacturing (CISM-R2): Recycling and Regolith Processing (Award 80NSSC24M0176). W.C. also acknowledges support from the NSF Materials Research Science and Engineering Centers (MRSEC) program (DMR-2308691). Y.Y. acknowledges support from the National Institutes of Health (NIH) under award 1R01GM157589-01 and the NSF under award 2427915. J.R. acknowledges the POSCO-POSTECH-RIST Convergence Research Center program funded by POSCO, and the National Research Foundation (NRF) grant (RS-2024-00356928) funded by the Ministry of Science and ICT (MSIT) of the Korean government. J.S. acknowledges the Hyundai Motor Chung Mong-Koo Foundation; the Institute of Information & Communications Technology Planning & Evaluation (IITP) (grant no. RS-2019-II191906; POSTECH Artificial Intelligence Graduate School Program) funded by the Ministry of Science and ICT (MSIT) of the Korean government; and the National Research Foundation of Korea (NRF) Ph.D. fellowship (grant no. RS-2025-25438817) funded by the Ministry of Education (MOE) of the Korean government.
Competing Interests
The authors declare no competing financial or non-financial interests.
References
[1] Torquato, S., Kim, J.: Nonlocal effective electromagnetic wave characteristics of composite media: Beyond the quasistatic regime. Physical Review X 11(2), 021002 (2021) https://doi.org/10.1103/PhysRevX.11.021002
[2] Deng, B., Wang, S., Hartquist, C., Zhao, X.: Nonlocal intrinsic fracture energy of polymerlike networks. Physical Review Letters 131(22), 228102 (2023) https://doi.org/10.1103/physrevlett.131.228102
[3] Yu, S., Qiu, C.-W., Chong, Y., Torquato, S., Park, N.: Engineered disorder in photonics. Nature Reviews Materials 6(3), 226–243 (2021) https://doi.org/10.1038/s41578-020-00263-y
[4] Li, P., Hu, G., Dolado, I., Tymchenko, M., Qiu, C.-W., Alfaro-Mozaz, F.J., Casanova, F., Hueso, L.E., Liu, S., Edgar, J.H., Vélez, S., Alù, A., Hillenbrand, R.: Collective near-field coupling and nonlocal phenomena in infrared-phononic metasurfaces for nano-light canalization. Nature Communications 11(1), 3663 (2020) https://doi.org/10.1038/s41467-020-17425-9
[5] Meng, Z., Lei, P., Hou, B., Liu, B., Wang, Y.: Dual-bond fracture metamaterials with full-field extrinsic toughening. Nature Communications 16(1), 6891 (2025) https://doi.org/10.1038/s41467-025-62007-2
[6] Vutukuri, H.R., Lisicki, M., Lauga, E., Vermont, J.: Light-switchable propulsion of active particles with reversible interactions. Nature Communications 11(1), 2628 (2020) https://doi.org/10.1038/s41467-020-15764-1
[7] Wang, K., Chen, Y., Kadic, M., Wang, C., Wegener, M.: Nonlocal interaction engineering of 2D roton-like dispersion relations in acoustic and mechanical metamaterials. Communications Materials 3(1), 35 (2022) https://doi.org/10.1038/s43246-022-00257-z
[8] Chen, Y., Fleury, R., Seppecher, P., Hu, G., Wegener, M.: Nonlocal metamaterials and metasurfaces. Nature Reviews Physics 7(6), 299–312 (2025) https://doi.org/10.1038/s42254-025-00829-1
[9] Zhou, H., Wu, X., Srolovitz, D., Zhu, Y.: Designing heterostructured materials. Nature Materials 25(3), 366–372 (2026) https://doi.org/10.1038/s41563-025-02444-y
[10] Hashin, Z.: Analysis of composite materials—a survey. Journal of Applied Mechanics 50(3), 481–505 (1983) https://doi.org/10.1115/1.3167081
[11] Li, S., Wang, G.: Introduction to Micromechanics and Nanomechanics. World Scientific, Singapore (2008). https://doi.org/10.1142/6834
[12] Yu, X., Zhou, J., Liang, H., Jiang, Z., Wu, L.: Mechanical metamaterials associated with stiffness, rigidity and compressibility: A brief review. Progress in Materials Science 94, 114–173 (2018) https://doi.org/10.1016/j.pmatsci.2017.12.003
[13] Mansouree, M., McClung, A., Samudrala, S., Arbabi, A.: Large-scale parametrized metasurface design using adjoint optimization. ACS Photonics 8(2), 455–463 (2021) https://doi.org/10.1021/acsphotonics.0c01058
[14] Park, J.-S., Zhang, S., She, A., Chen, W.T., Lin, P., Yousef, K.M.A., Cheng, J.-X., Capasso, F.: All-glass, large metalens at visible wavelength using deep-ultraviolet projection lithography. Nano Letters 19(12), 8673–8682 (2019) https://doi.org/10.1021/acs.nanolett.9b03333
[15] Wang, J., Wirth-Singh, A., Saragadam, V., Johnson, R., Majumdar, A., Veeraraghavan, A.: A Golay metalens for long-range, large aperture, thermal imaging via sparse aperture computational imaging. Nature Communications 16(1), 10281 (2025) https://doi.org/10.1038/s41467-025-65188-y
[16] Liu, Z., Zhu, D., Rodrigues, S.P., Lee, K.-T., Cai, W.: Generative model for the inverse design of metasurfaces. Nano Letters 18(10), 6570–6576 (2018) https://doi.org/10.1021/acs.nanolett.8b03171
[17] So, S., Rho, J.: Designing nanophotonic structures using conditional deep convolutional generative adversarial networks. Nanophotonics 8(7), 1255–1261 (2019) https://doi.org/10.1515/nanoph-2019-0117
[18] Bastek, J.-H., Kochmann, D.M.: Inverse design of nonlinear mechanical metamaterials via video denoising diffusion models. Nature Machine Intelligence 5(12), 1466–1475 (2023) https://doi.org/10.1038/s42256-023-00762-x
[19] Zheng, L., Kumar, S., Kochmann, D.M.: Algebraic language models for inverse design of metamaterials via diffusion transformers. Nature Machine Intelligence 8(4), 628–640 (2026) https://doi.org/10.1038/s42256-026-01218-8
[20] Wang, L., Chan, Y.-C., Ahmed, F., Liu, Z., Zhu, P., Chen, W.: Deep generative modeling for mechanistic-based learning and design of metamaterial systems. Computer Methods in Applied Mechanics and Engineering 372, 113377 (2020) https://doi.org/10.1016/j.cma.2020.113377
[21] Wang, J., Chen, W.W., Da, D., Fuge, M., Rai, R.: IH-GAN: A conditional generative model for implicit surface-based inverse design of cellular structures. Computer Methods in Applied Mechanics and Engineering 396, 115060 (2022) https://doi.org/10.1016/j.cma.2022.115060
[22] Zheng, X., Zhang, X., Chen, T.-T., Watanabe, I.: Deep learning in mechanical metamaterials: From prediction and generation to inverse design. Advanced Materials 35(45), 2302530 (2023) https://doi.org/10.1002/adma.202302530
[23] Lee, D., Chen, W.W., Wang, L., Chan, Y.-C., Chen, W.: Data-driven design for metamaterials and multiscale systems: A review. Advanced Materials 36(8), 2305254 (2024) https://doi.org/10.1002/adma.202305254
[24] Liu, K., Sun, R., Daraio, C.: Growth rules for irregular architected materials with programmable properties. Science 377(6609), 975–981 (2022) https://doi.org/10.1126/science.abn1459
[25] Jia, Y., Liu, K., Zhang, X.S.: Topology optimization of irregular multiscale structures with tunable responses using a virtual growth rule. Computer Methods in Applied Mechanics and Engineering 425, 116864 (2024) https://doi.org/10.1016/j.cma.2024.116864
[26] Xiang, Y., Wang, L.: One-shot generative design for disordered metamaterials via self-organizing neural cellular automata. arXiv preprint arXiv:2607.14475 (2026)
[27] Fromentèze, T., Michaud, P., Hassny, A., Pateloup, V.: Morphogenetic mechanical metamaterials: Emerging tensor properties from self-organized structures. Nature Communications 17(1), 8330 (2026) https://doi.org/10.1038/s41467-026-74173-y
[28] An, S., Zheng, B., Shalaginov, M.Y., Tang, H., Li, H., Zhou, L., Dong, Y., Haerinia, M., Agarwal, A.M., Rivero-Baleine, C., Kang, M., Richardson, K.A., Gu, T., Hu, J., Fowler, C., Zhang, H.: Deep convolutional neural networks to predict mutual coupling effects in metasurfaces. Advanced Optical Materials 10(3), 2102113 (2022) https://doi.org/10.1002/adom.202102113
[29] Cai, H., Srinivasan, S., Czaplewski, D.A., Martinson, A.B.F., Gosztola, D.J., Stan, L., Loeffler, T., Sankaranarayanan, S.K.R.S., López, D.: Inverse design of metasurfaces with non-local interactions. npj Computational Materials 6(1), 116 (2020) https://doi.org/10.1038/s41524-020-00369-5
[30] Lin, H.-C., Wang, Z., Hsu, C.W.: Fast multi-source nanophotonic simulations using augmented partial factorization. Nature Computational Science 2(12), 815–822 (2022) https://doi.org/10.1038/s43588-022-00370-6
[31] Ha, Y., Luo, Y., Pu, M., Zhang, F., He, Q., Jin, J., Xu, M., Guo, Y., Li, X., Li, X., Ma, X., Luo, X.: Physics-data-driven intelligent optimization for large-aperture metalenses. Opto-Electronic Advances 6(11), 230133 (2023) https://doi.org/10.29026/oea.2023.230133
[32] Matlack, K.H., Serra-Garcia, M., Palermo, A., Huber, S.D., Daraio, C.: Designing perturbative metamaterials from discrete models. Nature Materials 17(4), 323–328 (2018) https://doi.org/10.1038/s41563-017-0003-3
[33] Wang, Z., Zhao, L., Cai, Y., Zheng, S., Yin, Y.: A meta-surface antenna array decoupling (MAAD) method for mutual coupling reduction in a MIMO antenna system. Scientific Reports 8(1), 3152 (2018) https://doi.org/10.1038/s41598-018-21619-z
[34] She, A., Zhang, S., Shian, S., Clarke, D.R., Capasso, F.: Large area metalenses: design, characterization, and mass manufacturing. Optics Express 26(2), 1573–1585 (2018) https://doi.org/10.1364/oe.26.001573
[35] Chung, H., Miller, O.D.: High-NA achromatic metalenses by inverse design. Optics Express 28(5), 6945–6965 (2020) https://doi.org/10.1364/oe.385440
[36] Isnard, E., Héron, S., Lanteri, S., Elsawy, M.: Advancing wavefront shaping with resonant nonlocal metasurfaces: beyond the limitations of lookup tables. Scientific Reports 14(1), 1555 (2024) https://doi.org/10.1038/s41598-024-51898-8
[37] Park, J.-S., Lim, S.W.D., Amirzhan, A., Kang, H., Karrfalt, K., Kim, D., Leger, J., Urbas, A., Ossiander, M., Li, Z., Capasso, F.: All-glass 100 mm diameter visible metalens for imaging the cosmos. ACS Nano 18(4), 3187–3198 (2024) https://doi.org/10.1021/acsnano.3c09462
[38] Foldy, L.L.: The multiple scattering of waves. I. General theory of isotropic scattering by randomly distributed scatterers. Physical Review 67(3-4), 107–119 (1945) https://doi.org/10.1103/physrev.67.107
[39] Lax, M.: Multiple scattering of waves. Reviews of Modern Physics 23(4), 287–310 (1951) https://doi.org/10.1103/revmodphys.23.287
[40] Lippmann, B.A., Schwinger, J.: Variational principles for scattering processes. I. Physical Review 79(3), 469–480 (1950) https://doi.org/10.1103/physrev.79.469
[41] Chen, Y., Zhang, Y., Koenderink, A.F.: General point dipole theory for periodic metasurfaces: magnetoelectric scattering lattices coupled to planar photonic structures. Optics Express 25(18), 21358–21378 (2017) https://doi.org/10.1364/oe.25.021358
[42] Babicheva, V.E., Evlyukhin, A.B.: Analytical model of resonant electromagnetic dipole-quadrupole coupling in nanoparticle arrays. Physical Review B 99(19), 195444 (2019) https://doi.org/10.1103/physrevb.99.195444
[43] Beutel, D., Fernandez-Corbaton, I., Rockstuhl, C.: treams – a T-matrix-based scattering code for nanophotonics. Computer Physics Communications 297, 109076 (2024) https://doi.org/10.1016/j.cpc.2023.109076
[44] Guo, R., Hakala, T.K., Törmä, P.: Geometry dependence of surface lattice resonances in plasmonic nanoparticle arrays. Physical Review B 95(15), 155423 (2017) https://doi.org/10.1103/physrevb.95.155423
[45] Zakomirnyi, V.I., Karpov, S.V., Ägren, H., Rasskazov, I.L.: Collective lattice resonances in disordered and quasi-random all-dielectric metasurfaces. Journal of the Optical Society of America
B 36(7), 21–29 (2019) https://doi.org/10.1364/josab.36.000e21
[46] Beutel, D., Fernandez-Corbaton, I., Rockstuhl, C.: Unified lattice sums accommodating multiple sublattices for solutions of the Helmholtz equation in two and three dimensions. Physical Review A 107(1), 013508 (2023) https://doi.org/10.1103/physreva.107.013508
[47] So, S., Mun, J., Park, J., Rho, J.: Revisiting the design strategies for metasurfaces: Fundamental physics, optimization, and beyond. Advanced Materials 35(43), 2206399 (2023) https://doi.org/10.1002/adma.202206399
[48] Elsawy, M.M.R., Lanteri, S., Duvigneau, R., Fan, J.A., Genevet, P.: Numerical optimization methods for metasurfaces. Laser & Photonics Reviews 14(10), 1900445 (2020) https://doi.org/10.1002/lpor.201900445
[49] Ueno, A., Hu, J., An, S.: AI for optical metasurface. npj Nanophotonics 1(1), 36 (2024) https://doi.org/10.1038/s44310-024-00037-2
[50] Sang, D., Xu, M., Pu, M., Zhang, F., Guo, Y., Li, X., Ma, X., Fu, Y., Luo, X.: Toward high-efficiency ultrahigh numerical aperture freeform metalens: From vector diffraction theory to topology optimization. Laser & Photonics Reviews 16(10), 2200265 (2022) https://doi.org/10.1002/lpor.202200265
[51] Xu, M., He, Q., Pu, M., Zhang, F., Li, L., Sang, D., Guo, Y., Zhang, R., Li, X., Ma, X., Luo, X.: Emerging long-range order from a freeform disordered metasurface. Advanced Materials 34(12), 2108709 (2022) https://doi.org/10.1002/adma.202108709
[52] Ponomareva, S., Patoux, A., Majorel, C., Azéma, A., Cuche, A., Girard, C., Arbouet, A., Wiecha, P.R.: TorchGDM: A GPU-accelerated Python toolkit for multi-scale electromagnetic scattering with automatic differentiation. SciPost Physics Codebases, 60 (2025) https://doi.org/10.21468/scipostphyscodeb.60
[53] Hughes, T.W., Minkov, M., Liu, V., Yu, Z., Fan, S.: A perspective on the pathway toward full wave simulation of large area metalenses. Applied Physics Letters 119(15), 150502 (2021) https://doi.org/10.1063/5.0071245
[54] Zhelyeznyakov, M., Fröch, J., Wirth-Singh, A., Noh, J., Rho, J., Brunton, S., Majumdar, A.: Large area optimization of meta-lens via data-free machine learning. Communications Engineering 2(1), 60 (2023) https://doi.org/10.1038/s44172-023-00107-x
[55] Li, Z., Pestourie, R., Park, J.-S., Huang, Y.-W., Johnson, S.G., Capasso, F.: Inverse design enables large-scale high-performance meta-optics reshaping virtual reality. Nature Communications 13(1), 2409 (2022) https://doi.org/10.1038/s41467-022-29973-3
[56] Karniadakis, G.E., Kevrekidis, I.G., Lu, L., Perdikaris, P., Wang, S., Yang, L.: Physics-informed machine learning. Nature Reviews Physics 3(6), 422–440 (2021) https://doi.org/10.1038/s42254-021-00314-5
[57] Li, Z., Kovachki, N., Azizzadenesheli, K., Liu, B., Bhattacharya, K., Stuart, A., Anandkumar, A.: Fourier neural operator for parametric partial differential equations. In: International Conference on Learning Representations (2021)
[58] Lu, L., Jin, P., Pang, G., Zhang, Z., Karniadakis, G.E.: Learning nonlinear operators via DeepONet based on the universal approximation theorem of operators. Nature Machine Intelligence 3(3), 218–229 (2021) https://doi.org/10.1038/s42256-021-00302-5
[59] Majorel, C., Girard, C., Arbouet, A., Muskens, O.L., Wiecha, P.R.: Deep learning enabled strategies for modeling of complex aperiodic plasmonic metasurfaces of arbitrary size. ACS Photonics 9(2), 575–585 (2022) https://doi.org/10.1021/acsphotonics.1c01556
[60] Xu, B., Shao, J., Zhao, X., Xu, H., Tian, Y., Chen, N., Sun, J., Lin, H., Bao, Q., Mai, Y., Wu, C.: Deep-learning-enabled inverse design of large-scale metasurfaces with full-wave accuracy. Laser & Photonics Reviews 20(5), 03115 (2026) https://doi.org/10.1002/lpor.202503115
[61] Kanmaz, T.B., Ozturk, E., Demir, H.V., Gunduz-Demir, C.: Deep-learning-enabled electromagnetic near-field prediction and inverse design of metasurfaces. Optica 10(10), 1373–1382 (2023) https://doi.org/10.1364/optica.498211
[62] Khoram, E., Wu, Z., Qu, Y., Zhou, M., Yu, Z.: Graph neural networks for metasurface modeling. ACS Photonics 10(4), 892–899 (2023) https://doi.org/10.1021/acsphotonics.2c01019
[63] Bao, Q., Zhang, D., Liu, X., Ma, T., Xiao, J.-J.: GAT-Net: Inverse design of multifunctional metasurface based on graph attention network. Optics & Laser Technology 183, 112273 (2025) https://doi.org/10.1016/j.optlastec.2024.112273
[64] Wang, C., Zhang, Y., Liu, W., Ma, H., Jiang, X., Li, E.-P., Gao, S.: Novel physics-aware attention-based machine learning approach for mutual coupling modeling. IEEE Transactions on Antennas and Propagation 74(4), 3096–3108 (2026) https://doi.org/10.1109/tap.2026.3655148
[65] Lupoiu, R., Shao, Y., Dai, T., Mao, C., Edée, K., Fan, J.A.: A multi-agentic framework for real-time, autonomous freeform metasurface design. Science Advances 11(44), 8006 (2025) https://doi.org/10.1126/sciadv.adx8006
[66] Zhelyeznyakov, M.V., Brunton, S., Majumdar, A.: Deep learning to accelerate scatterer-to-field mapping for inverse design of dielectric metasurfaces. ACS Photonics 8(2), 481–488 (2021) https://doi.org/10.1021/acsphotonics.0c01468
[67] Augenstein, Y., Repän, T., Rockstuhl, C.: Neural operator-based surrogate solver for free-form electromagnetic inverse design. ACS Photonics 10(5), 1547–1557 (2023) https://doi.org/10.1021/acsphotonics.3c00156
[68] Kim, J., Seong, J., Kim, W., Lee, G.-Y., Kim, S., Kim, H., Moon, S.-W., Oh, D.K., Yang, Y., Park, J., Jang, J., Kim, Y., Jeong, M., Park, C., Choi, H., Jeon, G., Lee, K.-i., Yoon, D.H., Park, N., Lee, B., Lee, H., Rho, J.: Scalable manufacturing of high-index atomic layer-polymer hybrid metasurfaces for metaphotonics in the visible. Nature Materials 22(4), 474–481 (2023) https://doi.org/10.1038/s41563-023-01485-5
[69] Hoang, T., Park, Y., Kim, J., Truong, H., Parajuli, S., Rajasekaran, B.J., Kim, K., Kang, D., Jeon, G., Lee, K.-i., Yoon, D.H., Kim, I., Rho, J., Cho, G.: 300-unit-per-second roll-to-roll manufacturing of visible metalenses. Nature 652(8112), 1188–1194 (2026) https://doi.org/10.1038/s41586-026-10369-y
[70] Hou, M., Chen, Y., Li, J., Yi, F.: Single 5-centimeter-aperture metalens enabled intelligent lightweight mid-infrared thermographic camera. Science Advances 10(27), 4847 (2024) https://doi.org/10.1126/sciadv.ado4847
[71] Fröch, J.E., Chakravarthula, P., Sun, J., Tseng, E., Colburn, S., Zhan, A., Miller, F., Wirth-Singh, A., Tanguy, Q.A.A., Han, Z., Böhringer, K.F., Heide, F., Majumdar, A.: Beating spectral bandwidth limits for large aperture broadband nano-optics. Nature Communications 16(1), 3025 (2025) https://doi.org/10.1038/s41467-025-58208-4
[72] Kovachki, N., Li, Z., Liu, B., Azizzadenesheli, K., Bhattacharya, K., Stuart, A., Anandkumar, A.: Neural operator: Learning maps between function spaces with applications to PDEs. Journal of Machine Learning Research 24(89), 1–97 (2023)
[73] Melchers, H.A., Prins, J.H.M., Abdelmalik, M.R.A.: Neural Green's operators for parametric partial differential equations. Computer Methods in Applied Mechanics and Engineering 455, 118893 (2026) https://doi.org/10.1016/j.cma.2026.118893
[74] Yu, Y., Liu, N., Lu, F., Gao, T., Jafarzadeh, S., Silling, S.: Nonlocal attention operator: Materializing hidden knowledge towards interpretable physics discovery. In: Advances in Neural Information Processing Systems, vol. 37, pp. 113797–113822 (2024). https://doi.org/10.52202/079017-3613
[75] Xia, F., Kim, K., Eliezer, Y., Han, S., Shaughnessy, L., Gigan, S., Cao, H.: Nonlinear optical encoding enabled by recurrent linear scattering. Nature Photonics 18(10), 1067–1075 (2024) https://doi.org/10.1038/s41566-024-01493-0
[76] Khorasaninejad, M., Chen, W.T., Devlin, R.C., Oh, J., Zhu, A.Y., Capasso, F.: Metalenses at visible wavelengths: Diffraction-limited focusing and subwavelength resolution imaging. Science 352(6290), 1190–1194 (2016) https://doi.org/10.1126/science.aaf6644
[77] Tsang, L., Huang, Z., Jeong, J.: Fast hybrid multiple scattering theory for full-wave simulation of metasurface with substrate. npj Metamaterials 1(1), 6 (2025) https://doi.org/10.1038/s44455-025-00006-5
[78] Choromanski, K., Likhosherstov, V., Dohan, D., Song, X., Gane, A., Sarlos, T., Hawkins, P., Davis, J., Mohiuddin, A., Kaiser, L., Belanger, D., Colwell, L., Weller, A.: Rethinking attention with Performers. In: International Conference on Learning Representations (2021)
[79] Maurizi, M., Xu, D., Wang, Y.-T., Yao, D., Hahn, D., Oudich, M., Satpati, A., Bauchy, M., Wang, W., Sun, Y., Jing, Y., Zheng, X.R.: Designing metamaterials with programmable nonlinear responses and geometric constraints in graph space. Nature Machine Intelligence 7(7), 1023–1036 (2025) https://doi.org/10.1038/s42256-025-01067-x
[80] Liang, Y., Tsai, D.P., Kivshar, Y.: From local to nonlocal high-Q plasmonic metasurfaces. Physical Review Letters 133(5), 053801 (2024) https://doi.org/10.1103/physrevlett.133.053801
[81] Ni, X., Yves, S., Krasnok, A., Alù, A.: Topological metamaterials. Chemical Reviews 123(12), 7585–7654 (2023) https://doi.org/10.1021/acs.chemrev.2c00800
[82] Hsu, C.W., Zhen, B., Stone, A.D., Joannopoulos, J.D., Soljačić, M.: Bound states in the continuum. Nature Reviews Materials 1(9), 16048 (2016) https://doi.org/10.1038/natrevmats.2016.48
[83] Surjadi, J.U., Portela, C.M.: Enabling three-dimensional architected materials across length scales and timescales. Nature Materials 24(4), 493–505 (2025) https://doi.org/10.1038/s41563-025-02119-8
[84] Osanov, M., Guest, J.K.: Topology optimization for architected materials design. Annual Review of Materials Research 46(1), 211–233 (2016) https://doi.org/10.1146/annurev-matsci-070115-031826
[85] Henneberg, J., Gomez Nieto, J.S., Sepahvand, K., Gerlach, A., Cebulla, H., Marburg, S.: Periodically arranged acoustic metamaterial in industrial applications: The need for uncertainty quantification. Applied Acoustics 157, 107026 (2020) https://doi.org/10.1016/j.apacoust.2019.107026
[86] Glaesener, R.N., Kumar, S., Lestringant, C., Butruille, T., Portela, C.M., Kochmann, D.M.: Predicting the influence of geometric imperfections on the mechanical response of 2D and 3D periodic trusses. Acta Materialia 254, 118918 (2023) https://doi.org/10.1016/j.actamat.2023.118918
[87] Wang, E.W., Sell, D., Phan, T., Fan, J.A.: Robust design of topology-optimized metasurfaces. Optical Materials Express 9(2), 469–482 (2019) https://doi.org/10.1364/ome.9.000469
[88] Chen, W.W., Lee, D., Balogun, O., Chen, W.: GAN-DUF: Hierarchical deep generative models for design under free-form geometric uncertainty. Journal of Mechanical Design 145(1), 011703 (2023) https://doi.org/10.1115/1.4055898
[89] Liu-Schiaffini, M., Berner, J., Bonev, B., Kurth, T., Azizzadenesheli, K., Anandkumar, A.: Neural operators with localized integral and differential kernels. In: International Conference on Machine Learning. Proceedings of Machine Learning Research, vol. 235, pp. 32576–32594 (2024). arXiv:2402.16845
[90] Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., Polosukhin, I.: Attention is all you need. In: Advances in Neural Information Processing Systems, vol. 30, pp. 5998–6008 (2017)
[91] Su, J., Ahmed, M., Lu, Y., Pan, S., Bo, W., Liu, Y.: RoFormer: Enhanced transformer with rotary position embedding. Neurocomputing 568, 127063 (2024) https://doi.org/10.1016/j.neucom.2023.127063
[92] Bachlechner, T., Majumder, B.P., Mao, H., Cottrell, G., McAuley, J.: ReZero is all you need: fast convergence at large depth. In: Uncertainty in Artificial Intelligence. Proceedings of Machine Learning Research, vol. 161, pp. 1352–1361 (2021). PMLR
[93] Papoulis, A.: Generalized sampling expansion. IEEE Transactions on Circuits and Systems 24(11), 652–654 (1977) https://doi.org/10.1109/tcs.1977.1084284
[94] Miyato, T., Kataoka, T., Koyama, M., Yoshida, Y.: Spectral normalization for generative adversarial networks. In: International Conference on Learning Representations (2018)
[95] Loshchilov, I., Hutter, F.: Decoupled weight decay regularization. In: International Conference on Learning Representations (2019)
[96] Ronneberger, O., Fischer, P., Brox, T.: U-Net: Convolutional networks for biomedical image segmentation. In: Medical Image Computing and Computer-Assisted Intervention – MICCAI 2015. Lecture Notes in Computer Science, vol. 9351, pp. 234–241 (2015). https://doi.org/10.1007/978-3-319-24574-4_28
[97] Jin, P., Meng, S., Lu, L.: MIONet: Learning multiple-input operators via tensor product. SIAM Journal on Scientific Computing 44(6), 3490–3514 (2022) https://doi.org/10.1137/22m1477751
[98] Kingma, D.P., Ba, J.: Adam: a method for stochastic optimization. In: International Conference on Learning Representations (2015) b

c
d

e
f
Extended Data Fig. 1 Full-wave data generation and window-level illumination diversity. a. Simulation stack with a total-field/scattered-field (TFSF) source plane and box, observation plane and perfectly matched layer (PML) boundaries. Vertical distances are not to scale. b. Real part of the background field for one speckle realization and a plane wave at , each normalized by its 99.5th-percentile magnitude. Solid squares mark the three 1.24- m windows of d (scale bar, 2 m). c. Background-field power spectrum averaged over 300 speckle realizations (logarithmic color scale). Dashed and dotted circles, air and substrate light cones; open circles, the 33 plane-wave settings. d. Background fields in the three windows of b. e, 99%-energy dimension, the number of modes holding 99% of the background-field energy in local windows, versus the number of ground-truth simulations. f. Normalized Karhunen-Loève mode spectra of speckle background fields in fixed windows and in windows with random offsets. Dotted lines, the 99%-energy dimensions.

Extended Data Fig. 2 Phase mismatch between the local phase approximation and the ground truth. One held-out, fully occupied random layout under normal-incidence illumination, evaluated on the observation plane. a, Phase of the transmitted field from the local phase approximation (LPA, computed by a local-phase lookup, left), the ground truth from finite-difference time-domain simulation (middle) and domain-decomposition attention neural operator (DANO, right). The black line marks the row examined in b. b, Phase along the marked row. c, Distributions of circular phase error relative to the ground truth.


c

Extended Data Fig. 3 Full-field prediction on finer simulation meshes. The domain-decomposition attention neural operator (DANO) trained on a 20-nm mesh is evaluated on 12.5-nm and 9.375-nm meshes without retraining. a, One fixed, learned first-layer discrete-continuous (DISCO) kernel on its 60-nm-radius support (dashed circle), shown as a continuous function (left) and sampled at the grid points (dots) of the 20-, 12.5- and 9.375-nm meshes. b, One layout at normal incidence on the 20-, 12.5- and 9.375-nm meshes (rows). Columns show the ground truth from finite-difference time-domain simulation, DANO prediction and their error (DANO minus ground truth) for Re . The blue frame marks the 20-nm training mesh. c, Permittivity of one pillar from b on the three meshes. Gray grid cells show fractional pillar coverage. d, Mean normalized mean squared error (NMSE) over 50 layouts at each mesh spacing.

c

Extended Data Fig. 4 Independent window predictions and partition-of-unity assembly. a, Layout with two overlapping input windows (gold and teal). Inner squares mark the 1.24-μm prediction cores, and outer squares include a 2.1-μm context halo on each side. Dotted square, the permittivity crop of the gold window. b, Nine overlapping prediction cores, evaluated independently in their respective windows and separated for display before assembly. c, Validation core normalized mean squared error (NMSE) against context-halo width in constituent spacings, with one training run per width. Points are means over 600 speckle or 71 plane-wave cases. Vertical dashed line, the selected halo of 7 spacings (2.1 μm). d, Assembled-field error of the domain-decomposition attention neural operator (DANO), DANO minus the ground truth from finite-difference time-domain simulation. Grid lines mark core boundaries, and the black square marks the region enlarged in e. e, Assembled field in that region, with colored outlines marking overlapping prediction cores. Dashed horizontal line, the cut in f. f, Independent core predictions (top), partition-of-unity weights summing to one (middle) and the assembled field (bottom) along the cut. Shading, the overlap.

b

c
d
Extended Data Fig. 5 Speckle test error by source band. Errors of the domain-decomposition attention neural operator (DANO) on held-out speckle test cases. Source bands group the angular components of the speckle source by , where is the in-plane wavevector and is the free-space wavenumber. a, Normalized mean squared error (NMSE) split into , and cross terms. b, Contribution of each of eight bands to the NMSE, normalized as in a, without cross terms between bands. c, NMSE for plane waves (pw), averaged over all incidence angles and at , and for the part of the speckle illumination (spk). d, NMSE of each band alone, normalized by the scattered-field energy of that band. Dotted lines in b,d, . Bands of unequal width are drawn at equal spacing. Error bars, 95% bootstrap intervals over 32 realizations with two layouts each (a and spk in c) or over 213 cases (pw mean in c), and interquartile ranges over 12 realizations with one layout each (b,d).
Re (norm.)
a

b

C

Extended Data Fig. 6 Scattered-field prediction under Gaussian-beam illumination. One held-out layout is illuminated by normally incident, x-polarized Gaussian beams with waists of 0.5, 1, 1.5 and 2 m. The domain-decomposition attention neural operator (DANO), U-Net, Fourier neural operator (FNO), multiple-input operator network (MIONet) and neural Green's operator (NGO) were trained on the plane-wave and speckle corpora. a, Rows show beam waist. Columns show the background field , the ground-truth scattered field from finite-difference time-domain simulation, and each model's prediction and error (prediction minus ground truth). Real parts are normalized by the peak background-field amplitude in each row. b, Normalized beam angular spectra against in-plane wavevector. Black triangles mark the plane-wave training settings. c, Prediction-core normalized mean squared error (NMSE) against beam waist for DANO and the four baselines.


Extended Data Fig. 7 Full-field prediction for uniform periodic arrays. Eight fully occupied arrays, each repeating one pillar cross-section on every site, are illuminated by a normally incident plane wave, with one array per cross-section. a, Arrays with the smallest, median and largest normalized mean squared error (NMSE) of the prediction (rows), with the cross-section at left. Columns show the layout, the ground truth from finite-difference time-domain simulation, the domain-decomposition attention neural operator (DANO) prediction and their error (DANO minus ground truth), followed by DANO s, the prediction multiplied by the single complex number s that best fits the ground truth, and its error. All field maps show Re , normalized by the root-mean-square incident-field amplitude on one color scale. b, NMSE of the assembled scattered field for the eight arrays, before (open circles) and after (filled circles) multiplication by s. Dashed line, mean NMSE of the 21 normal-incidence plane-wave test cases on random layouts.