Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Deep Learning using Rectified Linear Units (ReLU)

Sigmoid activations stop deep networks learning while ReLU and Tanh keep training

  • Problem Sigmoid activations shrink gradients in deep convolutional networks, so early layers stop learning. Researchers had not compared ReLU, Tanh and Sigmoid under identical settings across several tasks.
  • Method The authors keep each model and training recipe fixed and change only the hidden-layer activation among ReLU, Tanh and Sigmoid. Each setting runs 10 times with different random seeds.
  • Results On MNIST, Sigmoid scored 11.35 compared to 99.22 for ReLU. Tanh and ReLU stay close on most datasets, with the ranking changing from one dataset to the next.

Why saturating activations stall learning

A network learns by passing errors from the output layer back through its layers, and each layer's update depends on the gradient it receives. The authors trace part of the early failure of deep networks to activations with a small output range, together with network depth. With a logistic activation, the gradient keeps shrinking until the network effectively stops learning, a failure called the vanishing gradient problem.

The Sigmoid derivative peaks at 0.25, so every backpropagated gradient gets multiplied by fractions.

In a deep convolutional stack, those fractions compound, and the first layers end up with almost no usable error signal. The study therefore asks whether the choice of activation can change whether such classifiers learn at all. A second question concerns credit: which earlier work introduced ReLU into hidden layers, and that question sets up the next section.

Who introduced ReLU into hidden layers

The authors trace the piecewise linear idea back to early biological network models and to visual feature extraction work. Later work on dynamical networks gave these functions a stronger biological motivation. The authors credit Nair and Hinton (2010) with bringing ReLU into modern deep learning, because they argued it eases optimization and keeps relative intensity across layers.

A later study is credited with showing that ReLU prevents vanishing gradients in deep feedforward networks.

The authors say the 2018 version of this paper was often cited as the origin of ReLU, and they call this a mis-citation. That version put ReLU at the classification layer in place of Softmax, so it never made ReLU a hidden-layer activation. So the authors reassign the hidden-layer credit to Nair and Hinton and repeat the correction in the conclusion.

One fixed protocol, three activations

The key idea is to hold the model family and training recipe fixed for each task and change only the hidden-layer activation among ReLU, Tanh and Sigmoid. Each task gets a generic architecture, so a gap between activations can be read as an activation effect rather than a design choice. Image classification uses an Image CNN, a VGG-style stack of 3×3 convolutions with max-pooling and a 256-unit linear layer before the output.

Text classification uses a TextCNN with a Conv1D layer of 128 outputs, and reconstruction uses a convolutional autoencoder with a 1024-unit latent space.

Each configuration was run 10 times with different random seeds for initialization and data shuffling. Image classifiers used SGD with a maximum learning rate of 1e−1, while the text and reconstruction models used AdamW with maxima of 0.01 and 0.003. All runs followed the OneCycle schedule with bfloat16 mixed precision, and the CIFAR images received random crops and horizontal flips during training.

The data split gave 50% to training and 5% to validation, and a withheld test set produced the final scores. Classification scores are reported as means and standard deviations over the 10 runs, and a Kruskal-Wallis H test at alpha 0.05 checks whether the activations differ.

Image classification: Sigmoid never learns

On all four image datasets the Sigmoid runs failed to converge, as the loss curves show. Their final accuracies sit at chance, roughly 10% on the 10-class sets and 1% on CIFAR100. On MNIST the table scores Sigmoid at 11.35, compared to 99.22 for ReLU. This matches the earlier account: the fractional gradients decay, so the first layers never receive a useful update.

ReLU and Tanh both trained on all four datasets, and on FashionMNIST and CIFAR10 they land close together. On CIFAR10 ReLU scored 79.72 and Tanh 79.60, while on FashionMNIST Tanh scored 91.37 compared to 91.35 for ReLU. The ordering flips on CIFAR100, where Tanh scored 48.53 compared to 41.91 for ReLU. The authors read the activation differences as significant at alpha 0.05 on all four datasets, with p-values between 1.52e-06 and 4.01e-05.

So the gap to Sigmoid is large everywhere, while the ReLU and Tanh gap changes sign from one dataset to the next.

Text classification and early overfitting

On IMDB the pattern changes, since Sigmoid and Tanh also drove the training loss down alongside ReLU. The authors credit the shallower TextCNN, which has fewer layers between the embedding and the output, so fewer fractional gradient products build up. ReLU scored 83.33%, compared to 79.90 for Sigmoid and 78.74 for Tanh. The Kruskal-Wallis H test gave a p-value of 4.60e-06 for this comparison.

The average loss curves show validation loss bottoming out around epoch 3 for all three activations. After that, validation loss rises while training loss keeps falling, and Tanh climbs most steeply. So the TextCNN memorizes the training set, and the authors suggest early stopping could lift every configuration, though the reported runs don't test it.

The authors also attribute ReLU's edge to its constant gradient on the positive side and to activation sparsity, and they did not measure these separately.

Reconstruction: Tanh scores highest on PSNR

The autoencoder downsamples three times with stride 2 to a 4×4×64 map and a 1024-unit latent space. Reconstructions are scored with MSE, MAE and PSNR, where a higher PSNR means better fidelity. On MNIST, Tanh scored 33.19 dB, compared to 32.11 dB for ReLU. On CIFAR10 the gap is wider: Tanh scored 29.64 dB, compared to 25.42 dB for ReLU.

Sigmoid came last on both datasets, at 12.15 dB on MNIST and 22.31 dB on CIFAR10. The authors offer Tanh's zero-centred output as a partial reason, since it softens saturation a little. They present this as interpretation, not as a separately measured result. The error metrics don't all agree: Tanh's MAE on MNIST is 0.011207, above ReLU's 0.010673.

Limitations

The abstract says ReLU had the highest mean accuracy on image classification, but Table 1 gives Tanh 48.53 on CIFAR100, compared to 41.91 for ReLU. Tanh also edges ReLU on FashionMNIST, 91.37 compared to 91.35, so the image ranking isn't uniform. So the claim that ReLU is the most robust and performant choice across domains goes further than the evidence, since Tanh led on PSNR too.

The IMDB comparison is a single TextCNN with a 15-epoch training cycle. Reconstruction covers only MNIST and CIFAR10, each with one generic autoencoder. The early-stopping idea for IMDB was not tested in the reported runs, so its effect on the ranking is unknown.

Paper info

Authors
Abien Fred Agarap
Venue
arXiv · Preprint
First published
2018-3-22
Added
2026-11-12
Updated
2026-4-14
Version
v3
arXiv
1803.08375
Category
cs.NE · cs.CV · cs.LG · stat.ML
Original paper terms
CC BY-NC-SA 4.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Abien Fred Agarap (2018). Deep Learning using Rectified Linear Units (ReLU). arXiv:1803.08375v3. https://arxiv.org/abs/1803.08375v3

BibTeX
@misc{agarap2018deep,
  title = {{Deep Learning using Rectified Linear Units (ReLU)}},
  author = {Abien Fred Agarap},
  year = {2018},
  eprint = {1803.08375},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.08375v3}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up