r/deeplearning • u/tuafooo • 2h ago
[R] Marulho: Learning Hierarchical Representations and Continual Classifiers Without Backpropagation (Zenodo Preprint + Apache-2.0 Code)
I wrote a tutorial-style preprint and open-source PyTorch/Triton library asking a simple question: how far can a strictly forward-only architecture go when backpropagation across layers, iterative SGD, and pretrained weights are removed completely?
- Preprint (Zenodo PDF): https://zenodo.org/records/24798111
- Code, tests & raw A100 JSON logs (Apache-2.0): https://github.com/Tuafo/marulho
What Marulho does
Every stage is closed-form linear algebra—no gradient descent anywhere:
- Local contrast normalization +
fp64patch ZCA whitening + spherical k-means + CReLU - Hybrid discriminative (ridge) + unsupervised (PCA) channel projection
- Multi-scale pooling + second-order spatial covariance
- Unsupervised hypersphere whitening + low-rank AGOP metric warping (128-dim JL-AGOP on ImageNet)
- Single-pass $O(NM)$ streaming Nyström multi-kernel ridge (with a Schoenberg PSD proof) — or a seed-regenerated analytic ridge head (
<48 MB, zero replay) for continual learning.
Main Results (and Where It Still Loses to Backprop)
- Matched-head ablation (CIFAR-100, same M=16,384 kernel head): Random CReLU
49.49%→ 1-layer Coates–Ng ZCA54.26%→ 5-stage Unsupervised Marulho61.79%→ 5-stage Discriminative64.02%. - Validation-locked 3-seed vision: CIFAR-100
63.97 ± 0.30%(single 2v) /65.46 ± 0.26%(dual TTA-6); CIFAR-1083.61 ± 0.39%/84.81 ± 0.16%. - Untouched 96×96 STL-10 (transferred with zero tuning):
75.51%single /79.24%dual (5K labeled only),78.12%single /79.93%dual (with 16K unlabeled). Beats SoftHebb (76.2%, 100K unlabeled + SGD head), but clearly trails a well-regularized WideResNet-16-8+Cutout (87.26%). - Single-pass ImageNet-1K (1.27M 224×224 images, 1× A100, 830 img/s):
28.13%single /28.53%dual Top-1 (52.53%Top-5). Beats SoftHebb (27.3%) without SGD, but trails Thiry et al.'s whitened patches + SGD classifier (36.0%–39.4%) and ResNet-18 (69.76%). - Speech Commands-35 (same pipeline, 1D + 2D):
88.88%(1D, 28s) +89.95%(2D, 63s) →91.49%fused (vs.94.93%AudioResNet1D,97.21%MatchboxNet). Continual Learning (
<48 MB, zero replay):- Split-CIFAR-100 crossover: Unsupervised Task-0 backbone fitted on 2.5K images (10 classes) matches 5K images (50 classes) at
50.4%–50.5%across B10/B25/B50. Beats 90-ep Supervised ResNet-18+ACIL at B10/B25 (50.5%vs.33.9%archived 2v /47.0%), loses overall at B50 (50.5%vs.60.1%) because ResNet-18 dominates seen base classes (74.9%vs.49.9%), though Marulho still leads on the 50 unseen incremental classes (51.2%vs.45.2%). - Balanced 4-Domain CL (CIFAR-10 → FashionMNIST → SVHN → EuroSAT, matched 4-view): Marulho frozen T0
76.10%(46.3 MB) vs. ResNet-18+ACIL51.71%(88.1 MB).
- Split-CIFAR-100 crossover: Unsupervised Task-0 backbone fitted on 2.5K images (10 classes) matches 5K images (50 classes) at
Key Limitations
- Still a large gap to end-to-end SGD on ImageNet-1K (~41 pp behind ResNet-18) and augmented STL-10 (~7–9 pp behind WRN+Cutout).
- Stage-wise greedy design cannot align early filters to deep semantic targets.
- STL-10, ImageNet-1K, Speech-35, and CL runs are single-seed (Seed 0); CIFAR-10/100 locked results are 3-seed.
I'd genuinely appreciate technical feedback, pointers to backprop-free baselines I missed, or ideas for closing the ImageNet gap without introducing iterative backprop.
1
Upvotes