Neural Integral Functionals

Zheyuan Hu, Tianbo Li, Zekun Shi, Kunhao Zheng, Giovanni Vignale, Kenji Kawaguchi, Shuicheng Yan, Min LinPhysics4ML @ ICLR 2023

TL;DR

This paper introduces Neural Integral Functionals (NIF), a novel neural network architecture designed to approximate mathematical functionals. NIF's key innovation is its explicit incorporation of the input function's derivative, which proves crucial for outperforming existing methods like Neural Operators (NOs) on problems requiring accurate functional derivatives, such as those in classical and quantum physics.

What Problem Does This Paper Address?

Many scientific problems, from classical mechanics (e.g., finding the path of least time) to quantum physics (e.g., density functional theory), are formulated using functionals. A functional takes a function as input and outputs a scalar value. Finding the minimum of these functionals is often the core task, analogous to finding the minimum of a function using gradient descent. The "gradient" for functionals is called the functional derivative (FD).

While neural networks have been applied to learn functions (e.g., Neural Operators or NOs), learning functionals and their derivatives presents unique challenges. NOs, despite their theoretical universality, struggle with numerical integration in their intermediate layers, leading to generalization issues and difficulty in capturing the input function's derivative explicitly. This paper addresses the need for a more robust and accurate method for learning and minimizing functionals, especially those where the functional derivative is critical.

Methods

The authors propose Neural Integral Functional (NIF), a neural network architecture designed to approximate functionals of the form $J[f] = \int I(x, f(x), \nabla f(x)) dx$. The core components of NIF are:

  • Function Transformation Layers: These layers process the input function $f(x)$ and its derivative $\nabla f(x)$ through a series of MLPs. This is where NIF differs significantly from NOs, as it explicitly takes $\nabla f(x)$ as an input.
  • Integral Layer: This final layer computes a numerical integration of the transformed output to produce the scalar functional value.

A key aspect of NIF is its ability to jointly learn the functional and its functional derivative (FD). The FD can be computed analytically for integral-type functionals using the Euler-Lagrange equation. NIF leverages this by incorporating an FD loss term during training. This loss penalizes discrepancies between the model's predicted FD and the ground truth FD, which the authors argue is crucial for improving generalization and enabling applications that require accurate FDs (e.g., Sobolev training).

Datasets

The paper uses synthetic datasets generated for two main tasks:

  • Functional Fitting: Datasets are generated for two synthetic functionals: $J_0[f] = \int f(x) dx$ and $J_1[f] = \int x f'(x) dx$. Input functions are sampled from linear combinations of sinusoids and polynomials.
  • Solving Poisson's Equation: This task involves learning a functional whose FD corresponds to Poisson's equation. The input functions are generated based on known solutions to ensure the zero boundary condition.

No new benchmark datasets are introduced; instead, the authors focus on demonstrating NIF's capabilities on well-defined synthetic problems.

Key Insights and Ideas

  • The Derivative Matters: Explicitly including the derivative of the input function ($\nabla f(x)$) as an input to the neural network is critical for accurately approximating functionals, especially those where the derivative plays a significant role. This is a key differentiator from standard Neural Operators.
  • Joint FD Training Improves Generalization: Incorporating a loss term for the functional derivative (FD loss) significantly improves the model's ability to fit the functional and its derivative, leading to better generalization. This is particularly important for downstream tasks that rely on accurate FDs.
  • NIF Outperforms NOs on Derivative-Sensitive Tasks: For functionals where the derivative is important, NIF demonstrates superior performance compared to Fourier Neural Operators (FNOs), even though FNOs are theoretically universal approximators. This highlights the practical limitations of NOs in handling derivative information.
  • Unified Framework for Functionals and FDs: NIF provides a single framework capable of approximating both the functional itself and its functional derivative, enabling applications like solving variational problems and Sobolev training.

Key Results

  • Functional Fitting: In experiments fitting synthetic functionals, NIF with $\nabla f$ input significantly outperformed FNOs when fitting $J_1[f]$, which explicitly depends on the derivative. For $J_0[f]$, which does not depend on $\nabla f$, NIF without $\nabla f$ input performed well, but NIF with $\nabla f$ still showed competitive results.
  • FD Regularization Benefits: The use of FD loss consistently led to significant reductions in relative L2 errors for both the functional and its derivative, demonstrating its effectiveness in improving accuracy and generalization.
  • Solving Poisson's Equation: NIF achieved near-indistinguishable results from the ground truth solution for Poisson's equation, significantly outperforming FNO, which showed much larger errors. This showcases NIF's effectiveness in functional minimization problems.

Limitations and Future Work

  • Synthetic Datasets: The current experiments are primarily conducted on synthetic datasets. While these demonstrate NIF's core capabilities, validation on more complex, real-world scientific datasets would be beneficial.
  • Computational Cost: While not explicitly detailed, the inclusion of derivative computations and potentially more complex network architectures might increase computational cost compared to simpler models.
  • Future Work: The authors suggest that NIF can be applied to a wide range of applications for learning functionals in physics. Future work could explore its use in more complex physical systems, non-local functionals, and potentially extend it to higher-order derivatives. The ability to embed existing neural network-based functional models within NIF is also highlighted as a promising direction.

Summary updated

BibTeX
@inproceedings{hu2023neural,
  author = {Zheyuan Hu and Tianbo Li and Zekun Shi and Kunhao Zheng and Giovanni Vignale and Kenji Kawaguchi and Shuicheng YAN and Min Lin},
  title = {{Neural Integral Functionals}},
  booktitle = {Physics4ML @ ICLR},
  year = {2023},
  url = {https://openreview.net/forum?id=aQuqw6eVKP},
}
Figure