Skip to main content
QUICK REVIEW

[Paper Review] Growing Cosine Unit: A Novel Oscillatory Activation Function That Can Speedup Training and Reduce Parameters in Convolutional Neural Networks

Mathew Mithra Noel, L Arunkumar|arXiv (Cornell University)|Aug 30, 2021
Spectroscopy Techniques in Biomedical and Chemical ResearchBiochemistry, Genetics and Molecular Biology11 references6 citations
TL;DR

This paper introduces the Growing Cosine Unit (GCU), a novel oscillatory activation function defined as $ C(z) = z \cdot \cos z $, which enhances gradient flow and reduces network size by enabling single neurons to model multiple decision boundaries via periodic zeros. Experiments show GCU outperforms ReLU, Swish, Mish, and Sigmoid on CIFAR-10, CIFAR-100, and Imagenette in accuracy and convergence speed, while solving the XOR problem with a single neuron.

ABSTRACT

Convolutional neural networks have been successful in solving many socially important and economically significant problems. This ability to learn complex high-dimensional functions hierarchically can be attributed to the use of nonlinear activation functions. A key discovery that made training deep networks feasible was the adoption of the Rectified Linear Unit (ReLU) activation function to alleviate the vanishing gradient problem caused by using saturating activation functions. Since then, many improved variants of the ReLU activation have been proposed. However, a majority of activation functions used today are non-oscillatory and monotonically increasing due to their biological plausibility. This paper demonstrates that oscillatory activation functions can improve gradient flow and reduce network size. Two theorems on limits of non-oscillatory activation functions are presented. A new oscillatory activation function called Growing Cosine Unit(GCU) defined as $C(z) = z\cos z$ that outperforms Sigmoids, Swish, Mish and ReLU on a variety of architectures and benchmarks is presented. The GCU activation has multiple zeros enabling single GCU neurons to have multiple hyperplanes in the decision boundary. This allows single GCU neurons to learn the XOR function without feature engineering. Experimental results indicate that replacing the activation function in the convolution layers with the GCU activation function significantly improves performance on CIFAR-10, CIFAR-100 and Imagenette.

Motivation & Objective

  • To investigate whether oscillatory activation functions can improve gradient flow and reduce network complexity in deep CNNs.
  • To address the limitations of non-oscillatory, monotonic activation functions like ReLU, which suffer from neuron death and limited decision boundary expressiveness.
  • To propose a new activation function that enables single neurons to solve complex tasks like XOR without feature engineering or multi-layer architectures.
  • To empirically validate the GCU's superiority over existing activation functions in terms of accuracy, convergence speed, and parameter efficiency.

Proposed method

  • Propose the Growing Cosine Unit (GCU) activation function defined as $ C(z) = z \cdot \cos z $, which is oscillatory and non-monotonic.
  • Theoretical analysis shows that non-oscillatory activation functions are limited in their ability to model complex decision boundaries, motivating the use of oscillatory functions.
  • Leverage the multiple zeros of $ C(z) $ to create infinitely many parallel hyperplanes in the decision boundary of a single neuron.
  • Train and evaluate CNNs using GCU in convolutional layers across CIFAR-10, CIFAR-100, and Imagenette benchmarks with standard architectures.
  • Compare gradient dynamics using RMS values of gradients across training epochs to analyze flow stability.
  • Use a compact CNN architecture to ensure fair comparison across activation functions.

Experimental results

Research questions

  • RQ1Can oscillatory activation functions like GCU improve gradient flow and reduce the number of parameters in CNNs?
  • RQ2Can a single GCU neuron solve the XOR problem without requiring multiple neurons or complex architectures?
  • RQ3How does the GCU activation function compare to ReLU, Leaky ReLU, Swish, and Mish in terms of training speed and test accuracy?
  • RQ4Does the oscillatory nature of GCU lead to more stable gradient dynamics compared to ReLU-based functions?
  • RQ5What are the theoretical limitations of non-oscillatory activation functions in modeling complex decision boundaries?

Key findings

  • The GCU activation function significantly outperforms ReLU, Swish, Mish, and Sigmoid on CIFAR-10, CIFAR-100, and Imagenette in terms of test accuracy and convergence speed.
  • The GCU enables a single neuron to solve the XOR problem, whereas traditional activation functions require at least three neurons.
  • The RMS gradient values for GCU remain stable in the range of 0 to 20, with significantly reduced oscillations compared to ReLU and Leaky ReLU, which exhibit wilder fluctuations in the 0 to 40 range.
  • The GCU activation avoids the neuron death problem because it is non-zero over large intervals and has non-zero derivatives except at isolated points.
  • The oscillatory nature of GCU leads to multiple decision hyperplanes per neuron, enabling more complex function approximation with fewer parameters.
  • Theoretical analysis confirms that non-oscillatory activation functions are fundamentally limited in their ability to model complex, non-linear decision boundaries.

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.