Save this video free

The GELU, SiLU and SwiGLU activation functions, clearly explained!!!

StatQuest with Josh Starmer · 24:18 · Watch on YouTube

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Josh Starmer connects GELU, SiLU, and SwiGLU to input-dependent dropout, showing how a dropout-weighted average can produce GELU as x times the Gaussian cumulative distribution function and SiLU as x times the sigmoid. He contrasts their smoother, more flexible behavior with sigmoid's vanishing gradients and ReLU's tendency to overfit in large networks, then explains how SwiGLU adds trainable gating parameters and why its success remains partly empirical.

Key takeaways

Chapters

0:00 GELU, SiLU, and SwiGLU Compared with ReLU
3:27 Why Sigmoid Gave Way to ReLU and Dropout
11:17 Deriving GELU and SiLU from Input-Dependent Dropout
19:22 SwiGLU's Learned Gate and the Open Question of Why It Works

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 Sometimes drop out is all you [music and singing] need. Hooray! StatQuest. Hello, I'm Josh Starmer and welcome to StatQuest. Today we're going to talk about the GELU, SELU, and SWIGLU activation functions and they're going to be clearly explained. This StatQuest is brought to you by the letters A, B, and C. A always be B, C curious. Always be curious. Too long, didn't watch. If you're already familiar with the ReLU activation function, then the GELU activation function, which sounds like it could be some sort of

0:48 expletive, but is short for Gaussian error linear unit, and the SELU activation function, which is short for sigmoid linear unit and thus sounds sort of like an oxymoron, are almost the same. One relatively subtle difference is that the ReLU outputs zero for all negative input values. And the GELU and SELU have this little dip for input values between -2 and 0. Another subtle difference is that the ReLU has this angular bend at zero. And the GELU and SELU have a softer, differentiable curve at zero. Lastly, for all positive input values, the ReLU just outputs the original input

1:36 value. While the GELU and SELU have a slight curve that makes the output values just a little smaller than the positive input values. In contrast, the SWIGLU, which stands for Swish Gated Linear Unit, which sounds like a random jumble of words, can look like a smooth version of the ReLU, or it can look like pretty much anything else it wants to look like. That said, despite the glaring differences in the shapes that the Swish Glue can take on, it's closely related to the GELU and SiLU. Anyway, as a result of these relatively subtle differences for the GELU and SiLU, and the relatively extreme differences

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, StatQuest with Josh Starmer.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.