Skip to main content
QUICK REVIEW

[Paper Review] Rational neural networks

Nicolas Boullé, Yuji Nakatsukasa|arXiv (Cornell University)|Jan 1, 2020
Model Reduction and Neural NetworksPhysics and Astronomy52 references7 citations
TL;DR

This paper introduces rational neural networks—deep learning models using trainable rational functions as activation units—demonstrating they approximate smooth functions with exponentially smaller depth and fewer parameters than ReLU networks. Theoretical analysis and experiments show rational networks achieve superior approximation efficiency, faster convergence, and improved performance on PDE solvers and GANs due to smooth, differentiable, and highly expressive activation functions.

ABSTRACT

We consider neural networks with rational activation functions. The choice of the nonlinear activation function in deep learning architectures is crucial and heavily impacts the performance of a neural network. We establish optimal bounds in terms of network complexity and prove that rational neural networks approximate smooth functions more efficiently than ReLU networks with exponentially smaller depth. The flexibility and smoothness of rational activation functions make them an attractive alternative to ReLU, as we demonstrate with numerical experiments.

Motivation & Objective

  • To address the limitations of ReLU activation functions, such as vanishing gradients and poor approximation of smooth functions.
  • To explore the theoretical and practical advantages of using rational functions as activation units in deep neural networks.
  • To demonstrate that rational networks can achieve the same approximation accuracy as ReLU networks with exponentially smaller depth and fewer parameters.
  • To develop a practical, trainable, and smooth activation function that enhances optimization and generalization in deep learning models.

Proposed method

  • The paper proposes rational neural networks where activation functions are low-degree rational functions of the form F(x) = P(x)/Q(x), with trainable coefficients in numerator and denominator.
  • It establishes theoretical bounds showing that rational networks approximate smooth functions with exponentially smaller depth than ReLU networks for a given accuracy.
  • The authors use composition of low-degree rational functions to build high-degree rational approximations, preserving expressivity while minimizing parameter count.
  • Networks are trained using standard optimization (e.g., L-BFGS, Adam), with rational activations initialized to approximate ReLU for stable training.
  • Experiments use TensorFlow and Keras to implement rational activations in fully connected and convolutional networks for PDE solvers and GANs.
  • Rational functions are initialized using coefficients that best approximate ReLU, ensuring stable training and improved convergence.

Experimental results

Research questions

  • RQ1Can rational activation functions provide better approximation efficiency than ReLU networks for smooth functions?
  • RQ2What is the theoretical depth and size complexity of rational networks compared to ReLU networks for approximating smooth functions?
  • RQ3How do trainable rational activations affect optimization and convergence in deep learning models?
  • RQ4Can rational networks outperform ReLU-based models in practical applications like PDE solvers and GANs?
  • RQ5What is the optimal degree and type of rational activation function for different deep learning tasks?

Key findings

  • Rational neural networks require exponentially smaller depth than ReLU networks to approximate smooth functions to within a given accuracy, as proven by theoretical bounds.
  • Theoretical analysis shows that rational networks achieve approximation error ϵ with network size O(ϵ−d/n log(log(1/ϵ))) for smooth functions on [0,1]^d.
  • In KdV equation solvers, rational networks with (3,2) activation functions achieved lower approximation error (0.00125) than ReLU (0.05) after 10,000 L-BFGS iterations.
  • For GANs on MNIST, rational networks with (3,2) activation functions achieved lower validation loss (≈10^3) than ReLU after 20 epochs, with better sample quality.
  • All tested rational network types (2,2), (3,2), (4,3), and (5,4) outperformed ReLU networks in both PDE and GAN experiments, with (3,2) offering a good trade-off between parameters and accuracy.
  • The use of smooth, trainable rational activations leads to faster convergence and improved generalization, as evidenced by lower training and validation losses in both benchmarks.

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.