NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Trainable Activation Function Supported CNN in Image Classification

Zhaohe LiaoarXiv 2020

Introduction

In contemporary deep learning, architectural design often focuses on layer depth, connectivity, and optimization strategies. However, the activation function—a core component defining neural non-linearity—is frequently relegated to a static choice, such as ReLU or Sigmoid. This paper, "Trainable Activation Function in Image Classification" by Zhaohe Liao, challenges this paradigm by proposing that activation functions should be learnable parameters, allowing the network to adapt its non-linear transformations to the specific features of the data.

Methodology

The research explores two primary methodologies for implementing trainable activations to move away from human-defined priors.

Fourier-CNN

The Fourier-CNN represents the activation function as a truncated Fourier series. Given that any well-behaved function can be approximated by a sum of periodic components, the network can "learn" an optimal shape by tuning the coefficients ($a_n, b_n$), frequency ($\omega$), and DC offset ($A$). In this study, a rank-5 series was employed, providing sufficient flexibility to approximate standard functions or evolve entirely new ones.

Linear Combination CNN (LC-CNN)

The LC-CNN approach treats activation selection as a "mixture of experts." Instead of a single function, the output is a weighted sum of several candidates: ReLU, Sigmoid, Tanh, and a linear function. These weights are learned during training, allowing the model to blend different non-linear properties.

Network Architecture

The experiments utilized standard CNN structures of varying scales (small, middle, and large). A typical architecture used in these tests involves sequential convolutional and pooling layers followed by fully connected (dense) layers.

Standard CNN architecture used for evaluating trainable activation functions.

Experimental Results

The models were evaluated on the CIFAR-10 dataset. The results indicate that trainable activations consistently outperform the standard ReLU baseline across all model sizes.

Performance Comparison

A significant finding is the impact of model scale on the choice of trainable activation. While Fourier-CNNs provide the most substantial gains in smaller models (where expressive power is limited), LC-CNNs tend to perform better as the network size increases.

In the "Small" model category, the Fourier-CNN showed the most dramatic improvement, reaching 64.23% accuracy compared to the 59.14% baseline (+5.09%). For "Middle" models, Fourier-CNN achieved 67.38%.

Validation accuracy and loss for Large models, comparing Fourier-CNN, LC-CNN, and standard CNN baselines.

As shown in the figure above, both trainable methods significantly reduce validation loss compared to the standard CNN. In the "Large" model configuration, the LC-CNN achieved the highest validation accuracy at 67.91%, a 3.17% improvement over the baseline.

Hybrid Training and Optimization

The study also investigated auxiliary techniques. Unsupervised pre-training using Autoencoders was found to stabilize the learning of complex Fourier coefficients, leading to faster convergence and higher final accuracy. Conversely, alternative optimization algorithms like Particle Swarm Optimization (PSO) were found to be less effective than standard backpropagation (RMSProp) for this specific task, reaching only about half the accuracy.

Conclusion

By treating the activation function as a learnable component rather than a fixed prior, neural networks can achieve better performance with fewer parameters. The Fourier-CNN is particularly effective for enhancing the capacity of small models, while the LC-CNN offers superior generalization for larger architectures. Future research will focus on integrating these trainable activations into deeper, state-of-the-art architectures like ResNets to determine if these gains scale to more complex tasks.

Summary updated

BibTeX
@misc{liao2020trainable,
  author = {Zhaohe Liao},
  title = {{Trainable Activation Function Supported CNN in Image Classification}},
  year = {2020},
  eprint = {2004.13271},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.13271},
}
Figure