Deep Neural Networks as Iterated Function Systems and a Generalization Bound
Jonathan Vacher
TL;DR
The paper reframes deep neural networks as stochastic iterated function systems, unifying depth dynamics with random dynamical systems to address stability and generalization in generative modeling. By mapping ResNet, Transformer, and MoE architectures to place-dependent IFSs, it proves existence and uniqueness of invariant measures under an average-contractivity condition and derives a Wasserstein-based generalization bound via a collage error. This bound motivates a practical training objective that minimizes the discrepancy between the empirical distribution and its image under the learned transfer operator, demonstrated on simple 2D illustrations and latent representations of MNIST, CelebA, and CIFAR-10. The results highlight an expressivity-stability trade-off, show meaningful attractors under contraction, and point to future directions for relaxing contraction requirements and extending collage-based methods to higher-dimensional data spaces.
Abstract
Deep neural networks (DNNs) achieve remarkable performance on a wide range of tasks, yet their mathematical analysis remains fragmented: stability and generalization are typically studied in disparate frameworks and on a case-by-case basis. Architecturally, DNNs rely on the recursive application of parametrized functions, a mechanism that can be unstable and difficult to train, making stability a primary concern. Even when training succeeds, there are few rigorous results on how well such models generalize beyond the observed data, especially in the generative setting. In this work, we leverage the theory of stochastic Iterated Function Systems (IFS) and show that two important deep architectures can be viewed as, or canonically associated with, place-dependent IFS. This connection allows us to import results from random dynamical systems to (i) establish the existence and uniqueness of invariant measures under suitable contractivity assumptions, and (ii) derive a Wasserstein generalization bound for generative modeling. The bound naturally leads to a new training objective that directly controls the collage-type approximation error between the data distribution and its image under the learned transfer operator. We illustrate the theory on a controlled 2D example and empirically evaluate the proposed objective on standard image datasets (MNIST, CelebA, CIFAR-10).
