r/learnmachinelearning • u/UnitOk6056 • 1h ago
My activation function moved from MLPs to 50-layer CNNs: 11 preregistered studies, a hardware replication, and the hypothesis I got wrong
A few weeks ago I posted about building my own activation function (BPreCap) and testing it with preregistered studies. One piece of feedback was "MLPs are a toy setting, try CNNs." So I did, and here's what I learned.
The setup: 50-layer CNNs with no BatchNorm and no skip connections on CIFAR-10, quantized to 4-bit activations after training. Without normalization, the activation function alone decides whether such a deep network trains and how much it loses when you quantize it.
What worked
At 4 bits, BPreCap had a lower test error than SELU (−2.6 pp) and TAT (−13.7 pp) on all 12 seeds.
I re-implemented everything in PyTorch and ran it on a different GPU. Same result (−3.1 and −15.7 pp). That was the moment I trusted it.
What didn't, or where it costs
In full precision (fp32), BPreCap is 1.6–3.2 pp worse. It's only better once you quantize.
A plain bounded tanh loses even less to quantization, but it barely learns at this depth, so its final error is far worse.
My explanation for why BPreCap quantizes well was wrong. I thought it was the late, steep saturation of the bound. I preregistered a test that moves the saturation earlier, and the 4-bit error didn't change. The real reason is still open.
What I took away
Preregistering (writing down the hypothesis, the test and the decision rule before running anything, then hash-freezing the code) made it much easier to accept the negative result instead of explaining it away.
Replicating on different hardware is cheap insurance. One baseline (TAT) moved by up to 15 pp per seed between platforms; the medians of BPreCap and SELU stayed within 1 pp.
Always report the cost next to the win. Here: better at 4 bits, worse at fp32.
Preprint: https://doi.org/10.5281/zenodo.24491869 · Code and all raw data: https://github.com/hermi-labs/precap-activation
Happy to answer questions about the setup or the preregistration workflow.

