Papers › Searching for Activation Functions

Searching for Activation Functions

16 Oct 2017ICLR 2018 1arXiv:1710.05941archive 2025-07-28

Prajit Ramachandran, Barret Zoph, Quoc V. Le

The choice of activation functions in deep networks has a significant effect on the training dynamics and task performance. Currently, the most successful and widely-used activation function is the Rectified Linear Unit (ReLU). Although various hand-designed alternatives to ReLU have been proposed, none have managed to replace it due to inconsistent gains. In this work, we propose to leverage automatic search techniques to discover new activation functions. Using a combination of exhaustive and reinforcement learning-based search, we discover multiple novel activation functions. We verify the effectiveness of the searches by conducting an empirical evaluation with the best discovered activation function. Our experiments show that the best discovered activation function, f(x) = x ·sigmoid(βx), which we name Swish, tends to work better than ReLU on deeper models across a number of challenging datasets. For example, simply replacing ReLUs with Swish units improves top-1 classification accuracy on ImageNet by 0.9\% for Mobile NASNet-A and 0.6\% for Inception-ResNet-v2. The simplicity of Swish and its similarity to ReLU make it easy for practitioners to replace ReLUs with Swish units in any neural network.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1710.05941")

Code

Syntology Ran 6 of 20 code samples harvested from 6 repositories linked to this paper; 14 have no recorded run. Of those that ran: 3 ran · our draft was wrong; 2 ran · fixture could not drive it; 1 ran with no contract checked.

By repository: community (archive-listed): 20 samples from 6 repositories, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

22 repositories listed; official and paper-mentioned ones first.

Neoanarika/CNN-using-Swish mentioned on GitHubtf report
ShubAn1901/Licence-Plate-Recognition mentioned on GitHubpytorch report
ShubAn1901/License-Plate-Recognition mentioned on GitHubpytorch report
WarClans612/deep_learning_final mentioned on GitHubpytorchMIT report
WessZumino/expectation_propagation mentioned on GitHubtfApache-2.0 report
fengye-lu/PyTorch-SRGAN mentioned on GitHubpytorch report
islaterm/you-activated-my-neuron mentioned on GitHubpytorch report
jeyoor/pymich-dl mentioned on GitHubtfMIT report
jiajunhua/aitorzip-PyTorch-SRGAN mentioned on GitHubpytorchGPL-3.0 report
swordgeek/SR mentioned on GitHubpytorchGPL-3.0 report
thomasbrandon/swish-torch mentioned on GitHubpytorchMIT report
tuantle/simple_nn_with_numpy mentioned on GitHubjaxMIT report
tyunist/memory_efficient_mish_swish mentioned on GitHubpytorch report
wnorowsb/Super-resolution-GAN mentioned on GitHubpytorch report
wvabrinskas/Neuron mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

20 samples harvested; 6 ran; 0 honoured the contract we drafted; 14 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
2ran · fixture could not drive it
1ran
14unverified

Licence: 3 of the 20 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 6 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Swish_func tyunist/memory_efficient_mish_swish/swish.py community (archive-listed) ran no licence file found · pointer only · 637511ceeecf1796 · report
act WessZumino/meanfield-theory-of-activation-functions/TF/esp_tf_utils.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · df1af39a35cafa81 · report
fixed_padding Neoanarika/Searching-for-activation-functions/src/childnetwork.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · 5756d6bfbcce2dfc · report
sig islaterm/you-activated-my-neuron/src/neuron/activation_functions.py community (archive-listed) ran · our draft was wrong fingerprinted no licence file found · pointer only · f32504dbf9150ad6 · report
swish WarClans612/deep_learning_final/models.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 31117990d4f24fdf · report
swish islaterm/you-activated-my-neuron/src/neuron/activation_functions.py community (archive-listed) ran · our draft was wrong fingerprinted no licence file found · pointer only · 919aae7a4c5d1c1a · report
act WessZumino/expectation_propagation/Python/esp_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · f0ec10189ae424f4 · report
batch_norm_relu Neoanarika/Searching-for-activation-functions/src/childnetwork.py community (archive-listed) unverified MIT (permissive) · aad048324892b5d3 · report
conv2d_fixed_padding Neoanarika/Searching-for-activation-functions/src/childnetwork.py community (archive-listed) unverified MIT (permissive) · c756a6986ed2d1b8 · report
create_placeholders WessZumino/expectation_propagation/TF/esp_tf_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 7bbbdebd2c04644f · report
epoch_sampling WessZumino/expectation_propagation/TF/analysis_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 99c30c0e30d4744e · report
fetch_public_key WarClans612/deep_learning_final/travis_pypi_setup.py community (archive-listed) unverified MIT (permissive) · 4fcc838ec7ac0111 · report
index WessZumino/expectation_propagation/TF/analysis_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 2bb7b02beb4bcb12 · report
initialize_parameters WessZumino/expectation_propagation/Python/esp_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 1c69a8fc3aa908af · report
initialize_parameters WessZumino/expectation_propagation/TF/esp_tf_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · e1fff8e843c51c8e · report
one_hot_econding WessZumino/expectation_propagation/TF/esp_tf_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · f5bbffdf347b2247 · report
path_exists Neoanarika/Searching-for-activation-functions/src/utils.py community (archive-listed) unverified MIT (permissive) · e6085d661f8724f7 · report
relu_init Neoanarika/Searching-for-activation-functions/src/utils.py community (archive-listed) unverified MIT (permissive) · c58c0528e0f0b05f · report
remove_dir Neoanarika/Searching-for-activation-functions/src/utils.py community (archive-listed) unverified MIT (permissive) · 9e3b33e6b46657bb · report
sigmoid WessZumino/expectation_propagation/Python/esp_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 3b622bff5ce900a3 · report

Tasks

Image ClassificationReinforcement Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

ReLUSiLUSigmoid Activation

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections