Multi-Task Learning in Diffractive Deep Neural Networks via Hardware-Software Co-design

Yingjie Li, Ruiyang Chen, Berardi Sensale Rodriguez, Weilu Gao, Cunxi YuarXiv 2020

Abstract

Deep neural networks (DNNs) have substantial computational requirements, which greatly limit their performance in resource-constrained environments. Recently, there are increasing efforts on optical neural networks and optical computing based DNNs hardware, which bring significant advantages for deep learning systems in terms of their power efficiency, parallelism and computational speed. Among them, free-space diffractive deep neural networks ($D^2NNs$) based on the light diffraction, feature millions of neurons in each layer interconnected with neurons in neighboring layers. However, due to the challenge of implementing reconfigurability, deploying different DNNs algorithms requires re-building and duplicating the physical diffractive systems, which significantly degrades the hardware efficiency in practical application scenarios. Thus, this work proposes a novel hardware-software co-design method that enables robust and noise-resilient Multi-task Learning in $D^2NNs$. Our experimental results demonstrate significant improvements in versatility and hardware efficiency, and also demonstrate the robustness of proposed multi-task $D^2NN$ architecture under wide noise ranges of all system components. In addition, we propose a domain-specific regularization algorithm for training the proposed multi-task architecture, which can be used to flexibly adjust the desired performance for each task.

Introduction

Deep Neural Networks (DNNs) are computationally expensive and power-hungry. Optical computing, specifically Diffractive Deep Neural Networks ($D^2NNs$), offers a solution by performing computations using light diffraction at the speed of light with near-zero power consumption. However, $D^2NNs$ have a major "rigidity" problem. Because the "neurons" are physically etched into layers (like 3D-printed masks or lithographic plates), a system designed for one task cannot easily be switched to another without physically rebuilding the entire optical setup. This lack of reconfigurability makes them inefficient for practical, multi-purpose applications. This work introduces a hardware-software co-design approach to enable multi-task learning in $D^2NNs$, allowing a single optical system to handle multiple tasks simultaneously without physical changes.

Methods

The proposed framework treats the physical optical path and the digital training algorithm as a single integrated system. The architecture utilizes a shared optical backbone consisting of four diffractive layers that extract general features. A beam splitter then divides the light into two paths, each leading to task-specific diffractive layers.

Schematic of the proposed multi-task D2NN architecture showing shared and task-specific diffractive layers.

To increase capacity without adding more detectors, a novel "dual-encoding" scheme is used. For Task 1 (MNIST), the system identifies the class by finding the detector with the lowest energy (argmin). For Task 2 (Fashion-MNIST), it uses the highest energy (argmax). This allows the system to perform automatic task recognition in real-time. Additionally, a domain-specific regularization loss function with adjustable task weights ($\lambda$) is used to balance performance across tasks and prevent overfitting on a single dataset.

Results

The multi-task system was evaluated on MNIST and Fashion-MNIST datasets. It achieved 97.7% accuracy on MNIST and 88.6% on Fashion-MNIST, nearly matching the performance of dedicated single-task models. Crucially, the proposed system achieved a 75% improvement in hardware efficiency, as measured by the Accuracy-Hardware (Acc-HW) Product.

Comparison of hardware cost and accuracy between single-task and multi-task D2NN systems.

The system also demonstrated robustness to practical noise, with performance degradation of less than 1% under simulated fabrication errors and detector noise. Scaling tests showed the architecture could handle up to four tasks (including K-MNIST and E-MNIST) by further subdividing detector regions, proving the method is extensible.

Conclusion

By baking logic into the physical optical path and employing clever software encoding, this co-design method significantly enhances the versatility and efficiency of $D^2NNs$. The system effectively performs multi-tasking in parallel at the speed of light. Future work will explore integrating active components like Spatial Light Modulators (SLMs) for full reconfigurability and scaling to even more complex task sets.

Summary updated

BibTeX
@misc{li2020multi,
  author = {Yingjie Li and Ruiyang Chen and Berardi Sensale Rodriguez and Weilu Gao and Cunxi Yu},
  title = {{Multi-Task Learning in Diffractive Deep Neural Networks via Hardware-Software Co-design}},
  year = {2020},
  eprint = {2012.08906},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.08906},
}
Figure