Skip to main content
QUICK REVIEW

[Paper Review] Frequency Principle in Deep Learning with General Loss Functions and Its Potential Application

Zhi‐Qin John Xu|arXiv (Cornell University)|Nov 26, 2018
Model Reduction and Neural NetworksPhysics and Astronomy14 references14 citations
TL;DR

This paper demonstrates that the Frequency Principle (F-Principle)—where deep neural networks (DNNs) train low-frequency components before high-frequency ones—holds for general loss functions, including mean squared error and cross-entropy. The authors validate this using theoretical analysis and experiments, showing DNNs can accelerate low-frequency convergence in solving differential equations, and propose a hybrid DNN-Jacobi method that leverages DNNs for low-frequency capture and classical solvers for high-frequency refinement.

ABSTRACT

Previous studies have shown that deep neural networks (DNNs) with common settings often capture target functions from low to high frequency, which is called Frequency Principle (F-Principle). It has also been shown that F-Principle can provide an understanding to the often observed good generalization ability of DNNs. However, previous studies focused on the loss function of mean square error, while various loss functions are used in practice. In this work, we show that the F-Principle holds for a general loss function (e.g., mean square error, cross entropy, etc.). In addition, DNN's F-Principle may be applied to develop numerical schemes for solving various problems which would benefit from a fast converging of low frequency. As an example of the potential usage of F-Principle, we apply DNN in solving differential equations, in which conventional methods (e.g., Jacobi method) is usually slow in solving problems due to the convergence from high to low frequency.

Motivation & Objective

  • To establish that the Frequency Principle (F-Principle) is not limited to mean squared error loss but generalizes to other common loss functions such as cross-entropy.
  • To investigate whether F-Principle can be leveraged to improve numerical solution methods for differential equations, particularly those with slow low-frequency convergence.
  • To propose and validate a hybrid numerical scheme combining DNNs and classical iterative solvers (e.g., Jacobi) to accelerate convergence by exploiting DNNs' inherent low-frequency priority.
  • To provide theoretical and empirical evidence that DNN training dynamics with general loss functions still exhibit the sequential learning of frequency components from low to high.

Proposed method

  • Theoretical analysis of gradient flow in DNN training with general loss functions, showing that the loss gradient's frequency response favors low-frequency components due to the spectral decay of activation functions.
  • Use of orthonormal basis decomposition (e.g., Fourier basis) to represent the DNN output and track the evolution of frequency coefficients during training.
  • Empirical validation using a 1D classification task with cross-entropy loss, demonstrating that low-frequency components are learned earlier than high-frequency ones.
  • Application of DNNs to solve 1D Poisson’s equation via Dirichlet’s principle, comparing DNN training dynamics with classical Jacobi and Gauss-Seidel methods in the frequency domain.
  • Design of a hybrid D-Jacobi method: DNN is trained first to capture low-frequency components, then the DNN output is used as an initial guess for a classical iterative solver to refine high-frequency components.
  • Implementation of adaptive timing for switching from DNN to classical solvers, based on loss flatness and fluctuation, to avoid premature or delayed transition.

Experimental results

Research questions

  • RQ1Does the Frequency Principle persist when using general loss functions beyond mean squared error, such as cross-entropy?
  • RQ2Can the F-Principle in DNNs be exploited to accelerate the solution of differential equations that suffer from slow low-frequency convergence in classical iterative methods?
  • RQ3How can the DNN’s inherent frequency bias be combined with classical solvers to improve overall convergence speed and accuracy?
  • RQ4What is the optimal timing to switch from DNN training to classical iterative solvers in a hybrid numerical scheme?
  • RQ5To what extent does the DNN’s frequency bias align with the convergence behavior of classical solvers like Jacobi or Gauss-Seidel?

Key findings

  • The F-Principle holds for general loss functions, including cross-entropy and mean squared error, as confirmed by theoretical analysis and experiments.
  • In a 1D classification task with cross-entropy loss, DNNs still learn low-frequency components before high-frequency ones, confirming the generality of F-Principle.
  • For solving Poisson’s equation, DNNs converge faster on low-frequency components compared to the Jacobi method, which converges slowly on low frequencies.
  • The D-Jacobi hybrid method achieves faster convergence than either DNN or Jacobi alone when the switch from DNN to classical solver is timed at loss flatness.
  • The DNN output at the optimal switching point achieves a lower infinity norm error than the DNN alone after extended training, demonstrating improved efficiency.
  • Frequency domain analysis shows that DNNs suppress high-frequency components early in training, preventing oscillatory behavior seen in polynomial fitting (e.g., Runge’s phenomenon).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.