---
title: Partitionable Diffractive Neural Networks (PDNNs)
url: https://www.emergentmind.com/topics/partitionable-diffractive-neural-networks-pdnns
type: topic
---

# Partitionable Diffractive Neural Networks (PDNNs)

Partitionable diffractive neural networks (PDNNs) are a class of optical neural networks in which phase-only diffractive layers are divided horizontally into submodules, enabling independent training and flexible assembly of multifunctional optical computing architectures. PDNNs combine the speed and energy efficiency of diffractive neural networks (DNNs) with modularity and reconfigurability, allowing dynamic multiplexing of imaging, classification, and holography tasks within a single fabricated optical element. The partitionable design paradigm addresses the limitations of traditional DNNs, in which functionality is fixed upon fabrication and cannot be adapted without hardware modification [2601.17742].

## 1. PDNN Architecture and Submodule Partitioning

A PDNN comprises $M$ diffractive layers, each a square array of $N \times N$ phase-modulating pixels or “neurons.” Each pixel is a pillar of adjustable height fabricated in a photoresist (e.g., $n \approx 1.733$ in HTL resin), with phase modulation given by $\phi_i^l$ at layer $l$ and lateral location $(x_i, y_i)$. The phase profile of the $l$-th layer is represented as a real-valued matrix $G_l \in \mathbb{R}^{N \times N}$.

The lateral aperture is partitioned into $K$ submodules. For example, with $K = 4$ quadrants of size $(N/2) \times (N/2)$, each submodule $Q_k$ is defined as a disjoint block of the $N \times N$ grid. Formally, $Q_k = G[:, X_k, Y_k]$ where $X_k, Y_k$ index a region of the array for each $k=1,\ldots,K$.

Each submodule $Q_k$ comprises $M$ layers localized in its quadrant. When illuminated individually via a spatial mask, each submodule acts as an independent DNN, performing a distinct optical transformation (e.g., focusing, classification, imaging). Lateral concatenation of all submodules forms the global PDNN, $G$, realizing complex joint transformations. Submodules may be physically rotated (e.g., by angles $\theta_k$) and reassembled, yielding new functionalities without retraining.

## 2. Wave-Optical Modeling of PDNNs

Propagation of optical fields through PDNNs is governed by scalar diffraction theory. Each neuron at position $(x_i, y_i, z_l)$ acts as a source under monochromatic illumination of wavelength $\lambda$.

The transmission coefficient for neuron $i$ of layer $l$ is $t_i^l = a_i^l \exp(j \phi_i^l)$, with $a_i^l \approx 1$ for phase-only modulation. The field contributed by this neuron to the next plane is described by the Rayleigh–Sommerfeld kernel:
\[
w_l(x, y; x_i, y_i) = \frac{1}{j \lambda} \frac{e^{j 2\pi r / \lambda}}{r},
\]
where $r = \sqrt{(x - x_i)^2 + (y - y_i)^2 + (z - z_l)^2}$.

The forward propagation through each layer is computed as a spatial convolution:
\[
U_{l}(x, y) = \iint U_{l-1}(x', y')\, t_l(x', y')\, h_l(x - x', y - y')\, dx' dy',
\]
with $h_l$ the free-space impulse response for layer $l$. The output intensity is $I_{out}(x, y) = |U_{M+1}(x, y)|^2$.

For simulation, the Rayleigh–Sommerfeld integral or approximations such as the angular-spectrum or Fresnel methods are employed for computational efficiency. Experimental verification uses full-wave 3D finite-difference time-domain (FDTD) solvers.

## 3. Training Methodologies and Loss Design

PDNN submodules are optimized by gradient-based methods to minimize task-specific loss functions. For each submodule $Q_k$, a target pattern $T_k(x, y)$ is specified (holographic image, label mask), and a mean squared error is used:
\[
L_k = \frac{1}{N_p} \sum_{p=1}^{N_p} \left( \frac{I^{(k)}_{out}(p)}{\max I^{(k)}_{out}} - T_k(p) \right)^2
\]
with $N_p = (N/2) \times (N/2)$ pixels in the quadrant.

When the full network $G$ is illuminated, it may be assigned a distinct global task $T^*$ with corresponding loss,
\[
L_* = \frac{1}{N^2}\sum_{p=1}^{N^2} (I_{out}^*(p) - T^*(p))^2.
\]
The total loss function is the weighted sum:
\[
L_{total} = \sum_{k=1}^K L_k + \alpha L_*
\]
where $\alpha$ balances submodule and global objectives. During training, phase parameters $\phi_i^l$ are updated via backpropagation of the scalar-diffraction forward model using optimizers such as Adam.

## 4. Submodule Assembly and Functional Reconfiguration

PDNNs leverage horizontal modularity for compositional flexibility. Submodules, once trained, can be recombined via lateral assembly and rotation. The transmission function for the full network is:
\[
t_{full}(x,y) =
\begin{cases}
t_1(x, y) & (x, y) \in Q_1 \\
t_2(x, y) & (x, y) \in Q_2 \\
\vdots & \\
t_K(x, y) & (x, y) \in Q_K \\
\end{cases}
\]
where each $t_k$ may be optionally rotated by $\theta_k$ before assignment.

Activation of multiple or all submodules realizes new, composite transformations. No retraining of the individual submodules is necessary to generate new task configurations; only the total loss for the new global task must be specified and optimization performed over the relevant $\phi_i^l$.

This architecture enables a practical form of hardware reconfiguration within monolithic diffractive devices—unlike traditional DNNs that require physical modification for new functions [2601.17742].

## 5. Experimental Realizations and Performance Metrics

PDNNs have been experimentally demonstrated in the terahertz (0.29 THz) regime using 3D-printed resin phase plates. Table 1 summarizes selected tasks and reported performance metrics from [2601.17742]:

| Configuration                              | Sim. Diffraction Efficiency | Measured Efficiency     |
|---------------------------------------------|----------------------------|------------------------|
| Holography: "0"–"2", "5" digits (Q₁–Q₄)    | 46.98–48.44%               | 14.53–16.65%           |
| Holography: "7" with full network           | 39.21%                     | 13.49%                 |
| Letters "S", "J", "T", "U" (Q₁–Q₄)         | 46.8–48.1%                 | 26.2–28.2%             |
| MNIST "1" vs "3" (full net, classification) | 95.16% (sim.)              | 100% (test, exp.)      |

Efficiencies decrease in experimental settings due to absorption and reflection losses. Classification and composite holography performances match closely with theoretical predictions when using 3D-printed devices. The lateral modularity allows for instant reconfiguration; for example, rotating Q₁–Q₄ by 0°, 90°, 180°, 270° yields the ability to multiplex generation of new output digits without retraining.

## 6. Scalability, Multiplexing, and Practical Considerations

PDNNs support modular scalability; $K$ can be increased for finer subdivision (e.g., $3 \times 3$ submodules for nine parallel tasks), trading off with total aperture size. The approach is compatible with spectral multiplexing (wavelength-division), polarization multiplexing, and orbital angular momentum encoding, thus enabling multiplication of channel count without increased chip area [2601.17742, 2407.16486].

Physical implementation leverages 3D printing of phase elements with pixel heights $h = (\lambda \phi)/(2\pi \Delta n)$, quantized in 10 μm steps and heights up to 1400 μm. Rigorous alignment (better than one pixel, 800 μm) and angular tolerance (<1°) are necessary to avoid inter-submodule cross-talk. Substrate thickness (10 mm) ensures mechanical stability.

*This suggests PDNNs are suited to lightweight, low-power, and adaptive optical AI deployments where hardware flexibility and functional integration are prioritized.*

## 7. Context: Comparison to Multi-Wavelength and Spectral DNNs

The partitionable approach is distinct from—yet compatible with—multi-wavelength or "spectral" diffractive networks, where sequential DOEs are optimized for different tasks addressed via distinct illumination wavelengths [2407.16486]. Both approaches use phase-only DOEs and differentiable wave-optical models, but PDNNs expand functional capacity by lateral submodule recombination rather than relying on spectral channel orthogonality. A plausible implication is that PDNNs can be combined with wavelength, polarization, or spatial-multiplexing strategies to further augment multitask capacity within a single device.

In summary, PDNNs advance all-optical neural network design by introducing horizontal modularity and submodule reuse, enabling versatile, reconfigurable, and multitask optical information processing in a unified diffractive platform [2601.17742].

Source: https://www.emergentmind.com/topics/partitionable-diffractive-neural-networks-pdnns