AI GLOSSARY · AI CONCEPTS

Activation function

Markdown version · Wikidata Q4677469

Definition

An activation function transforms values within a neural network. Nonlinear activations let stacked transformations represent nonlinear relationships; a linear identity activation is also possible. The function, output range and placement depend on the architecture and task.

Also called: activation functions, neural network activation function, nonlinear activation, activation function in deep learning.

In plain language

An activation function is the small rule at each node of a neural network that decides how much of its signal to pass on. Picture a dimmer switch rather than an on-off switch: the node adds up its inputs and the function reshapes that total before it moves forward. Composing only affine transformations still gives an affine transformation; nonlinear activations can make a layered network more expressive. The choice of function is a design decision and a poor one can slow or stall training. Google's crash course recommends starting with ReLU. The choice affects training time, which is a cost on large models.

Technical definition

A standard dense unit applies an activation after an affine combination of inputs. Sigmoid maps finite real inputs into (0,1), tanh into (-1,1), and ReLU returns max(0,x). Activations need not all be nonlinear: Keras also provides a linear identity activation. ReLU is nonlinear and piecewise linear, with a nondifferentiable point at zero.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Skill by Hugging Face · Illustrative, not executed

    huggingface-datasets 25/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    Hugging Face datasets read through the Dataset Viewer API, with metadata, rows, search and filters.
    Why it exercises the concept
    This linked skill helps inspect data. It does not choose activations or train a neural network; it is preparation rather than a demonstration of the function.
  2. Skill by Skill Almanac · Illustrative, not executed

    split-leakage-check 53/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    A check of train, validation and test files for duplicates, shared groups, time and label leakage, printed as JSON.
    Why it exercises the concept
    Not a training skill. When you try different activation functions you compare them on held-out data, and a leaky split would make the choices look better than it is.
  3. Skill by Skill Almanac · Illustrative, not executed

    data-analysis-eda 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    A fixed exploratory-analysis procedure and CSV profiler that keeps findings descriptive, evidenced and caveated.
    Why it exercises the concept
    Not a training skill. Profiling your table first shows how the inputs are scaled, which is background you need before reading any training log.
  4. Coding tool · Illustrative, not executed

    Claude Code

    What you see
    Claude Code's overview page describes it as an agentic coding tool that reads your codebase, edits files and runs commands.
    Why it exercises the concept
    You can ask a coding agent to write a tiny network in PyTorch or scikit-learn, swap ReLU for tanh in one line and compare the training logs yourself.

How it shows up when you use agents

Activation functions appear when you or an agent write or read network code, for example a PyTorch or TensorFlow model definition where a line between two layers names ReLU, sigmoid or tanh.

Reading that line is the practical skill. If a network with many layers behaves like a plain linear model, check whether the relevant computation includes nonlinear operations. If the loss stops falling early, the choice of function and the learning rate are two of the first things to look at, since CS231n notes that ReLU units can die when the learning rate is too high.

What breaks when it is misunderstood: people treat the function as a minor detail and copy a different one from another project without checking the output range. A sigmoid on the last layer gives values between 0 and 1, which suits a probability and not an unbounded number. A sensible next action is to start with ReLU in hidden layers, as Google suggests, change one thing at a time and compare on held-out data. See Neural network and Backpropagation.

Worked example (illustrative)

For inputs −2 and 2, ReLU returns 0 and 2, whereas an identity activation returns −2 and 2. ReLU is not restricted to outputs between zero and one and is not differentiable at zero. These evaluated formulas illustrate different activation choices; no network was trained or compared for task performance.

Common confusions

  • Activation function versus loss function. The activation shapes each node's output during the forward pass. The loss measures the error of the final output and drives training.
  • Activation function versus perceptron threshold. A perceptron's hard step is one early kind of activation. Other activations include smooth sigmoid and tanh and nonsmooth ReLU. See Perceptron.
  • Sigmoid versus ReLU. Sigmoid squashes values into 0 to 1 and ReLU passes positive values unchanged. Google says it still recommends starting with ReLU. Sigmoid can saturate, which can make gradients small; suitability depends on the layer and task.
  • Myth. Any function will do. Without a nonlinear one, stacked layers stay linear, per Google's crash course.

Terms that mention Activation function

5 terms mention this one

More in AI concepts

Next steps

  1. huggingface-datasets A skill that exercises it.
  2. Neural network Related term.
  3. Perceptron Related term.
  4. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.

Review record

Last verified

Drafted by Claude (original draft) and Codex (automated revisions); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-24. Last verified .

Change log (6)
  • : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
  • : First version.
  • : Verifier pass: qualified CS231n claim, sourced ReLU default.
  • : Learning-method scope and counterexample corrections; independent exact-version review pending.
  • : Aligned related-tool explanations with scoped definitions; no blanket claims about the full catalog.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.