alphaFeedback

WorksMathematics

Memorization Capacity of Invariant Convolutional Neural Nets

AI contributions
  • AI
View details
Ancillary data
1 code link
View

Abstract

Neural networks are powerful memorizers which are often able to interpolate their training data even when the labels have been randomized. While there exists an extensive literature on the memorization capacity of fully connected networks, in practice more specific architectures with problem-dependent properties are preferred, such as convolutional networks for image classification. In this paper we consider convolutional networks which are invariant with respect to a given arbitrary finite group of orthogonal transformations, which may include translations, reflections, and/or rotations of images and invariances of higher order tensors. We prove upper bounds on the size of an invariant convolutional neural network with threshold activations that is required to interpolate a given dataset with two classes. Our bounds are formulated in terms of a complexity measure that takes the invariant structure into account and is instance-specific, i.e., it is related to the mutual arrangement of the classes in the given dataset and their geometric properties rather than the number of samples. Our proof is constructive: for given input data, instances of an interpolating network can be computed via a randomized algorithm with high probability. In numerical experiments we investigate the practical effectiveness of this algorithm.

Introduction

The memorization capacity of a neural network architecture quantifies the number of parameters and neurons needed for the architecture to be able to interpolate any NN data points for any assignment of labels (for a suitable setting of the weights). The study of this capacity has a long history—dating back all the way to the 1960s—and its importance experienced a recent revival due to the double descent phenomenon [4]. According to the long-standing bias-variance trade-off [46, 20], the complexity of a machine learning model needs to balance underfitting and overfitting to achieve good generalization performance. It should be rich enough to express the underlying patterns in the data but still be simple enough to avoid picking up any spurious patterns. This classical viewpoint is at odds with modern practice in deep learning, where highly over-parameterized neural networks are trained to achieve a (nearly) perfect fit on the training data (see, e.g., Canziani et al., 2016; Zhang et al., 2017). In spite of this apparent overfitting, however, these models perform well on test data. This behavior is described by the double descent curve, where increasing the models complexity beyond the interpolation threshold—where the model is just complex enough to interpolate its training data—results in a second descent of the test error. This behavior is well documented for deep neural networks as well as a wide variety of other machine learning models, see, e.g., [4, 3, 39, 37, 21]. As was argued by Dirksen et al. [15], in practical applications the model size is tailored to a given data set. Memorization capacity, however, studies the reverse situation, requiring a model of fixed size to interpolate any dataset of NN samples. This results in bounds that necessarily grow with the number of samples. However, for a problem with a ‘nice’ structure, such as linearly separable classes in the simplest case, this should certainly not be necessary.

Present works on memorization capacity typically only consider fully-connected neural networks. However, these are only rarely used in practice and more specific architectures are preferred. A prominent example are convolutional neural networks for the processing of sequential or image data. Additionally, those models are frequently endowed with special problem-dependent properties such as translation-invariance, e.g., through data augmentation in the training process or the use of global pooling operations, see, e.g., [5, 6]. This leads to the question:

What is the memorization capacity of a translation-invariant neural architecture?

We recall that memorization capacity requires an architecture to be able to interpolate any NN samples for any assignment of labels. When two samples are the same up to translation, interpolating any label assignment simply becomes impossible. At the very least, one would need to identify these samples and assign them the same label. At the same time, instead of the total number of samples one should then consider only the number of unique samples up to translation, as any translated copies are correctly classified automatically.

In this paper, we remedy the above issues via an instance-specific approach which additionally respects the translation-invariant property of the model. Specifically, we build upon the prior work of Dirksen et al. [15] who derived an instance-specific result for fully-connected networks. Our main contributions are the following:

  1. Memorization capacity of translation-invariant neural nets. In § 2, given a binary classification data set, we prove upper bounds on the required number of parameters and neurons for a translation-invariant convolutional neural network to be able to interpolate the data. The bounds are linked to a new complexity measure that respects both the translation-invariant property of the model, as well as the mutual arrangement of the two classes and their geometric properties.

  1. Randomized interpolation algorithm for convolutional neural nets. Our proof is constructive: we introduce a randomized algorithm that, given a binary classification data set, with high probability, outputs a translation-invariant convolutional neural network which interpolates the data and has at most the asserted size. In numerical experiments, we investigate the effectiveness of our algorithm both in controlled experiments and on real image data, and compare its performance to previous work.

  1. Beyond just translations. In Appendix A, we prove our results in a more general framework, which supports invariance with respect to a given, arbitrary finite group of orthogonal transformations. Apart from translations, this also includes, for example, reflections and rotations of image data, and invariances of higher order tensor data. We have chosen to present our results first in the special setting of translation-invariant neural nets to keep the exposition accessible.

We develop our results for networks with threshold activations, as this is a challenging setting in memorization theory. We expect that our results can be extended to other activations that zero out negative inputs and assign positive values to positive inputs, such as the ReLU.

Notation. We denote scalars c,C∈Rc, C \in\mathbb{R} with plain letters. We denote vectors x∈Rd\boldsymbol{x} \in\mathbb{R}^{d} with bold lowercase letters, and their ii-th entries by xix_i or [x]i[\boldsymbol{x}]_i. We denote matrices A∈Rm×n\boldsymbol{A} \in\mathbb{R}^{m \times n} with bold uppercase letters, their ii-th rows by Ai\boldsymbol{A}_i or [A]i[\boldsymbol{A}]_i, and their (i,j)(i,j)-th entries by Ai,jA_{i,j} or [A]i,j[A]_{i,j}. B2d\mathbb{B}_2^d denotes the unit Euclidean ball in Rd\mathbb{R}^d. For two disjoints sets A\mathcal{A} and B\mathcal{B} we denote their union by A∪B\mathcal{A} \cup\mathcal{B}. For n∈Nn \in\mathbb{N}, denote [n]:={1,…,n}[n] := \{1,\ldots,n\}. We write A≳BA \gtrsim B, or alternatively B=O(A)B = O(A), if C⋅A≥BC \cdot A \ge B for an absolute constant C>0C > 0. When we do not only hide constants but logarithmic terms as well, we write B=O~(A)B = \widetilde{O}(A) instead. We denote the threshold activation and sign function by

σ(t)={1,t>0,0,else,andsign⁡(t)={+1,t>0,−1,else,\sigma(t) = \begin{cases} 1, & t > 0,\\ 0, & \text{else}, \end{cases} \qquad\text{and}\qquad \operatorname{sign}(t) = \begin{cases} +1, & t > 0,\\ -1, & \text{else}, \end{cases}

respectively. For a,b∈Rd\boldsymbol{a}, \boldsymbol{b} \in\mathbb{R}^{d}, we define 1[a=b]∈{0,1}d\mathbf{1}[\boldsymbol{a} = \boldsymbol{b}] \in\{0,1\}^{d} element-wise by

(1[a=b])i={1,ai=bi,0,else.\left(\mathbf{1}[\boldsymbol{a} = \boldsymbol{b}]\right)_i = \begin{cases} 1, & a_i = b_i,\\ 0, & \text{else}. \end{cases}

Moreover, we define the global max pooling operation by GMP⁡(x)=max⁡i∈[d]xi\operatorname{GMP}(\boldsymbol{x}) = \max_{i \in[d]} x_i. We denote by 0,1∈Rd\boldsymbol{0}, \boldsymbol{1} \in\mathbb{R}^{d} the vectors with entries all equal to 00 and 11, respectively. We denote the standard multivariate normal distribution in dd dimensions by N(0,Id)\mathcal{N}(\boldsymbol{0}, I_d) and the uniform distribution on A⊂Rd\mathcal{A} \subset\mathbb{R}^{d} by Unif⁡(A)\operatorname{Unif}(\mathcal{A}).

Related work

There is a rich literature on the memorization capacity of neural network architectures, especially for fully-connected architectures. If a model is able to interpolate any NN samples in Rd\mathbb{R}^{d} with any assignment of labels, we say that it can memorize NN samples. Memorization capacity quantifies how large a model needs to be in order to memorize NN samples.

Fully-connected networks. Earlier works on the memorization capacity of neural networks with threshold activations date back to the 1960s and studied shallow architectures, see, e.g., Cover [12]; Nilsson [41]; Minsky and Papert [38]; Baum [2]; Huang and Huang [24]. More recent results consider deeper networks. In particular, Vershynin [49] assumed samples on the unit sphere with at least a Euclidean distance of δ\delta between them, and proved that a deep threshold (or ReLU) network can memorize NN samples with binary labels using O~(e1/δ2+N)\widetilde{O}(e^{1/\delta^{2}}+\sqrt{N}) neurons and O~(e1/δ2(d+N)+N)\widetilde{O}(e^{1/\delta^{2}}(d+\sqrt{N})+N) parameters. Later, Rajput et al. [44] removed the exponential dependence on δ\delta, showing that only O~(1/δ+N)\widetilde{O}(1/\delta+\sqrt{N}) neurons and O~(d/δ+N)\widetilde{O}(d/\delta+N) parameters are sufficient while further only requiring bounded norm instead of unit norm. Interestingly, while the earlier results are deterministic constructions, Vershynin [49] and Rajput et al. [44] used a probabilistic approach. Recently, Dirksen et al. [15] presented an instance-specific approach to memorization capacity. For a given finite binary classification dataset, their bound on the required number of neurons and parameters depends not on the number of samples but is instead linked to the geometric properties of the data classes and their mutual arrangement. For benign data arrangements, their result can overcome the worst-case estimates of memorization capacity.

Among other activations, the ReLU stands out in particular due to its widespread use in practice. Some earlier works include the one of Bubeck et al. [7] who extended the result of Baum [2] to real-valued labels, and Zhang et al. [50] who used weight-sharing. More recently, Park et al. [42] used deep ReLU networks to achieve the first result with a sublinear number of parameters. Assuming that the points are separated, they showed that a ReLU (or hard-Tanh) network can memorize multi-class labels using a constant number of neurons, O~(N2/3)\widetilde{O}(N^{2/3}) layers and O~(d+N2/3)\widetilde{O}(d+N^{2/3}) parameters. Vardi et al. [47] improved the above dependence on NN. For separated samples with bounded norm they showed that a ReLU network with a constant number of neurons, O~(N)\widetilde{O}(\sqrt{N}) layers and O~(d+N)\widetilde{O}(d+\sqrt{N}) parameters can memorize NN samples with multi-class labels. Lee et al. [33] derived bounds on the required size of an interpolating fully-connected ReLU network which they link to the polytope structure of a given data set and further connect to other manifold shapes.

For results with activations other than threshold or ReLU see, e.g., Huang and Babri [23]; Huang [22]; Park et al. [42]; Madden and Thrampoulidis [34]. The works we cite above make assumptions on the samples such as general position, separation, or bounded norm. For results for randomized samples or samples drawn from a random distribution, see, e.g., Ge et al. [17]; Daniely [13]; Zhang et al. [51].

Convolutional neural networks. Convolutional neural networks (LeCun et al. [29, 30]) are a cornerstone of modern machine learning. They have brought breakthroughs in the processing of images, video, speech, and audio (Goodfellow et al. [18]; LeCun et al. [32]) and have been a driving force for the resurgence of deep learning (Krizhevsky et al. [28]). However, in contrast to fully-connected networks, their memorization capacity does not yet seem to be very well studied.

A few empirical investigations have addressed this topic. Notably, Zhang et al. [50] observed that popular convolutional architectures can easily interpolate a random labeling of their training data. Arpit et al. [1] expanded on this observation and argued in particular that the network’s capacity depends on the considered data set. On an image data set with randomized labels, Sablabrolles et al. [45] gradually increased the number of training samples for convolutional networks of different sizes and observed at which point the training accuracy drops.

While the universality of convolutional neural networks (with max pooling) was shown by Cohen and Shashua [9], to our knowledge the only existing result on their memorization capacity is due to Nguyen and Hein [40]. They showed that a convolutional neural network can memorize NN samples with real-valued labels, assuming that the patches of the samples are distinct and that the convolutional layer before the fully-connected output layer has output dimension at least NN. However, their results require an activation function which is at least continuous, unlike the threshold activation which we use here. Moreover, their network size depends on the number of samples, which is not the case in our result.

As a natural extension to convolutional neural networks, Cohen and Welling [10] introduced group equivariant neural networks (G-CNNs). They developed group convolutions which generalize standard convolutions to be equivariant under various group transformations, such as translations, rotations, and reflections. There is a growing body of work on G-CNNs, see, e.g., Cohen et al. [11] and the references therein. In Appendix § 7 we use group convolutional layers to prove our results in a generalized setting.

Other architectures. There is research on the memorization capacity of other architectures, such as residual networks [19], fully-connected and convolutional autoencoders [43], networks with conditional computation [26], and, more recently, transformer models [25, 36] (Madden et al. 2024).

Translation-invariant memorization algorithm

In this section, we present our results on translation-invariant convolutional neural networks. These follow from a more general framework where invariance under an arbitrary group of orthogonal transformations can be captured, including reflections and rotations of image data. We refer to Appendix § 7 for the technical details. For simplicity, we focus on the binary classification setting. Our method is extendable to multiple classes via a one-vs-many approach, see Appendix § 8 for this straightforward extension.

In the following, let \mathcal{X} = \mathcal{X}^{+} \mathbin{\mathaccent\cdot\cup} \mathcal{X}^{-} \subset\mathbb{R}^{L \times H \times W} denote a given finite data set, where X+\mathcal{X}^{+} and X−\mathcal{X}^{-} are disjoint sets containing the samples with label +1+1 and −1-1, respectively. We assume that these are images which are HH pixels high, WW pixels wide, and have LL color channels. Our goal is the construction of a translation-invariant convolutional neural network which interpolates this data set.

To state this goal formally, denote by Th,wT_{h,w} the circular translation in pixel-space by hh pixels vertically and ww pixels horizontally, see the examples in Figure 1 for an illustration. Formally, for a single color channel z∈RH×Wz \in\mathbb{R}^{H \times W},

Translation-invariant mutual covering

Figure 1. Translation-invariant mutual covering. Following an arrow applies a horizontal circular shift. For simplicity, we only include three horizontal translations, in general the division would be more granular and include vertical translations. Condition (2) on the radii in Theorem 3 lets the components of the covering adapt to the mutual positioning of the classes by allowing them to grow (almost) as far as the optimal decision boundary. At the same time, each component consists of multiple sub-components, one for each possible translation. A component being a union of sub-components makes it translation-invariant.

Th,w:RH×W→RH×W,z↦[z(h′−h mod H,w′−w mod W)](h′,w′)∈[H]×[W].T_{h,w}: \mathbb{R}^{H \times W} \to\mathbb{R}^{H \times W}, \qquad z \mapsto\left[z\left(h' - h \bmod H,w' - w \bmod W\right)\right]_{(h',w') \in[H] \times[W]}.

and we can use the lifting

Th,w↑:RL×H×W→RL×H×W,(zℓ)ℓ∈[L]↦(Th,w(zℓ))ℓ∈[L](1)T^{\uparrow}_{h,w}: \mathbb{R}^{L \times H \times W} \to\mathbb{R}^{L \times H \times W}, \qquad(z_{\ell})_{\ell\in[L]} \mapsto\left(T_{h,w}(z_{\ell})\right)_{\ell\in[L]} \tag*{(1)}

to translate all color channels at once.

Definition 1 We say that F:RL×H×W→{±1}F: \mathbb{R}^{L \times H \times W} \to\{ \pm1 \} is translation-invariant if

F(Th,w↑x)=F(x)F\left(T^{\uparrow}_{h,w}x\right) = F(x)

for all x∈RL×H×Wx \in\mathbb{R}^{L \times H \times W} and (h,w)∈[H]×[W](h,w) \in[H] \times[W].

In their instance-specific result on memorization capacity for fully-connected threshold neural networks, Dirksen et al. [15] utilize a mutual covering of Euclidean balls to quantify the difficulty of interpolating a given data set. When a model is translation-invariant it identifies any sample and its translated copies to one another. Hence, as a natural extension of the Euclidean distance to our setting, we define the pseudo-distance

d(x,y):=min⁡(h,w)∈[H]×[W]∥x−Th,wy∥2.d(x,y) := \min_{(h,w)\in[H]\times[W]} \lVert x-T_{h,w}y\rVert_2.

It is easy to see that this pseudo-distance is translation-invariant and has the property that d(x,y)=0d(x,y)=0 if and only if xx and yy are translates of each other. For sets A,B⊂RL×H×WA,B\subset\mathbb{R}^{L\times H\times W} and a∈RL×H×Wa\in\mathbb{R}^{L\times H\times W}, we define

d(a,B):=inf⁡b∈Bd(a,b)andd(A,B):=inf⁡a∈Ad(a,B).d(a,B):=\inf_{b\in B}d(a,b) \qquad\text{and} \qquad d(A,B):=\inf_{a\in A}d(a,B).

Employing this pseudo-distance we define the following translation-invariant adaptation of the notion of mutual covering from Dirksen et al. [15].

Definition 2 (translation-invariant mutual covering) Recall X=X+⊎X−\mathcal{X}=\mathcal{X}^{+}\uplus\mathcal{X}^{-}. We call

C+={c1+,…,cM++}⊂X+,r1+,…,rM++≥0,\mathcal{C}^{+}=\{c_{1}^{+},\ldots,c_{M^{+}}^{+}\}\subset\mathcal{X}^{+},\qquad r_{1}^{+},\ldots,r_{M^{+}}^{+}\geq0,
C−={c1−,…,cM−−}⊂X−,r1−,…,rM−−≥0,\mathcal{C}^{-}=\{c_{1}^{-},\ldots,c_{M^{-}}^{-}\}\subset\mathcal{X}^{-},\qquad r_{1}^{-},\ldots,r_{M^{-}}^{-}\geq0,

a translation-invariant mutual covering of X\mathcal{X}, if the components of the covering,

Xk+:={x+∈X+:d(ck+,x+)≤rk+}=⋃(h,w)∈[H]×[W]Xk,(h,w)+,\mathcal{X}_{k}^{+}:=\{x^{+}\in\mathcal{X}^{+}:\mathrm{d}(c_{k}^{+},x^{+})\leq r_{k}^{+}\}=\bigcup_{(h,w)\in[H]\times[W]}\mathcal{X}_{k,(h,w)}^{+},
Xk,(h,w)+:=X+∩B2d(Th,wck+,rk+),\mathcal{X}_{k,(h,w)}^{+}:=\mathcal{X}^{+}\cap B_{2}^{d}(\mathsf{T}_{h,w}c_{k}^{+},r_{k}^{+}),

and

Xℓ−:={x−∈X−:d(cℓ−,x−)≤rℓ−}=⋃(h,w)∈[H]×[W]Xℓ,(h,w)−,\mathcal{X}_{\ell}^{-}:=\{x^{-}\in\mathcal{X}^{-}:\mathrm{d}(c_{\ell}^{-},x^{-})\leq r_{\ell}^{-}\}=\bigcup_{(h,w)\in[H]\times[W]}\mathcal{X}_{\ell,(h,w)}^{-},
Xℓ,(h,w)−:=X−∩B2d(Th,wcℓ−,rℓ−),\mathcal{X}_{\ell,(h,w)}^{-}:=\mathcal{X}^{-}\cap B_{2}^{d}(\mathsf{T}_{h,w}c_{\ell}^{-},r_{\ell}^{-}),

cover X+\mathcal{X}^{+} and X−\mathcal{X}^{-}, respectively. We call M+M^{+} and M−M^{-} the mutual covering numbers.

Figure 1 illustrates the prototypical shape of a translation-invariant mutual covering. The condition (2) on the radii in Theorem 3 below allows the components to grow as far as the ideal decision boundary between the data classes—up to a logarithmic factor. Consequently, parts of the data far away from the decision boundary can be covered with only a few larger components while smaller components are only required in more complex areas close to the decision boundary. This data-adaptive behavior is similar to the covering of Dirksen et al. (2024). However, in contrast to their approach, our adapted distance measure allows every component to break up into multiple sub-components, each contained inside an Euclidean ball around a translated copy of the components center. In this way, one component not only groups together samples that have close proximity to one another but also those samples that are in close proximity up to translation.

We now state the version of our theoretical result for translation-invariant convolutional neural networks, followed by a short proof sketch. The result for more general group invariances is proved later, in Appendix § 7.§ 3. Below, we denote the Gaussian width, for T⊂Rd\mathcal{T}\subset\mathbb{R}^{d}, by

w(T)=Esup⁡t∈T⟨g,t⟩,w(\mathcal{T})=\mathbb{E}\sup_{t\in\mathcal{T}}\langle g,t\rangle,

where g∼N(0,Id)g\sim\mathcal{N}(0,I_{d}) denotes a standard Gaussian random vector. We refer to Vershynin (2018, Section 7.5) for a detailed discussion and examples.

Theorem 3 (size of translation-invariant convolutional net) Let \mathcal{X}=\mathcal{X}^{+}\uplus\mathcal{X}^{-}\subset R_{\mathrm{rad}B_{2}^{L\times H\times W}^{d}} be finite. Suppose there exists a translation-invariant mutual covering with centers C+\mathcal{C}^{+} and C−\mathcal{C}^{-} satisfying d(C+,C−)≥δ\mathrm{d}(\mathcal{C}^{+},\mathcal{C}^{-})\geq\delta and radii satisfying

rk+≲d(ck+,C−)log⁡(eλ/d(ck+,C−))andrℓ−≲d(cℓ−,C+)log⁡(eλ/d(cℓ−,C+)),(2)r_{k}^{+}\lesssim\frac{\mathrm{d}(c_{k}^{+},\mathcal{C}^{-})}{\sqrt{\log(e\lambda/\mathrm{d}(c_{k}^{+},\mathcal{C}^{-}))}} \qquad\text{and}\qquad r_{\ell}^{-}\lesssim\frac{\mathrm{d}(c_{\ell}^{-},\mathcal{C}^{+})}{\sqrt{\log(e\lambda/\mathrm{d}(c_{\ell}^{-},\mathcal{C}^{+}))}}, \tag*{(2)}

for k∈[M+]k \in[M^{+}] and ℓ∈[M−]\ell\in[M^{-}]. Set ω:=max⁡{ω+,ω−}\omega:= \max\{\omega^{+},\omega^{-}\} where

ω+:=max⁡k∈[M+](h,w)∈[H]×[W]w2(xk,(h,w)+)d3(ck+,C−)andω−:=max⁡ℓ∈[M−](h,w)∈[H]×[W]w2(xℓ,(h,w)−)d3(cℓ,C+).\omega^{+} := \max_{\substack{k \in[M^{+}] \\ (h,w) \in[H] \times[W]}} \frac{w^{2}(x^{+}_{k,(h,w)})}{\mathrm{d}^{3}(c^{+}_{k},C^{-})} \quad\text{and}\quad \omega^{-} := \max_{\substack{\ell\in[M^{-}] \\ (h,w) \in[H] \times[W]}} \frac{w^{2}(x^{-}_{\ell,(h,w)})}{\mathrm{d}^{3}(c_{\ell},C^{+})}.

Suppose λ≳Rrad\lambda\gtrsim R_{\mathrm{rad}} and

K≳λδ−1log⁡(2M+M−HW/η)+λω.K \gtrsim\lambda\delta^{-1} \log(2M^{+}M^{-}HW/\eta) + \lambda\omega.

Then, with probability at least 1−η1-\eta, Algorithm 1 outputs a translation-invariant convolutional neural network F:RL×H×W→{±1}F : \mathbb{R}^{L \times H \times W} \to\{\pm1\} which interpolates X\mathcal{X}, that is, for at least a fraction of α\alpha samples x+∈X+x^{+} \in\mathcal{X}^{+} and all samples x−∈X−x^{-} \in\mathcal{X}^{-},

F(x+)=+1andF(x−)=−1.F(x^{+}) = +1 \quad\text{and}\quad F(x^{-}) = -1.

Moreover, it uses KK filters in its first convolutional layer and no more than M+M^{+} filters in its second convolutional layer. In particular, it has no more than O((L+M+)HWK)O((L+M^{+})HWK) parameters.

Proof [Proof sketch] As the predictions of the model outside X\mathcal{X} are not important for the interpolation task, we only explicitly encode X+\mathcal{X}^{+} with label +1+1 into the network and the complement is assigned label −1-1. This explains the asymmetry between the two classes in the result. In more detail, the algorithm proceeds as follows.

In the first loop of the algorithm (lines 1 to 4), we sample a random convolution layer Φ\Phi. Under our assumptions, we may condition on the high probability event of Lemma 13—the key ingredient of the proof—under which the following holds. After transforming the data set with Φ\Phi, for any sample x∗+∈X+x^{+}_{*} \in\mathcal{X}^{+}, the neuron φ^x∗+\hat{\varphi}_{x^{+}_{*}} defined in line 11 (followed by a global max pooling operation) activates on the whole component of the mutual covering of X+\mathcal{X}^{+} that this sample resides in. On the other hand, it does not activate on any sample from X−\mathcal{X}^{-}. Crucially, this holds for any sample within any of the components, which allows us to simply select candidate samples at random (line 8). Hence, in the second loop (lines 5 to 17) we select a random candidate sample x∗+∈C+x^{+}_{*} \in C^{+} and, after computing the activation region Vx∗+\mathcal{V}_{x^{+}_{*}} of the neuron φ^x∗+\hat{\varphi}_{x^{+}_{*}}, we remove the entire activation region from C+C^{+}. This eliminates at least one component of this mutual covering. Thus, in the next step, a candidate sample outside the just eliminated component is picked at random, eliminating another component by the same principle. By induction, the loop terminates after at most M+M^{+} steps, producing a second convolutional layer with at most M+M^{+} filters. At this point the network already fully interpolates X\mathcal{X}. To see this, notice that the activation regions Vx∗+\mathcal{V}_{x^{+}_{*}} of the second layer neurons (together with the global max pooling operation) cover X+\mathcal{X}^{+}. The last linear layer simply sums over the output of the global max pooling layer and outputs +1+1 if the input of the network is in any of the activation regions, and −1-1 otherwise. At this point we can already count the number of parameters.

The third loop (lines 18 to 22) uses a heuristic rule to successively prune the neurons in the second layer which contribute the least to the interpolation of X+\mathcal{X}^{+}. It stops exactly when pruning the next neuron would lead to interpolating less than a fraction of α\alpha samples. Notice that α\alpha is not reflected in the bound on the size of the network. Nevertheless, we observe its beneficial effects in the experiments, where it reduces the size of the network.

Algorithm 1 translation-invariant memorization

Input: X=X+∪X−⊂RL×H×W\mathcal{X}=\mathcal{X}^{+}\cup\mathcal{X}^{-}\subset\mathbb{R}^{L\times H\times W} finite with N+:=∣X+∣N^{+}:=|\mathcal{X}^{+}| and N−:=∣X−∣N^{-}:=|\mathcal{X}^{-}|, number of random filters K∈NK\in\mathbb{N}, maximal bias λ≥0\lambda\geq0, interpolation fraction α∈(0,1]\alpha\in(0,1]

Output: translation-invariant convolutional neural net F:RL×H×W→{±1}F:\mathbb{R}^{L\times H\times W}\to\{\pm1\}

  1. for k∈[K]k\in[K] do

  2. gk←\boldsymbol{g}_{k}\leftarrow independent sample from N(0,IL×H×W)\mathcal{N}(\boldsymbol{0},I_{L\times H\times W})

  3. τk←\tau_{k}\leftarrow independent sample from Unif⁡([−λ,λ])\operatorname{Unif}([-\lambda,\lambda])

  4. end for \hspace{1em}▹ Φ(x)=[σ(∑ℓ∈[L]xℓ∗[gk]ℓ+τk)]k∈[K]\triangleright\ \Phi(x)=\left[\sigma\left(\sum_{\ell\in[L]}x_{\ell}\ast[g_{k}]_{\ell}+\tau_{k}\right)\right]_{k\in[K]}

  5. A+←∅\mathcal{A}^{+}\leftarrow\varnothing

  6. C+←X+\mathcal{C}^{+}\leftarrow\mathcal{X}^{+}

  7. while ∣C+∣>0|\mathcal{C}^{+}|>0 do

  8. x∗+←x_{*}^{+}\leftarrow random sample from C+\mathcal{C}^{+}

  9. C+←C+∖{x∗+}\mathcal{C}^{+}\leftarrow\mathcal{C}^{+}\setminus\{x_{*}^{+}\}

  10. ux∗+←1[Φ(x∗+)=0]u_{x_{*}^{+}}\leftarrow\mathbf{1}[\Phi(x_{*}^{+})=0]

  11. mx∗+←min⁡x−∈X−⟨⟨Φ(x−),ux∗+⟩⟩m_{x_{*}^{+}}\leftarrow\min_{x^{-}\in\mathcal{X}^{-}}\langle\langle\Phi(x^{-}),u_{x_{*}^{+}}\rangle\rangle \hspace{1em}▹ φ^x∗+(z)=σ(∑k∈[K]zk∗[−ux∗+]k+mx∗+)\triangleright\ \hat{\varphi}_{x_{*}^{+}}(z)=\sigma\left(\sum_{k\in[K]}z_{k}\ast[-u_{x_{*}^{+}}]_{k}+m_{x_{*}^{+}}\right)

  12. Vx∗++←{x+∈X+:GMP⁡(φ^x∗+(Φ(x+)))>0}\mathcal{V}_{x_{*}^{+}}^{+}\leftarrow\left\{x^{+}\in\mathcal{X}^{+}:\operatorname{GMP}\left(\hat{\varphi}_{x_{*}^{+}}(\Phi(x^{+}))\right)>0\right\}

  13. if ∣Vx∗++∣>0|\mathcal{V}_{x_{*}^{+}}^{+}|>0 then

  14. A+←A+∪{x∗+}\mathcal{A}^{+}\leftarrow\mathcal{A}^{+}\cup\{x_{*}^{+}\}

  15. C+←C+∖Vx∗++\mathcal{C}^{+}\leftarrow\mathcal{C}^{+}\setminus\mathcal{V}_{x_{*}^{+}}^{+}

  16. end if

  17. end while

  18. while ∣⋃x∗+∈A+Vx∗++∣≥αN+\left|\bigcup_{x_{*}^{+}\in\mathcal{A}^{+}}\mathcal{V}_{x_{*}^{+}}^{+}\right|\geq\alpha N^{+} do

  19. x∗+←arg⁡min⁡x∗+∈A+∣Vx∗++∖⋃x∗+∈A+∖{x∗+}Vx∗++∣x_{*}^{+}\leftarrow\arg\min_{x_{*}^{+}\in\mathcal{A}^{+}}\left|\mathcal{V}_{x_{*}^{+}}^{+}\setminus\bigcup_{x_{*}^{+}\in\mathcal{A}^{+}\setminus\{x_{*}^{+}\}}\mathcal{V}_{x_{*}^{+}}^{+}\right|

  20. A+←A+∖{x∗+}\mathcal{A}^{+}\leftarrow\mathcal{A}^{+}\setminus\{x_{*}^{+}\}

  21. end while

  22. A+←A+∪{x∗+}\mathcal{A}^{+}\leftarrow\mathcal{A}^{+}\cup\{x_{*}^{+}\} \hspace{1em}▹ Φ^(z)=[σ(∑k∈[K]zk∗[−ux∗+]k+mx∗+)]x∗+∈A+\triangleright\ \hat{\Phi}(z)=\left[\sigma\left(\sum_{k\in[K]}z_{k}\ast[-u_{x_{*}^{+}}]_{k}+m_{x_{*}^{+}}\right)\right]_{x_{*}^{+}\in\mathcal{A}^{+}}

  23. return F(x)=sign⁡(⟨1,(GMP⁡↑∘Φ^∘Φ)(x)⟩)F(x)=\operatorname{sign}\left(\langle\mathbf{1},(\operatorname{GMP}^{\uparrow}\circ\hat{\Phi}\circ\Phi)(x)\rangle\right) \hspace{1em}▹ 1=(1,…,1)∈RA+\triangleright\ \mathbf{1}=(1,\ldots,1)\in\mathbb{R}^{\mathcal{A}^{+}}

The translation invariance is built into the architecture. The convolutional layers are translation-equivariant. Hence, when inputting a translated sample into the network, these layers simply pass on the translation. The global max pooling layer, on the other hand, is translation-invariant. Thus, any translation that was passed through the network until this point has no effect after this layer.

Experimental results

In this section, we present a series of experiments2 in which we evaluate the performance of our algorithm and compare it to the previous work of Dirksen et al. [15]. In the previous section, we presented our translation-invariant construction. To model translation-invariance with a stride greater than one or other groups of transformations altogether we use our generalized Algorithm 3 which we introduce in full detail in Appendix § 7. For multi-class problems, we employ an extension which is similar to common one-vs-rest methods, see Appendix § 8. To reproduce the fully-connected construction of Dirksen et al. [15], we employ the generalized algorithm and simply choose the trivial group. In the following, the ‘fully-connected network’ refers to this construction and the ‘convolutional network’ refers to our invariant construction.

In § 3.1, we begin with a two-dimensional example. This provides some visual intuition on the structure of the networks that our method produces. In § 3.2, we evaluate the performance of our algorithm on both MNIST (LeCun et al., [31]) and CIFAR-10 (Krizhevsky et al., [27]). In § 3.3, this is followed up by examining the influence of the interpolation fraction hyperparameter α\alpha. This yields some understanding of how well-conditioned MNIST and CIFAR-10 are with respect to our method. Up until this point, any invariance in the data originated from the distributions. § 3.4 features a more controlled setting, where we augment the data sets to be perfectly invariant by including all possible transformations of the samples.

Illustrative two-dimensional example

In order to gain some geometric intuition, let us briefly step away from the high-dimensional image setting in favor of a two-dimensional toy example. In such a setting, we can easily visualize the activation regions of the individual neurons just before the last linear layer. This offers a detailed look at the decision boundary of the network, as the union of these regions is exactly the region where the network outputs a positive label.

Figure 2 shows an instance of the XOR data set. Evidently, a classifier for this problem can benefit from a built-in invariance with respect to 180∘180^\circ rotations around the origin. In Appendix § 7, we model a general invariance with respect to a finite group of orthogonal transformations. In Figure 2a, we choose G={I2,−I2}\mathcal{G} = \{I_2, -I_2\} which represents the aforementioned rotational invariance. We see that the algorithm produces neurons with activation regions consisting of two parts which, together, reflect that invariance. We can compare this behavior to the fully-connected construction of Dirksen et al. [15], which we recover via the trivial group G={I2}G = \{I_2\}, in Figure 2b. As this does not model the invariance of the problem, their method has to cover both quadrants of the positive class individually.

Activation regions on the XOR data set

Figure 2. Activation regions on the XOR data set. Red and blue points have labels +1 and −1, respectively. For each class we have drawn 250 samples from a mixture of two Gaussian distributions with covariance matrices 0.35⋅I20.35 \cdot I_2. The associated reference samples which the algorithm picked at random are marked with stars of the same color as its neuron’s activation region. On the left, the network is invariant under 180° rotations, while on the right, there is no invariance.

Performance on real-world image data

In this section, we evaluate and compare the performance of our algorithm on the MNIST and CIFAR-10 data sets. Inspired by the experiments of Dirksen et al. [15], we pick the maximal bias λ=0\lambda= 0 as this choice provided the best results in their experiments, among λ∈[0,3/2]\lambda\in[0, 3/2]. For KK, we first choose values KConvNetK_{\mathrm{ConvNet}} for the convolutional network in a large enough range such that the number of filters in the second layer converges. In a convolutional layer, depending on the data dimension and the stride of the convolution, each filter is shifted to d^\hat{d} different positions. To produce a comparable result in which the first layers of both networks have the same output dimension, for the fully-connected network we choose KFC=KConvNet⋅d^K_{\mathrm{FC}} = K_{\mathrm{ConvNet}} \cdot\hat{d}.

A stride larger than one for the random convolution layer is modeled using our generalized theory from Appendix § 7. This slightly weakens the translation-invariant property of the network. For example, for a stride of two, the network is only invariant to translations of two pixels at a time. However, there are benefits to this, e.g., the required number of parameters is lower, as we discuss below.

MNIST. In this experiment, we pick a stride of one for the random convolution layer. On the left of Figure 3, we see that for the convolutional network increasing the number of filters KConvNetK_{\mathrm{ConvNet}} in the random convolutional layer decreases the number of filters for the second layer, until there are diminishing returns at around KConvNet=60K_{\mathrm{ConvNet}} = 60. The fully-connected network behaves similarly, as shown on the right side of the same figure, where increasing the number of neurons KFCK_{\mathrm{FC}} in the random fully-connected layer decreases the number of neurons in the second layer with diminishing returns somewhere around KFC=30 000K_{\mathrm{FC}} = 30\,000. Recall that for large KK the number of filters and neurons in the second layer, respectively, roughly corresponds to the mutual covering number. Therefore, the results indicate that the translation-invariant mutual covering has less components than its non-invariant counterpart, which means it captures the structure of the data set more concisely. Moreover, the convolutional network converges more efficiently, as both networks (due to weight sharing in the convolutional net) require K⋅dK \cdot d parameters in their first layers, where d=28⋅28d = 28 \cdot28 is the dimension of MNIST.

MNIST second-layer size for convolutional and fully-connected networks

Figure 3. MNIST: size of the second layer. Depending on the number of filters (or neurons) in the first layer we report the number of filters (or neurons) in the second layer for three different levels of α\alpha. We report the average over five runs with 95% percentile intervals.

In Figure 4, to reduce the number of total parameters, we see that for both networks it is beneficial to choose KK as small as possible (under the condition that the method still interpolates). From the algorithms we can deduce that the fully-connected network requires KFC+1K_{\mathrm{FC}}+1 parameters per neuron (including the bias) in the second layer while the convolutional network requires KConvNet⋅d+1K_{\mathrm{ConvNet}} \cdot d + 1 parameters per filter in the second layer. Thus, in order for the convolutional network to require a lower total number of parameters, the lower possible value of KConvNetK_{\mathrm{ConvNet}} and the corresponding lower number of filters in the second layer would need to undercut the influence of the factor dd. However, as we can infer from the figures, this is not the case.

Two plots showing total parameters versus filters or neurons in the first layer for convolutional and fully-connected networks

Figure 4. MNIST: number of parameters. Depending on the number of filters (or neurons) in the first layer we report the total number of parameters of each network for three different levels of α\alpha. We report the average over ten runs with 95% percentile intervals. In both cases, decreasing the size of the first layer by one more step leads to a failed interpolation attempt in at least one of the ten random runs.

Finally, in all figures we can observe the influence of the interpolation fraction α\alpha. We see that reducing α\alpha to 95% cuts the sizes of the second layers roughly in half. We discuss this further in § 3.3.

CIFAR-10. In this experiment, we pick a stride of two for the random convolution layer. In Figure 5 we again observe that an increase in KK leads to a decrease in the number of filters and neurons in the second layer, respectively. There are diminishing returns in both cases, around KConvNet=250K_{\mathrm{ConvNet}} = 250 and KFC=40 000K_{\mathrm{FC}} = 40\,000. As in the case of MNIST, both networks require K⋅dK \cdot d parameters in the first layer, where d=3⋅32⋅32d = 3 \cdot32 \cdot32 is the dimension of CIFAR-10. Again, the second layer of the convolutional network converges more efficiently in this sense. However, the convolutional network requires slightly more second layer filters than the fully-connected network requires neurons in its second layer. Recall again that these roughly correspond to the mutual covering numbers. As we can see in Definition 2, while the components for the convolutional network consist of a union of multiple sub-components, their individual radii can become smaller compared to the fully-connected counterpart. This interplay might have a non-trivial effect on the covering number and we suspect that exactly this can be observed here.

Two plots showing the size of the second layer versus filters or neurons in the first layer for convolutional and fully-connected networks

Figure 5. CIFAR-10: size of the second layer. Depending on the number of filters (or neurons) in the first layer we report the number of filters (or neurons) in the second layer for three different levels of α\alpha. We report the average over five runs with 95% percentile intervals.

Due to the stride of two we only have d^=16⋅16\hat{d} = 16 \cdot16. However, as in the case of MNIST, we still observe more parameters for the convolutional network in Figure 6.

CIFAR-10 number of parameters for convolutional and fully-connected networks

Figure 6. CIFAR-10: number of parameters. Depending on the number of filters (or neurons) in the first layer we report the number of total parameters of each network for three different levels of α\alpha. We report the average over ten runs with 95% percentile intervals. In both cases, decreasing the size of the first layer by one more step leads to a failed interpolation attempt in at least one of the ten random runs.

Again, we can see that reducing α\alpha reduces the sizes of the second layers, but the effect is not as pronounced as for MNIST. We analyze this further in § 3.3 below.

Estimating how well a data set is conditioned

The idea behind the mutual covering is that it can adapt to the structure of a given problem by covering many samples far away from the decision boundary with only a few large components, while requiring smaller components only in more challenging areas to cover the remaining samples. One could say that such a mutual covering is ‘good’ while, e.g., a trivial covering where every sample is covered by its own dedicated component is certainly ‘bad’. In the same way, we might think of a data set as well-conditioned for our interpolation algorithm if it has a ‘good’ covering and as ill-condition if it only has ‘bad’ coverings.

Recall once again that, for large values of KK, the number of filters in the second layer of the convolutional network and the number of neurons in the second layer of the fully-connected network roughly correspond to the respective covering number. Hence, observing how many filters or neurons are needed by our algorithm to interpolate a fraction α\alpha of samples can give an empirical hint of the size of the components and thus on how well-conditioned a data set is. In the most ill-conditioned case, our method will require one filter (respectively neuron) per sample, corresponding to a linear increase in terms of α\alpha.

Let us observe beforehand, in Figure 7, that both the convolutional network and the fully-connected network behave very similarly regarding the interpolation fraction α\alpha. A likely explanation is that both MNIST and CIFAR-10 have been preprocessed such that its subjects are centered, hence there are no samples that are translated away from the origin. In this case, we cannot expect the convolutional network to be more efficient at interpolating these samples than the fully-connected network. Note, however, that the convolutional network is still more expressive as it extrapolates to any unseen translates of samples in the data set via the built-in translation-invariance.

Plots showing the influence of the interpolation fraction hyperparameter for MNIST and CIFAR-10

Figure 7. Influence of the interpolation fraction hyperparameter. We report the number of filters and neurons in the second layer, respectively, in terms of the interpolation fraction α\alpha. In each case, we picked the largest values of KK from Figure 3 and Figure 5. We report the average over five runs with 95% percentile intervals, which are very narrow and thus hard to see.

In Figure 7a, for MNIST we see a gradual increase in the required number of filters up until around α=90%\alpha= 90\% at which point the behavior becomes trivial, where the incline matches that of a network which represents only one sample per neuron. On the other hand, in Figure 7b, for CIFAR-10 the trivial behavior already starts at around α=40%\alpha= 40\%, hinting that CIFAR-10 is less well-conditioned than MNIST and harder to interpolate for our method.

Invariant data sets

In the previous subsections we observed that that the non-invariant covering number and our translation-invariant covering number (approximated by the number of neurons and filters in the second layer of the respective network) behave very similarly. We conjectured that this might be due to missing translation-invariance in the data sets due to preprocessing of the images.

What happens if there is enough invariance in the data set? Let G\mathcal{G} be a finite group of orthogonal transformations, such as image-space translations in the case of MNIST and CIFAR-10 or rotations in the case of XOR. Each of the components of the G\mathcal{G}-invariant covering possess ∣G∣|\mathcal{G}| sub-components. If the data is invariant, these cover transformed copies of the same samples, all of which the non-invariant covering needs to cover, too. Hence, one might hope that the invariant covering number is by a factor ∣G∣|\mathcal{G}| smaller than its non-invariant counterpart. However, due to the adaptive nature of the component radii, this is not obvious and could be dataset-dependent.

To test this intuition, for a given data set X\mathcal{X}, we compare both methods on

XG:={Qx:Q∈G,x∈X},\mathcal{X}_{\mathcal{G}}:=\{Qx:Q\in\mathcal{G},x\in\mathcal{X}\},

which contains all possible transformations of the original samples. Note that for our method with built-in invariance simply using X\mathcal{X} is equivalent.

The results in Table 1 show that our initial intuition seems largely correct. The ratio of the average number of neurons in the second layer of the fully-connected network M‾FC\overline{M}_{\mathrm{FC}} and the average number of filters in the second layer of the convolutional network M‾ConvNet\overline{M}_{\mathrm{ConvNet}} tracks ∣G∣|\mathcal{G}| closely over all tested data sets. Additionally, in the last row, we consider the plain XOR data set. Here, the invariance is already naturally encoded in the data distribution. We execute both methods on the unaugmented data set X\mathcal{X} while still encoding G\mathcal{G} into the convolutional model. We notice a clear improvement over the non-invariant covering, but it is not as large as when considering the ‘perfectly invariant’ data set XG\mathcal{X}_{\mathcal{G}}. This makes sense, as the invariance is in the distribution only and hence ‘noisy’.

data setG\mathcal{G}∣G∣|\mathcal{G}|M‾FC/M‾ConvNet\overline{M}_{\mathrm{FC}}/\overline{M}_{\mathrm{ConvNet}}
XOR{I2,−I2}\{I_{2},-I_{2}\}22.07
MNIST{T0,0†,T0,7†,T0,14†,T0,21†}\{T^{\dagger}_{0,0},T^{\dagger}_{0,7},T^{\dagger}_{0,14},T^{\dagger}_{0,21}\}43.98
CIFAR-10{T0,0†,T0,8†,T0,16†,T0,24†}\{T^{\dagger}_{0,0},T^{\dagger}_{0,8},T^{\dagger}_{0,16},T^{\dagger}_{0,24}\}43.92
XOR*{I2,−I2}\{I_{2},-I_{2}\}21.61

Table 1. Difference in covering numbers on invariant data sets. Ratio of the average number of neurons in the second layer of the fully-connected network M‾FC\overline{M}_{\mathrm{FC}} and average number of filters in the second layer of the convolutional network M‾ConvNet\overline{M}_{\mathrm{ConvNet}} compared to the group size. In any case we use KConvNet=5 000K_{\mathrm{ConvNet}}=5\,000 and KFC=∣G∣⋅KConvNetK_{\mathrm{FC}}=|\mathcal{G}|\cdot K_{\mathrm{ConvNet}}, similar to § 3.2. For XOR and XOR* we used λ=2\lambda=2 and did 50 random trials, for MNIST and CIFAR-10 we used λ=0\lambda=0 and did 5 random trials. XOR* uses only the plain data set.

Conclusion

In this paper, we presented an instance-specific analysis of the memorization capacity of translation-invariant convolutional neural networks with threshold activations. For a data set of two classes, we derived bounds on the required number of neurons and parameters for such a network to be able to interpolate the data. These bounds are linked to a new notion of translation-invariant mutual covering which respects the translation-invariant property of the network and takes both the mutual arrangement of the two classes and their geometric properties into account.

We derived these results as a special case of a general framework, where we considered invariance with respect to an arbitrary finite group of orthogonal transformations. This includes multi-dimensional convolutions, reflections, and rotations. We gave a constructive proof by introducing a randomized algorithm which for given input data computes instances of such networks, with high probability. We conducted numerical experiments where we investigate the empirical performance of our algorithm and compare it to previous work. While the produced networks were not smaller than previous non-translation invariant networks they are more expressive due to their built-in invariance.

Use of AI tools

The authors used AI solely to improve the wording and grammar of self-written prose. AI was not used for any other purpose, including research, proofs and other mathematics, figures, or code. A preliminary version of the results was announced in the PhD thesis of the second-named author [16].

Acknowledgments and Disclosure of Funding

PG is grateful for the hospitality of Utrecht University, where he worked on this project as a guest researcher. PG acknowledges support by the German Science Foundation (DFG) in the context of the Emmy Noether junior research group VO 2594/1–1.

Generalized theory

In this section, we introduce our theoretical result in its full generality. To this end, we use a form of group equivariant convolution which was first introduced by Cohen and Welling [10], although with a different notation. We reprove all the properties of this generalized convolution that are needed for our analysis.

In what follows, G≤O(d)\mathcal{G} \le\mathcal{O}(d) denotes a finite subgroup of the orthogonal group. We aim to produce a model F:Rd→{±1}F : \mathbb{R}^{d} \to\{\pm1\} that is invariant under the transformations contained in G\mathcal{G}, that is, for all x∈Rdx \in\mathbb{R}^{d},

F(Qx)=F(x)for all Q∈G.F(Qx) = F(x) \quad\text{for all } Q \in\mathcal{G}.

In the main part, we consider the special case of a translation-invariant convolutional neural network which is applied to 2D images with LL color channels, each of size H×WH \times W. This corresponds to the choice

G=GT:={Th,w↑:(h,w)∈[H]×[W]},\mathcal{G} = \mathcal{G}_{\mathrm{T}} := \{T^{\uparrow}_{h,w} : (h,w) \in[H] \times[W]\},

where, as in the main part, Th,wT_{h,w} denotes the circular translation in pixel-space by hh pixels vertically and ww pixel horizontally, and the translation is applied for each color channel via the lifting Th,w↑T^{\uparrow}_{h,w}, defined in (1). Clearly, these transformations are orthogonal as they are permutations, that is, a reordering of the elements of a vector. The same holds true for horizontal and vertical flips, 90° rotations for square 2D images or translations in higher dimensions. Over the course of this section, we highlight the special case of GT\mathcal{G}_{\mathrm{T}}. The result from the main part follows from this discussion.

Notation

We introduce an extended vector notation, which is similar to the notation used for tensors or multidimensional arrays. In the following, let I\mathcal{I}, J\mathcal{J}, and K\mathcal{K} denote finite index sets.

We denote by RI\mathbb{R}^{\mathcal{I}} the space of vectors with entries in R\mathbb{R} that are indexed by the elements of I\mathcal{I}. Evidently, this space is isomorphic to R∣I∣\mathbb{R}^{|\mathcal{I}|}. Let x,y∈RIx,y \in\mathbb{R}^{\mathcal{I}}. We denote by xix_i the ii-th entry of the vector xx. We denote the ℓp\ell_p-norm, for 1≤p<∞1 \le p < \infty, and the Euclidean inner product by

∥x∥p=(∑i∈I∣xi∣p)1/pand⟨x,y⟩=∑i∈Ixiyi,\lVert x \rVert_p = \left(\sum_{i \in\mathcal{I}} |x_i|^p\right)^{1/p} \quad\text{and}\quad \langle x,y\rangle= \sum_{i \in\mathcal{I}} x_i y_i,

respectively. In case of a double index, for v∈RI×Jv \in\mathbb{R}^{\mathcal{I} \times\mathcal{J}}, we select subsets of entries via

vi:=v(i,:):=[v(i,j)]j∈J∈RJandv(:,j):=[v(i,j)]i∈I∈RI,v_i := v_{(i,:)} := [v_{(i,j)}]_{j \in\mathcal{J}} \in\mathbb{R}^{\mathcal{J}} \quad\text{and}\quad v_{(:,j)} := [v_{(i,j)}]_{i \in\mathcal{I}} \in\mathbb{R}^{\mathcal{I}},

where we fixed the first and second index, respectively. For f:RJ→RKf : \mathbb{R}^{\mathcal{J}} \to\mathbb{R}^{\mathcal{K}} we define the lifting

f↑:RI×J→RI×K,v↦[f(vi)]i∈If^{\uparrow} : \mathbb{R}^{\mathcal{I} \times\mathcal{J}} \to\mathbb{R}^{\mathcal{I} \times\mathcal{K}}, \quad v \mapsto[f(v_i)]_{i \in\mathcal{I}}

as the repeated application of ff over the first index. The set of indices I\mathcal{I} over which we lift will in each case be clear from the context. Moreover, we slightly abuse the above notation by identifying n∈Nn \in\mathbb{N} with [n]={1,…,n}[n] = \{1,\ldots,n\}. Hence, we might write Rn×I:=R[n]×I\mathbb{R}^{n \times\mathcal{I}} := \mathbb{R}^{[n] \times\mathcal{I}} for the space of vectors indexed by the elements of [n]×I[n] \times\mathcal{I}.

A double index will be helpful when working with convolution layers where we want to group entries that have been manipulated by the same filter. In general we do not need more than two indices, for example, any color channel of a 2D image with H×WH \times W pixels can be simply identified with a vector of dimension d=H⋅Wd = H \cdot W.

Let us conclude with a short example of the above notation. Let K∈NK \in\mathbb{N} and f:RG→RGf : \mathbb{R}^{G} \to\mathbb{R}^{G}. For v,u∈RK×Gv,u \in\mathbb{R}^{K \times G}, we may write

⟨v,f↑(u)⟩=∑k∈[K]⟨vk,[f↑(u)]k⟩=∑k∈[K]⟨vk,f(uk)⟩,\langle v, f^{\uparrow}(u) \rangle= \sum_{k \in[K]} \langle v_k, [f^{\uparrow}(u)]_k \rangle= \sum_{k \in[K]} \langle v_k, f(u_k) \rangle,

where we first make the summation over k∈[K]k \in[K] explicit and then resolve the lifting.

Generalized memorization algorithm

In this section, we introduce Algorithm 2, which—with high probability—produces a model that interpolates a given data set while being invariant under the transformations contained in G\mathcal{G}. We make some necessary definitions to state Algorithm 2 and, along the way, we highlight how Algorithm 2 reduces to Algorithm 1 in the special case of GT\mathcal{G}_{T}.

First, we generalize the notion of circular convolution.

Definition 4 Let x,g∈Rdx,g \in\mathbb{R}^{d}. We call x⊛g∈RGx \circledast g \in\mathbb{R}^{\mathcal{G}} the circular convolution with respect to G\mathcal{G} and define it element-wise by

[x⊛g]Q=⟨x,Qg⟩,Q∈G.[x \circledast g]_{Q} = \langle x, Qg \rangle,\qquad Q \in\mathcal{G}.

In the case of GT\mathcal{G}_{T} the above corresponds to the regular 2D multi-channel circular convolution.4 To see this, we identify (h,w)∈[H]×[W](h,w) \in[H] \times[W] with Th,wT∈GTT_{h,w}^{\mathsf{T}} \in\mathcal{G}_{T}, so that RH×W≃RGT\mathbb{R}^{H \times W} \simeq\mathbb{R}^{\mathcal{G}_{T}}. Then, for x,g∈RL×H×Wx,g \in\mathbb{R}^{L \times H \times W} and each entry (h,w)∈[H]×[W](h,w) \in[H] \times[W],

[x⊛g]Th,wT=⟨x,Th,wTg⟩=∑ℓ∈[L]⟨xℓ,Th,wgℓ⟩=[∑ℓ∈[L]xℓ∗gℓ](h,w).[x \circledast g]_{T_{h,w}^{\mathsf{T}}} = \langle x,T_{h,w}^{\mathsf{T}}g \rangle= \sum_{\ell\in[L]} \langle x_{\ell},T_{h,w}g_{\ell} \rangle= \left[\sum_{\ell\in[L]} x_{\ell} \ast g_{\ell}\right]_{(h,w)}.

Hence, we have [x⊛g]=∑ℓ∈[L]xℓ∗gℓ[x \circledast g] = \sum_{\ell\in[L]} x_{\ell} \ast g_{\ell}, which shows that the computation of the first layer in Algorithms 1 and 2 is identical.

Definition 5 Let R∈GR \in\mathcal{G} and v∈RGv \in\mathbb{R}^{\mathcal{G}}. We define the circular shift operator SR:RG→RGS_R : \mathbb{R}^{\mathcal{G}} \to\mathbb{R}^{\mathcal{G}} induced by RR by

[SRv]Q=vRTQ,Q∈G.[S_Rv]_{Q} = v_{R^{\mathsf{T}}Q},\qquad Q \in\mathcal{G}.

Throughout we will use the elementary properties

SRSU=SRU,SRT=SRT,∥SRv∥p=∥v∥pfor all 1≤p≤∞,(3)S_R S_U = S_{RU}, \qquad S_R^{\mathsf{T}} = S_{R^{\mathsf{T}}}, \qquad\lVert S_R v\rVert_p = \lVert v\rVert_p \qquad\text{for all } 1 \le p \le\infty, \tag*{(3)}

for all R,U∈GR,U \in\mathcal{G} and v∈RGv \in\mathbb{R}^{\mathcal{G}}. These properties clearly transfer to the lifting S^R\widehat{S}_R.

The last piece of notation needed to state Algorithm 2 is the following. For v,u∈RK×G\boldsymbol{v},\boldsymbol{u} \in\mathbb{R}^{K\times\mathcal{G}}, we define the kernel

⟨ ⁣⟨v,u⟩ ⁣⟩:=min⁡R∈G⟨v,S^RTu⟩.\langle\!\langle\boldsymbol{v},\boldsymbol{u}\rangle\!\rangle:= \min_{R\in\mathcal{G}}\langle\boldsymbol{v},\widehat{S}_R^{\mathsf{T}}\boldsymbol{u}\rangle.

Let us conclude by showing how, in the case of GT\mathcal{G}_{T}, the computation of the second layer in Algorithm 1 and 2 is identical. With the same identification as before, for each entry (h′,w′)∈[H]×[W](h',w')\in[H]\times[W] and v∈RG\boldsymbol{v}\in\mathbb{R}^{\mathcal{G}},

[S^Th,wv]Th′,w′=vT−h,−wTh′,w′=vTh′−h,w′−w:=v(h′−h,w′−w)=[Th,wv](h′,w′).[\widehat{S}_{T_{h,w}} \boldsymbol{v}]_{T_{h',w'}} = v_{T_{-h,-w}T_{h',w'}} = v_{T_{h'-h,w'-w}} \mathrel{:=} v(h'-h,w'-w) = [T_{h,w}\boldsymbol{v}](h',w').

Hence, we have S^Th,wT:=Th,w\widehat{S}_{T_{h,w}}^{\mathsf{T}}\mathrel{:=}T_{h,w}. Moreover, for z,u∈RK×GT\boldsymbol{z},\boldsymbol{u}\in\mathbb{R}^{K\times\mathcal{G}_{T}},

⟨z,S^Th,wTu⟩=∑k∈[K]⟨zk,S^Th,wTuk⟩:=∑k∈[K]⟨zk,Th,wuk⟩=[∑k∈[K]zk⊡uk](h,w)\langle\boldsymbol{z},\widehat{S}_{T_{h,w}}^{\mathsf{T}}\boldsymbol{u}\rangle= \sum_{k\in[K]}\langle z_k,\widehat{S}_{T_{h,w}}^{\mathsf{T}}u_k\rangle\mathrel{:=} \sum_{k\in[K]}\langle z_k,T_{h,w}u_k\rangle= \left[\sum_{k\in[K]}z_k \mathbin{\boxdot} u_k\right]_{(h,w)}

which further yields

−⟨ ⁣⟨z,u⟩ ⁣⟩=max⁡Th,w∈GT⟨z,S^Th,wT(−u)⟩:=max⁡(h,w)∈[H]×[W][∑k∈[K]zk⊡[−u]k](h,w).-\langle\!\langle\boldsymbol{z},\boldsymbol{u}\rangle\!\rangle= \max_{T_{h,w}\in\mathcal{G}_{T}}\langle\boldsymbol{z},\widehat{S}_{T_{h,w}}^{\mathsf{T}}(-\boldsymbol{u})\rangle\mathrel{:=} \max_{(h,w)\in[H]\times[W]}\left[\sum_{k\in[K]}z_k\mathbin{\boxdot}[-u]_k\right]_{(h,w)}.

Hence, the neurons computed in Algorithm 2 are

φ^x⋆(z):=GMP⁡{σ(∑k∈[K]zk⊡[−u]k+mx⋆)}.\widehat{\varphi}_{x^\star}(\boldsymbol{z}) \mathrel{:=} \operatorname{GMP}\left\{\sigma\left(\sum_{k\in[K]}z_k\mathbin{\boxdot}[-u]_k + m_{x^\star}\right)\right\}.

Finally, notice that in the formulation of Algorithm 1 we detached GMP from the second layer in favor of a separate global max pooling layer.

Proof of the main result

To state the generalization of Theorem 3, for x,y∈Rd\boldsymbol{x},\boldsymbol{y}\in\mathbb{R}^{d}, we define the pseudo-metric

d(x,y):=min⁡Q∈G∥x−Qy∥2.d(\boldsymbol{x},\boldsymbol{y}) := \min_{Q\in\mathcal{G}}\lVert\boldsymbol{x}-Q\boldsymbol{y}\rVert_2.

Again, we extend this notation as in the main part: for sets A,B⊂Rd\mathcal{A},\mathcal{B}\subset\mathbb{R}^{d} and a∈Rd\boldsymbol{a}\in\mathbb{R}^{d}, we write

d(a,B):=inf⁡b∈Bd(a,b)andd(A,B):=inf⁡a∈Ad(a,B).d(\boldsymbol{a},\mathcal{B}) := \inf_{\boldsymbol{b}\in\mathcal{B}}d(\boldsymbol{a},\boldsymbol{b}) \qquad\text{and} \qquad d(\mathcal{A},\mathcal{B}) := \inf_{\boldsymbol{a}\in\mathcal{A}}d(\boldsymbol{a},\mathcal{B}).

The following definition generalizes the translation-invariant mutual covering from the main part to instead be invariant to the transformations contained in G\mathcal{G}. Notice that the case of GT\mathcal{G}_{T} recovers Definition 2.

Algorithm 2 GG-invariant memorization

Input: G≤O(d)G \leq O(d) finite, X=X+∪X−⊂Rd\mathcal{X} = \mathcal{X}^{+} \cup\mathcal{X}^{-} \subset\mathbb{R}^{d} finite with N+:=∣X+∣N^{+} := |\mathcal{X}^{+}| and N−:=∣X−∣N^{-} := |\mathcal{X}^{-}|, number of random filters K∈NK \in\mathbb{N}, maximal bias λ≥0\lambda\geq0, interpolation fraction α∈(0,1]\alpha\in(0,1]

Output: GG-invariant (generalized) convolutional neural net F:Rd→{±1}F:\mathbb{R}^{d} \to\{\pm1\}

  1. for k∈[K]k \in[K] do

  2. gk←g_k \leftarrow independent sample from N(0,Id)\mathcal{N}(0,I_d)

  3. τk←\tau_k \leftarrow independent sample from Unif⁡([−λ,λ])\operatorname{Unif}([-\lambda,\lambda])

  4. end for ▹Φ(x)=[σ(x⊛gk+τk)]k∈[K]\triangleright\Phi(x) = [\sigma(x \circledast g_k + \tau_k)]_{k\in[K]}

  5. A+←∅\mathcal{A}^{+} \leftarrow\varnothing

  6. C+←X+\mathcal{C}^{+} \leftarrow\mathcal{X}^{+}

  7. while ∣C+∣>0|\mathcal{C}^{+}| > 0 do

  8. x∗+←x_{*}^{+} \leftarrow random sample from C+\mathcal{C}^{+}

  9. C+←C+∖{x∗+}\mathcal{C}^{+} \leftarrow\mathcal{C}^{+} \setminus\{x_{*}^{+}\}

  10. ux∗+←1[Φ(x∗+)=0]u_{x_{*}^{+}} \leftarrow\mathbf{1}[\Phi(x_{*}^{+}) = 0]

  11. mx∗+←min⁡x−∈X−⟨⟨Φ(x−),ux∗+⟩⟩▹φ^x∗+(z)=σ(mx∗+−⟨⟨z,ux∗+⟩⟩)m_{x_{*}^{+}} \leftarrow\min_{x^{-}\in\mathcal{X}^{-}} \langle\langle\Phi(x^{-}),u_{x_{*}^{+}}\rangle\rangle\triangleright\widehat{\varphi}_{x_{*}^{+}}(z) = \sigma(m_{x_{*}^{+}} - \langle\langle z,u_{x_{*}^{+}}\rangle\rangle)

  12. Vx∗+←{x+∈X+:φ^x∗+(Φ(x+))>0}\mathcal{V}_{x_{*}^{+}} \leftarrow\{x^{+}\in\mathcal{X}^{+}:\widehat{\varphi}_{x_{*}^{+}}(\Phi(x^{+})) > 0\}

  13. if ∣Vx∗+∣>0|\mathcal{V}_{x_{*}^{+}}| > 0 then

  14. A+←A+∪{x∗+}\mathcal{A}^{+} \leftarrow\mathcal{A}^{+} \cup\{x_{*}^{+}\}

  15. C+←C+∖Vx∗+\mathcal{C}^{+} \leftarrow\mathcal{C}^{+} \setminus\mathcal{V}_{x_{*}^{+}}

  16. end if

  17. end while

  18. while ∣⋃x∗+∈A+Vx∗+∣≥αN+\left|\bigcup_{x_{*}^{+}\in\mathcal{A}^{+}}\mathcal{V}_{x_{*}^{+}}\right| \geq\alpha N^{+} do

  19. x∗+←arg⁡min⁡x∗+∈A+∣Vx∗+∪⋃x~∗+∈A+∖{x∗+}Vx~∗+∣x_{*}^{+} \leftarrow\arg\min_{x_{*}^{+}\in\mathcal{A}^{+}} \left|\mathcal{V}_{x_{*}^{+}} \cup\bigcup_{\widetilde{x}_{*}^{+}\in\mathcal{A}^{+}\setminus\{x_{*}^{+}\}}\mathcal{V}_{\widetilde{x}_{*}^{+}}\right|

  20. A+←A+∖{x∗+}\mathcal{A}^{+} \leftarrow\mathcal{A}^{+} \setminus\{x_{*}^{+}\}

  21. end while

  22. A+←A+∪{x∗+}▹Φ^(z)=[σ(mx∗+−⟨⟨z,ux∗+⟩⟩)]x∗+∈A+\mathcal{A}^{+} \leftarrow\mathcal{A}^{+} \cup\{x_{*}^{+}\} \triangleright\widehat{\Phi}(z) = [\sigma(m_{x_{*}^{+}} - \langle\langle z,u_{x_{*}^{+}}\rangle\rangle)]_{x_{*}^{+}\in\mathcal{A}^{+}}

  23. return F(x)=sign⁡(⟨1,Φ^(Φ(x))⟩)▹1=(1,…,1)∈RA+F(x) = \operatorname{sign}(\langle\mathbf{1},\widehat{\Phi}(\Phi(x))\rangle) \triangleright\mathbf{1} = (1,\ldots,1) \in\mathbb{R}^{\mathcal{A}^{+}}

Definition 6 (GG-invariant mutual covering) Recall that X=X+∪X−\mathcal{X}=\mathcal{X}^{+}\cup\mathcal{X}^{-}. We call

C+={c1+,…,cM++}⊂X+,r1+,…,rM++≥0,\mathcal{C}^{+}=\{c_{1}^{+},\ldots,c_{M^{+}}^{+}\}\subset\mathcal{X}^{+},\qquad r_{1}^{+},\ldots,r_{M^{+}}^{+}\ge0,
C−={c1−,…,cM−−}⊂X−,r1−,…,rM−−≥0,\mathcal{C}^{-}=\{c_{1}^{-},\ldots,c_{M^{-}}^{-}\}\subset\mathcal{X}^{-},\qquad r_{1}^{-},\ldots,r_{M^{-}}^{-}\ge0,

a GG-invariant mutual covering of X\mathcal{X}, if the components of the covering

Xk+={x+∈X+:d(ck+,x+)≤rk+}=⋃Q∈GXk,Q+,Xk,Q+:=X+∩Bd2(Qck+,rk+),\mathcal{X}_{k}^{+}=\{x^{+}\in\mathcal{X}^{+}:d(c_{k}^{+},x^{+})\le r_{k}^{+}\}=\bigcup_{Q\in G}\mathcal{X}_{k,Q}^{+},\qquad\mathcal{X}_{k,Q}^{+}:=\mathcal{X}^{+}\cap B_{d}^{2}(Qc_{k}^{+},r_{k}^{+}),
Xℓ−={x−∈X−:d(cℓ−,x−)≤rℓ−}=⋃Q∈GXℓ,Q−,Xℓ,Q−:=X−∩Bd2(Qcℓ−,rℓ−)\mathcal{X}_{\ell}^{-}=\{x^{-}\in\mathcal{X}^{-}:d(c_{\ell}^{-},x^{-})\le r_{\ell}^{-}\}=\bigcup_{Q\in G}\mathcal{X}_{\ell,Q}^{-},\qquad\mathcal{X}_{\ell,Q}^{-}:=\mathcal{X}^{-}\cap B_{d}^{2}(Qc_{\ell}^{-},r_{\ell}^{-})

cover X+\mathcal{X}^{+} and X−\mathcal{X}^{-}, respectively. We call M+M^{+} and M−M^{-} the mutual covering numbers.

The following is the generalization of Theorem 3. It states conditions under which Algorithm 2 succeeds to produce an invariant network that interpolates the input data with high probability and, moreover, gives estimates on the size of this network.

Theorem 7 (size of GG-invariant net) Let G≤O(d)G\le O(d) be finite with G:=∣G∣G:=|G|, let X=X+∪X−⊂RraddBd\mathcal{X}=\mathcal{X}^{+}\cup\mathcal{X}^{-}\subset\mathbb{R}_{\mathrm{rad}}^{d}B_{d} be finite. Suppose there exists a GG-invariant mutual covering with centers satisfying d(C+,C−)≥δd(\mathcal{C}^{+},\mathcal{C}^{-})\ge\delta and radii satisfying

rk+≲d(ck+,C−)log⁡(eλ/d(ck+,C−))andrℓ−≲d(cℓ−,C+)log⁡(eλ/d(cℓ−,C+)),r_{k}^{+}\lesssim\frac{d(c_{k}^{+},\mathcal{C}^{-})}{\sqrt{\log(e\lambda/d(c_{k}^{+},\mathcal{C}^{-}))}} \qquad\text{and}\qquad r_{\ell}^{-}\lesssim\frac{d(c_{\ell}^{-},\mathcal{C}^{+})}{\sqrt{\log(e\lambda/d(c_{\ell}^{-},\mathcal{C}^{+}))}},

for k∈[M+]k\in[M^{+}] and ℓ∈[M−]\ell\in[M^{-}]. Set ω:=max⁡{ω+,ω−}\omega:=\max\{\omega^{+},\omega^{-}\} where

ω+=max⁡k∈[M+],Q∈Gω2(Xk,Q+)d3(ck+,C−)andω−=max⁡ℓ∈[M−],Q∈Gω2(Xℓ,Q−)d3(cℓ−,C+).\omega^{+}=\max_{k\in[M^{+}],Q\in G}\frac{\omega^{2}(\mathcal{X}_{k,Q}^{+})}{d^{3}(c_{k}^{+},\mathcal{C}^{-})} \qquad\text{and}\qquad \omega^{-}=\max_{\ell\in[M^{-}],Q\in G}\frac{\omega^{2}(\mathcal{X}_{\ell,Q}^{-})}{d^{3}(c_{\ell}^{-},\mathcal{C}^{+})}.

Suppose λ≳Rrad\lambda\gtrsim R_{\mathrm{rad}} and

K≳λδ−1log⁡(2M+M−G/η)+λω.K\gtrsim\lambda\delta^{-1}\log(2M^{+}M^{-}G/\eta)+\lambda\omega.

Then, with probability at least 1−η1-\eta, Algorithm 2 outputs a neural network F:Rd→{±1}F:\mathbb{R}^{d}\to\{\pm1\} which is invariant under the transformations contained in GG and interpolates X\mathcal{X}, that is, for at least a fraction of α\alpha samples x+∈X+x^{+}\in\mathcal{X}^{+} and all samples x−∈X−x^{-}\in\mathcal{X}^{-},

F(x+)=+1andF(x−)=−1.F(x^{+})=+1\qquad\text{and}\qquad F(x^{-})=-1.

Moreover, it has KK and no more than M+M^{+} convolutions in its first and second (generalized) convolutional layers, respectively. In particular, it has no more than O(dK+M+GK)O(dK+M^{+}GK) parameters.

In the remainder of this section, we prove Theorem 7. First, we make some simple but helpful observations. Then, we prove lower and upper bounds on quantities of interest in Lemma 10 and 12, respectively. We connect these bounds in Lemma 13 which serves as the key ingredient of our proof of Theorem 7, stated at the very end of this section.

Let us formally define the first layer, which is constructed within the first loop of Algorithm 2. For the number of filters K∈NK \in\mathbb{N} and the maximal bias λ≥0\lambda\ge0, let

g1,…,gK∼N(0,Id)andτ1,…,τK∼Unif⁡([−λ,λ])\boldsymbol{g}_1,\ldots,\boldsymbol{g}_K \sim\mathcal{N}(\boldsymbol{0},I_d) \quad\text{and} \quad\tau_1,\ldots,\tau_K \sim\operatorname{Unif}([-\lambda,\lambda])

be all independent of each other. We define the random convolution layer by

Φ(x)=[σ(x⊛gk+τk)]k∈[K]∈RK×c,\Phi(\boldsymbol{x}) = [\sigma(\boldsymbol{x} \circledast\boldsymbol{g}_k+\tau_k)]_{k\in[K]} \in\mathbb{R}^{K\times c},

where the addition of the biases τk\tau_k is element-wise.

The proofs of Lemmas 10 and 12 below relate our more general setting to a setting with a fully-connected first layer. We define the random fully-connected layer Ψ\Psi associated to Φ\Phi by

Ψ(x)=σ(Gx+τ),\Psi(\boldsymbol{x})=\sigma(G\boldsymbol{x}+\boldsymbol{\tau}),

where GG has rows g1,…,gK\boldsymbol{g}_1,\ldots,\boldsymbol{g}_K and τ=(τ1,…,τK)\boldsymbol{\tau}=(\tau_1,\ldots,\tau_K).

The following lemma states two helpful observations which we use throughout the following proofs. The first is that transforming an input of the convolution layer is the same as shifting its output. The second is that only observing the output of the convolution layer for a fixed transformation is the same as applying the associated fully-connected layer to an appropriately transformed input.

Lemma 8 For any Q∈GQ \in\mathcal{G} and x∈Rd\boldsymbol{x} \in\mathbb{R}^d,

Φ(Qx)=SQ↑[Φ(x)]and[Φ(x)](:,Q)=Ψ(QTx).\Phi(Q\boldsymbol{x})=S_Q^{\uparrow}[\Phi(\boldsymbol{x})] \quad\text{and} \quad[\Phi(\boldsymbol{x})]_{(:,Q)}=\Psi(Q^{\mathsf{T}}\boldsymbol{x}).

Proof For R∈GR \in\mathcal{G} and x,g∈Rd\boldsymbol{x},\boldsymbol{g}\in\mathbb{R}^d, we observe

(Rx)⊛g=SR(x⊛g).(R\boldsymbol{x})\circledast\boldsymbol{g}=S_R(\boldsymbol{x}\circledast\boldsymbol{g}).

Indeed, for Q∈GQ \in\mathcal{G},

[(Rx)⊛g]Q=⟨Rx,Qg⟩=⟨x,RTQg⟩=[x⊛g]RTQ=[SR(x⊛g)]Q.[(R\boldsymbol{x})\circledast\boldsymbol{g}]_Q=\langle R\boldsymbol{x},Q\boldsymbol{g}\rangle=\langle\boldsymbol{x},R^{\mathsf{T}}Q\boldsymbol{g}\rangle=[\boldsymbol{x}\circledast\boldsymbol{g}]_{R^{\mathsf{T}}Q}=[S_R(\boldsymbol{x}\circledast\boldsymbol{g})]_Q.

Let k∈[K]k \in[K]. Using the above and due to the element-wise application of τk\tau_k and σ\sigma,

[Φ(Qx)]k=σ((Qx)⊛gk+τk)=σ(SQ(x⊛gk)+τk)=SQσ(x⊛gk+τk)=SQ[Φ(x)]k,[\Phi(Q\boldsymbol{x})]_k=\sigma((Q\boldsymbol{x})\circledast\boldsymbol{g}_k+\tau_k)=\sigma(S_Q(\boldsymbol{x}\circledast\boldsymbol{g}_k)+\tau_k)=S_Q\sigma(\boldsymbol{x}\circledast\boldsymbol{g}_k+\tau_k)=S_Q[\Phi(\boldsymbol{x})]_k,

which proves the first statement. For the second statement, note that

[Φ(x)](k,Q)=σ(⟨x,Qgk⟩+τk)=σ(⟨QTx,gk⟩+τk)=[Ψ(QTx)]k.[\Phi(\boldsymbol{x})]_{(k,Q)}=\sigma(\langle\boldsymbol{x},Q\boldsymbol{g}_k\rangle+\tau_k)=\sigma(\langle Q^{\mathsf{T}}\boldsymbol{x},\boldsymbol{g}_k\rangle+\tau_k)=[\Psi(Q^{\mathsf{T}}\boldsymbol{x})]_k.

■

In the case of the random fully-connected layer, Dirksen et al. [15] prove the following. To state the result, for A,B⊂Rd\mathcal{A},\mathcal{B}\subset\mathbb{R}^d, we denote

d2(A,B):=inf⁡a∈A,b∈B∥a−b∥2.d_2(\mathcal{A},\mathcal{B}):=\inf_{\boldsymbol{a}\in\mathcal{A},\boldsymbol{b}\in\mathcal{B}}\|\boldsymbol{a}-\boldsymbol{b}\|_2.

Lemma 9 (Dirksen et al. [15]) Let X=X+∪X−⊂RradB2d\mathcal{X}=\mathcal{X}^{+}\cup\mathcal{X}^{-}\subset R_{\mathrm{rad}}\mathbb{B}_{2}^{d} be finite with N+:=∣X+∣N^{+}:=|\mathcal{X}^{+}|, N−:=∣X−∣N^{-}:=|\mathcal{X}^{-}|. Suppose d2(X+,X−)≥δd_{2}(\mathcal{X}^{+},\mathcal{X}^{-})\ge\delta and assume λ≳Rrad\lambda\gtrsim R_{\mathrm{rad}} and

K≳δ−1λlog⁡(2N+N−/η).K\gtrsim\delta^{-1}\lambda\log(2N^{+}N^{-}/\eta).

Then, with probability at least 1−η1-\eta, for all x+∈X+x^{+}\in\mathcal{X}^{+} and x−∈X−x^{-}\in\mathcal{X}^{-},

⟨Ψ(x+),vx+⟩=0and⟨Ψ(x−),vx+⟩≳∥x−−x+∥2λ−1K,\langle\Psi(x^{+}),v_{x^{+}}\rangle=0 \qquad\text{and}\qquad\langle\Psi(x^{-}),v_{x^{+}}\rangle\gtrsim\lVert x^{-}-x^{+}\rVert_{2}\lambda^{-1}K,

where vx+=1[Ψ(x+)=0]v_{x^{+}}=\mathbf{1}[\Psi(x^{+})=0].

We generalize the above result to the random convolution layer.

Lemma 10 Let G≤O(d)\mathcal{G}\le O(d) be finite with G:=∣G∣G:=|\mathcal{G}| and let X=X+∪X−⊂RradB2d\mathcal{X}=\mathcal{X}^{+}\cup\mathcal{X}^{-}\subset R_{\mathrm{rad}}\mathbb{B}_{2}^{d} be finite with N+:=∣X+∣N^{+}:=|\mathcal{X}^{+}|, N−:=∣X−∣N^{-}:=|\mathcal{X}^{-}|. Suppose d(X+,X−)≥δd(\mathcal{X}^{+},\mathcal{X}^{-})\ge\delta and assume λ≳Rrad\lambda\gtrsim R_{\mathrm{rad}} and

K≳δ−1λlog⁡(2N+N−G/η).K\gtrsim\delta^{-1}\lambda\log(2N^{+}N^{-}G/\eta).

Then, with probability at least 1−η1-\eta, for all x+∈X+x^{+}\in\mathcal{X}^{+} and x−∈X−x^{-}\in\mathcal{X}^{-},

⟨⟨Φ(x+),ux+⟩⟩=0and⟨⟨Φ(x−),ux+⟩⟩≳d(x−,x+)λ−1KG,\langle\langle\Phi(x^{+}),u_{x^{+}}\rangle\rangle=0 \qquad\text{and}\qquad\langle\langle\Phi(x^{-}),u_{x^{+}}\rangle\rangle\gtrsim d(x^{-},x^{+})\lambda^{-1}KG,

where ux+=1[Φ(x+)=0]u_{x^{+}}=\mathbf{1}[\Phi(x^{+})=0].

Proof Let E∈GE\in\mathcal{G} denote the identity element. Then, for all x+∈X+x^{+}\in\mathcal{X}^{+}, by definition,

0≤⟨⟨Φ(x+),ux+⟩⟩=min⁡R∈G⟨Φ(x+),SRTux+⟩≤⟨Φ(x+),SETux+⟩=⟨Φ(x+),ux+⟩=0.0\le\langle\langle\Phi(x^{+}),u_{x^{+}}\rangle\rangle=\min_{R\in\mathcal{G}}\langle\Phi(x^{+}),S_{R}^{\mathsf{T}}u_{x^{+}}\rangle\le\langle\Phi(x^{+}),S_{E}^{\mathsf{T}}u_{x^{+}}\rangle=\langle\Phi(x^{+}),u_{x^{+}}\rangle=0.

This proves the first claim. For the second claim, consider the event AA where, for all x+∈X+x^{+}\in\mathcal{X}^{+}, x−∈X−x^{-}\in\mathcal{X}^{-} and R,Q∈GR,Q\in\mathcal{G},

⟨Ψ(QTx−),vQTRx+⟩≳∥QTx−−QTRx+∥2λ−1K=∥x−−Rx+∥2λ−1K.\langle\Psi(Q^{\mathsf{T}}x^{-}),v_{Q^{\mathsf{T}}Rx^{+}}\rangle\gtrsim\lVert Q^{\mathsf{T}}x^{-}-Q^{\mathsf{T}}Rx^{+}\rVert_{2}\lambda^{-1}K=\lVert x^{-}-Rx^{+}\rVert_{2}\lambda^{-1}K.

By Lemma 9 applied to the sets QTX−Q^{\mathsf{T}}\mathcal{X}^{-} and QTRX+Q^{\mathsf{T}}R\mathcal{X}^{+}, followed by a union bound over Q,R∈GQ,R\in\mathcal{G}, we obtain P(A)≥1−η\mathbb{P}(A)\ge1-\eta under our assumptions.

On AA, for all x+∈X+x^{+}\in\mathcal{X}^{+}, x−∈X−x^{-}\in\mathcal{X}^{-} and R∈GR\in\mathcal{G},

⟨Φ(x−),uRx+⟩=∑Q∈G⟨[Φ(x−)](:,Q),[uRx+](:,Q)⟩=∑Q∈G⟨Ψ(QTx−),vQTRx+⟩≳∥x−−Rx+∥2λ−1KG,\begin{aligned} \langle\Phi(x^{-}),u_{Rx^{+}}\rangle &=\sum_{Q\in\mathcal{G}}\langle[\Phi(x^{-})]_{(:,Q)},[u_{Rx^{+}}]_{(:,Q)}\rangle\\ &=\sum_{Q\in\mathcal{G}}\langle\Psi(Q^{\mathsf{T}}x^{-}),v_{Q^{\mathsf{T}}Rx^{+}}\rangle \gtrsim\lVert x^{-}-Rx^{+}\rVert_{2}\lambda^{-1}KG, \end{aligned}

where we used Lemma 8 and, in particular,

[uRx+](:,Q)=1[[Φ(Rx+)](:,Q)=0]=1[Ψ(QTRx+)=0]=vQTRx+.[u_{Rx^{+}}]_{(:,Q)}=\mathbf{1}[[\Phi(Rx^{+})]_{(:,Q)}=0]=\mathbf{1}[\Psi(Q^{\mathsf{T}}Rx^{+})=0]=v_{Q^{\mathsf{T}}Rx^{+}}.

This immediately implies, for all x+∈X+x^{+}\in\mathcal{X}^{+} and x−∈X−x^{-}\in\mathcal{X}^{-},

⟨⟨Φ(x−),ux+⟩⟩=min⁡R∈G⟨Φ(x−),SRTux+⟩=min⁡R∈G⟨Φ(x−),uRx+⟩≳d(x−,x+)λ−1KG,\begin{aligned} \langle\langle\Phi(x^{-}),u_{x^{+}}\rangle\rangle &=\min_{R\in\mathcal{G}}\langle\Phi(x^{-}),S_{R}^{\mathsf{T}}u_{x^{+}}\rangle\\ &=\min_{R\in\mathcal{G}}\langle\Phi(x^{-}),u_{Rx^{+}}\rangle\gtrsim d(x^{-},x^{+})\lambda^{-1}KG, \end{aligned}

where, again, we used Lemma 8 and, in particular,

SR↑ux+=1[SR↑Φ(x+)=0]=1[Φ(Rx+)=0]=uRx+.S_{R}^{\uparrow}u_{x+} = \mathbf{1}[S_{R}^{\uparrow}\Phi(x^+) = 0] = \mathbf{1}[\Phi(Rx^+) = 0] = u_{Rx+}.

The following observation again considers a random fully-connected layer and was stated by Dirksen et al. [15] as a direct consequence of Theorem 2.9 of Dirksen and Mendelson [14].5

Lemma 11 ([15 Lemma 18]) Let c1,…,cM∈Rdc_1,\ldots,c_M \in\mathbb{R}^d, s1,…,sM≥0s_1,\ldots,s_M \ge0 and

rm≲smlog⁡(eλ/sm),s=min⁡m∈[M]sm.r_m \lesssim\frac{s_m}{\sqrt{\log(e\lambda/s_m)}}, \qquad s = \min_{m\in[M]} s_m.

Consider X1,…,XM⊂Rd\mathcal{X}_1,\ldots,\mathcal{X}_M \subset\mathbb{R}^d such that, for all m∈[M]m \in[M],

Xm⊂B2d(cm,rm)⊂RradB2d.\mathcal{X}_m \subset B_2^d(c_m,r_m) \subset R_{\mathrm{rad}}B_2^d.

Suppose λ≳Rrad\lambda\gtrsim R_{\mathrm{rad}} and

K≳s−1λlog⁡(2M/η)+λmax⁡m∈[M]sm−3w2(Xm).K \gtrsim s^{-1}\lambda\log(2M/\eta) + \lambda\max_{m\in[M]}s_m^{-3}w^2(\mathcal{X}_m).

Then, with probability at least 1−η1-\eta, for all m∈[M]m\in[M] and x∈Xmx\in\mathcal{X}_m,

∥Ψ(cm)−Ψ(x)∥1≲smλ−1K.\lVert\Psi(c_m)-\Psi(x)\rVert_1 \lesssim s_m\lambda^{-1}K.

We derive an analogue for the random convolution layer.

Lemma 12 Let G≤O(d)\mathcal{G}\le O(d) be finite with G:=∣G∣G:=|\mathcal{G}|. Let c1,…,cM∈Rdc_1,\ldots,c_M\in\mathbb{R}^d, s1,…,sM≥0s_1,\ldots,s_M\ge0 and

rm≲smlog⁡(eλ/sm),s=min⁡m∈[M]sm.r_m \lesssim\frac{s_m}{\sqrt{\log(e\lambda/s_m)}}, \qquad s=\min_{m\in[M]}s_m.

Consider X1,…,XM⊂Rd\mathcal{X}_1,\ldots,\mathcal{X}_M\subset\mathbb{R}^d such that, for all m∈[M]m\in[M],

Xm⊂{x∈Rd:d(cm,x)≤rm}⊂RradB2d.(4)\mathcal{X}_m\subset\{x\in\mathbb{R}^d:d(c_m,x)\le r_m\}\subset R_{\mathrm{rad}}B_2^d. \tag*{(4)}

Suppose λ≳Rrad\lambda\gtrsim R_{\mathrm{rad}} and, for Xm,Q:=Xm∩B2d(Qcm,rm)\mathcal{X}_{m,Q}:=\mathcal{X}_m\cap B_2^d(Qc_m,r_m),

K≳s−1λlog⁡(2MG/η)+λmax⁡m∈[M],Q∈Gsm−3w2(Xm,Q).K\gtrsim s^{-1}\lambda\log(2MG/\eta)+\lambda\max_{\substack{m\in[M],Q\in\mathcal{G}}}s_m^{-3}w^2(\mathcal{X}_{m,Q}).

Then, with probability at least 1−η1-\eta, for all m∈[M]m\in[M] and x∈Xmx\in\mathcal{X}_m,

min⁡Q∈G∥SQ↑Φ(cm)−Φ(x)∥1≲smλ−1KG.\min_{Q\in\mathcal{G}}\lVert S_Q^{\uparrow}\Phi(c_m)-\Phi(x)\rVert_1\lesssim s_m\lambda^{-1}KG.

Proof. Let AA denote the event where, for all m∈[M]m \in[M], Q,R∈GQ,R \in\mathcal{G} and x∈Xm,Qx \in\mathcal{X}_{m,Q},

∥Ψ(RTQcm)−Ψ(RTx)∥1≲smλ−1K.\left\|\Psi\left(R^{\mathsf{T}}Q\boldsymbol{c}_m\right)-\Psi\left(R^{\mathsf{T}}x\right)\right\|_1 \lesssim s_m\lambda^{-1}K.

By Lemma 11, applied to the sets RTXm,Q⊂B2d(RTQcm,rm)⊂RradB2dR^{\mathsf{T}}\mathcal{X}_{m,Q} \subset B_2^d\left(R^{\mathsf{T}}Q\boldsymbol{c}_m,r_m\right) \subset R_{\mathrm{rad}}B_2^d for m∈[M]m \in[M] and R,Q∈GR,Q \in\mathcal{G}, P(A)≥1−η\mathbb{P}(A) \ge1-\eta under our assumptions. Here, we used that w(RTXm,Q)=w(Xm,Q)w\left(R^{\mathsf{T}}\mathcal{X}_{m,Q}\right)=w\left(\mathcal{X}_{m,Q}\right) by rotation invariance of the Gaussian width.

Let m∈[M]m \in[M]. On AA, for Q∈GQ \in\mathcal{G} and x∈Xm,Qx \in\mathcal{X}_{m,Q},

∥Φ(Qcm)−Φ(x)∥1=∑R∈G∥[Φ(Qcm)](:,R)−[Φ(x)](:,R)∥1=∑R∈G∥Ψ(RTQcm)−Ψ(RTx)∥1≲smλ−1KG.\begin{aligned} \left\|\Phi(Q\boldsymbol{c}_m)-\Phi(x)\right\|_1 &=\sum_{R\in\mathcal{G}}\left\|\left[\Phi(Q\boldsymbol{c}_m)\right]_{(:,R)}-\left[\Phi(x)\right]_{(:,R)}\right\|_1\\ &=\sum_{R\in\mathcal{G}}\left\|\Psi\left(R^{\mathsf{T}}Q\boldsymbol{c}_m\right)-\Psi\left(R^{\mathsf{T}}x\right)\right\|_1 \lesssim s_m\lambda^{-1}KG. \end{aligned}

where we used Lemma 8. By (4), for x∈Xmx \in\mathcal{X}_m there exists Q∗∈GQ^* \in\mathcal{G} with x∈Xm,Q∗x \in\mathcal{X}_{m,Q^*} and thus

min⁡Q∈G∥S^Q↑Φ(cm)−Φ(x)∥1≤∥S^Q∗↑Φ(cm)−Φ(x)∥1=∥Φ(Q∗cm)−Φ(x)∥1≲smλ−1KG.\min_{Q\in\mathcal{G}}\left\|\widehat{S}_Q^{\uparrow}\Phi(\boldsymbol{c}_m)-\Phi(x)\right\|_1 \le\left\|\widehat{S}_{Q^*}^{\uparrow}\Phi(\boldsymbol{c}_m)-\Phi(x)\right\|_1 =\left\|\Phi(Q^*\boldsymbol{c}_m)-\Phi(x)\right\|_1 \lesssim s_m\lambda^{-1}KG.

The following lemma is the key ingredient for the proof of Theorem 7. It states that under our assumptions, with high probability, a neuron

φ^x∗+(z)=σ(mx∗+−⟨⟨z,ux∗+⟩⟩),mx∗+=min⁡x−∈X−⟨⟨Φ(x−),ux∗+⟩⟩,\widehat{\varphi}_{x^*}^{+}(z)=\sigma\left(m_{x^*}^{+}-\left\langle\left\langle z,u_{x^*}^{+}\right\rangle\right\rangle\right),\qquad m_{x^*}^{+}=\min_{x^-\in\mathcal{X}^{-}}\left\langle\left\langle\Phi(x^-),u_{x^*}^{+}\right\rangle\right\rangle,

associated to a sample x∗∈X+x^* \in\mathcal{X}^{+}, activates on the (image of the) whole component that this sample resides in. At the same time, it does not activate on (the image of) any sample of the other class. This lemma is the analogue to Lemma 19 from Dirksen et al. [15].

Lemma 13 Under the assumptions of Theorem 7, with probability at least 1−η1-\eta, for any k∈[M+]k \in[M^{+}] and xk+∈Xk+x_{k}^{+} \in\mathcal{X}_{k}^{+},

φ^xk++(Φ(x+))>0for all x+∈Xk+andφ^xk++(Φ(x−))=0for all x−∈X−.\widehat{\varphi}_{x_k^+}^{+}\left(\Phi(x^+)\right)>0\quad\text{for all }x^+\in\mathcal{X}_k^+ \qquad\text{and}\qquad \widehat{\varphi}_{x_k^+}^{+}\left(\Phi(x^-)\right)=0\quad\text{for all }x^-\in\mathcal{X}^{-}.

Proof. Clearly, the choice of mxk+m_{x_k^+} ensures the second property. For the first property, it remains to show that, with probability at least 1−η1-\eta, for any k∈[M+]k \in[M^+] and all xk+,x+∈Xk+x_k^+,x^+ \in\mathcal{X}_k^+,

⟨⟨Φ(x+),uxk+⟩⟩<mxk+=min⁡x−∈X−⟨⟨Φ(x−),uxk+⟩⟩.\left\langle\left\langle\Phi(x^+),u_{x_k^+}\right\rangle\right\rangle<m_{x_k^+} =\min_{x^-\in\mathcal{X}^{-}}\left\langle\left\langle\Phi(x^-),u_{x_k^+}\right\rangle\right\rangle.

Let AA denote the event where, for k∈[M+]k \in[M^+] and ℓ∈[M−]\ell\in[M^-],

⟨⟨Φ(cℓ−),uck+⟩⟩≥c1⋅d(cℓ−,ck+)λ−1KG.\left\langle\left\langle\Phi(\boldsymbol{c}_{\ell}^{-}),u_{\boldsymbol{c}_{k}^{+}}\right\rangle\right\rangle \ge c_1\cdot d(\boldsymbol{c}_{\ell}^{-},\boldsymbol{c}_{k}^{+})\lambda^{-1}KG.

By Lemma 10 applied to C+\mathcal{C}^{+} and C−\mathcal{C}^{-}, P(A)≥1−η/2\mathbb{P}(A)\ge1-\eta/2 under our assumptions. Let BB denote the event where, for k∈[M+]k \in[M^{+}] and x+∈Xk+x^{+} \in\mathcal{X}^{+}_{k},

min⁡Q∈G∥Φ(x+)−SQ†Φ(ck+)∥1≤C2⋅sk+−1λ−1KG\min_{Q\in\mathcal{G}}\lVert\Phi(x^{+})-S_{Q}^{\dagger}\Phi(c^{+}_{k})\rVert_{1}\leq C_{2}\cdot s_{k}^{+^{-1}}\lambda^{-1}KG

and, for ℓ∈[M−]\ell\in[M^{-}] and x−∈Xℓ−x^{-} \in\mathcal{X}^{-}_{\ell},

min⁡Q∈G∥Φ(x−)−SQ†Φ(cℓ−)∥1≤C2⋅sℓ−−1λ−1KG,\min_{Q\in\mathcal{G}}\lVert\Phi(x^{-})-S_{Q}^{\dagger}\Phi(c^{-}_{\ell})\rVert_{1}\leq C_{2}\cdot s_{\ell}^{-^{-1}}\lambda^{-1}KG,

where

sk+:=c112C22d(ck+,C−)andsℓ−:=c14C22d(cℓ−,C+).s_{k}^{+}:=\frac{c_{1}}{12C_{2}^{2}}d(c_{k}^{+},\mathcal{C}^{-})\qquad\text{and}\qquad s_{\ell}^{-}:=\frac{c_{1}}{4C_{2}^{2}}d(c_{\ell}^{-},\mathcal{C}^{+}).

By Lemma 12 and a union bound, P(B)≥1−η/2\mathbb{P}(B)\geq1-\eta/2 under our assumptions. Hence, P(A∩B)≥1−η\mathbb{P}(A\cap B)\geq1-\eta and for the remainder of the proof we condition on this event.

Let k∈[M+]k\in[M^{+}] and x∗+,x+∈Xk+x^{+}_{\ast},x^{+}\in\mathcal{X}^{+}_{k}. For Q,R∈GQ,R\in\mathcal{G},

⟨Φ(x+),ux∗+⟩≤⟨Φ(x+),SQ†ux∗+⟩=⟨Φ(x+)−SQ†Φ(x∗+),SQ†ux∗+⟩≤∥Φ(x+)−SQ†Φ(x∗+)∥1≤∥Φ(x+)−SR†Φ(ck+)∥1+∥SR†Φ(ck+)−SQ†Φ(x∗+)∥1=∥Φ(x+)−SR†Φ(ck+)∥1+∥SQTSR†Φ(ck+)−Φ(x∗+)∥1,\begin{aligned} \langle\Phi(x^{+}),u_{x^{+}_{\ast}}\rangle &\leq\langle\Phi(x^{+}),S_{Q}^{\dagger}u_{x^{+}_{\ast}}\rangle\\ &=\langle\Phi(x^{+})-S_{Q}^{\dagger}\Phi(x^{+}_{\ast}),S_{Q}^{\dagger}u_{x^{+}_{\ast}}\rangle\\ &\leq\lVert\Phi(x^{+})-S_{Q}^{\dagger}\Phi(x^{+}_{\ast})\rVert_{1}\\ &\leq\lVert\Phi(x^{+})-S_{R}^{\dagger}\Phi(c^{+}_{k})\rVert_{1}+\lVert S_{R}^{\dagger}\Phi(c^{+}_{k})-S_{Q}^{\dagger}\Phi(x^{+}_{\ast})\rVert_{1}\\ &=\lVert\Phi(x^{+})-S_{R}^{\dagger}\Phi(c^{+}_{k})\rVert_{1}+\lVert S_{Q}^{\mathsf{T}}S_{R}^{\dagger}\Phi(c^{+}_{k})-\Phi(x^{+}_{\ast})\rVert_{1}, \end{aligned}

where we used ⟨SQ†Φ(x∗+),SQ†ux∗+⟩=⟨Φ(x∗+),ux∗+⟩=0\langle S_{Q}^{\dagger}\Phi(x^{+}_{\ast}),S_{Q}^{\dagger}u_{x^{+}_{\ast}}\rangle=\langle\Phi(x^{+}_{\ast}),u_{x^{+}_{\ast}}\rangle=0, Hölder’s inequality and (3). Minimizing successively over QQ and RR yields

⟨Φ(x+),ux∗+⟩≤min⁡Q∈G∥Φ(x+)−SQ†Φ(ck+)∥1+min⁡Q∈G∥Φ(x∗+)−SQ†Φ(ck+)∥1.\langle\Phi(x^{+}),u_{x^{+}_{\ast}}\rangle\leq\min_{Q\in\mathcal{G}}\lVert\Phi(x^{+})-S_{Q}^{\dagger}\Phi(c^{+}_{k})\rVert_{1}+\min_{Q\in\mathcal{G}}\lVert\Phi(x^{+}_{\ast})-S_{Q}^{\dagger}\Phi(c^{+}_{k})\rVert_{1}.

Using BB, we find the upper bound

⟨Φ(x+),ux∗+⟩≤2C2⋅sk+λ−1KG.(5)\langle\Phi(x^{+}),u_{x^{+}_{\ast}}\rangle\leq2C_{2}\cdot s_{k}^{+}\lambda^{-1}KG. \tag*{(5)}

Let x−∈X−x^{-}\in\mathcal{X}^{-} and pick ℓ∈[M−]\ell\in[M^{-}] such that x−∈Xℓ−x^{-}\in\mathcal{X}^{-}_{\ell}. For Q,R,U∈GQ,R,U\in\mathcal{G},

⟨Φ(x−),SQ†ux∗+⟩=⟨SU†Φ(cℓ−),SQ†Rux∗+⟩+⟨SQ†ux∗+−SQ†Rux∗+,SU†Φ(cℓ−)⟩+⟨SQ†ux∗+,Φ(x−)−SU†Φ(cℓ−)⟩≥⟨Φ(cℓ−),SUTQRux∗+⟩−∥SQ†Φ(x∗+)−SQR†Φ(ck+)∥1−∥Φ(x−)−SU†Φ(cℓ−)∥1≥⟨Φ(cℓ−),uck+⟩−∥Φ(x∗+)−SR†Φ(ck+)∥1−∥Φ(x−)−SU†Φ(cℓ−)∥1,\begin{aligned} \langle\Phi(x^{-}),S_{Q}^{\dagger}u_{x^{+}_{\ast}}\rangle &=\langle S_{U}^{\dagger}\Phi(c^{-}_{\ell}),S_{Q}^{\dagger}Ru_{x^{+}_{\ast}}\rangle+\langle S_{Q}^{\dagger}u_{x^{+}_{\ast}}-S_{Q}^{\dagger}Ru_{x^{+}_{\ast}},S_{U}^{\dagger}\Phi(c^{-}_{\ell})\rangle\\ &\quad+\langle S_{Q}^{\dagger}u_{x^{+}_{\ast}},\Phi(x^{-})-S_{U}^{\dagger}\Phi(c^{-}_{\ell})\rangle\\ &\geq\langle\Phi(c^{-}_{\ell}),S_{U}^{\mathsf{T}}QRu_{x^{+}_{\ast}}\rangle-\lVert S_{Q}^{\dagger}\Phi(x^{+}_{\ast})-S_{QR}^{\dagger}\Phi(c^{+}_{k})\rVert_{1}-\lVert\Phi(x^{-})-S_{U}^{\dagger}\Phi(c^{-}_{\ell})\rVert_{1}\\ &\geq\langle\Phi(c^{-}_{\ell}),u_{c^{+}_{k}}\rangle-\lVert\Phi(x^{+}_{\ast})-S_{R}^{\dagger}\Phi(c^{+}_{k})\rVert_{1}-\lVert\Phi(x^{-})-S_{U}^{\dagger}\Phi(c^{-}_{\ell})\rVert_{1}, \end{aligned}

where, again, we used Hölder’s inequality and the properties (3) of (lifted) circular shift operators. Minimizing over QQ and maximizing over RR and UU yields

⟨Φ(x−),ux∗+⟩≥⟨Φ(cℓ−),uck+⟩−min⁡Q∈G∥Φ(x∗+)−SQ†Φ(ck+)∥1−min⁡Q∈G∥Φ(x−)−SQ†Φ(cℓ−)∥1.\langle\Phi(x^{-}),u_{x^{+}_{\ast}}\rangle\geq\langle\Phi(c^{-}_{\ell}),u_{c^{+}_{k}}\rangle-\min_{Q\in\mathcal{G}}\lVert\Phi(x^{+}_{\ast})-S_{Q}^{\dagger}\Phi(c^{+}_{k})\rVert_{1}-\min_{Q\in\mathcal{G}}\lVert\Phi(x^{-})-S_{Q}^{\dagger}\Phi(c^{-}_{\ell})\rVert_{1}.

Using both AA and BB, we find the lower bound

⟨⟨Φ(x−),ux∗+⟩⟩≥c1⋅d(cℓ−,ck+)λ−1KG−C2⋅sk+λ−1KG−C2⋅sℓ−λ−1KG.(6)\langle\langle\Phi(x^{-}),u_{x_*^{+}}\rangle\rangle\ge c_1 \cdot\mathrm{d}(c_{\ell}^{-},c_{k}^{+})\lambda^{-1}KG-C_2\cdot s_{k}^{+}\lambda^{-1}KG-C_2\cdot s_{\ell}^{-}\lambda^{-1}KG. \tag*{(6)}

Combining the upper and lower bounds (5) and (6), we find

⟨⟨Φ(x+),ux∗+⟩⟩<⟨⟨Φ(x−),ux∗+⟩⟩\langle\langle\Phi(x^{+}),u_{x_*^{+}}\rangle\rangle< \langle\langle\Phi(x^{-}),u_{x_*^{+}}\rangle\rangle

for all k∈[M+]k \in[M^{+}], x∗+,x+∈Xk+x_{*}^{+},x^{+} \in\mathcal{X}_{k}^{+} and x−∈X−x^{-} \in\mathcal{X}^{-}, where we used that

sk+<c16C2⋅d(ck+,C−)andsℓ−<c12C2⋅d(cℓ−,C+).s_{k}^{+}<\frac{c_1}{6C_2}\cdot\mathrm{d}(c_{k}^{+},\mathcal{C}^{-}) \quad\text{and} \quad s_{\ell}^{-}<\frac{c_1}{2C_2}\cdot\mathrm{d}(c_{\ell}^{-},\mathcal{C}^{+}).

Proof [Theorem 7] We use the notation from Algorithm 2. In the following we condition on the event of Lemma 13, which occurs with probability at least 1−η1-\eta under the stated assumptions.

Termination and number of neurons. The first loop constructs the random convolution layer

Φ(x)=[σ(x⊛gk+τk)]k∈[K].\Phi(x)=[\sigma(x\circledast g_k+\tau_k)]_{k\in[K]}.

For the second loop we claim that, after the ii-th iteration, A+={x1+,…,xi+}A^{+}=\{x_1^{+},\ldots,x_i^{+}\} and

C+=X+∖(Vx1+∪⋯∪Vxi+)⊂X+∖(Xk1+∪⋯∪Xki+),C^{+}=\mathcal{X}^{+}\setminus(\mathcal{V}_{x_1^{+}}\cup\cdots\cup\mathcal{V}_{x_i^{+}})\subset\mathcal{X}^{+}\setminus(\mathcal{X}_{k_1}^{+}\cup\cdots\cup\mathcal{X}_{k_i}^{+}),

where each xkj+x_{k_j}^{+} is part of some component Xkj+\mathcal{X}_{k_j}^{+} for pairwise distinct k1,…,kj∈[M+]k_1,\ldots,k_j\in[M^{+}].

For i=0i=0, we have A+=∅A^{+}=\varnothing and C+=X+C^{+}=\mathcal{X}^{+}, and hence the claim is trivially satisfied. Suppose that the claim holds for the ii-th iteration. In the (i+1)(i+1)-th iteration, the algorithm selects a random candidate sample xi+1+∈C+x_{i+1}^{+}\in C^{+} which is part of at least one new component Xki+1+\mathcal{X}_{k_{i+1}}^{+} for some ki+1∈[M+]∖{k1,…,ki}k_{i+1}\in[M^{+}]\setminus\{k_1,\ldots,k_i\}. By Lemma 13, we have ∅≠Xki+1+⊂Vxi+1+\varnothing\ne\mathcal{X}_{k_{i+1}}^{+}\subset\mathcal{V}_{x_{i+1}^{+}} and the condition of the if-statement in line 13 is true. Hence, A+={x1+,…,xi+1+}A^{+}=\{x_1^{+},\ldots,x_{i+1}^{+}\} and

C+=X+∖(Vx1+∪⋯∪Vxi+1+)⊂X+∖(Xk1+∪⋯∪Xki+1+),C^{+}=\mathcal{X}^{+}\setminus(\mathcal{V}_{x_1^{+}}\cup\cdots\cup\mathcal{V}_{x_{i+1}^{+}})\subset\mathcal{X}^{+}\setminus(\mathcal{X}_{k_1}^{+}\cup\cdots\cup\mathcal{X}_{k_{i+1}}^{+}),

and the claim follows by induction. In particular, after at most M+M^{+} steps, the loop terminates due to C+=∅C^{+}=\varnothing and A+A^{+} contains no more than M+M^{+} samples. Moreover, X+=⋃x∗+∈A+Vx∗+\mathcal{X}^{+}=\bigcup_{x_{*}^{+}\in A^{+}}\mathcal{V}_{x_{*}^{+}}. Finally, we examine the last loop. As long as

∣⋃x∗+∈A+Vx∗+∣≥αN+,(7)\left|\bigcup_{x_{*}^{+}\in A^{+}}\mathcal{V}_{x_{*}^{+}}\right|\ge\alpha N^{+}, \tag*{(7)}

we remove samples from A+A^{+}. The selection rule in line 19 is not important here. If removing a sample leads to a violation of this condition, the loop terminates and we add the last removed sample back to A+A^{+} in line 22 so that the condition (7) is satisfied again. Interpolation. By Lemma 13, for all x−∈X−x^{-} \in\mathcal{X}^{-}, we have Φ^(Φ(x−))=0\hat{\Phi}(\Phi(x^{-})) = 0 and hence F(x−)=−1F(x^{-}) = -1. On the other hand, consider x+∈⋃x∗+∈A+Vx∗+x^{+} \in\bigcup_{x_{*}^{+}\in A^{+}} V_{x_{*}^{+}}, which includes at least a fraction of α\alpha of the samples from X+\mathcal{X}^{+} as we recall from above. Then, there exists x∗+∈A+x_{*}^{+} \in A^{+} with x+∈Vx∗+x^{+} \in V_{x_{*}^{+}}, and hence [Φ^(Φ(x+))]x∗+>0[\hat{\Phi}(\Phi(x^{+}))]_{x_{*}^{+}} > 0. Consequently, F(x+)=+1F(x^{+}) = +1.

Invariance. Let Q∈GQ \in\mathcal{G}. Observe, for z,u∈RK×Gz,u \in\mathbb{R}^{K \times G},

⟨⟨SQ↑z,u⟩⟩=min⁡R∈G⟨SQ↑z,SR↑u⟩=min⁡R∈G⟨z,SQTR↑u⟩=min⁡R∈G⟨z,SR↑u⟩=⟨⟨z,u⟩⟩.\langle\langle S_{Q}^{\uparrow}z,u\rangle\rangle= \min_{R\in\mathcal{G}}\langle S_{Q}^{\uparrow}z,S_{R}^{\uparrow}u\rangle= \min_{R\in\mathcal{G}}\langle z,S_{Q^{\mathsf{T}}R}^{\uparrow}u\rangle= \min_{R\in\mathcal{G}}\langle z,S_{R}^{\uparrow}u\rangle= \langle\langle z,u\rangle\rangle.

and hence Φ^(SQ↑z)=Φ^(z)\hat{\Phi}(S_{Q}^{\uparrow}z) = \hat{\Phi}(z). Combining this with Lemma 8, we find for any x∈Rdx \in\mathbb{R}^{d} that

F(Qx)=sign⁡(⟨1,Φ^(Φ(Qx))⟩)=sign⁡(⟨1,Φ^(SQ↑Φ(x))⟩)=sign⁡(⟨1,Φ^(Φ(x))⟩)=F(x).F(Qx) = \operatorname{sign}(\langle1,\hat{\Phi}(\Phi(Qx))\rangle) = \operatorname{sign}(\langle1,\hat{\Phi}(S_{Q}^{\uparrow}\Phi(x))\rangle) = \operatorname{sign}(\langle1,\hat{\Phi}(\Phi(x))\rangle) = F(x).

Number of parameters. The first layer Φ\Phi has weights gk∈Rdg_k \in\mathbb{R}^{d} and biases τk∈R\tau_k \in\mathbb{R} for k∈[K]k \in[K], which is (d+1)K(d+1)K parameters. The second layer Φ^\hat{\Phi} has weights ux∗+∈RK×Gu_{x_{*}^{+}} \in\mathbb{R}^{K\times G} and biases mx∗+∈Rm_{x_{*}^{+}} \in\mathbb{R} for x∗+∈A+x_{*}^{+} \in A^{+} with ∣A+∣≤M+|A^{+}| \le M^{+}, which is at most (KG+1)M+(KG+1)M^{+} parameters. The last, linear layer, has weights 1∈RA+1 \in\mathbb{R}^{A^{+}}, which is at most M+M^{+} parameters. Hence, the total is no more than

(d+1)K+(KG+1)M++M+≲(d+M+G)K.(d+1)K + (KG+1)M^{+} + M^{+} \lesssim(d+M^{+}G)K.

Multi-class interpolation algorithm

In Appendix A we introduced Algorithm 2 in the context of a binary classification problem. Its approach can be easily generalized to multiple classes, see Algorithm 3. In this section, we outline how this generalization works but omit a full proof as it would be very similar to the proof of Theorem 7. The approach is similar to the one of Dirksen et al. [15].

A common approach to extend a binary classification method to multiple classes is the one-vs-rest method, where for each class a binary classifier is trained to distinguish it from all other classes. At inference time, the class label corresponding to the classifier with the highest confidence score is returned. We extend Algorithm 2 in a similar, yet not exactly the same manner. In the first loop (lines 1 to 4) we sample weights and biases of a random convolution layer which will be reused for each one-vs-rest subproblem. In the second loop (lines 5 to 7) we solve each of the one-vs-rest subproblems, utilizing a procedure (lines 14 to 29) which is the same as the second loop in Algorithm 2. Already at this point, one can use a simple union bound to prove a high success probability for the algorithm. What remains is the modified pruning loop (lines 8 to 12) which works similarly to before. However, instead of selecting the neuron with the least contribution for one class alone, we consider neurons over all classes. That at least a fraction of α\alpha of the samples of X\mathcal{X} are interpolated after this step can be derived analogously to the corresponding part of the proof of Theorem 7. In the end, we return the network (line 13), which reuses the first random layer and stacks the second layer for each of the one-vs-rest subproblems.

Algorithm 3 G-invariant multi-class memorization

Input: $G \le \mathcal{O}(d)$ finite, $\mathcal{X} = \mathcal{X}^{(1)} \cup \cdots \cup \mathcal{X}^{(L)} \subset \mathbb{R}^{d}$ finite with $N := |\mathcal{X}|$, number of random filters $K \in \mathbb{N}$, maximal bias $\lambda \ge 0$, interpolation fraction $\alpha \in (0,1]$

Output: $G$-invariant (generalized) convolutional neural net $F : \mathbb{R}^{d} \to \{0,1\}^{L}$

1: for $k \in [K]$ do
2:     $g_k \leftarrow$ independent sample from $\mathcal{N}(\mathbf{0},I_d)$
3:     $\tau_k \leftarrow$ independent sample from $\operatorname{Unif}([-\lambda,\lambda])$
4: end for                                      ▷ $\mathbf{g}=(g_1,\ldots,g_K),\ \boldsymbol{\tau}=(\tau_1,\ldots,\tau_K)$
5: for $\ell \in [L]$ do
6:     $\mathcal{A}^{(\ell)} \leftarrow \operatorname{Interpolate}(\mathcal{X}^{(\ell)},\mathcal{X}\setminus\mathcal{X}^{(\ell)},\mathbf{g},\boldsymbol{\tau})$
7: end for                                      ▷ $\mathcal{A}=\mathcal{A}^{(1)}\cup\cdots\cup\mathcal{A}^{(L)}$
8: while $\left|\bigcup_{x_\ast\in\mathcal{A}}\mathcal{V}_{x_\ast}\right| \ge \alpha N$ do
9:     $\ell,x_\ast \leftarrow \underset{\ell\in[L],x_\ast\in\mathcal{A}^{(\ell)}}{\arg\min}\left|\mathcal{V}_{x_\ast}\setminus\bigcup_{\tilde{x}_\ast\in\mathcal{A}\setminus\{x_\ast\}}\mathcal{V}_{\tilde{x}_\ast}\right|$
10:    $\mathcal{A}^{(\ell)} \leftarrow \mathcal{A}^{(\ell)}\setminus\{x_\ast\}$
11: end while
12: $\mathcal{A}^{(\ell)} \leftarrow \mathcal{A}^{(\ell)}\cup\{x_\ast\}$       ▷ $\widehat{\Phi}^{(\ell)}(z)=\left[\sigma\left(m_{x_\ast}-\langle\langle z,u_{x_\ast}\rangle\rangle\right)\right]_{x_\ast\in\mathcal{A}^{(\ell)}}$
13: return $F(x)=\left(F^{(1)}(x),\ldots,F^{(L)}(x)\right)$                  ▷ $F^{(\ell)}(x)=\sigma\left(\langle\mathbf{1},\widehat{\Phi}^{(\ell)}(\Phi(x))\rangle\right)$
14: procedure $\operatorname{Interpolate}(\mathcal{X}^{+},\mathcal{X}^{-},\mathbf{g},\boldsymbol{\tau})$
15:     $\mathcal{A}^{+}\leftarrow\varnothing$                                      ▷ $\Phi(x)=\left[\sigma(x\circledast g_k+\tau_k)\right]_{k\in[K]}$
16:     $\mathcal{C}^{+}\leftarrow\mathcal{X}^{+}$
17:     while $|\mathcal{C}^{+}|>0$ do
18:         $x_\ast^{+}\leftarrow$ random sample from $\mathcal{C}^{+}$
19:         $\mathcal{C}^{+}\leftarrow\mathcal{C}^{+}\setminus\{x_\ast^{+}\}$
20:         $u_{x_\ast^{+}}\leftarrow\mathbf{1}[\Phi(x_\ast^{+})=0]$
21:         $m_{x_\ast^{+}}\leftarrow\min_{x^{-}\in\mathcal{X}^{-}}\langle\langle\Phi(x^{-}),u_{x_\ast^{+}}\rangle\rangle$       ▷ $\widehat{\varphi}_{x_\ast^{+}}(z)=\sigma\left(m_{x_\ast^{+}}-\langle\langle z,u_{x_\ast^{+}}\rangle\rangle\right)$
22:         $\mathcal{V}_{x_\ast^{+}}\leftarrow\{x^{+}\in\mathcal{X}^{+}:\widehat{\varphi}_{x_\ast^{+}}(\Phi(x^{+}))>0\}$
23:         if $|\mathcal{V}_{x_\ast^{+}}|>0$ then
24:             $\mathcal{A}^{+}\leftarrow\mathcal{A}^{+}\cup\{x_\ast^{+}\}$
25:             $\mathcal{C}^{+}\leftarrow\mathcal{C}^{+}\setminus\mathcal{V}_{x_\ast^{+}}$
26:         end if
27:     end while
28:     return $\mathcal{A}^{+}$
29: end procedure

References

  1. [1]Devansh Arpit, Stanislaw Jastrzębski, Nicolas Ballas, David Krueger, Emmanuel Bengio, Maxinder S Kanwal, Tegan Maharaj, Asja Fischer, Aaron Courville, Yoshua Bengio, et al. A closer look at memorization in deep networks. In International conference on machine learning, pages 233–242. PMLR, 2017.arxiv.org/abs/1706.05394
  2. [2]Eric B. Baum. On the capabilities of multilayer perceptrons. Journal of Complexity, 4(3):193–215, 1988.DOI
  3. [3]Mikhail Belkin. Fit without fear: remarkable mathematical phenomena of deep learning through the prism of interpolation. Acta Numerica, 30:203–248, 2021.arxiv.org/abs/2105.14368
  4. [4]Mikhail Belkin, Daniel Hsu, Siyuan Ma, and Soumik Mandal. Reconciling modern machine-learning practice and the classical bias–variance trade-off. Proceedings of the National Academy of Sciences, 116(32):15849–15854, 2019.DOI
  5. [5]Valerio Biscione and Jeffrey S. Bowers. Convolutional neural networks are not invariant to translation, but they can learn to be. Journal of Machine Learning Research, 22(229):1–28, 2021.arxiv.org/abs/2110.05861
  6. [6]Ryan Blything, Valerio Biscione, Ivan I Vankov, Casimir JH Ludwig, and Jeffrey S Bowers. The human visual system and cnns can both support robust online translation tolerance following extreme displacements. Journal of Vision, 21(2):9–9, 2021.DOI
  7. [7]Sebastien Bubeck, Ronen Eldan, Yin T. Lee, and Dan Milukincer. Network size and size of the weights in memorization with two-layers neural networks. In Advances in Neural Information Processing Systems, volume 33, pages 4977–4986. Curran Associates, Inc., 2020.
  8. [9]Nadav Cohen and Amnon Shashua. Convolutional rectifier networks as generalized tensor decompositions. In International conference on machine learning, pages 955–963. PMLR, 2016.arxiv.org/abs/1603.00162
  9. [10]Taco Cohen and Max Welling. Group equivariant convolutional networks. In International conference on machine learning, pages 2990–2999. PMLR, 2016.arxiv.org/abs/1602.07576
  10. [11]Taco S Cohen, Mario Geiger, and Maurice Weiler. A general theory of equivariant cnns on homogeneous spaces. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019.arxiv.org/abs/1811.02017
  11. [12]Thomas M. Cover. Geometrical and statistical properties of systems of linear inequalities with applications in pattern recognition. IEEE Transactions on Electronic Computers, EC-14(3):326–334, 1965. doi: 10.1109/PGEC.1965.264137.DOI
  12. [13]Amit Daniely. Neural networks learning and memorization with (almost) no over-parameterization. In Advances in Neural Information Processing Systems, volume 33, pages 9007–9016. Curran Associates, Inc., 2020.arxiv.org/abs/1911.09873
  13. [14]Sjoerd Dirksen and Shahar Mendelson. Non-Gaussian hyperplane tessellations and robust one-bit compressed sensing. Journal of the European Mathematical Society, 23(9):2913–2947, 2021.arxiv.org/abs/1805.09409
  14. [15]Sjoerd Dirksen, Patrick Finke, and Martin Genzel. Memorization with neural nets: Going beyond the worst case. Journal of Machine Learning Research, 25(347):1–38, 2024.arxiv.org/abs/2310.00327
  15. [16]Patrick Finke. Memorization capacity and robustness of neural networks. PhD thesis, Utrecht University, 2026. https://doi.org/10.33540/3340.
  16. [17]Rong Ge, Runzhe Wang, and Haoyu Zhao. Mildly overparameterized neural nets can memorize training data efficiently. Preprint arXiv:1909.11837, 2019.arxiv.org/abs/1909.11837
  17. [18]Ian Goodfellow, Yoshua Bengio, and Aaron Courville. Deep Learning. MIT Press, 2016.
  18. [19]Moritz Hardt and Tengyu Ma. Identity matters in deep learning. In International Conference on Learning Representations, 2017. arXiv:1611.04231.arxiv.org/abs/1611.04231
  19. [20]Trevor Hastie, Robert Tibshirani, and Jerome Friedman. The Elements of Statistical Learning: Data Mining, Inference, and Prediction, volume 2. Springer, 2009.
  20. [21]Trevor Hastie, Andrea Montanari, Saharon Rosset, and Ryan J. Tibshirani. Surprises in high-dimensional ridgeless least squares interpolation. Annals of Statistics, 50(2):949–986, 2022.DOI
  21. [22]Guang-Bin Huang. Learning capability and storage capacity of two-hidden-layer feedforward networks. IEEE Transactions on Neural Networks, 14(2):274–281, 2003.DOI
  22. [23]Guang-Bin Huang and Haroon A Babri. Upper bounds on the number of hidden neurons in feedforward networks with arbitrary bounded nonlinear activation functions. IEEE transactions on neural networks, 9(1):224–229, 1998.DOI
  23. [24]Shih-Chi Huang and Yih-Fang Huang. Bounds on number of hidden neurons of multilayer perceptrons in classification and recognition. In 1990 IEEE International Symposium on Circuits and Systems, pages 2500–2503. IEEE, 1990.
  24. [25]Tokio Kajitsuka and Issei Sato. On the optimal memorization capacity of transformers. In The Thirteenth International Conference on Learning Representations, 2025. arXiv:2409.17677.arxiv.org/abs/2409.17677
  25. [26]Erdem Koyuncu. Memorization capacity of neural networks with conditional computation. In The Eleventh International Conference on Learning Representations, 2023. arXiv:2303.11247.arxiv.org/abs/2303.11247
  26. [27]Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009.
  27. [28]Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In F. Pereira, C.J. Burges, L. Bottou, and K.Q. Weinberger, editors, Advances in Neural Information Processing Systems, volume 25. Curran Associates, Inc., 2012.
  28. [29]Yann LeCun, Bernhard Boser, John Denker, Donnie Henderson, Richard Howard, Wayne Hubbard, and Lawrence Jackel. Handwritten digit recognition with a back-propagation network. Advances in neural information processing systems, 2, 1989.
  29. [30]Yann LeCun, Yoshua Bengio, et al. Convolutional networks for images, speech, and time series. The handbook of brain theory and neural networks, 3361(10):1995, 1995.
  30. [31]Yann LeCun, Corinna Cortes, and Christopher J.C. Burges. The MNIST database of handwritten digits. http://yann.lecun.com/exdb/mnist/, 1998.
  31. [32]Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521(7553):436–444, 2015.DOI
  32. [33]Sangmin Lee, Abbas Mammadov, and Jong Chul Ye. Defining neural network architecture through polytope structures of datasets. In Proceedings of the 41st International Conference on Machine Learning, volume 235, pages 26789–26836. PMLR, 2024.arxiv.org/abs/2402.02407
  33. [34]Liam Madden and Christos Thrampoulidis. Memory capacity of two layer neural networks with smooth activations. SIAM Journal on Mathematics of Data Science, 6(3):679–702, 2024.DOI
  34. [36]Sadegh Mahdavi, Renjie Liao, and Christos Thrampoulidis. Memorization capacity of multi-head attention in transformers. In The Twelfth International Conference on Learning Representations, 2024. arXiv:2306.02010.arxiv.org/abs/2306.02010
  35. [37]Song Mei and Andrea Montanari. The generalization error of random features regression: Precise asymptotics and the double descent curve. Communications on Pure and Applied Mathematics, 75(4):667–766, 2022.
  36. [38]Marvin Minsky and Seymour A Papert. Perceptrons: An Introduction to Computational Geometry. MIT press, 1969.
  37. [39]Preetum Nakkiran, Gal Kaplun, Yamini Bansal, Tristan Yang, Boaz Barak, and Ilya Sutskever. Deep double descent: where bigger models and more data hurt. Journal of Statistical Mechanics: Theory and Experiment, 2021(12):124003, 2021.arxiv.org/abs/1912.02292
  38. [40]Quynh Nguyen and Matthias Hein. Optimization landscape and expressivity of deep CNNs. In International conference on machine learning, pages 3730–3739. PMLR, 2018.arxiv.org/abs/1710.10928
  39. [41]Nils J Nilsson. Learning machines. McGraw-Hill, New York, 1965.
  40. [42]Sejun Park, Jaeho Lee, Chulhee Yun, and Jinwoo Shin. Provable memorization via deep neural networks using sub-linear parameters. In Proceedings of Thirty Fourth Conference on Learning Theory, pages 3627–3661. PMLR, 2021.arxiv.org/abs/2010.13363
  41. [43]Adityanarayanan Radhakrishnan, Mikhail Belkin, and Caroline Uhler. Memorization in over-parameterized autoencoders. In ICML 2019 Workshop on Identifying and Understanding Deep Learning Phenomena, 2019. arXiv:1810.10333.
  42. [44]Shashank Rajput, Kartik Sreenivasan, Dimitris Papailiopoulos, and Amin Karbasi. An exponential improvement on the memorization capacity of deep threshold networks. In Advances in Neural Information Processing Systems, volume 34, pages 12674–12685. Curran Associates, Inc., 2021.arxiv.org/abs/2106.07724
  43. [45]Alexandre Sablayrolles, Matthijs Douze, Cordelia Schmid, and Hervé Jégou. Déjà Vu: an empirical evaluation of the memorization properties of ConvNets. arXiv preprint arXiv:1809.06396, 2018.arxiv.org/abs/1809.06396
  44. [46]Shai Shalev-Shwartz and Shai Ben-David. Understanding Machine Learning: From Theory to Algorithms. Cambridge University Press, 2014.
  45. [47]Gal Vardi, Gilad Yehudai, and Ohad Shamir. On the optimal memorization power of ReLU neural networks. In International Conference on Learning Representations, 2022. arXiv:2110.03187.arxiv.org/abs/2110.03187
  46. [48]Roman Vershynin. High-dimensional probability: An introduction with applications in data science, volume 47. Cambridge university press, 2018.
  47. [49]Roman Vershynin. Memory capacity of neural networks with threshold and rectified linear unit activations. SIAM Journal on Mathematics of Data Science, 2(4):1004–1033, 2020.DOI
  48. [50]Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. In International Conference on Learning Representations, 2017. arXiv:1611.03530.arxiv.org/abs/1611.03530
  49. [51]Jiawei Zhang, Yushun Zhang, Mingyi Hong, Ruoyu Sun, and Zhi-Quan Luo. When expressivity meets trainability: Fewer than n neurons can work. In Advances in Neural Information Processing Systems, volume 34, pages 9167–9180. Curran Associates, Inc., 2021.arxiv.org/abs/2210.12001

Paper details

vlnc:W_hf4q7etc
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Mathematics

AI · View statement →

Looking for related papers…
Contents