---
title: Fourier Analysis of ReLU Networks
url: https://www.emergentmind.com/topics/fourier-analysis-of-relu-networks
type: topic
---

# Fourier Analysis of ReLU Networks

Rectified Linear Unit (ReLU) networks, which employ the nonlinearity $\operatorname{ReLU}(x) = \max(0, x)$ at each hidden unit, have become the dominant architecture for deep learning. The Fourier analysis of such networks seeks to rigorously characterize their action on signals and functions in the frequency domain, illuminating how spectral components are transformed, generated, or suppressed by both individual activations and deep network compositions. This perspective reveals distinct mechanisms: the propagation of both original and newly created frequency components, the induction of DC (zero-frequency) features, the pattern of spectral decay, and the complexity of approximating functions with given spectral properties.  

## 1. Spectral Decomposition of the ReLU Nonlinearity

The ReLU activation is a piecewise-linear, non-invertible function that introduces significant nonlinearity in neural networks. Its effect on input signals can be analyzed by expressing the input as a sum of cosines:
$$
x(t) = \sum_i a_i \cos(2\pi f_i t) ~.
$$
By rewriting $\operatorname{ReLU}(x(t))$ using
$$
y(t) = \operatorname{ReLU}(x(t)) = \frac{1}{2} (x(t) + |x(t)|) = \frac{1}{2} x(t) + \frac{1}{2} \sqrt{x(t)^2} ~,
$$
and expanding the square-root via a Taylor series, one obtains
$$
y(t) = \frac{1}{2} x(t) + \frac{\sqrt{A}}{2} \sum_{n=0}^\infty a_n [g(t)]^n~,
$$
where $A = \sum_i a_i^2/2$ and $g(t)$ is a sum of cosines at frequencies $2f_i$, $f_i + f_j$, and $|f_i - f_j|$. The $n=0$ term is a DC offset, $n=1$ yields first harmonic and intermodulation terms, and higher $n$ generate higher-order frequency combinations, but with exponentially decaying coefficients $a_n$. In practice, the output remains nearly band-limited, as very little energy appears at high $n$ [2407.16556].

## 2. Fourier Transform and Distributional Characterization

The classical Fourier transform of the ReLU function, viewed as $x H(x)$ (with $H$ the Heaviside function), can be formally derived in the distributional sense:
$$
\mathcal{F}[\operatorname{ReLU}(x)](\omega) = -\mathrm{PV}\left(\frac{1}{\omega^2}\right) + i \pi \delta'(\omega) ~,
$$
where $\mathrm{PV}$ denotes principal value, and $\delta'$ is the derivative of the Dirac delta. The $1/\omega^2$ roll-off expresses the rapid decay of high-frequency energy, while the singular DC derivative term corresponds to the dominant influence of low frequencies and the static offset produced by ReLU [2407.16556].

## 3. Spectral Terms: DC and Oscillatory Output Structure

The spectrum of $\operatorname{ReLU}(x(t))$ consists of three principal components:

- **Preservation at Baseband:** Each original frequency $f_i$ appears at amplitude $a_i/2$ due to the linear term.
- **DC Term:** Direct calculation yields a closed-form DC amplitude of $(\sqrt{2}/4) \sqrt{\sum_i a_i^2}$, which generalizes to convolutional pre-filtered signals via $(\sqrt{2}/4)\sqrt{\sum_i (a_i b_i)^2}$, where $b_i$ are filter gains.
- **Higher Harmonics:** First-order terms at $2f_i$ have amplitude $(a_i^2)/(8\sqrt{2A})$, and at $f_i \pm f_j$ the amplitude is $(a_i a_j)/(4\sqrt{2A})$. Higher-order harmonic amplitudes decrease rapidly, rendering the ReLU output spectrally concentrated at the original and first few harmonics. The DC and low-order frequencies dominate the energy [2407.16556]. 

## 4. Spectral Complexity, Approximation, and Function Spaces

The expressivity of ReLU networks with respect to function approximation is intimately tied to the spectral content of the target function. Classical results quantify how the so-called Fourier–Barron norm 
$$
C_f = (2\pi)^{-d/2} \int_{\mathbb{R}^d} \|\xi\|^2 |\hat{f}(\xi)| d\xi
$$
controls the sample complexity: functions with rapidly decaying high-frequency $\hat f(\xi)$ are more efficiently approximated. The transition from infinite-width to sparse finite-width networks is precisely characterized by Radon-based norms and provides sup-norm bounds of $O(R^2 C_f/\sqrt{n})$ for compact domains $B_R$ [2110.03673].

Recent constructive complexity bounds demonstrate that, for any $f$ with absolutely integrable Fourier transform on $[0,1]^d$, there exists a ReLU network of width $W$ and depth $L$ with
$$
WL \lesssim \|f\|_\infty^2/\epsilon^2 \cdot \log^2(1/\epsilon)~,
$$
to achieve uniform error $\epsilon$, and with only weak logarithmic dependence on the high-frequency “tail” of $f$ [2405.06727]. This aligns the classical Fourier perspective with practical, finite-depth ReLU neural networks.

## 5. Spectral Bias and Frequency Learning Dynamics

A piecewise linear (CPWL) ReLU network expresses functions as a sum of polytopic regions, each contributing specific affine pieces. The exact Fourier transform of such networks decays polynomially as $O(\|k\|^{-d-1})$ in most directions, with exceptional slower decay along certain face normals. This results in a pronounced bias toward functions with energy at low frequencies—a phenomenon termed spectral bias. Empirical results confirm that, during gradient-based optimization, low-frequency components are learned first, and only as training progresses do higher-frequency components emerge in the network output, regardless of their relative amplitude in the target function [1806.08734].

Manifold complexity further modulates spectral bias: data concentrated on oscillatory or curved manifolds can enable faster acquisition of high frequencies in latent coordinates. However, in high ambient dimension, parameter perturbations robustly preserve low-frequency modes, while high frequencies—occupying a vanishing fraction of parameter space—are fragile to changes [1806.08734].

## 6. Empirical Validation and Role of DC Component in CNNs

Numerical experiments validate the frequency-domain expansion of ReLU outputs: pointwise relative RMSE between analytic and actual ReLU is $<1\%$ using as few as five Taylor terms, and frequency spectra match theoretical predictions for both synthetic and learned filters. In convolutional neural networks (CNNs), the initial ReLU layer consistently injects a DC feature that is linearly separable by global pooling or fully connected mappings.

Comparative training experiments show that adding the DC feature to a linear network achieves the same rapid convergence and low training loss as networks incorporating ReLU. The Euclidean distance between initial and trained weights remains small in architectures where the DC is available, revealing that this feature allows models to solve frequency-discrimination tasks using inputs proximal to the initial random state, without requiring substantial filter modification. A single random convolution + ReLU can perform perfect class separation of sinusoids solely via the DC channel [2407.16556].

## 7. Impact on Network Design and Downstream Applications

The DC term dominates the spectral summary provided by ReLU transformations—acting effectively as an automatic “feature extractor” that facilitates global-average pooling and efficient downstream linear discrimination. This mechanism persists in real-world models and tasks, such as cardiac PPG signal frequency estimation. The higher-order harmonics created by ReLU are rapidly attenuated by subsequent low-pass filtering or pooling, ensuring representational stability. Because the DC component depends smoothly on the input spectrum, ReLU-equipped networks can capitalize on perturbative regimes around random initializations, explaining robust and efficient learning in practice [2407.16556].

The global, low-frequency dominance encoded in the CPWL structure of ReLU networks also clarifies the observed spectral bias in practical learning scenarios: while universal in principle, ReLU networks require either large Lipschitz constants or many activation regions to model strong high-frequency features [1806.08734, 2110.03673, 2405.06727]. As a result, spectral properties concretely limit the efficiency with which rapidly oscillating or discontinuous targets can be learned or approximated.

---

**References:**

- [2407.16556] "DC is all you need: describing ReLU from a signal processing standpoint"
- [1806.08734] "On the Spectral Bias of Neural Networks"
- [2110.03673] "Tighter Sparse Approximation Bounds for ReLU Neural Networks"
- [2405.06727] "Approximation Error and Complexity Bounds for ReLU Networks on Low-Regular Function Spaces"

Source: https://www.emergentmind.com/topics/fourier-analysis-of-relu-networks