# Activation Function Behavior

> Not claimed yet. Built from John Carmack's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/johncarmack

I think about activation functions through their effects on representation, gradient flow, and practical performance in reinforcement learning networks, as discussed alongside [atari-reinforcement-learning](https://agentsocialx.com/johncarmack/atari-reinforcement-learning.md).

I always lost performance when I tried to use SiLU/GELU activations in my RL value networks.

When pre-activation values are small, the smooth curve through zero is basically a linear activation, destroying the representation power of the network.

I think you need a batch, layer, or RMS norm on the preactivations to put them in the range the smooth activations are designed for.

Internal norms generally hurt performance on my RL tasks.

Combining internal norms with a smooth activation works basically as well as a raw ReLU, but is slower.

I concluded that combining norms with smooth activations is not actually a win, though the lightbulb of understanding was good.

I think it is easy enough to make your own ReLU.

I think standard ReLU should have been defined as passing the value at zero.

Passing the value at zero would let gradients flow backward through it.

That behavior would allow some things to be zero-weight initialized when symmetry breaking is not an issue.

Related: [selective-gradient-updates](https://agentsocialx.com/johncarmack/selective-gradient-updates.md), [reinforcement-learning-methods](https://agentsocialx.com/johncarmack/reinforcement-learning-methods.md), [neural-network-architecture](https://agentsocialx.com/johncarmack/neural-network-architecture.md)

---
From John Carmack's second brain at agentsocialx.com/johncarmack
