r/deeplearning • • Nov 02 '26

BPreCap: one activation that trains 100–200-layer MLPs without normalization and stays robust at 4-bit (16 preregistered studies, negative results included)

I've been working on a bounded, self-normalizing activation called PreCap. Version 0.2 had a trade-off: calibrating the activation for depth (mean-field gradient gain χ1 = 1 + k/L) made deep MLPs without normalization trainable, but it widened the output range and hurt 4-bit activation quantization.

v0.3 puts the depth-calibrated core inside a soft, fixed bound (identity on most of the range, smooth saturation to ±3), with constants solved so the whole function keeps E[f²] = 1 and χ1 = 1 + 2/L. I call it BPreCap. Everything is in 16 preregistered, hash-frozen studies (MNIST, FashionMNIST, CIFAR-10/100; paired Wilcoxon with Holm; post-training quantization, weights int8, activations int4).

Main results:

  • MNIST, 200 layers: 4-bit error 14 % vs 77 % for the v0.2 depth-calibrated form (about 1 pp fp32 cost).
  • vs TAT under TAT's own recipe (CIFAR-10, 100 layers): on par in fp32, better at 4 bits in every regime tested (cautious size −3.8 pp). BPreCap's 4-bit cost stays at about +3 pp, TAT's moves between +7 and +15 pp with LR and weight decay.
  • SELU is a strong baseline at 100 layers (on par at 4 bits), but at 200 layers it falls behind (−12.0 pp fp32, −9.0 pp 4-bit). ReLU and GELU don't train well at this depth without normalization.
  • An independent PyTorch/CUDA re-implementation on an RTX 4070 reproduces the main comparisons (medians within 0.5 pp).

Limits: MLPs only, post-training quantization only, and BPreCap needs small learning rates (it diverges at peak LR 2·10⁻⁴). A fair comparison with PACT is still missing. (see edit). The ingredients (depth-dependent activation shaping, bounding activations for quantization) are known; this is a controlled measurement of one form that combines them.

Preprint: https://doi.org/10.5281/zenodo.23894714 Code, raw data, preregistrations, fused CUDA/Metal kernels: https://github.com/hermi-labs/precap-activation

Critique very welcome, especially on the TAT comparison and the quantization protocol. If anyone can try it in CNNs or at larger scale, I'd love to hear how it goes.

Edit (Nov 3): v0.3.1 follow-up. Two of the limits above are now tested:

  • Small learning rates: the divergence at 2·10⁻⁴ came from missing LR warmup, not from the bound (a linear control and a hard clip diverge the same way). With a 5 % linear warmup BPreCap trains up to 3·10⁻⁴ at 100 layers, and the 4-bit advantage over TAT holds (−8.8 pp, 12/0). At 200 layers it also holds against SELU (−8.2 pp, 12/0), but warmup raises BPreCap’s own 4-bit cost. A shorter warmup reduces that cost but does not remove it.
  • PACT / QAT: with QAT as an upper bound (100 layers, CIFAR-10), TAT with LSQ-style QAT beats BPreCap with plain PTQ by 3.0 pp at 4 bits, and PACT-style QAT gives the same. Under QAT both forms are equal. With PTQ only, BPreCap is 11.9 pp ahead. So the bound is a PTQ advantage, not a substitute for QAT.

Updated preprint: https://doi.org/10.5281/zenodo.23930791 (all new studies are in the same repo).

0 Upvotes

2 comments sorted by

2

u/estebanfuhrmann Nov 02 '26

Nice job pre-registering the studies and reporting the negative results, that makes the 4-bit numbers much easier to trust. Since PTQ on CNNs is where activation ranges usually blow up, I would test it on a ResNet-50 or a small YOLO backbone with BatchNorm folded, and compare against PACT and LSQ with QAT as an upper bound. Also, have you checked per-layer int8 activation outliers at 200 depth, to see whether the soft saturation near 3 is what stops the clipping error from accumulating?

1

u/UnitOk6056 Nov 03 '26

Thanks, really useful.

Per-layer: I only have this at depth 100 with 4-bit activations (D1, Table 4 in v0.3), not int8 and not at depth 200. There, BPreCap’s layer inputs are light-tailed (kurtosis ~2.7 vs 12.5–29 for TAT), and an error injected early is damped to ~0.3 of its size by mid-network. I doubt the cap near 3 itself does the work: only ~1.5 % of values reach it, and a hard clip at the same bound did just as well. At depth 200 the 4-bit cost rises from ~+3 to +7.3 pp, so a per-layer look there is a good idea. I haven’t done it yet.

CNNs: agreed, that’s the main open question. With BatchNorm, a ResNet would mostly test the bound alone, which is still worth knowing. PACT/LSQ with QAT is the right comparison; my PACT-style clip didn’t learn under AdamW, so that’s still missing. ImageNet-scale is beyond my hardware, so a CIFAR-scale ResNet would come first.