Manuscript Offprint
arXiv:2610.23070Wavelength Diversity Expands the Expressive Power of Optical Computing
Abstract
Universal function approximation underpins neural networks' capacity to represent nonlinear relationships, but realizing this capability in optical hardware requires engineering the computational features encoded in light. Here, we show that wavelength diversity enhances optical function-approximation expressivity through wavelength-scaled Fourier features generated by a shared phase encoder, without increasing the number of input-encoded harmonics. Multiple wavelengths contribute to the representation of each output function rather than merely serving as independent computational channels. We establish theoretical scaling laws and approximation-error bounds, revealing that, for nondispersive encoders, the spectral endpoints determine the accessible computational bandwidth, while intermediate illumination wavelengths enrich the available harmonics within that bandwidth. Numerical studies demonstrate improved approximation of real- and complex-valued nonlinear functions, with a representative design achieving more than a 100-fold reduction in mean-squared error relative to tested monochromatic optical processors with the same number of trainable phase features. Experimentally, we validate enhanced approximation accuracy and demonstrate the simultaneous approximation of 4,136 distinct nonlinear functions using a compact, single-layer diffractive processor under five-wavelength illumination. These results establish wavelength diversity as an additional physical resource for scaling the expressive power of optical computing and enhancing the accuracy of parallel nonlinear function approximation.
Introduction
Nonlinear function approximation is central to scientific computing, signal processing and machine learning. Universal approximation theory establishes that neural networks with sufficient capacity can approximate broad classes of target functions, while approximation scaling laws quantify how the resources required to achieve a prescribed accuracy grow with target-function complexity. A complementary body of work on Fourier-feature mappings and periodic neural representations has demonstrated the importance of computational feature selection for accurately representing complex functions and signals . Translating these mathematical capabilities into physical computing systems requires understanding not only the available hardware degrees of freedom but also the diversity of computational features that can be physically represented. Diffractive optical processors provide an emerging platform for parallel nonlinear function approximation through phase encoding and passive optical propagation . In this framework, the input wavefront supplies computational Fourier features, while optimized diffractive structures synthesize their coefficients through spatially varying complex-valued point-spread functions (PSFs) . The expressive power of these optical processors is therefore governed by both the computational features encoded in light and the available optical degrees of freedom, linking attainable approximation accuracy to the physical resources of the processor .
For a monochromatic diffractive function approximator, the prescribed input phase encoding determines the computational Fourier-frequency set, while square-law detection generates harmonics corresponding to pairwise differences between these frequencies. Increasing the number of trainable phase features can improve the synthesis of the associated spatially varying complex PSF coefficients, but does not by itself expand the available detector-level frequency support imposed by the input encoding and readout scheme. Approximation accuracy can therefore remain limited when target nonlinear functions require frequency components that are inadequately represented by the available computational Fourier features. This limitation highlights a fundamental distinction between increasing the number of trainable parameters and expanding the computational feature space, motivating alternative approaches to scaling the expressive power of optical computing.
Illumination-wavelength diversity provides such an approach. Because the phase delay produced by a physical encoder depends on wavelength, simultaneously illuminating the same encoder at multiple wavelengths generates scaled computational Fourier features without increasing the number of input-encoded harmonics. The diffractive processor weights these features through its wavelength-dependent, spatially varying coherent response, and the wavelength-specific intensity contributions are summed at each output detector. For a nondispersive encoder, the spectral endpoints determine the accessible computational bandwidth, while intermediate wavelengths enrich the set of distinct detector harmonics within that bandwidth. Wavelength diversity can therefore expand computational bandwidth and improve nonlinear function-representation accuracy, provided that the required wavelength-dependent coherent responses can be synthesized with sufficient accuracy. Importantly, these computational Fourier harmonics are defined over the input-variable space and should not be confused with the spatial-frequency components of propagating optical fields.
Here, we theoretically and experimentally demonstrate how wavelength diversity expands the expressive power of optical processors. Specifically, we develop spectral-domain diffractive processors with expanded computational bandwidth and enhanced nonlinear function-representation capacity. We establish a theoretical framework that describes the generation of wavelength-scaled computational Fourier features, incorporates encoder dispersion and wavelength-dependent detector response, and derives approximation-error bounds accounting for truncation and PSF synthesis errors. Numerical studies demonstrate substantially improved approximation of non-negative real-valued and complex-valued nonlinear functions, including comparisons with monochromatic processors having larger numbers of trainable phase features. We further extend this framework to compact, single-layer encoder-decoder co-localized diffractive processors and experimentally demonstrate improved nonlinear function-approximation accuracy by introducing additional illumination wavelengths within fixed spectral endpoints. Using simultaneous five-wavelength illumination spanning 500–700 nm, we experimentally demonstrate the parallel approximation of 4,136 nonlinear functions. In situ learning further reduces the experimental approximation error and narrows the error distribution across the output channels, bringing the measured performance closer to numerical predictions. Together, these theoretical and experimental findings establish wavelength diversity as an additional physical resource for expanding the computational capabilities and expressive power of optical computing systems.
Importantly, the presented approach is fundamentally different from wavelength multiplexing schemes that increase the number of nonlinear functions implemented in parallel by assigning different functions to different wavelength channels . Such wavelength multiplexing approaches increase computational parallelism without inherently enhancing the computational bandwidth, approximation accuracy, or nonlinear function representation capacity of each individual output function, whereas our approach exploits wavelength diversity to expand the available computational Fourier features and improve the approximation accuracy of each output function.
Furthermore, these spectral-domain diffractive processors synthesize nonlinear functions using computational Fourier harmonics defined over abstract input variables, distinct from the spatial-frequency components of propagating optical fields in conventional Fourier optics. This distinction allows the framework to extend to nonlinear functions of more than three independent variables, with computational dimensionality set by the encoded input space rather than the three-dimensional geometry of light propagation.
Optical forward model of spectral-domain diffractive processors
Instead of a monochromatic diffractive function approximator, here we consider wavelengths () simultaneously illuminating the same encoder plane and being summed in intensity at an output detector ; see Fig. 1. The central conclusion of our analysis is that the same physical encoder generates a wavelength-scaled family of computational frequencies. If the wavelength-dependent spatially varying PSF matrices can be synthesized with sufficiently small error, which requires increasing the number () of trainable phase features of the diffractive processor in proportion to , the increased detector-level computational bandwidth enhances the nonlinear function representation capability of the spectral-domain diffractive optical processor, as we theoretically analyze, quantify, and experimentally demonstrate in this section.
The symbol denotes the physical illumination wavelength. The symbol refers to the computational Fourier-frequency set in the abstract input-variable space . These computational frequencies are not the transverse spatial frequencies of the propagating optical field. The physical wavelengths are ordered as , where is the shortest wavelength and is the longest wavelength. The compact domain of the nonlinear-function argument is denoted by . The key symbols used in this work are summarized in Table 1.
| Input argument of the target nonlinear function(s). | |
|---|---|
| Phase encoder-channel index. | |
| Output channel number or target-function index. | |
| Illumination-wavelength index. is the longest wavelength. | |
| Wavelength of illumination channel . | |
| Wavelength-dependent phase-delay factor of the encoder at . | |
| Computational Fourier-frequency vector assigned to encoder channel at the reference wavelength, which is taken as the longest wavelength, . | |
| Reference computational frequency set at the longest wavelength, . | |
| Wavelength-dependent scaling of the computational frequencies. | |
| Wavelength-dependent spatially varying coherent PSFs at the illumination wavelength , connecting the input channel to the output channel . | |
| Wavelength-dependent scaling constant at detector for illumination wavelength . | |
| Total number of trainable phase-only diffractive features used in the diffractive processor. | |
| Total number of illumination wavelengths that are simultaneously on. | |
| Total number of nonlinear functions implemented in parallel by the diffractive processor. | |
| Total number of effective/distinct encoded Fourier-feature channels at the input. |
Table 1: A summary of the key symbols and definitions used in this manuscript for spectral-domain diffractive function approximators. The bandwidth in our formulas refers to a computational Fourier bandwidth in the abstract function-variable space . It should not be confused with the physical transverse spatial-frequency bandwidth of propagating electromagnetic fields.
At one illumination wavelength, the coherent Fourier-feature encoder and output-field model can be expressed as:
(1A)
Let denote the physical encoder modulation associated with input channel . It may represent, e.g., a piston-based micro-mirror array, a spatial light modulator (SLM) pixel, an electrically controlled optical-path length, or another calibrated quantity that creates a dynamic phase delay per pixel. At the illumination wavelength , we assume that the encoder phase is:
Here, denotes a wavelength-dependent effective phase-delay factor, which is an encoder architecture-dependent factor. For example, for a reflective piston-based micro-mirror array (phase modulator) located in a dielectric medium with a given dispersion, the round-trip path-length per encoder pixel is understood to be absorbed into , and therefore indicates the refractive index of the dielectric medium at .
We further assume that the phase encoder device is designed so that the longest wavelength implements the reference Fourier feature used in our analysis:
Equating the two descriptions at gives , and therefore we can get:
(2B)
Based on this, we can define the wavelength-dependent computational-frequency scaling factor as:
By definition, we have . The complex field encoded by the input channel at wavelength is therefore given by:
(2D)
Based on Eq. (2D), one can see that, for a spectral-domain diffractive processor, the same physical phase encoder pattern produces scaled computational Fourier features at the unique illumination wavelengths that are simultaneously on.
Wavelength-scaled computational frequencies of a spectral-domain diffractive processor
The reference computational frequency set at is given as: . Based on Eq. (2D), at the illumination wavelength that is simultaneously on, the same phase encoder generates:
(3A)
The aggregate field-level frequency set supplied by the simultaneous wavelength illumination is given by:
(3B)
If we define the maximum norm of a reference field frequency as , then the maximum field frequency at wavelength is . Consequently, the maximum field-level computational frequency across the entire set of active illumination wavelength channels is given by:
(3C)
The number of distinct computational-frequency vectors obeys , with equality (i.e., ) only satisfied when the scaled frequency sets do not overlap.
These results show that wavelength diversity expands the available computational Fourier-feature set without increasing the number of input-encoded harmonics. Quite importantly, adding illumination wavelengths between fixed spectral endpoints can increase the density and diversity of the spectral feature set for nonlinear function approximation even when it does not change the outermost frequency; this will be further detailed and discussed in our analyses below.
Wavelength-dependent spatially varying coherent PSFs and output spectral field synthesis
The forward operator of a spectral-domain diffractive network (Fig. 1) depends on wavelength through both optical propagation and wavelength-dependent diffractive phase modulation. Let denote the effective spatially varying coherent PSF coefficient connecting encoder channel to output channel at wavelength . The complex field at output channel can be written as:
(4A)
In Eq. (4A), the vector is the wavelength-scaled computational frequency, whereas represents the spatially varying complex coefficients (i.e., the PSFs) synthesized by the optimized spectral-domain diffractive processor, which is frozen/fixed after its training/optimization. The larger computational frequencies are created by , while the wavelength dependence of permits different complex weights to be assigned to those scaled features.
For a desired wavelength-specific field, we can define the finite Fourier target/ground truth nonlinear function as:
(4B)
Therefore, an accurate field-based function approximation requires for all , and . We can define the PSF synthesis error as:
(4C)
which yields :
(4D)
For the illumination wavelength , we can define the input feature vector as:
and the wavelength-dependent coefficient matrix as: .
The output fields at the output of a spectral-domain diffractive optical function approximator at the illumination wavelength can be written as:
(5A)
Since we consider a passive, time-invariant spectral-domain diffractive optical processor, the wavelength-labeled forward map is block diagonal:
(5B)
The nonzero blocks contain complex-valued coefficient entries. Our earlier works on wavelength-multiplexed phase-only diffractive optical processors demonstrated that we need:
to achieve for all , and . This is a parameter-count and design heuristic, and the realized PSF error (Eqs. (4C-D)) depends on, for example, the diffractive architecture/geometry, number of diffractive layers, aperture, wavelength span, optimization landscape, material dispersion, fabrication tolerances, throughput, and numerical aperture. Therefore, while wavelength diversity expands the computational features available for nonlinear function approximation, realizing the corresponding gains in expressive power requires sufficient trainable optical degrees of freedom to accurately synthesize their wavelength-dependent spatially varying PSF coefficients.
Nonlinear function approximation via output intensity of a spectral-domain diffractive processor
We assume that, for each channel , the field at the output of the spectral-domain diffractive processor is designed to approximate for (see Eq. (4D)), and that the photodetector assigned to channel performs a time-averaged square-law detection, where distinct optical wavelengths that are simultaneously on add in intensity. Let be the wavelength-dependent scaling constant at detector (which includes in its definition, e.g., the detector response and diffraction efficiency at wavelength ), we can then write the detected output signal function as:
Using Equation (4A), , we can get:
(6B)
This equation shows that square-law detection creates computational harmonics of the form . If we define the reference difference set as: , then the available detector-level frequency support is defined as:
If , then since . Thus, interference at the output detector with a nonzero DC component causes the field-level-scaled harmonics to appear directly in the detected intensity. If is symmetric and contains both and , the intensity detection at the output can also generate . That is why a symmetric field-frequency set can give a detector bandwidth twice the maximum field-frequency radius.
The resulting detector-level computational-frequency set, , determines the harmonics available for nonlinear function approximation. Wavelength diversity can expand this set by extending its frequency support and enriching the available harmonics within a fixed bandwidth, thereby increasing the range of nonlinear functions that the processor can accurately represent.
Equation (6B) can be written as a finite Fourier expansion:
where and
If we consider a desired/target non-negative finite Fourier function that can be expressed through the wavelength-specific target fields defined in Eq. (4B), we then get:
where
This target nonlinear function can be accurately approximated through the forward model of the spectral-domain diffractive processor if for all . As a sufficiency constraint, the spectral-domain diffractive processor can approximate this representation when for all , and by using degrees of freedom; see Eq. (5C). To support this conclusion, Fig. 2 reports the function approximation accuracy of spectral-domain diffractive processors for , , and , with mean squared error (MSE) values compared as a function and as well as which refers to the target (ground truth) functions' maximum frequency content. A similar analysis supporting the same conclusions is also reported in Supplementary Fig. S1 for increased values of along with an increased number of encoder harmonics, i.e., and . Both of these figures confirm that adding illumination wavelengths between fixed spectral endpoints (400 nm and 600 nm in these examples) increases the density and diversity of the spectral feature set for substantially improving the nonlinear function approximation accuracy.
Our analyses also reveal that these conclusions on the function representation advantages of illumination wavelength diversity in a spectral-domain diffractive processor hold for not only the case of but also for and . In addition to the analyses reported in Fig. 2 and Supplementary Fig. S1, this spectral-domain function representation improvement can also be visualized in Fig. 3 and Supplementary Figs. S2-6, which compare some examples of the output of the spectral-domain diffractive processors against the ground truth target functions, showing significant improvements as increases.
Earlier results shown in Figs. 2-3 and Supplementary Figs. S1-S6 demonstrate that direct intensity detection yields an accurate approximation of non-negative real functions. Signed or complex-valued nonlinear target functions require, for example, a differential or multi-intensity readout convention . To showcase this capability and extend our intensity-based readout to complex-valued nonlinear function approximation, we used three spatially separated output detectors, each assigned to a non-negative real-valued component function and a fixed complex basis coefficient, , where . Therefore, , where refers to the number of output detector channels. Following Eq. (6A), each detector collects the summed intensity contributions from all simultaneously illuminated wavelengths: . The complex-valued function estimate is reconstructed by combining these three detectors' real-valued signals: . Because the three complex basis coefficients are separated by , their non-negative linear combinations span the entire complex plane. This allows a complex-valued target function to be represented through three non-negative component functions without background subtraction from the individual detector signals. Each detector signal is synthesized using the wavelength-scaled computational features described above, extending the spectral-domain representation strategy to complex-valued nonlinear targets; see Figs. 4-5 and Supplementary Figs. S7-S8 for numerical results that demonstrate significant improvements in the complex function approximation accuracy of spectral-domain diffractive processors as increases.
These numerical results demonstrate that wavelength diversity can enhance nonlinear function-representation accuracy beyond what is achievable by simply increasing the number of trainable phase features in the tested monochromatic reference processors. Moreover, the accuracy improvements obtained by adding intermediate wavelengths within fixed spectral endpoints highlight the importance of harmonic diversity, beyond the expansion of computational bandwidth alone.
Computational bandwidth expansion and harmonic enrichment through wavelength diversity
In relation to Eqs. (6B-C), let's define the diameter of the reference computational frequency set for monochromatic illumination at as
(7A)
Stated differently, this term, , refers to the largest computational frequency norm that can be generated through square-law detection at the reference illumination wavelength .
Based on Eqs. (6B-C), the available detector-level computational bandwidth is given by:
(7B)
Since , we can also write . If the reference frequency set is symmetric, , then we have , which yields:
Based on these equations, the frequency endpoint-scaling factor relative to the longest wavelength of the multi-wavelength illumination can be given as:
(7D)
Using Equation (2C), for a general dispersive phase encoder device, we get:
Equations (7D-E) indicate that if the wavelength-dependent spatially varying PSFs can be synthesized by the optimized spectral-domain diffractive processor with sufficiently small error (i.e., for all and , see Eq. (4D)), the available detector-level computational bandwidth increases by .
If the shortest wavelength supplies the largest value of , then Eqs. (7D-E) can be simplified as:
In the general dispersive phase encoder case, the wavelength ratio alone is not sufficient to determine . If dispersion of the phase encoder device is nonmonotonic, the maximizing wavelength need not be the shortest one, and Eqs. (7D-E) should be used. Equation (7F) can be further simplified if we assume a dispersion-free phase encoder device, such as a piston-based micro-mirror array in air, also known as a Phase Light Modulator (PLM) . In such a dispersion-free phase encoder, we get: .
Importantly, we should emphasize that adding intermediate wavelengths, not just the shortest wavelength, is important because it supplies more separately weighted spectral components, increasing the number of distinct detector harmonics; see Eq. (6C),
. Stated differently, adding intermediate wavelengths can increase the number and density of distinct detector harmonics and can provide additional wavelength-specific coefficient contributions. Therefore, in the nondispersive case, or more generally when varies monotonically over the illumination wavelengths, the spectral endpoints determine the outer radius, while the intermediate wavelengths determine how richly that radius is populated and weighted. In the general dispersive case, the outer radius is determined by the active illumination wavelength that maximizes .
These theoretical results identify two complementary mechanisms through which wavelength diversity expands the expressive power of diffractive optical processors: extending the accessible computational-frequency support and enriching the available harmonic representation within that support. Both mechanisms contribute to the improved nonlinear function-approximation accuracy observed in our numerical studies (Figs. 2–5 and Supplementary Figs. S1–S8).
Approximation-error bound of spectral-domain diffractive processors
Following Eq. (6F), the desired non-negative detector function is given by:
We can define the wavelength-specific complex-field approximation error as :
, where represents the compact domain of the nonlinear-function argument, .
For each wavelength, we have:
Using the definition of gives:
Summing the weighted errors over all the illumination wavelengths that are simultaneously on gives:
For a general non-negative target nonlinear function that is not exactly in this finite function class, we can also define the truncation error as:
, which yields:
A more complete physical error budget can be defined by using additional noise terms (due to, e.g., illumination phase error or other factors that are implementation dependent).
These error bounds distinguish the limitations imposed by the available computational Fourier representation from those arising from imperfect synthesis of the required wavelength-dependent spatially varying coherent responses. They, therefore, provide a theoretical basis for understanding how wavelength diversity and trainable optical degrees of freedom jointly determine achievable nonlinear function-approximation accuracy.
Expanding the expressive power of single-layer spectral-domain diffractive optical processors
The preceding analysis was formulated for a general spectral-domain diffractive function approximator whose output is described through spatially varying coherent PSF coefficients at different illumination wavelengths, synthesized through optimized and cascaded multilayer phase structures (see Fig. 1). We next demonstrate that the computational bandwidth advantages of multi-wavelength illumination described in this work also extend to single-layer Encoder-Decoder (E+D) co-localized diffractive function approximators . The encoder-decoder co-localized (E+D) processor architecture places a dynamic, input-dependent encoder (E) and an optimized static (i.e., input-independent) decoder (D) on the same phase-only diffractive plane; see Fig. 6. After a free-space propagation step, the encoder and decoder fields interfere at the output detector, and square-law detection converts their coherent mixing term into a programmable real-valued nonlinear function.
To shed more light on the multi-wavelength illumination advantage in a single-layer spectral-domain E+D diffractive function approximator architecture, let's assume that the physical detector window assigned to output channel k be , with width . The detected output signal of an E+D spectral-domain diffractive architecture can then be written as :
(9A)
Here, and indicate the encoder-generated and decoder-generated output fields, respectively, at an illumination wavelength of . If we assume denotes the free-space coherent PSF between the E+D phase encoder plane and the output plane of the optical processor at wavelength , we can then write:
(9B)
where and are trainable phase terms at the illumination wavelength , and are both independent of the input ; they represent the optimized decoder (D) phase distribution and the phase bias term within the encoder (E) region, respectively. Because the encoder and decoder are implemented on the same co-localized phase modulator plane, the same physical phase-scaling factor applies to both regions as indicated in Eq. (9B). In this notation, E and D regions do not spatially overlap; the phase bias term at , i.e., , physically serves as the decoder within the E region. This way, any arbitrary topology of encoder and decoder regions is physically covered in our forward model described here. Note that, unlike the spatially varying PSFs ( ) corresponding to the multi-layer diffractive processors (Fig. 1) described in earlier sections, represents a shift-invariant complex-valued PSF due to the free-space propagation.
Equations (9A-B) reflect the -wavelength extension of the monochromatic E+D diffractive processor architecture. For every illumination wavelength, it contains the encoder self-intensity term , the decoder-only background , and the programmable encoder-decoder mixing term . This latter encoder-decoder mixing term provides directly programmable contributions at the encoded computational frequencies, while the encoder self-intensity term contributes additional difference-frequency components to the full detector response toward the nonlinear function-synthesis capability of an E+D architecture. Specifically, this mixing term in Eq. (9A) can be expanded as:
where .
Based on Eq. (9C), the available spectral support of the mixing term at one illumination wavelength satisfies:
Taking the union over all active illumination wavelengths yields the following expression for the available frequency support of the mixing term:
If , then Eq. (9E) simplifies to:
Similarly, by taking the union over all active illumination wavelengths, we can express the available frequency support of the encoder self-intensity term and the decoder-only background term as follows:
The full detector signal, in Eq. (9A), is the sum of the decoder-only background, mixing term, and self-intensity term. Therefore, the Fourier support of its sum is contained in the union of the individual supports, which yields the following expression for the available frequency support of under the E+D spectral-domain diffractive processor architecture:
Here and in our analysis below, , , and denote the architecture-level available frequency sets. Following our earlier notation, we have and for the reference illumination wavelength, . Based on these equations and Eqs. (9E-I), we can get the following expressions for the available bandwidth across all illumination wavelengths for each term:
(9J)
(9K)
(9L)
Equations (9J-L) confirm that, same as in Eq. (7D), the frequency endpoint-scaling factor relative to the longest wavelength of the multi-wavelength illumination for the E+D processor is also given by:
To numerically test the predicted frequency scaling factor, i.e., , and quantify its effect on the nonlinear function-approximation accuracy of a spectral-domain E+D diffractive processor, we conducted a comparison as shown in Fig. 7 and Supplementary Figs. S9-S11 (see Methods for details). Increasing the number of illumination wavelengths, while keeping the spectral endpoints at 500 and 700 nm, consistently improves approximation accuracy across the tested target nonlinear functions. This improvement persists when compared with monochromatic E+D reference architectures that have the same number of phase degrees of freedom, further supporting the enhanced function representation capacity of spectral-domain E+D diffractive processors. For example, at , the nine-wavelength E+D processor with ( ) achieves an MSE of , more than two orders of magnitude lower than the enlarged monochromatic reference E+D processors with the same number of trainable phase features (Fig. 7a). Furthermore, increasing from 2 to 9 within the same spectral endpoints reduces the MSE by -fold in this case, demonstrating substantial function representation accuracy gains without further increasing the outer computational-frequency radius. The representative nonlinear function examples reported in Supplementary Figs. S9-S11 further illustrate these improvements across different diffractive-feature budgets with , 1.0, and 1.5, showing increasingly accurate reproduction of the target functions' oscillatory features, consistent with the enriched computational frequency coverage enabled by spectral diversity.
Experimental Results
To experimentally validate the enhanced nonlinear function-representation capacity enabled by wavelength diversity, we implemented a compact, single-layer spectral-domain diffractive optical processor using a co-localized encoder-decoder architecture. We first investigated how increasing the number of illumination wavelengths within fixed spectral endpoints affects nonlinear function-approximation accuracy. Figure 8a shows the optical layout and experimental setup, in which a phase-only SLM implements the co-localized encoder and decoder (E+D), and a camera records the output intensities over spatially separated detector regions. To evaluate the effect of illumination-wavelength diversity experimentally, we initially compared diffractive processors approximating target functions with , and (Fig. 8b). The illumination configurations comprised monochromatic operation at 500 nm and 700 nm ( in each case), two-wavelength illumination at 500 nm and 700 nm ( ), and five-wavelength illumination spanning 500–700 nm in 50-nm increments ( ). Figure 8b compares the numerical designs, zero-shot experimental measurements, and measurements after in-situ learning (see the Methods for details). The five-wavelength diffractive processor ( ) achieved a zero-shot experimental MSE of , which decreased to after in-situ learning, closely matching the numerical design. Following in-situ learning, its MSE was -fold lower than that of the two-wavelength processor, with both configurations sharing the same spectral endpoints. Together with the numerical comparisons in Fig. 7, these measurements support the enriched computational frequency coverage enabled by spectral diversity, thereby enhancing the function representation capacity of diffractive processors. Furthermore, Fig. 9 presents the experimentally measured function outputs after in-situ learning for all 25 target functions corresponding to the five-wavelength diffractive processor, showing a good agreement with the distinct oscillatory profiles of the target functions across the input interval.
Next, we demonstrated the parallel approximation of target nonlinear functions with , and . The spatial assignment of the encoding harmonics, the optimized input-independent decoder phase pattern, and the detector layout are shown in Supplementary Fig. S12. Figure 10a compares the distributions of the function-wise MSE across all 4,136 output functions for the numerical design, its zero-shot experimental implementation, and the measurements after in-situ learning. In-situ learning reduced the median experimental MSE and narrowed the interquartile range, bringing the experimentally measured error distribution closer to the numerical predictions. Figure 10b further resolves the experimental performance spatially by reporting the mean MSE across detector subregions after in situ learning. The errors are lower in the central region and relatively higher near the detector-array boundary, revealing spatial variation in approximation accuracy across the output plane.
Furthermore, Fig. 10c presents 25 randomly selected target functions and their measured outputs, with additional examples provided in Supplementary Figs. S13–S15. These representative function responses complement the full-channel error statistics provided in Fig. 10a and the spatial error analysis in Fig. 10b. Together, these experiments demonstrate the enhanced nonlinear function-approximation accuracy enabled by wavelength diversity and its compatibility with massively parallel optical computation using a compact, single-layer spectral-domain diffractive processor.
Discussion
Our findings reveal that the expressive power of diffractive optical computing can be expanded by engineering the diversity of computational features encoded in light, rather than relying solely on increasing the number of trainable optical degrees of freedom. By exploiting multiple illumination wavelengths, a shared phase encoder generates an expanded set of computational Fourier features without increasing the number of input-encoded harmonics. For nondispersive encoders, the spectral endpoints determine the maximum accessible computational bandwidth, while intermediate wavelengths can enrich the harmonic coverage and provide additional wavelength-dependent coefficient contributions within that bandwidth. These findings establish the illumination spectrum as an additional physical resource for controlling the nonlinear function-representation capacity of optical computing systems.
Importantly, the benefits of wavelength diversity depend on the ability of the diffractive processor to synthesize the required wavelength-dependent spatially varying coherent responses with sufficient accuracy. Our theoretical framework captures this dependence through approximation-error bounds and physical resource-scaling considerations. In practical implementations, factors such as encoder dispersion, finite phase-modulation range, optical throughput, detector response and experimental noise can further influence the achievable accuracy. Illumination wavelength diversity, therefore, provides an additional approach to scaling optical computational expressivity, complementing the available trainable hardware degrees of freedom rather than eliminating their importance.
Our experimental demonstrations using a compact, single-layer encoder-decoder architecture confirm the advantages of spectral diversity for nonlinear function approximation and establish its compatibility with massively parallel optical computation. While the present experiments focus on real-valued nonlinear functions of a single input variable, our theoretical framework extends to higher-dimensional input spaces, and our numerical studies also demonstrate corresponding benefits for complex-valued nonlinear functions. Future investigations could explore multivariable nonlinear mappings, functions learned from experimental data, and integrated photonic implementations that exploit wavelength diversity. More broadly, these findings introduce spectral diversity as a general design consideration for expanding the computational capabilities of light-based information-processing systems.
Supplementary Information includes:
• Methods
○ Optical forward model of spectral-domain diffractive processors
○ Multi-wavelength illumination-based nonlinear function approximation
○ Training loss functions and implementation details
○ Hyperparameter and geometry optimization of spectral-domain diffractive processors
○ Details of the experimental setup
• Supplementary Figures S1-S15
References
-
Cybenko, G. Approximation by superpositions of a sigmoidal function. Math. Control Signals Syst. 2, 303–314 (1989).
-
Hornik, K., Stinchcombe, M. & White, H. Multilayer feedforward networks are universal approximators. Neural Netw. 2, 359–366 (1989).
-
Leshno, M., Lin, V. Y., Pinkus, A. & Schocken, S. Multilayer feedforward networks with a nonpolynomial activation function can approximate any function. Neural Netw. 6, 861–867 (1993).
-
Barron, A. R. Universal approximation bounds for superpositions of a sigmoidal function. IEEE Trans. Inf. Theory 39, 930–945 (1993).
-
Mhaskar, H. N. & Micchelli, C. A. Approximation by superposition of sigmoidal and radial basis functions. Adv. Appl. Math. 13, 350–373 (1992).
-
Pinkus, A. Approximation theory of the MLP model in neural networks. Acta Numer. 8, 143–195 (1999).
-
Lu, Z., Pu, H., Wang, F., Hu, Z. & Wang, L. The expressive power of neural networks: A view from the width. Adv. Neural Inf. Process. Syst. 30, 6231–6239 (2017).
-
Rahimi, A. & Recht, B. Random features for large-scale kernel machines. Adv. Neural Inf. Process. Syst. 20, 1177–1184 (2007).
-
Tancik, M. et al. Fourier features let networks learn high frequency functions in low dimensional domains. Adv. Neural Inf. Process. Syst. 33, 7537–7547 (2020).
-
Sitzmann, V., Martel, J., Bergman, A., Lindell, D. & Wetzstein, G. Implicit neural representations with periodic activation functions. Adv. Neural Inf. Process. Syst. 33, 7462–7473 (2020).
-
Lin, X. et al. All-optical machine learning using diffractive deep neural networks. Science 361, 1004–1008 (2018).
-
Mohammadi Estakhri, N., Edwards, B. & Engheta, N. Inverse-designed metastructures that solve equations. Science 363, 1333–1338 (2019).
-
Wetzstein, G. et al. Inference in artificial intelligence with deep optics and photonics. Nature 588, 39–47 (2020).
-
Shastri, B. J. et al. Photonics for artificial intelligence and neuromorphic computing. Nat. Photonics 15, 102–114 (2021).
-
Wright, L. G. et al. Deep physical neural networks trained with backpropagation. Nature 601, 549–555 (2022).
-
McMahon, P. L. The physics of optical computing. Nat. Rev. Phys. 5, 717–734 (2023).
-
Hu, J. et al. Diffractive optical computing in free space. Nat. Commun. 15, 1525 (2024).
-
Wanjura, C. C. & Marquardt, F. Fully nonlinear neuromorphic computing with linear wave scattering. Nat. Phys. 20, 1434–1440 (2024).
-
Xia, F. et al. Nonlinear optical encoding enabled by recurrent linear scattering. Nat. Photonics 18, 1067–1075 (2024).
-
Yildirim, M., Dinc, N. U., Oguz, I., Psaltis, D. & Moser, C. Nonlinear processing with linear optics. Nat. Photonics 18, 1076–1082 (2024).
-
Chen, S., Li, Y., Wang, Y., Chen, H. & Ozcan, A. Optical generative models. Nature 644, 903–911 (2025).
-
Yanagimoto, R. et al. Programmable on-chip nonlinear photonics. Nature 649, 330–337 (2026).
-
Zhang, H. et al. Scaling strategies for photonic neural networks. Nat. Rev. Phys. (2026). doi:10.1038/s42254-026-00984-z.
-
Feldmann, J. et al. Parallel convolutional processing using an integrated photonic tensor core. Nature 589, 52–58 (2021).
-
Ashtiani, F., Geers, A. J. & Aflatouni, F. An on-chip photonic deep neural network for image classification. Nature 606, 501–506 (2022).
-
Rahman, M. S. S., Li, Y., Yang, X., Chen, S. & Ozcan, A. Massively parallel and universal approximation of nonlinear functions using diffractive processors. eLight 5, 32 (2025).
-
Rahman, M. S. S., Shen, C.-Y. & Ozcan, A. Universal Function Approximation via Diffractive Optical Processors: Physical Limits, Error Bounds, and Learnability. Preprint at https://doi.org/10.48550/arXiv.2608.04582 (2026).
-
Wang, Y., Chen, A., Rahman, M. S. S. & Ozcan, A. Breaking the Cascade: Compact Nonlinear Optical Computing with Single-Layer Encoder-Decoder Co-Localization. Preprint at https://doi.org/10.48550/arXiv.2606.01032 (2026).
-
Kulce, O., Mengu, D., Rivenson, Y. & Ozcan, A. All-optical information-processing capacity of diffractive surfaces. Light Sci. Appl. 10, 25 (2021).
-
Kulce, O., Mengu, D., Rivenson, Y. & Ozcan, A. All-optical synthesis of an arbitrary linear transformation using diffractive surfaces. Light Sci. Appl. 10, 196 (2021).
-
Li, J. et al. Massively parallel universal linear transformations using a wavelength-multiplexed diffractive optical network. Adv. Photonics 5, 016003 (2023).
-
Wang, X. & Ozcan, A. Phase Multiplexed Optical Computing: Reconfiguring a Multi-Task Diffractive Optical Processor Using Illumination Phase Diversity. Laser Photonics Rev. e71487 (2026) doi:10.1002/lpor.71487.
-
Miller, D. A. How complicated must an optical component be? J. Opt. Soc. Am. A 30, 238–251 (2013).
-
Cheng, Y., Shen, C.-Y., Wang, Y., Chen, S. & Ozcan, A. Wavelength-Multiplexed Nonlinear Computing with a Single-Layer Diffractive Optical Processor. Preprint at https://doi.org/10.48550/arXiv.2609.18155 (2026).
-
Shen, C.-Y. et al. Multiplane quantitative phase imaging using a wavelength-multiplexed diffractive optical processor. Adv. Photonics 6, 056003 (2024).
-
Shen, C.-Y. et al. Wavelength-multiplexed diffractive optical information storage and image projection. Adv. Photonics 8, 046011 (2026).
-
Ouyang, B., Gong, S., Lawrence, T. et al. Evaluating Texas instruments Phase Light Modulator (PLM). Proc. SPIE 12118, 121180I (2022). doi:10.1117/12.2623938.
-
Akiba, T., Sano, S., Yanase, T., Ohta, T. & Koyama, M. Optuna: A Next-generation Hyperparameter Optimization Framework. in Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining 2623–2631 (ACM, Anchorage AK USA, 2019). doi:10.1145/3292500.3330701.
-
Bergstra, J., Bardenet, R., Bengio, Y. & Kégl, B. Algorithms for hyper-parameter optimization. Adv. Neural Inf. Process. Syst. 24, 2546–2554 (2011).
-
Falkner, S., Klein, A. & Hutter, F. BOHB: Robust and Efficient Hyperparameter Optimization at Scale. in Proceedings of the 35th International Conference on Machine Learning 1437–1446 (PMLR, 2018).
-
Tailscale | Secure Connectivity for AI, IoT & Multi-Cloud. https://tailscale.com (accessed 12 October 2026).
-
Li, Y., Chen, S., Gong, T. & Ozcan, A. Model-free optical processors using in situ reinforcement learning with proximal policy optimization. Light Sci. Appl. 15, 32 (2026).
Figures
Input argument
Spectral-Domain
Diffractive Nonlinear Processor
Output plane
Plane wave illumination
Encoded
illumination
Fig. 1 Spectral-domain diffractive nonlinear processor. The input argument is encoded by phase-only encoder channels and simultaneously illuminated at wavelengths. The resulting multi-spectral optical field propagates through an optimized diffractive processor containing trainable phase-only features. The processor implements wavelength-dependent, spatially varying coherent PSFs, , which map each input channel to output channel at the illumination wavelength . The resulting fields are jointly transformed onto output detectors, each corresponding to a distinct target nonlinear function. At the output channel , the detected intensities from distinct wavelengths are summed up with wavelength- and detector-dependent scaling factors , yielding the nonlinear function output . refers to the number of diffractive layers within the spectral-domain diffractive processor. An initial version of this illustration was generated using ChatGPT with the authors' text prompt and was subsequently modified by the authors.

b

C

d

e

f

Fig. 2 Effect of illumination-wavelength diversity on nonlinear function approximation accuracy using spectral-domain diffractive nonlinear processors. (a)–(d) MSE as a function of the number of simultaneously illuminated wavelengths for target-function maximum frequency values of and 28, respectively. Results are shown for and 1.5, where the total number of trainable diffractive features is (except for the monochrome diffractive designs shown with blue stars, which used ). These designs, shown with the blue stars, indicate that, for higher bandwidth nonlinear target functions, the monochrome diffractive systems with cannot achieve the same function approximation accuracy as multi-wavelength processors, even if they are given substantially increased degrees of freedom, . (e-f) MSE as a function of for the different spectral illumination configurations at and 1.5, respectively. All results use , , and . Also see Supplementary
Fig. S1 for increased values of along with increased number of encoder harmonics, i.e., and .

Fig. 3 Representative nonlinear function approximation results using diffractive nonlinear processors under different spectral illumination configurations; , . (a)-(d) Examples of two target nonlinear functions and their corresponding diffractive-processor outputs for , 20, 24 and 28, respectively. The columns compare single-wavelength ( ) illumination at 600 nm and 400 nm with multi-wavelength illumination using , 3, 5 and 9 wavelengths spanning 400–600 nm. In each panel, the black solid curves denote the target functions and the colored dashed curves denote the corresponding spectral-domain diffractive outputs. All results use , , , and , i.e., . Also see Supplementary Figs. S2-S6 for different , and configurations.






Fig. 4 Effect of illumination-wavelength diversity on complex-valued nonlinear function approximation accuracy using spectral-domain diffractive nonlinear processors. Here, three separated detectors approximate distinct real-valued non-negative nonlinear functions, which are combined with bases to reconstruct the target complex-valued nonlinear function. (a)–(d) MSE as a function of the number of simultaneously illuminated wavelengths for target-function maximum frequency values of , 20, 24 and 28, respectively. Results are shown for , 1.0 and 2.0, where the total number of trainable diffractive features is (except for the monochrome diffractive designs shown with blue stars, which used ). These designs shown with the blue stars indicate that, for higher bandwidth nonlinear target functions, the monochrome diffractive systems with cannot achieve the same function approximation accuracy as multi-wavelength processors, even if they are given substantially increased degrees of freedom, . (e-f) MSE as a function of for the different spectral illumination configurations at and 2.0, respectively. All results use , , and .

Fig. 5 Representative complex-valued nonlinear function approximation results using diffractive nonlinear processors under different spectral illumination configurations; , . (a)-(d) Examples of the real and imaginary parts of the target nonlinear functions and their corresponding diffractive-processor outputs for , 20, 24 and 28, respectively. The columns compare single-wavelength ( ) illumination at 600 nm and 400 nm with multi-wavelength illumination using , 3, 5 and 9 wavelengths spanning 400–600 nm. In each panel, the black solid curves denote the target functions and the colored dashed curves denote the corresponding diffractive outputs. All results use , , , and , i.e., .
Input argument
,
Plane wave illumination
Output plane

Fig. 6 Spectral-domain Encoder-Decoder (E+D) co-localized diffractive nonlinear processor. A set of spatially coherent plane waves at discrete wavelengths simultaneously illuminates a phase-only E+D input plane comprising an input-dependent encoder and a shared trainable decoder containing N trainable phase features. For an input argument , each encoder feature applies an argument-dependent phase modulation defined by its computational harmonic, , whereas each decoder feature applies an argument-independent trainable phase modulation . Here, accounts for the wavelength-dependent scaling of the phase modulation at illumination wavelength . The optical fields originating from the encoder and decoder channels co-propagate onto an output plane containing detector regions, where they coherently interfere. At wavelength , the resulting encoder and decoder fields are denoted by and , respectively, and are formed through the wavelength-dependent coherent point-spread functions of the E+D processor. For each output channel , the interference intensity is spatially integrated over the corresponding detector region, , and the detected intensities from the different wavelengths are combined using wavelength- and detector-dependent scaling factors , yielding the nonlinear function output .
An initial version of this illustration was generated using ChatGPT with the authors' text prompt and was subsequently modified by the authors.
a

b

c

d

e

f

Fig. 7 Effect of illumination-wavelength diversity on nonlinear function approximation accuracy using spectral-domain E+D diffractive processors. (a)-(d) MSE as a function of the number of simultaneously illuminated wavelengths for target-function maximum frequency values of , 24, 28 and 32, respectively. Results are shown for , 1.0 and 1.5, where the total number of trainable diffractive features is (except for the monochrome diffractive designs shown with blue stars, which used ). These designs shown with the blue stars indicate that, for higher bandwidth nonlinear target functions, the monochrome diffractive systems with cannot achieve the same function approximation accuracy as multi-wavelength
E+D diffractive processors, even if they are given substantially increased degrees of freedom, N. (e-f) MSE as a function of for the different spectral illumination configurations at and 1.5, respectively. All results use , , and .
a

2.5cm
b

Fig. 8 Experimental setup and validation of spectral diversity in a spectral-domain E+D diffractive nonlinear processor. (a) Photograph of the experimental setup, showing the SLM, the 4f relay system, and the output sensor. White arrows indicate the optical path. Scale bar, 2.5 cm. (b) MSE as a function of the number of simultaneously illuminated wavelengths for . The total number of trainable diffractive features is , . All results use , , and . Black, blue and red lines show the numerical designs, zero-shot experimental measurements, and experimental measurements after in-situ learning, respectively. For all illumination configurations, the designs include a penalty on the wavelength-averaged diffraction efficiency falling below a common target of 2.6% (see Methods section for the details).

Fig. 9 Experimental results on nonlinear function approximation using a spectral-domain E+D diffractive processor. We used , , , , and . The panels show all target nonlinear functions and their corresponding spectral-domain diffractive processor outputs, implemented in parallel, for . The blue dashed lines refer to the measurements after in-situ training. The black lines refer to the target nonlinear functions.

b
C

Fig. 10 Experimental parallel implementation of nonlinear functions using a spectral-domain E+D diffractive processor. (a) Distributions of the MSE across all 4,136 target functions for numerical simulations, zero-shot experimental measurements, and experimental measurements after in-situ learning. (b) Spatial distribution of the mean MSE after in-situ learning across detector subregions. Each cell reports the MSE averaged over the function outputs assigned to that subregion, with color indicating the error magnitude. (c) Representative approximation results for target nonlinear functions randomly picked out of functions, with a maximum target-function frequency of . Black solid curves denote the target functions, and blue dashed curves denote the measured outputs after in-situ training. The processor uses , , , and . Also see Supplementary Figs. S13-S15 for the additional examples of the nonlinear functions.