Calc Consulting (@CalcCon) header
Calc Consulting (@CalcCon) profile picture

Calculation Consulting is a boutique consultancy that specializes in machine learning, AI, and data science

San Francisco
Joined January 2013
๐—ฅ๐—ฒ๐—ป๐—ผ๐—ฟ๐—บ๐—ฎ๐—น๐—ถ๐˜‡๐—ฎ๐˜๐—ถ๐—ผ๐—ป, ๐—˜๐—บ๐—ฒ๐—ฟ๐—ด๐—ฒ๐—ป๐—ฐ๐—ฒ, ๐—ฎ๐—ป๐—ฑ ๐—ช๐—ต๐˜† ๐——๐—ฒ๐—ฒ๐—ฝ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป๐—ถ๐—ป๐—ด ๐—ช๐—ผ๐—ฟ๐—ธ๐˜€. Turns out, BackProp looks remarkably like defining a Wilsonian RG beta function for each layer. One of the deepest ideas in theoretical physics is that complex, emergent behavior can arise from simple microscopic rules. Kenneth Wilson's Nobel Prize-winning renormalization group (RG) theory gives us a mathematical framework for understanding how this happens across scales. We've been developing a spectral RG theory of deep learning, motivated by empirical observations of heavy-tailed weight matrices, scale invariance, and the remarkable tendency of well-trained neural networks to approach marginal spectral behavior near ฮฑ โ‰ˆ 2. But here's something surprising. You don't even need to look at the weight spectra to see an intriguing connection to RG. Just look at the basic equations of backpropagation. In Wilsonian RG, a beta function describes how a coupling changes with logarithmic scale: ฮฒ(g) = dg/d(log b) Now consider a neuron with preactivation z = wx. Backpropagation gives us the exact identity: w โˆ‚L/โˆ‚w = z โˆ‚L/โˆ‚z = โˆ‚L/โˆ‚log|z| That's precisely the mathematical form of a logarithmic scaling derivative. And in a multilayer neural network, something even more interesting happens: โ†’ Each layer has its own beta-like logarithmic derivative. โ†’ These quantities are coupled across layers through the chain rule. โ†’ At stationary points of training, the corresponding dataset-averaged quantities vanish. โ†’ The resulting mathematical structure resembles a system of coupled RG beta functions. This is a striking connection hiding in plain sight. Of course, identifying these derivatives does not by itself establish a Wilsonian coarse-graining transformation. But it gives us a concrete mathematical starting point for investigating how coupled layerwise RG flows might emerge during learning. And that brings us back to the bigger question: Can we understand deep learning as a theory of emergence, in which different neural-network layers develop coupled, scale-dependent structures, potentially approaching their own fixed points? Our spectral RG theory approaches this question empirically, through the eigenvalue distributions of trained weight matrices. The backpropagation equations suggest another route toward understanding the underlying dynamics. We're working to bring these two perspectives together. I've put together a thread walking through the mathematics, starting with Wilsonian RG and deriving the backpropagation identities step by step Stay tuned for more
1
2
28
3,724
Replying to @dgerlach
alpha per layer for Lambda3
8
๐—ฆ๐—ฝ๐—ฒ๐—ฐ๐˜๐—ฟ๐—ฎ๐—น ๐—จ๐—ป๐—ถ๐˜ƒ๐—ฒ๐—ฟ๐˜€๐—ฎ๐—น๐—ถ๐˜๐˜† ๐—ผ๐—ณ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป๐—ถ๐—ป๐—ด 11/11 The spectral RG view may extend from neural networks to XGBoost and other learners approaching fixed points. Spectral universality asks whether different learning rules converge toward similar effective correlation structures. Public arXiv link to follow.
1
1
159
๐—ง๐—ฒ๐˜€๐˜๐—ถ๐—ป๐—ด ๐—ฟ๐—ฒ๐—ฐ๐—ผ๐˜ƒ๐—ฒ๐—ฟ๐˜† ๐—ณ๐—ฟ๐—ผ๐—บ ๐—ผ๐˜ƒ๐—ฒ๐—ฟ๐˜๐—ฟ๐—ฎ๐—ถ๐—ป๐—ถ๐—ป๐—ด 10/11 We also fix an overfit checkpoint. In this preliminary experiment, continuing with WW-PGD recovers more test accuracy than the AdamW and Muon continuations shown.
2
133
๐—ง๐—ฒ๐˜€๐˜๐—ถ๐—ป๐—ด ๐˜€๐—ฝ๐—ฒ๐—ฐ๐˜๐—ฟ๐—ฎ๐—น ๐—ฐ๐—ผ๐—ป๐˜๐—ฟ๐—ผ๐—น 9/11 On MNIST, adding WW-PGD to AdamW moves layerwise exponents toward 2 while keeping test accuracy close to the baseline across five runs. This tests whether we can steer the spectrum using WW-PGD while preserving predictive performance.
1
142
๐—ง๐˜‚๐—ฟ๐—ป๐—ถ๐—ป๐—ด ๐˜๐—ต๐—ฒ ๐˜๐—ต๐—ฒ๐—ผ๐—ฟ๐˜† ๐—ถ๐—ป๐˜๐—ผ ๐—ฎ๐—ป ๐—ถ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ฒ๐—ป๐˜๐—ถ๐—ผ๐—ป 8/11 This suggests an optimizer intervention: WW-PGD. WW-Projected Gradient Descent After a base optimizer step, select a spectral window, nudge its shape toward ฮฑ = 2, preserve its trace-log before blending, and mix the correction back into the weights. You can test this now using the Python package: ww-_pgd
1
138
๐—ง๐—ฒ๐˜€๐˜๐—ถ๐—ป๐—ด ๐˜๐—ต๐—ฒ ๐—ฝ๐—ฟ๐—ผ๐—ฝ๐—ผ๐˜€๐—ฒ๐—ฑ ๐—ฐ๐—ผ๐—ป๐—ป๐—ฒ๐—ฐ๐˜๐—ถ๐—ผ๐—ป 7/11 Trained checkpoints let us test the RG picture directly. Near ฮฑ = 2, we compare energy across logarithmic bands, the ECS with the fitted power-law tail, and their normalization scales. Together, these measurements turn the theory into a concrete experimental program.
1
156