[Paper Review] On the Activation Function Dependence of the Spectral Bias of Neural Networks
This paper theoretically explains the spectral bias in ReLU neural networks by linking them to finite element methods, predicting that replacing ReLU with the Hat activation function—piecewise linear B-spline—eliminates this bias. Empirically, networks with the Hat activation train significantly faster and generalize better, demonstrating that spectral bias is activation-function-dependent, not universal.
Neural networks are universal function approximators which are known to generalize well despite being dramatically overparameterized. We study this phenomenon from the point of view of the spectral bias of neural networks. Our contributions are two-fold. First, we provide a theoretical explanation for the spectral bias of ReLU neural networks by leveraging connections with the theory of finite element methods. Second, based upon this theory we predict that switching the activation function to a piecewise linear B-spline, namely the Hat function, will remove this spectral bias, which we verify empirically in a variety of settings. Our empirical studies also show that neural networks with the Hat activation function are trained significantly faster using stochastic gradient descent and ADAM. Combined with previous work showing that the Hat activation function also improves generalization accuracy on image classification tasks, this indicates that using the Hat activation provides significant advantages over the ReLU on certain problems.
Motivation & Objective
- To understand why ReLU neural networks exhibit spectral bias, favoring low-frequency function components during training.
- To develop a theoretical framework linking ReLU networks to finite element methods to explain this bias.
- To predict that modifying the ReLU activation to the Hat function (a piecewise linear B-spline) would eliminate spectral bias.
- To empirically validate the absence of spectral bias in networks using the Hat activation.
- To demonstrate that Hat-activated networks train faster and generalize better than ReLU networks.
Proposed method
- Theoretical analysis connects ReLU networks to the finite element method, modeling them as piecewise linear approximations over a mesh.
- Eigenvalue analysis of the kernel matrix associated with the network's feature map reveals that low-frequency modes are learned faster.
- The Hat activation function is defined as a piecewise linear B-spline basis function, differing from ReLU in its smoothness and compact support.
- Theoretical bounds are derived for the eigenvalues of the network’s Hessian or kernel matrix, showing that spectral bias diminishes when using the Hat activation.
- Empirical validation is performed across shallow and deep networks, using both synthetic and real data, measuring convergence speed and frequency learning dynamics.
- Training efficiency is evaluated using stochastic gradient descent and ADAM, comparing loss convergence and generalization performance.
Experimental results
Research questions
- RQ1Does the spectral bias in ReLU networks arise from their activation function, or is it a general property of overparameterized models?
- RQ2Can the spectral bias be theoretically explained through connections to finite element methods?
- RQ3Does replacing ReLU with the Hat activation function eliminate spectral bias in neural network training?
- RQ4Do networks with the Hat activation train faster and generalize better than ReLU networks?
- RQ5Is the spectral bias robust across different optimization algorithms and network architectures?
Key findings
- Theoretical analysis confirms that ReLU networks exhibit spectral bias due to their piecewise linear structure, which aligns with finite element approximations.
- The Hat activation function, a piecewise linear B-spline, removes spectral bias by enabling more uniform frequency learning across the spectrum.
- Empirical results show that networks with the Hat activation train significantly faster than ReLU networks under both SGD and ADAM optimization.
- The Hat-activated networks demonstrate improved generalization performance on image classification tasks, consistent with prior findings.
- The spectral bias is not universal; it critically depends on the choice of activation function, as shown by the absence of bias in Hat-activated models.
- Theoretical bounds on eigenvalues of the kernel matrix confirm that the learning rate for high-frequency components increases when using the Hat activation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.