---
title: Fractal & Regular Geometry in DNNs
url: https://www.emergentmind.com/topics/fractal-and-regular-geometry-of-deep-neural-networks
type: topic
---

# Fractal & Regular Geometry in DNNs

Fractal and regular geometry are fundamental to understanding the expressivity, dynamics, and generalization phenomena of deep neural networks (DNNs). At multiple scales—spanning weight spaces, internal representations, optimization trajectories, and loss landscapes—DNNs integrate simple regular structures with multiscale, self-similar, and fractal patterns. Rigorous analysis leveraging box-counting, Hausdorff, and persistent homology dimensions has revealed that the geometric complexity of neural networks both constrains and enables their functional richness.

## 1. Fractal Structure in Optimization and Trainability Boundaries

A canonical insight into the fractal geometry of deep learning emerges from examining the convergence properties of gradient-based training algorithms. Standard full-batch gradient descent on parameter vector $\theta\in\mathbb{R}^P$ with learning rate $\eta$ is an iteration of the map
\[
\theta_{t+1} = \theta_t - \eta \nabla_\theta L(\theta_t) \equiv f(\theta_t;\eta),
\]
analogous to function iteration in classical complex dynamics (e.g., the quadratic map underlying Mandelbrot and Julia sets). Here, the outcome (convergent or divergent optimization) depends sensitively on hyperparameters (such as $\eta$), and the locus in hyperparameter space separating convergent from divergent regimes—the "trainability boundary"—is found to be fractal.

The formal definition of the trainability boundary in a 2D hyperparameter slice $H$ involves running the optimizer for $T$ steps at each point $h\in H$ and partitioning $H$ into convergent ($T_{\mathrm{conv}}$) and divergent ($T_{\mathrm{div}}$) subsets. The boundary $\partial T$ is the closure of $T_{\mathrm{conv}} \cap \overline{T_{\mathrm{div}}}$. Experimental visualizations using grids of $4096\times4096$ and zoom sequences spanning more than 10 decades reveal persistent, self-similar structures. Quantitative box-counting yields non-integer boundary dimensions ($D$) in the range $1.17$–$1.98$ across architectures and data regimes, confirming bona fide fractality: for example, $D\approx1.20$ for fully batch ReLU networks, $D\approx1.41$–$1.66$ for nonlinear (tanh) or stochastic (minibatch) setups, and $D\approx1.98$ for (learning rate, init-scale) grids [2402.06184].

This establishes that the apparent "edge of chaos" in neural hyperparameter space is not a smooth manifold but a fractal frontier.

## 2. Fractal and Regular Geometry in Network Functions

The interplay between fractal and regular geometry is reflected in the expressive power of feedforward networks. A ReLU DNN implements a continuous piecewise-linear (CPwL) map; locally, each linear region is a regular affine transformation, but the global partition of input space can be extremely intricate and, under specific constructions, exhibit self-similar, fractal structure.

A key mechanism for fractal function generation comes via Iterated Function Systems (IFS): starting from contractive affine maps $f_j:\mathbb{R}^d\to\mathbb{R}^d$, repeated application yields a sequence of nested convex sets or polytopes converging to a fractal attractor. The corresponding indicator functions $F_k(x)$, each CPwL and with a number of linear regions $\ell(F_k)=J^k$, can be exactly implemented via a deep ReLU network with $O(k)$ parameters—i.e., parameter efficiency coexists with exponential region proliferation [1905.11345].

This construction exemplifies how DNN depth enables encoding of highly "irregular" (fractal) functions, despite only using elementary (regular) nonlinearities. In practice, real networks globally combine regular partitions with hierarchical self-similarity, encoding fractal boundary sets with affine interiors.

## 3. Statistical Geometry: Activation Regularity, Depth, and Boundary Roughness

The geometric character of network decision surfaces—and its evolution with depth and activation choice—is rigorously analyzed using excursion set geometry and Hausdorff dimension. For infinitely wide random networks, let $f_L:\mathbb{R}^n\to\mathbb{R}$ describe the network function at depth $L$. The boundary (level set) $A_L(u)=\{x: f_L(x)=u\}$, for a fixed threshold $u$, exhibits distinct regimes:

- **Non-regular (fractal) activations** (e.g., Heaviside): the boundary's Hausdorff dimension increases monotonically with depth, $n-\beta^L$, approaching the full input dimension ($n$) for large $L$; deeper networks realize rough, fractal-like classifiers.
- **Regular activations** (ReLU, tanh, logistic): the expected boundary volume, governed by a spectral parameter $\lambda$ linked to the activation kernel, exhibits a trichotomy:
  - $\lambda<1$: boundary volume decays to zero (over-regularization);
  - $\lambda=1$: boundary volume is constant (critical regime);
  - $\lambda>1$: exponential growth with depth (chaotic proliferation of boundaries).

Monte Carlo simulations confirm that, for non-smooth activations, increased depth produces boundary roughness and divergent nodal length, while for smooth cases the boundary complexity is tightly controlled by $\lambda$ [2504.06250].

## 4. Fractal Geometry of Weights, Representations, and Learning Trajectories

Multiple geometric frameworks have been developed for quantifying the fractal dimension of neural network weights, representations, and parameter evolution:

- **Weight-space fractality** is captured through coarse group actions on discrete grids; using recursively defined "fractal transformations" $T_{r_k}$, segmentation and box-counting across scales yield Hausdorff-Besicovitch dimensions $D_H$ for network layers. Most architectures combine Euclidean ($D_H\approx2$) and fractal ($D_H>2$) behaviors depending on scale; skip connections and architectural symmetry induce persistent self-similarity [2503.14298].
- **Intrinsic and persistent homology dimension** ($d_{\mathrm{PHD}}$) of SGD trajectories—estimated via topological data analysis—quantifies the effective fractal dimension of the weight path. Empirically, lower $d_{\mathrm{PHD}}$ strongly predicts better generalization, providing a topological capacity control unrelated to parameter count [2111.13171].
- **Internal representations**: Layerwise activations, treated as sampled manifolds, are analyzed with persistent homological fractal dimension (PHdim). Convolutional networks exhibit a "hump" in PHdim at intermediate depth (peak feature diversity), with simplification towards the final layer. Transformers and attention-based models retain higher PHdim throughout, reflecting distributed representation [2306.03406].

These analyses clarify that fractal complexity is manifest both in raw weights and the geometry of forward or backward signal and information propagation.

## 5. Fractal Frontiers, Finite Size Effects, and Information Propagation

Mean-field theory of information propagation in deep random networks predicts sharp phase boundaries (e.g., the edge of chaos) that are smooth in infinite width. However, finite width introduces stochasticity: in a deep network, the one-step recurrence for input similarity (correlation limit) becomes a noisy map,
\[
C^{(\ell+1)} = f(C^{(\ell)}) + \frac{1}{\sqrt{N}} \eta^{(\ell)},
\]
where $\eta^{(\ell)}$ are random fluctuations. The attractor basin boundaries in hyperparameter space (e.g., $(\sigma_w, \sigma_b)$ plane) then generically become fractals of dimension $D_f \approx 1.8$–$1.9$ for $N\sim10^2$–$10^3$, rather than smooth curves ($D=1$). Extensions to convolutional and Fourier-structured layers preserve this fractal nature, which is universal across architectures [2508.03222].

From a design perspective, this yields a "Cantor-band" of acceptable hyperparameters at finite $N$; as depth increases, the effective safety margin required in hyperparameter selection scales as $\sim N^{-1/2}|f'(c^*)|^{L/2}$.

## 6. Architectures and Learning Dynamics: Explicit Fractality and Scale-Invariance

Certain deep architectures explicitly incorporate fractal geometry at the macro level. FractalNet replaces residual connections with self-similar, recursively-defined expansion rules producing a hierarchy of subpaths whose lengths follow a truncated fractal pattern. Drop-path regularization forces independent competence in all subpaths and supports "anytime" inference, where subnetworks of varying depth can be queried for accuracy/latency trade-offs. Empirically, FractalNet exhibits trainability and test error matching or exceeding standard ResNets, yet lacks explicit identity connections [1605.07648].

Scale-invariant diagnostic methodologies measure box-counting fractal dimension and "roughness" across weight segments and layers, revealing a correlation between intermediate fractal dimension ($1.7 < D < 1.9$) and optimal generalization. Phase-flow analysis shows stabilization of fractal measures and the emergence of attractors during training, linking chaotic exploration to eventual convergence [2407.09585].

## 7. Fractal Features, CNN Limitations, and Hybrid Geometries

Attempts to probe whether CNNs intrinsically learn fractal features show that standard architectures are not aligned with global fractal dimensionality: CKA and CCA similarities between fractal-based features and deep layer representations are negligible ($\le 0.10$), in contrast to high similarities for classical texture or edge features. However, shallow networks trained directly on zoomed-in fractal features efficiently solve specific classification tasks—particularly those involving scale-invariant structure—with up to 30% higher accuracy and 84% less training time than deep CNNs [2401.04141].

A plausible implication is that classical CNNs, characterized by regular, fixed-scale receptive fields, do not automatically acquire scale-invariant discriminatory statistics, unless augmented with specific architectural or loss-based fractal priors.

---

In summary, the geometry of deep neural networks is a hybrid of regular (locally affine, smooth) and fractal (self-similar, scale-invariant, multiscale) attributes across all facets: parameter spaces, functional representations, learning dynamics, and architectural motifs. Fractal structure explains the notorious sensitivity of hyperparameter optimization, the capacity for vast expressivity, and the nuanced behavior of generalization and regularization. The emerging field systematically applying fractal geometry, persistent homology, and related tools provides a quantitative and predictive theory of DNN geometry that unifies disparate observations across architectures, tasks, and regimes [2402.06184, 1905.11345, 2504.06250, 2111.13171, 2306.03406, 1808.07169, 2503.14298, 2407.09585, 2401.04141, 2508.03222].

Source: https://www.emergentmind.com/topics/fractal-and-regular-geometry-of-deep-neural-networks