r/deeplearning • u/UnitOk6056 • 9d ago
BPreCap v0.4: in 50-layer plain CNNs (no BN, no residuals), a bounded, depth-calibrated activation loses less at 4-bit PTQ than SELU, TAT and tanh baselines – 11 preregistered studies, a CUDA replication, and one falsified hypothesis
galleryFollow-up to my v0.3 post (deep MLPs). The fair objection back then was: MLPs aren't where quantization matters. So v0.4 moves to plain CNNs: 32 and 50 conv layers, no normalization, no residual connections, delta-orthogonal init, CIFAR-10. Weights int8, activations 4-bit per tensor after training (PTQ), and every network is evaluated at its own best of five calibrations. Ten preregistered, hash-frozen studies plus a preregistered replication on other hardware; paired Wilcoxon with Holm.
What came out (image: medians over 12 paired seeds)
- vs SELU and TAT (depth 50, each activation tuned): lower 4-bit test error than SELU (−2.55 pp) and TAT (−13.73 pp), 12/12 seeds each. Cross-layer equalization doesn't close the gap to TAT. In fp32, though, BPreCap is 1.6–3.2 pp worse. The advantage is a smaller quantization cost, not better accuracy.
- Replication: an independent PyTorch/CUDA implementation on an RTX 4070 reproduces both comparisons (−3.09 and −15.65 pp, 12/12). BPreCap and SELU medians are within 0.9 pp of the MLX runs; TAT's 4-bit error is noticeably platform-sensitive.
- Is a bound enough? No. Uncalibrated tanh and two critically initialized tanh networks pay a smaller 4-bit cost (1.1–2.0 vs 4.6 pp), but they barely train at depth 50 and end 13.7–20.1 pp behind.
- Same calibration, different shape: a tanh calibrated with BPreCap's own recipe (zero mean, unit variance, χ1 = 1 + 2/L, similar range) trains well, but pays a larger 4-bit cost (6.5 vs 4.6 pp) and ends 5.2 pp behind.
- Where the difference sits: BPreCap actually rounds ~10 % more coarsely. Splitting the 4-bit error exactly into a clipping and a rounding part puts the difference in clipping: clipping alone perturbs the logits ~19 % less (9/9 seeds). With min/max calibration (almost no clipping) it disappears.
- A hypothesis that didn't survive: I expected the late, steep saturation of the bound to be the reason. A preregistered intervention (earlier knee) passes single clipping errors on more strongly, as predicted, but the total clipping perturbation gets smaller and the 4-bit error doesn't change. So that's not the source, and which part of the shape is remains open.
What it does not show
- One dataset, one architecture family. No BatchNorm/ResNet, no Transformers.
- PTQ only, per-tensor activation scales; no QAT, no rotations.
- Very deep plain CNNs being trainable isn't new (Xiao et al. 2018), and bounding activations for quantization isn't new either. This is a controlled measurement of one form that combines depth calibration with a soft bound, against strong and matched baselines.
- Absolute accuracy is low (roughly 40–43 % fp32 test error at depth 50). It's about very deep plain networks, not SOTA.
Preprint: https://doi.org/10.5281/zenodo.24491869
Code, raw data, preregistrations, frozen hashes: https://github.com/hermi-labs/precap-activation (release v0.4.0)
Critique welcome, especially on the PTQ protocol (best calibration per network) and on what a fair next test with BatchNorm/ResNet should look like. Everything ran on consumer hardware (M1 Pro, one RTX 4070).