# ReLU

- **Canonical URL:** https://getaimath.com/dictionary/relu/
- **Topics:** [Transformer Architecture](https://getaimath.com/dictionary/category/transformer-architecture/)
- **Last updated:** 2026-11-25

## What is ReLU?

**In one sentence:** ReLU is a simple activation function that outputs 0 for any negative number and leaves positive numbers unchanged.

ReLU stands for Rectified Linear Unit. It is like a gate that blocks everything below zero. It is fast to compute and helped make deep networks trainable, which is why it became hugely popular.

![Transformers & Attention: The Smart Highlighter — Simple cartoon diagram showing how a Transformer reads a whole sentence at once and shines a bright highlighter beam from the word "IT" back to "trophy" so it knows what "IT" means.](https://getaimath.com/diagrams/transformer-architecture.png)
*Napkin Diagram (Transformer Architecture): Older AI read word-by-word and often lost track of earlier words; a Transformer highlights which words connect to which.*

## What is an example of ReLU?

ReLU turns −5 into 0 and 3 into 3.

## Why does ReLU matter?

ReLU's simplicity helped kick off the deep learning revolution.

## Related Concepts

- [Activation Function](https://getaimath.com/dictionary/activation-function/): An activation function decides how strongly a neuron "fires" by transforming its total input into its output.
- [GELU](https://getaimath.com/dictionary/gelu/): GELU is a smooth activation function that works like a softer ReLU, letting small negative values through a little.
- [Multi-Layer Perceptron (MLP)](https://getaimath.com/dictionary/multi-layer-perceptron-mlp/): A multi-layer perceptron is a basic neural network made of layers of neurons where every neuron connects to every neuron in the next layer.
- [SwiGLU](https://getaimath.com/dictionary/swiglu/): SwiGLU is an activation design used in many modern LLMs that adds a "gate" so the network can control how much information passes.
- [Feed-Forward Network (FFN)](https://getaimath.com/dictionary/feed-forward-network-ffn/): A feed-forward network is the part of each Transformer block that processes each token on its own after attention.
- [Layer Normalization](https://getaimath.com/dictionary/layer-normalization/): Layer normalization rescales the numbers in each layer so they stay in a steady, healthy range during training.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/relu/)
