Scattering Transforms
Wavelet cascades with provable stability to deformations: a mathematical model of CNNs.
What should an image representation for classification keep, and what should it throw away? It should not care where an object sits, it should barely change when the object bends a little, and it should still tell a 3 from an 8. Stéphane Mallat's scattering transform achieves all three with no learning at all, a cascade of wavelet filters, moduli and averages, and comes with theorems. It is the clearest mathematical model of why convolution, nonlinearity and pooling work together.
What you’ll learn
- Define Lipschitz stability to deformations, and derive why the Fourier modulus is translation-invariant yet unstable at high frequencies.
- Define the windowed scattering transform (wavelets, modulus, averaging, paths) and count its paths for scales and orientations.
- State with their hypotheses the theorems on non-expansiveness, energy conservation, translation invariance and stability to deformations, and prove the parts that follow from the frame property and the modulus.
- Explain why the modulus is the right nonlinearity, how energy flows to low frequencies along frequency-decreasing paths, and what scattering does and does not explain about trained CNNs.
What a representation should ignore
Write a deformation of an image as , where the displacement field moves each point by . A translation is the special case ; a slight stretch, a change of pose or a different handwriting style are small but non-constant . A representation suited to classification should change little under such deformations, in proportion to how much they bend space rather than how far they move it.
Translation multiplies the Fourier transform by a phase, so its modulus is exactly translation-invariant:
Now dilate slightly: , so , and take a wave packet with a smooth, fast-decaying window . Then moves the central frequency:
is a bump of fixed width (that of ) centered at , so moving it by changes it by an amount proportional to the displacement (Mallat, 2012):
The ratio to is , unbounded at high frequencies, so no constant works. The cure is to group frequencies into wavelet bands whose width grows in proportion to their center frequency: a dilation by then shifts every band by the same fraction of its own width, uniformly over scales.
Wavelets are stable but not invariant: moves with the image. Averaging with a low-pass filter makes it invariant but, as the next step shows, averages it to almost nothing. The scattering transform resolves the tension with one nonlinearity.
The scattering cascade
Take a complex wavelet , for instance a Morlet wavelet (a plane wave under a Gaussian envelope, corrected to have zero mean), and its dilations and rotations for scales and orientations . A low-pass window averages over a region of width about . Define the wavelet-modulus operator and, for a path , the cascade . The windowed scattering transform averages every cascade:
A linear invariant is useless here. The wavelet has zero mean and its spectrum sits around frequency , while is concentrated below ; for the two barely overlap, so averaging the wavelet coefficients kills them:
Write the band-pass output as amplitude times phase, : the phase oscillates at roughly the band's frequency while the envelope varies slowly. The modulus removes the oscillation, demodulating the band to low frequencies, where averaging keeps much of its energy:
The modulus has the other properties needed: it acts pointwise, so it commutes with translations and deformations; it preserves the norm, ; and it is non-expansive, . The detail that averaging discards, the high frequencies of the envelope, is not lost: the next order recovers it as .
Since lives mostly below the frequency of , filtering it with a finer wavelet () finds almost nothing. Only frequency-decreasing paths, , carry energy, and on Caltech-101 images over 99% of the scattering energy lies on such paths of length (Bruna & Mallat, 2013).
A scattering transform uses scales and orientations, up to order , on frequency-decreasing paths. Counting the order-0 average, how many scattering channels does it output per input channel?
Show the answer
217 channels
Order 0 gives 1 channel, order 1 gives , and order 2 gives , one for each pair of orientations and each pair of scales . Total . The Kymatio library (Andreux et al., 2020) produces 81 channels with , , each subsampled by in both directions.
The theorems
One layer is non-expansive: the frame is an isometry and the modulus is non-expansive coordinate by coordinate.
Apply it to all paths of length at once. Its output splits into the averaged part, which is the order- scattering output, and the moduli, which are the paths of length :
Sum over , starting from . The terms telescope, and everything left on the right is non-negative:
Non-expansiveness is the formal version of "small noise, small change": . A trained CNN is Lipschitz too, but its constant is bounded only by the product of its layers' norms and can be very large, which is one way to see why it can have adversarial examples. Translation invariance comes from the averaging window.
Let . A translation by changes it by , and Young's inequality bounds a convolution by the norm of the filter:
Dilating the window by shrinks its gradient in by (in two dimensions, while ):
Shifts much smaller than the window size barely matter, and as the scattering transform becomes exactly translation-invariant (Mallat's Theorem 2.10). The price is resolution: the outputs can be subsampled every pixels, so a large discards where things are.
Proof idea. Split the error into the averaging term above and a commutator . Because the modulus commutes with and is non-expansive, the commutator of the whole cascade is bounded by the commutator of one wavelet transform, , accumulated along paths (hence the norm, or the factor ). The wavelet commutator is small precisely because each band's width is proportional to its frequency, the property the Fourier modulus lacked.
You increase the averaging scale from to pixels. Which term of the stability bound shrinks, and what do you pay?
- The term shrinks; you pay nothing
- The translation term shrinks by a factor of 4; the outputs are averaged over larger windows, losing spatial resolution
- The Hessian term vanishes; the transform stops being non-expansive
- Nothing changes: the bound does not depend on
Show the answer
B. The translation term shrinks by a factor of 4; the outputs are averaged over larger windows, losing spatial resolution
Only the translation term carries . A larger window tolerates larger displacements, but the coefficients are now averaged over regions and can be sampled only every 32 pixels, so the transform says less about where things are.
What scattering explains, and what it does not
| Setting | Result |
|---|---|
| MNIST digits (Bruna & Mallat, 2013) | Scattering with a Gaussian-kernel SVM reached 0.43% test error with the full training set, then the best published; with up to 5,000 training samples a scattering + PCA classifier beat a CNN that learned all its filters. |
| CUReT textures (Bruna & Mallat, 2013) | 0.2% error for second-order scattering with a PCA classifier, against 1.5–2.4% for texton and MRF methods: second-order coefficients capture texture statistics that the power spectrum misses. |
| Audio (Andén & Mallat, 2014) | One-dimensional scattering extends mel-frequency features with modulation coefficients and is stable to time warping. |
| ImageNet hybrids (Oyallon, Belilovsky & Zagoruyko, 2017) | A fixed scattering front end with and (217 channels per color channel, the count above, on a grid) followed by a 10-layer ResNet reached 68.7% top-1 and 88.6% top-5 (single crop), against 68.9% and 88.8% for their ResNet-18; on small subsets of CIFAR-10 and on STL-10 the hybrids beat end-to-end networks. |
The analysis has been generalized well beyond wavelets. Wiatowski & Bölcskei (2018) proved that cascades of general frames (including learned filters), Lipschitz nonlinearities (ReLU, tanh, sigmoids, the modulus) and Lipschitz pooling give features that become progressively more translation-invariant with depth, that pooling is necessary for this (without it the features stay fully covariant), and that deformation sensitivity is bounded for band-limited, cartoon and Lipschitz signal classes. Bietti & Mairal (2019) proved invariance and deformation stability for convolutional kernel networks and extended the stability analysis to CNNs with generic activations such as ReLU.
What this explains about trained CNNs: why early layers look like oriented band-pass filters, why a nonlinearity must come before pooling, why depth and pooling build invariance, and why geometric priors help most when data are scarce. What it does not explain: the class-specific, learned features of deep layers, which is where most of a CNN's accuracy on ImageNet comes from; invariance to non-geometric variability such as lighting, clutter or intra-class shape; and the instability of trained networks to adversarial perturbations, whose weights obey no frame condition.
Key takeaways
- A good representation is Lipschitz-stable to deformations: . The Fourier modulus is invariant but fails this at high frequencies, by a factor .
- The scattering transform cascades wavelets and moduli and averages every path; energy flows along frequency-decreasing paths and is mostly captured by order 2, with channels.
- With a tight wavelet frame, scattering is non-expansive; with admissible wavelets it preserves the norm; it becomes translation-invariant as and is stable to deformations with a bound of order .
- The modulus demodulates each band to low frequencies, which is why a nonlinearity must precede pooling; general frames and Lipschitz nonlinearities give invariance that grows with depth.
- Scattering excels with little data and geometric variability, and hybrids with learned layers matched ResNet-18 on ImageNet; it does not account for learned class-specific features or the adversarial fragility of trained networks.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
Why is the Fourier modulus a poor representation for classification, despite being exactly translation-invariant?
- It is not translation-invariant once the image has borders
- A small dilation moves a frequency by about , so at high frequencies tiny deformations change by an amount no Lipschitz constant can bound
- It discards the low frequencies, which carry the object's shape
- It is not non-expansive
Show the answer
B. A small dilation moves a frequency by about , so at high frequencies tiny deformations change by an amount no Lipschitz constant can bound
A Fourier bump at has fixed width, so moving it by makes , unbounded in . Wavelet bands widen with frequency, which removes the problem.
In a scattering network, why is used instead of the linear average ?
- The linear average is nearly zero, because the wavelet's band barely overlaps the low-pass window; the modulus demodulates the band to low frequencies, where averaging keeps its energy
- The modulus makes the transform linear and therefore easier to invert
- The linear average is not translation-equivariant
- The modulus increases the energy of the signal, which improves classification
Show the answer
A. The linear average is nearly zero, because the wavelet's band barely overlaps the low-pass window; the modulus demodulates the band to low frequencies, where averaging keeps its energy
for . Taking the modulus removes the oscillating phase and leaves the slowly varying envelope, whose average is informative; the next order recovers what that average discards.
How many channels does a second-order scattering transform with scales and orientations output per input channel, counting only frequency-decreasing paths?
- 17
- 145
- 81
- 25
Show the answer
C. 81
: one average, 16 first-order channels and 64 second-order channels (both orientations free, scales forced to ).
Which claim about scattering transforms and trained CNNs is best supported?
- Scattering proves that trained CNNs are stable to small adversarial perturbations
- Scattering matches end-to-end CNNs on ImageNet without any learned layers
- Scattering shows that the nonlinearity in a CNN is unnecessary
- Scattering explains how wavelet-like filters, a nonlinearity and pooling build stable invariants, and hybrids with learned layers work well, especially with little data; it does not explain learned class-specific features
Show the answer
D. Scattering explains how wavelet-like filters, a nonlinearity and pooling build stable invariants, and hybrids with learned layers work well, especially with little data; it does not explain learned class-specific features
The theorems concern fixed wavelet cascades. Hybrids matched ResNet-18 only with a learned ResNet on top, and the advantage of the fixed front end is largest in small-data regimes.
Further reading
- S. Mallat, "Group invariant scattering," Communications on Pure and Applied Mathematics (2012), arXiv:1101.2286.
- J. Bruna & S. Mallat, "Invariant scattering convolution networks," IEEE Transactions on Pattern Analysis and Machine Intelligence (2013).
- E. Oyallon, E. Belilovsky & S. Zagoruyko, "Scaling the scattering transform: Deep hybrid networks," ICCV (2017).
- T. Wiatowski & H. Bölcskei, "A mathematical theory of deep convolutional neural networks for feature extraction," IEEE Transactions on Information Theory (2018).
- S. Mallat, "Understanding deep convolutional networks," Philosophical Transactions of the Royal Society A (2016).