Migrating Knowledge between Physical Scenarios based on Artificial Neural Networks

Yurui Qu, Li Jing, Yichen Shen, Min Qiu, Marin SoljacicarXiv 2018

Abstract

Deep learning models in the physical sciences are often constrained by the high cost and scarcity of high-quality data. This paper investigates the application of transfer learning to bridge this gap by migrating knowledge between distinct physical scenarios, such as from nanoparticles to thin films. By pre-training a "BaseNet" on large-scale synthetic data and fine-tuning a "TransferNet" on limited target data, researchers achieved error reductions of up to 50%. The results suggest that neural networks can capture fundamental physical principles, such as wave propagation, that remain valid across different geometric configurations.

Introduction

In fields like nanophotonics, deep neural networks (DNNs) are increasingly used to predict light-matter interactions. However, these models are notoriously "data-hungry." Generating training data via numerical simulations (e.g., FDTD) is computationally expensive, while physical experiments are time-consuming and difficult to scale. When trained on small datasets (e.g., 500 samples), DNNs often suffer from overfitting, failing to generalize the underlying physics. This study addresses whether a model trained on one physical system can transfer its "understanding" to a related but different system using minimal additional data.

Methods: TransferNet and Multi-task Learning

The researchers developed two primary strategies to overcome data scarcity:

  1. Transfer Learning (TransferNet): A "BaseNet" is first trained on a large source dataset (50,000 examples). A "TransferNet" is then initialized by copying the first n layers of the BaseNet. These pre-trained layers serve as a foundation of general physical knowledge, which is then fine-tuned using a small target dataset of only 500 examples.
  2. Multi-task Learning (MTL): Instead of sequential training, MTL trains a single network to solve multiple related tasks simultaneously (e.g., predicting spectra for films with varying layer counts). This forces the network to learn shared features that are robust across different tasks.
Schematic of the transfer learning framework, illustrating the migration of knowledge from a large source dataset to a small target dataset.

Key Insights: The Universality of Physics

A critical finding of this research is that physical knowledge is transferable even between vastly different geometries. For instance, transferring weights from a nanoparticle scattering task to a thin-film transmission task reduced the error rate by 19.7%. This implies that the initial layers of the network learn fundamental wave physics—akin to Maxwell’s equations—rather than just specific geometric patterns.

However, the study also identified the risk of "negative transfer." If too many layers are transferred from a source task that is too dissimilar, the error rate can increase. The later layers of a network tend to become specialized to the source geometry; forcing a new model to use these specialized weights can be counterproductive.

Key Results

The transfer learning approach demonstrated significant performance gains across several scenarios:

  • Similar Scenarios: Migrating knowledge from 10-layer films to 8-layer films reduced relative error by 50.5%.
  • Cross-Domain Success: Moving from nanoparticles to thin films resulted in a 19.7% error reduction.
  • Data Efficiency: Models using transfer learning achieved accuracy with 500 samples that would typically require thousands of samples in a direct learning approach.
Performance comparison showing how increasing the number of transferred layers reduces spectrum error and improves the accuracy of predicted transmissivity curves.

Conclusion

Transfer learning provides a powerful tool for the physical sciences, allowing researchers to leverage large, "cheap" datasets to improve performance on small, "expensive" ones. While the current study required manual grid searches to determine the optimal number of layers to transfer, future work aims to automate this process and explore the applicability of these techniques in other domains like fluid dynamics and chemistry. By treating neural networks as repositories of physical priors, scientists can significantly accelerate the discovery and design of complex physical systems.

Reference: Qu, Y., Jing, L., Shen, Y., Qiu, M., & Soljačić, M. (2019). Migrating Knowledge between Physical Scenarios based on Artificial Neural Networks. arXiv:1809.00972v2 [cs.CV].

Summary updated

BibTeX
@misc{qu2018migrating,
  author = {Yurui Qu and Li Jing and Yichen Shen and Min Qiu and Marin Soljacic},
  title = {{Migrating Knowledge between Physical Scenarios based on Artificial Neural Networks}},
  year = {2018},
  eprint = {1809.00972},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1809.00972},
}
Figure