Can Implicit Bias Explain Generalization? Stochastic Convex Optimization as a Case Study

Assaf Dauber, Meir Feder, Tomer Koren, Roi Livni

Introduction

One of the great mysteries of contemporary machine learning is the impressive success of unregularized and overparameterized learning algorithms. In detail, current machine learning practice is to train models with far more parameters than samples and let the algorithm fit the data, oftentimes without any type of regularization. In fact, these algorithms are so overcapacitated that they can even memorize and fit random data. Yet, when trained on real-life data, these algorithms show remarkable performance in generalizing to unseen samples (Neyshabur et al. 2015; Zhang et al. 2017).

This phenomenon is often attributed to what is described as the implicit-regularization of an algorithm (Neyshabur et al. 2015). Implicit regularization roughly refers to the learner’s preference to implicitly choosing certain structured solutions as if some explicit regularization term appeared in its objective. As a canonical example, in linear optimization one can show that various forms of gradient descent, an apriori unregularized algorithm, behaves identically as regularized risk minimization penalized with the squared Euclidean norm on the parameters (Shalev-Shwartz et al. 2011).

Understanding implicit regularization poses several interesting challenges. For example: how can we find the implicit bias of a given learning algorithm? what is the rate of convergence towards the biased solution? how (and if) does it govern the generalization of an algorithm? and, when and what types of regularizations can account for and explain the generalization in modern-days machine learning?

Towards answering these questions we revisit a fundamental setting that was extensively studied in recent years: Stochastic Convex Optimization (SCO), focusing on the SGD optimization algorithm. In contrast to most previous work, we do not attempt to identify the implicit bias in specific problems. Instead, we study these questions in the general case, and we construct examples which rule out the existence of potential regularizers in general. To some extent, these constructions demonstrate a behavior that might seem counter-intuitive or contradictory to the implicit-bias point of view.

Besides being a well-studied and well-understood model for learning, an important trait of SCO which makes it suitable for our investigation is that learning cannot in general be performed by naive Empirical Risk Minimization (ERM). In detail, the work of Shalev-Shwartz et al. 2009 showed the existence of SCO instances where naive-ERM fails but regularized-ERM succeeds. Thus, we view SCO as a natural test-bed for exploring the role of regularization and its relation to generalization. Compellingly, the generalization of SGD in SCO is well-established, and we are left with the question of how well can we account for generalization through an investigation of its bias.

We begin with a simple construction which demonstrates that SGD does not have any distribution-independent implicit bias. To show that, we construct a case where SGD does not converge to a Pareto-efficient (not even approximately) solution with respect to the empirical loss and a given regularization penalty. In fact, this result is also true for Gradient Descent over smooth functions. In other words, our construction here involves a distribution supported on a single smooth convex function.

Our result is general and rules out any (reasonable) regularizer from being the implicit bias of SGD in this distribution-independent setting. Since the Euclidean-norm distance is the immediate suspect for the implicit regularization of SGD, the first step towards achieving the result is to rule out that Euclidean norm is the implicit bias of SGD. We thus construct an example of a function with a plateau of minimizers where SGD does not converge to the closest point in Euclidean-norm sense. While the result might not seem surprising, it is the technical engine behind the further constructions we provide. Previous to this work, Suggala et al. 2018 showed that gradient descent with an infinitely small step size (that is, gradient flow), might diverge from the closest point, and we provide a complementary construction combined with a full rigorous analysis for fixed step-size gradient descent.

Having ruled out the possibility of a problem-independent regularizer, we proceed to study the more compelling distribution-dependent implicit regularization. The question here is whether for every distribution over convex functions, we can associate a regularizer rr such that SGD tries to (approximately) find a Pareto-efficient solution with respect to rr and the empirical loss (notice that we allow the regularizer to depend on the distribution, but not on the specific sample received by SGD.)

We first show that we can rule out the effect of strongly-convex regularizers in the relevant regime of learning (where the dimension and the number of training examples are of roughly the same order). In fact, we rule out a more general class of regularizers that have large range on sets with large diameters. Namely, in any ball with large diameter the regularizer shows preference towards a certain point.

We then continue and demonstrate a distribution where, given an input sample, there is a very large set of possible solutions that share the same empirical loss and the same regularization penalty, and yet, SGD chooses its solution arbitrarily within this set. Here, by “very large” we mean from a learning-theoretical point of view; namely, this set is large enough so that, in general, empirical risk minimization restricted to the set will fail (and yet, it appears that this is exactly what SGD does). In other words, no regularizer rr is sufficient for narrowing down the set of possible SGD solutions to the point where non-trivial generalization can be deduced without appealing to other properties of the specific problem.

Several of our constructions are given in high dimension, namely the number of parameters is larger than the number of examples. One could argue that this is the interesting regime, nevertheless it is still worthy to understand the role of implicit bias when the dimension of the problem is smaller than number of examples. Here we cannot rule out the role of implicit bias in a similar fashion to before - namely, due to uniform convergence, any algorithm that is constrained to the unit ball will generalize and this implicit bias is indeed the explanation to that. It is interesting though to understand the existence of specific regularizers (such as, e.g., strongly convex regularizers).

While we do not provide an answer to this question, we make an intermediate step. Our final construction is in a slightly relaxed model, where the instances are non-convex, but the expected loss function is convex. While this result may be limited, because of the non-convexity, we stress that the learning guarantees of SGD are completely applicable to this setting: namely, SGD does learn the problem (as it is convex in expectation). We show that for any strictly quasi-convex regularizer, namely a regularizer that has preference for a single point in any convex regime, the algorithm will not converge to the optimal solution with optimal regularization penalty (even though it converges to a convex domain where seemingly it can improve its parameter choice towards the regularized solution).

2 Related work

Understanding the implicit bias of learning algorithms and its importance in generalization is a central theme in machine learning, and in the study of many classical algorithms (Bühlmann and Yu 2003; Schapire et al. 1998; Wei et al. 2017). Recently, implicit bias has received considerable attention in the past few years. Starting with Neyshabur et al. 2015; Zhang et al. 2017, it was suggested that implicit regularization might explain the success of networks to improve test error by increasing network size beyond what is needed to achieve zero training error. Subsequently, a line of work has focused on identifying implicit regularization in various problems and domains, e.g., linear and non parametric regression (Ali et al. 2019; Raskutti et al. 2014; Wei et al. 2017) matrix factorization (Gunasekar et al. 2017; Arora et al. 2019), linearly separable data (Soudry et al. 2018; Gunasekar et al. 2018b), as well as deep networks (Neyshabur 2017; Neyshabur et al. 2017) and others (Nacson et al. 2019; Nakajima and Sugiyama 2010; Lin et al. 2016; Gunasekar et al. 2018a). Our work here can be seen as an attempt to investigate the limitations of implicit regularization. Most similarly to this work, Suggala et al. 2018 provides an example of a problem where gradient flow does not converge to closest Euclidean solution. Here we focus on the more concrete SGD algorithm with a fixed step size, and give finite-time analysis. We are also able to harness our example to construct further new constructions that rule out a richer class of implicit-type regularization schemes.

This work can also be seen as an attempt towards separation between learnability and regularization. Besides regularization, several other useful notions have been suggested as surrogates of learnability. Most classically, uniform convergence (Blumer et al. 1989) has been shown to be equivalent to learnability in the binary, distribution-independent model of PAC learning (Valiant 1984). As discussed, Shalev-Shwartz et al. 2009 showed that in the stochastic convex setting naive-ERM fails (but not regularized-ERM), hence learnability and uniform convergence are no longer equivalent. The constructions of Shalev-Shwartz et al. 2009 were later substantially strengthened by Feldman 2016. More recently, Nagarajan and Kolter 2019 also provided an example that rules out uniform convergence, perhaps in the strictest sense. Their construction, though, does exhibit tangible implicit regularization, which account to the generalization of the algorithm.

Another useful notion is the stability of a learning algorithm. Stability is very much related to regularization: e.g., regularizing empirical risk minimization with a strongly convex function induces stability (Bousquet and Elisseeff 2002), and smoothness can also be harnessed to argue for stability (Hardt et al. 2016). As such, constructing a convex problem where an algorithm is unstable could also serve as a means to rule out certain types of implicit regularizers. Our examples are in fact stable, and as such, could also be interpreted as a certain weak separation between stability and regularization.

Preliminaries

The goal of the learner, given a sample S={z1,…,zT}S=\{z_{1},\ldots,z_{T}\} of TT i.i.d. examples from the distribution DD, is to return a parameter vector wS\mathbf{w}_{S} such that

for a desired target accuracy ϵ>0\epsilon>0. (The sample size TT may be determined based on ϵ\epsilon.)

We make the following assumptions throughout. We will generally assume that the functions ff are also O(1)O(1)-Lipschitz. Specifically, in all our constructions we will have ∥∇wf(w,z)∥≤23\|\nabla_{\mathbf{w}}f(w,z)\|\leq 23 for all values of zz and w∈W\mathbf{w}\in\mathcal{W}. We will mostly be concerned with the case that W\mathcal{W} is a bounded unit ball of radius rr around 00. For concreteness we will mostly take r=5r=5. This is just for convenience and clearly our results apply to any constant radius ball. Since our main focus in this paper is on impossibility results, fixing the Lipschitz constant and the diameter does not harm the generality of the setup.

We will also discuss strongly-convex functions (or regularizers): we say that a convex function is λ\lambda-strongly convex if for any w1,w2∈W\mathbf{w}_{1},\mathbf{w}_{2}\in\mathcal{W} we have: f(w1)≥f(w2)+∇f(w2)⊤(w1−w2)+λ∥w1−w2∥2f(\mathbf{w}_{1})\geq f(\mathbf{w}_{2})+\nabla f(\mathbf{w}_{2})^{\top}(\mathbf{w}_{1}-\mathbf{w}_{2})+\lambda\|\mathbf{w}_{1}-\mathbf{w}_{2}\|^{2}.

2 Gradient Descent and Stochastic Gradient Descent

The main focus of this paper is the well-known Stochastic Gradient Descent (SGD) algorithm. Given a sample S={z1,…,zT}S=\{z_{1},\ldots,z_{T}\} and a step-size parameter η>0\eta>0, SGD initializes at w(1)=0\textbf{w}^{(1)}=\textbf{0} and performs iterations:

where ΠW(w)\Pi_{W}(w) is defined to be the projection of ww over the convex set WW. The standard SGD analysis guarantees the following (see, e.g., Shalev-Shwartz and Ben-David 2014):

Let B,ρ>0B,\rho>0. Le W={w:∥w∥≤B}\mathcal{W}=\{w:\|w\|\leq B\}, and assume that F(⋅)F(\cdot) is convex and ∥∇f(w,z)∥≤ρ\|\nabla f(w,z)\|\leq\rho for all zz and w∈Ww\in W. Suppose that SGD is run for TT iterations on the sample S={z1,…,zT}S=\{z_{1},\ldots,z_{T}\} with step size η=B2/(ρ2T)\eta=\sqrt{B^{2}/(\rho^{2}T)}. Then,

where here w⋆∈arg⁡min⁡w:∥w∥≤BF(w)\mathbf{w}^{\star}\in\arg\min_{\mathbf{w}:\|\mathbf{w}\|\leq B}F(\mathbf{w}).

We will also discuss in this paper the procedure of Gradient Descent (GD). Given an objective function FF GD obtains the following update steps:

In our context, given a sample S={z1,…,zT}S=\{z_{1},\ldots,z_{T}\}, the gradient descent algorithm takes steps using the full gradient with respect to the empirical loss defined as follows FS(w)=1T∑t=1Tf(w,zt)F_{S}(\mathbf{w})=\frac{1}{T}\sum_{t=1}^{T}f(\mathbf{w},z_{t}). We will then write in shorthand wS\mathbf{w}_{S} for wFS\mathbf{w}_{F_{S}}

While the above version of SGD is perhaps the most standard one, there are other variants that can be considered. For example, it is common to consider, instead of a fixed step-size, a decaying step-size (where η\eta may depend on tt), as well as taking the last SGD iterate rather than the average iterate. We focus on the version in Eq. 2 for several reasons. First, taking the last iterate is not always justified and attains suboptimal rates (see Shamir and Zhang 2013). Second, the algorithm in Eq. 2 is also the more challenging variant to argue about, in the sense that averaging and taking small fixed step size induces bias towards initialization, and as such, is more strongly regularized (and indeed, the constructions we provide here can be readily modified to address a decaying step-size or the last iterate. In fact, the proofs will be significantly simpler; for example, in the proof overview we actually consider the last iterate for simplicity.) Another variant to consider is unprojected gradient descent. Convergence bounds can be derived for this variant that depend on the norm of the benchmark solution (Shalev-Shwartz and Ben-David 2014; Shalev-Shwartz et al. 2011). Again, we note that in all of our constructions we pick domain large enough so that projections in fact don’t take place.

Nevertheless, it could be an interesting future work to derive a natural variant of SGD whose implicit regularization properties induce the desired generalization guarantees.

3 Regularized (Structural) Risk Minimization

Another well studied approach to perform learning is through regularization, Regularized Empirical Risk Minimization (ERM) solves the following minimization problem:

Regularization

We next discuss the different classes of regularizers we will consider in this paper. While some of the results we provide make little to no assumptions on the regularizers, sometimes we would like to add further structure and rule out specific classes as the implicit bias of SGD, in other cases we would like to formally explain in what sense we might assume that the regularizer does not allow a comprehensive explanation of the implicit bias.

Most generally, a regularizer is any function r:W→ℜ+r:\mathcal{W}\to\real_{+}. We will however make the following basic assumptions on the regularizers, to avoid degenerate cases:

min⁡w∈Wr(w)=0\min_{\mathbf{w}\in\mathcal{W}}r(\mathbf{w})=0

rr is non-constant at W\{0}\mathcal{W}\backslash\{0\};

rr is upper semi-continuous; namely, for every point w∈W\mathbf{w}\in\mathcal{W} and every ϵ0>0\epsilon_{0}>0 there exists a neighborhood Bδ0(w)={u:∥w−u∥<δ0}B_{\delta_{0}}(\mathbf{w})=\{\mathbf{u}:\|\mathbf{w}-\mathbf{u}\|<\delta_{0}\} for which r(u)>r(w)−ϵ0r(\mathbf{u})>r(\mathbf{w})-\epsilon_{0} if u∈Bδ0(w)\mathbf{u}\in B_{\delta_{0}}(\mathbf{w}).

Any regularizer that satisfies these properties will be said to be an admissible regularizer (or shortly, a regularizer). The first assumption above is only for normalization. For the second assumption, the algorithms we will consider are all initialized at zero and may prefer the zero solution if it is a minimizer of the empirical error. But we are mostly concerned with the implicit bias in more involved cases then that.

The last assumption is perhaps somewhat strongest, but it is intended to rule out pathological examples. For example, one could consider a regularizer rr which is 00 on almost all points, but is 11 on the negligible, dense, set of real numbers that SGD would never reach. One could argue that rr is an implicit bias of SGD. However, this does not capture our intuition of a regularizer. Thus, we add an assumption that a point penalized by the regularizer should also be penalized under small perturbations.

While some of the results we will present are given for general (admissible) regularizers, it is natural and expected to study more structured classes of regularizers and ask if they induce the generalization properties of a certain algorithm. One natural family of such regularizers is the class of λ\lambda-strongly-convex functions, which we will also assume are 11-Lipschitz. As discussed in length, many of the prominent generalization results are provided in the context of strongly convex regularizers (Bousquet and Elisseeff 2002; Shalev-Shwartz et al. 2009).

Strongly-convex regularizers come with a very natural property which allows us to rule out such regularizers on certain problems: a strongly convex function always attains a unique minimizer on any convex set. As such we can always identify if the output of an algorithm minimizes (approximately) the strongly-convex regularizer, by comparing the output to the minimizer of the regularizer over the given empirical risk.

2 General (Admissible) Regularizers

Studying implicit bias that does not stem from a strongly convex regularizer is no less important; however, it becomes much more subtle to rule out the latter. Once the regularizer is allowed to have non-unique minima we should be more careful in stating what we mean when we say it does not explain generalization. In fact, almost any plausible algorithm can be said to be implicitly biased on any given distribution. For example, the fact that the regularizer is constrained to the unit ball is a form of algorithmic bias—but as was shown by Shalev-Shwartz et al. 2009, it cannot explain generalization in the SCO setting.

Towards clarifying what we mean by “explain generalization”, let us consider the following: given a regularizer rr and an algorithm A\mathcal{A} that outputs a solution A(S)\mathcal{A}(S) on a sample SS, define the set of “competitive” solutions

For shorthand, we will also use the notation KS,r(A)K_{S,r}(\mathcal{A}) instead of KS,r(A(S))K_{S,r}(\mathcal{A}(S)).

In words, KS,r(A)K_{S,r}(\mathcal{A}) is the set of solutions that are comparable with (or better than) the output of A\mathcal{A}, with respect to both the empirical loss and the regularization penalty. For example, consider a regularized ERM, as in Eq. 5, then KS,r(A)K_{S,r}(\mathcal{A}) depicts all minimizers of Eq. 5 with comparable regularization penalty. For example, with a strongly-convex regularizer rr one can observe that the set KS,r(A)K_{S,r}(\mathcal{A}) is in fact a set of a single unique solution.

More generally, if a regularizer rr is said to be the implicit bias of an algorithm A\mathcal{A}, and as such it explains the generalization of the algorithm, it is expected that the set KS,r(A)K_{S,r}(\mathcal{A}) would be “small” in the sense that choosing an arbitrary solution from it should provide principled guarantees. If we cannot attain such guarantees without further investigation of the problem and algorithm, we argue that the regularizer does not provide a comprehensive explanation of generalization. This motivates the following definition for studying more general regularizers than, say, strongly convex ones:

Note that the statistical complexity of the set KK is measured with respect to an arbitrary distribution DD over convex functions: this captures our requirement that the set KS,r(A)K_{S,r}(\mathcal{A}) should explain generalization, without further investigation of the problem. In other words, it could be that for a correct choice of a regularizer, on a specific problem, all the models in KS,r(A)K_{S,r}(\mathcal{A}) will generalize. However, what we want is to ensure that the generalization does not stem from any further structure in the problem that is not captured by the regularizer. Thus, we require that this set will be “simple” in the sense that on any arbitrary distribution over convex functions we can choose an arbitrary solution that minimizes the empirical risk.

Results

We start with the natural question, whether there is some distribution independent implicit regularization being promoted by SGD. As a warm-up we begin by ruling out the existence of a distribution-independent strongly convex regularizer that plays the role of the implicit bias of SGD. This family of regularizers is already very interesting, and has been studied extensively in the literature of stochastic convex optimization (Bousquet and Elisseeff 2002; Shalev-Shwartz et al. 2009).

Let W={w:∥w∥≤5}\mathcal{W}=\{\mathbf{w}:\|\mathbf{w}\|\leq 5\}. For every 11-Lipschitz and λ\lambda-strongly convex rr, there is a distribution DrD_{r} over 11-Lipschitz and 11-smooth functions over W\mathcal{W}, and wr∈W\mathbf{w}_{r}\in\mathcal{W} such that, with probability 11, SGD with any step size 1/T2<η<11/T^{2}<\eta<1 over an input sample SS of size T=Ω(1/(λη))T=\Omega(1/(\lambda\eta)) outputs wS\mathbf{w}_{S} such that:

In words, for any strongly convex regularizer there exists an instance problem where SGD chooses a solution that is sub-optimal in terms of both empirical error, and regularization penalty.

The last result can be extended to general (admissible) regularizers. Here, the rate of divergence from a Pareto optimal solution depends on the structure of the regularizer rr. This dependence of the divergence-rate on the regularizer rr is unavoidable. Indeed if we consider a regularizer rr such that r≈0r\approx 0, it is not hard to be convinced that it would take SGD longer to become rr-suboptimal.

Let W={w:∥w∥≤5}\mathcal{W}=\{\mathbf{w}:\|\mathbf{w}\|\leq 5\}. For every admissible regularizer rr, there are constants cr>0c_{r}>0, a distribution DrD_{r} (over 11-Lipschitz and 11-smooth convex functions), and wr∈W\mathbf{w}_{r}\in\mathcal{W} such that, with probability 11 over the input sample SS, SGD with any step size 1/T2<η<11/T^{2}<\eta<1 and sample size Tr=Ωr(1/η)T_{r}=\Omega_{r}(1/\eta) outputs wS\mathbf{w}_{S} such that:

The Ωr(⋅)\Omega_{r}(\cdot) notation hides constant that may depend on the regularizer rr. The dependence on the regularizer is expected here, as we would need a very strong level of accuracy if we want to rule out a nearly-constant regularizer, for example.

2 Distribution-Dependent Implicit Regularization

Having ruled out a class of implicit regularizers in the distribution-independent model, we next move on to discuss the possibility of distribution dependent regularizers.

For every T≥1T\geq 1, a constant C>2C>2 and dimension d>T/10d>T/10: there exists a distribution DD over 11-Lipschitz convex functions over W={w:∥w∥≤1}⊆ℜd\mathcal{W}=\{\mathbf{w}:\|\mathbf{w}\|\leq 1\}\subseteq\real^{d}, such that if we run SGD with learning rate 1/T2<η≤C/T1/T^{2}<\eta\leq C/\sqrt{T} over a sample set of size TT, then for any 11-Lipschitz, λ\lambda-strongly convex regularizer rr, with probability 0.10.1 over the sample, SGD outputs wS\mathbf{w}_{S} for which there is w⋆∈W\mathbf{w}^{\star}\in\mathcal{W}, such that

Utilizing a construction of a statistically complex set due to Feldman 2016, we can also obtain the following result:

For every T≥1T\geq 1, a constant C>2C>2 and dimension d≥T/105d\geq T/10^{5}: there exists a distribution DD over convex 11-Lipschitz functions over W={w:∥w∥≤1}⊆ℜd\mathcal{W}=\{\mathbf{w}:\|\mathbf{w}\|\leq 1\}\subseteq\real^{d}, such that if we run SGD with stepsize 1/T2<η≤C/T1/T^{2}<\eta\leq C/\sqrt{T} over a sample set of size TT, then for any regularizer rr we have that with probability at least 1/101/10 over the sample, the set KS,r(wS)K_{S,r}(\mathbf{w}_{S}) is (2T,10−5Tη2C)\left(2T,10^{-5}\frac{T\eta^{2}}{C}\right)-statistically complex.

In words, Theorem 4 asserts that for a certain given distribution DD the output of SGD cannot be interpreted as coming from a “small” structured family of solutions that would generalize regardless of other specialized properties of the particular learning problem.

The requirement that T≤O(d)T\leq O(d) is tight. Note that for a sample SS of order T=O(d/ϵ2)T=O(d/\epsilon^{2}), by a standard covering argument, we can show that the set KS,r(W)K_{S,r}(\mathcal{W}) is not (2T,ϵ)(2T,\epsilon) statistically complex (see, for example, Theorem 5 of Shalev-Shwartz et al. 2009). In particular, since KS,r(wS)⊆KS,r(W)K_{S,r}(\mathbf{w}_{S})\subseteq\mathcal{K}_{S,r}(\mathcal{W}) we obtain an upper bound of the statistical complexity of the given set.

3 Implicit Bias in Constant Dimension

In the results above we provided constructions in spaces with more parameters than samples. We next discuss the case d≪Td\ll T, which is interesting for certain contexts.

Regarding Theorem 4, we again point out that such a result cannot hold in the aforementioned regime. Indeed, in this case uniform convergence over the unit-ball applies. In that sense, restricting an algorithm to choose a solution in the unit ball provides an inductive bias that provides generalization guarantees. But what about Theorem 3? It is interesting to know if one can rule out regularizers that are not benign like the unit ball. We treat a set KK as a regularizer by identifying KK with a regularizer rr such that r(w)=1r(\mathbf{w})=1 if w∉K\mathbf{w}\notin K and 00 otherwise. We do not know the answer to this question and we leave it as an open problem. Nevertheless, we can provide the following intermediate result in a slightly more relaxed setting, where the instances may be non-convex, (and in fact non-Lipschitzian) but the expected loss function is indeed convex, and at each iteration the learner observes a bounded gradient ∥∇f(w,z)∥≤1\|\nabla f(\mathbf{w},z)\|\leq 1 Thus, SGD’s learning guarantee still apply.

We will state the next result for a slightly larger class of regularizers than merely convex regularizers. Recall that a function ff is called quasi-convex if f(λx+(1−λ)y)≤max⁡{f(x),f(y)}f(\lambda x+(1-\lambda)y)\leq\max\{f(x),f(y)\} for every 0≤λ≤10\leq\lambda\leq 1 and x,y∈Kx,y\in\mathcal{K}, and strictly quasi-convex if f(λx+(1−λ)y)<max⁡{f(x),f(y)}f(\lambda x+(1-\lambda)y)<\max\{f(x),f(y)\}.

Constructions

Here we give a high level description of the constructions as well as the proofs of the main results. We note that for simplicity of exposition, the following description refers to the last iterate, but our full proofs refers to Eq. 2 (i.e., the algorithm that outputs wS=1T∑t=1Tw(t)\mathbf{w}_{S}=\frac{1}{T}\sum_{t=1}^{T}\textbf{w}^{(t)}) .

Our constructions build upon the following class of functions in 2. Let AA be a set of the form {(α,θ):0≤α≤b}\{(\alpha,\theta):0\leq\alpha\leq b\}, where θ,b\theta,b are parameters of the set and Σ\Sigma is a PSD matrix. We then consider the function fA,Σf_{A,\Sigma} defined as follows:

One can observe that these functions are convex, and further the gradient of fA,Σf_{A,\Sigma} at point w\mathbf{w} will equal

We start by showing how we can construct a function (of the type in Eq. 7) that does not converge to minimal norm solution. Let us take a concrete case where

We will suppress dependence on AA and Σ\Sigma, and simply write ff. The main observation is that the trajectory of ff is characterized by two phases.

At the first phase the closest point to w(t)\textbf{w}^{(t)} (with respect to the Σ\Sigma-norm) is at the boundary of AA (i.e α=0\alpha=0). At this phase, w(t)\textbf{w}^{(t)} can be seen to move “towards” the center of the interval, namely w1(t)w^{(t)}_{1} is increasing (see Eq. 8). At the end of this phase, w1(t)w^{(t)}_{1}, is sufficiently large irrespective of the step size η>0\eta>0. The second phase, starts when e2≡(01)\textbf{e}_{2}\equiv(\begin{smallmatrix}0\\ 1\end{smallmatrix}) stops being the closest point, and the closest point to w(t)\textbf{w}^{(t)} is at the interior of the interval. One can show that at this phase, the gradient moves upward hence w1(t)w^{(t)}_{1} does not decrease and overall the trajectory will converge to a point away from e2\textbf{e}_{2}: the Euclidean closest minimizer to 00.

To see that when v(w)\mathbf{v}(\mathbf{w}) is at the interior of AA then ∇f(w)∝e1\nabla f(\mathbf{w})\propto\textbf{e}_{1}, consider the following scalar function g(a)=(w−(a,1))⊤Σ(w−(a,1)).g(a)=(\mathbf{w}-(a,1))^{\top}\Sigma(\mathbf{w}-(a,1)). Our assumption is that gg attains its minimum at 0<v10<v_{1}. Taking the derivative at v1v_{1} and equating to 00 (because the minimum is attained at the interior), we can see that g′(v1)=(w−(v1,1))⊤Σe1=0.g^{\prime}(v_{1})=(\mathbf{w}-(v_{1},1))^{\top}\Sigma\textbf{e}_{1}=0. Hence, ∇f(w)=(w−v(w))Σ⊥e1\nabla f(\mathbf{w})=(\mathbf{w}-v(\mathbf{w}))\Sigma\perp\textbf{e}_{1}. We depicted here the trajectory of GD without the projection step, however one can observe that throughout, the algorithm never escapes the 22-ball, hence projections are indeed never implemented. The trajectory of w(t)\textbf{w}^{(t)} is illustrated in Fig. 1 (green line).

The construction above is the heart of most of our results. Let us illustrate how it rules out a strongly convex regularizer (in the distribution-independent setting) and attain Theorem 1.

The key property of strongly-convex regularizers is that in any convex set they have a unique minimum. Moreover, two far away points cannot simultaneously attain close-to-minimal value. This is in fact the only property we will use. Thus, our result can in fact be extended to any regularizer that is a “tie-breaker”—namely, it always prefers a single unique solution amongst a class of possible solutions with large diameter.

The construction above will allow us to generate two instances of convex learning problems, where SGD converges to two far away points. The first instance is the standard Euclidean distance. Namely, we take a function f1f_{1} of the form in Eq. 7, with Σ\Sigma the identity and AA with boundaries (−∞,∞)(-\infty,\infty). In this case, SGD is biased towards the nearest solution e2=(0,1)\textbf{e}_{2}=(0,1). The second instance, f2f_{2}, is the construction above where SGD is biased towards another point on the interval (see Figs. 2(b), 2(c) and 2(d)).

Now both points are global minima, for both f1f_{1} and f2f_{2}, hence if SGD is implicitly biased towards solutions with minimum regularization penalty rr, we must have that r(e2)=r(v)r(\textbf{e}_{2})=r(\mathbf{v}), where v\mathbf{v} is the choice of SGD when it observes f2f_{2}. However, if rr is strongly convex, because ∥e2−v∥=Θ(1)\|\textbf{e}_{2}-\mathbf{v}\|=\Theta(1), there has to be a point on the interval between them that attain a strictly lesser regularization penalty, moreover it also attains minimal loss value. This contradicts the existence of such an rr.

Our second result (Theorem 2) rules out the existence of any distribution-independent regularizer. In contrast with the strongly-convex case we can not give uniform bounds that depend on parameters of strong convexity. As such, the rates depend on the regularizer.

But the construction here is similar. We basically start with the assumption that there are two points w1\mathbf{w}_{1} and w2\mathbf{w}_{2} with different regularization penalty, and we want to construct two functions f1,f2f_{1},f_{2} that maps w1,w2\mathbf{w}_{1},\mathbf{w}_{2} to the same empirical loss. It might seem that through a simple linear transformation that maps, say, w1\mathbf{w}_{1} to e2\textbf{e}_{2} and w2\mathbf{w}_{2} to v\mathbf{v} we can reduce this case to the case above. However, there is some subtlety since gradient descent is not invariant to linear transformations. We note though that it can be turned to an affine invariant optimization algorithm (Koren and Livni 2017).

Towards this, we extend the construction above by constructing a more general example, where we can tune the point of convergence of SGD to any point on the interval between v\mathbf{v} and e2\textbf{e}_{2}. This allows us to avoid scaling, and use only rotations (which SGD is invariant to) in order to reduce the problem to the former case. This is done by changing the set AA from allowing 0≤α<∞0\leq\alpha<\infty and θ=1\theta=1, to adding a second boundary condition on the right and also scaling θ\theta. In Fig. 2 we illustrate how changing the boundary condition changes the trajectory.

2 Distribution-Dependent Implicit Bias

We next discuss our second sets of results that argue about distribution-dependent regularization. Here we want to study if, for a given distribution, the set of solutions on which SGD converges has some meaningful structure on which we can argue why it generalizes.

Note that so far, our problem instances considered only a single function and the results were applicable to GD also. Here, though, in the distribution dependent setting such an example cannot work. Indeed, given a single function as an instance problem, SGD behaves deterministically and the solution it chooses is a unique solution which trivially generalizes.

We next discuss our argument that rules out a strongly convex regularizer, even if it may depend on the distribution at hand. We again utilize the property that a strongly convex regularizer obtains approximately minimum solutions only on a small diameter around the unique minimum.

Our strategy is as follows: assume that there are two samples S1S_{1} and S2S_{2} such that, when SGD observes S1S_{1} it converges to w1\mathbf{w}_{1} and when it observes S2S_{2} it converges to w2\mathbf{w}_{2}. However, assume also that ∥w1−w2∥=Θ(1)\|\mathbf{w}_{1}-\mathbf{w}_{2}\|=\Theta(1), and that the empirical loss of w1\mathbf{w}_{1} and w2\mathbf{w}_{2} is comparable, on both samples: namely FS1(w1)=FS2(w1)F_{S_{1}}(\mathbf{w}_{1})=F_{S_{2}}(\mathbf{w}_{1}), and similarly with w2.\mathbf{w}_{2}.

In the case above, as we argued in the distribution-independent case, clearly the algorithm failed to choose the minimizer of the regularization penalty, in at least one of the realization S1S_{1} or S2S_{2}. So if S1S_{1} and S2S_{2} are equally likely, we obtain that with probability half (conditioned on the event that we saw S1S_{1} or S2S_{2}) the algorithm failed to minimize rr. Now, if the probability to observe one of such couple of samples S1,S2S_{1},S_{2} is positive, then we obtain the desired result.

To generate this setting, we rely on the following auxiliary construction in 2. We construct two functions such that, if SGD observes the first function, at the first iteration, then the gradient points upward and right. But if SGD observes the second function, at the first iteration, then the gradient points upward. This ensures that in each case SGD will move towards a different solution. If the size of the gradient is constant then the gap between the two iterations will be Θ(η)\Theta(\eta).

We will also construct the examples in such a way that both points enter a regime where all points obtain the same empirical loss on both functions. This construction can in fact be done using piece-wise linear functions and it is illustrated in Fig. 3. We also give the formal statement here:

For every constant 0<c<10<c<1, there are two 11-Lipschitz functions f(w;±1)f(\mathbf{w};\pm 1) over 2 such that if v1=−∇f(0;1)\mathbf{v}_{1}=-\nabla f(0;1) and v−1=−∇f(0;−1)\mathbf{v}_{-1}=-\nabla f(0;-1) and c<12η<1c<\frac{1}{2}\eta<1 then ∥v1−v−1∥≥1/4\|\mathbf{v}_{1}-\mathbf{v}_{-1}\|\geq 1/4 and f(ηv1;z)=f(ηv−1;z)f(\eta\mathbf{v}_{1};z)=f(\eta\mathbf{v}_{-1};z) for any z∈{−1,1}z\in\{-1,1\}.

We next utilize the above construction to generate the problem in d. Note that the construction above generates a problem where SGD will converge to two different solutions with distance η\eta but same empirical loss (after one step). Indeed, we just need to randomly pick one of these functions.

We next want to amplify the distance. To do that, we consider d=Ω(T)d=\Omega(T) Cartesian copies of 2. Then at each example, we show one of the functions above, at one of the products. Assuming enough coordinates were seen only once (which is going to happen w.h.p.), the variance on each sub-plane will be η2\eta^{2}: if we have Θ(T)\Theta(T) such coordinates, the overall variance is going to be Θ(Tη2)\Theta(T\eta^{2}) which ensures that we will converge to far away solutions on different realizations of the problem, if η=Θ(1/T)\eta=\Theta(1/\sqrt{T}).

Next, we derive Theorem 4 which addresses implicit regularization in a much broader setting. As discussed, here we cannot rule out the existence of an implicit bias; indeed, some form of an implicit bias always exists. We attempt, though, to understand how the implicit bias can explain generalization.

The result shows that for any regularizer: the set KS,r(wS)K_{S,r}(\mathbf{w}_{S}) which is the set of comparable solutions to the one outputted by SGD, given the empirical loss and regularization penalty, can be large up to the fact that choosing an arbitrary solution from this set can, in principle, lead to over-fitting (over general convex problems). Thus, to argue that the algorithm did generalize, further structure in the problem needs to be taken into account. And this is true for any regularizer.

Our construction is similar to the previous case in Theorem 3 up to some modification. Therefore, let us show that in the construction above KS,rK_{S,r} will be (T/6,Θ(1))(T/6,\Theta(1))-statistically complex. This is less than what we actually desire. We, in fact, observed TT examples and not T/6T/6. Indeed, in the construction above, we showed that if we project the output of SGD to the observed coordinates, we obtain a solution of the form (v±1,v±1,⋯ ,v±1)∈(ℜ2)T(\mathbf{v}_{\pm 1},\mathbf{v}_{\pm 1},\cdots,\mathbf{v}_{\pm 1})\in(\real^{2})^{T}, where v1,v−1\mathbf{v}_{1},\mathbf{v}_{-1} are as in Lemma 1. By projecting this set, it can be seen to be a copy of (up to some rescaling) the normalized unit cube M={±η,±η,⋯ ,±η}∈ℜT\mathcal{M}=\{\pm\eta,\pm\eta,\cdots,\pm\eta\}\in\real^{T}. This is true since ∥ηv1−ηv−1∥=Θ(η)\|\eta\mathbf{v}_{1}-\eta\mathbf{v}_{-1}\|=\Theta(\eta).

Here, we rely on a construction by Feldman 2016. In order to show that uniform convergence is not equivalent to learnability in the convex optimization setting, Feldman showed (in our terminology) that the set M∈ℜT\mathcal{M}\in\real^{T} is (T/6,1/4)(T/6,1/4) statistically complex, if η=Θ(1/T)\eta=\Theta(1/\sqrt{T}).

As discussed, this is less than what we want, as we actually want a set that is at least (T,Θ(1))(T,\Theta(1)) statistically complex. To tackle this, on each iteration we show the learner a loss function over multiple pairs of coordinates. Namely, if in the example above we drew at each iteration f(w;z)f(\mathbf{w};z) where z∼Dz\sim D, now in each iteration we show the algorithm 1k∑i=1kf(w;zi)\frac{1}{k}\sum_{i=1}^{k}f(\mathbf{w};z_{i}), where ziz_{i} are i.i.d. This will reduce the step-size on each coordinate a little bit but if kk is constant we will still present a constant loss. On the other hand, now projecting on observed coordinates, SGD will converge to a solution in (v±1,v±1,…,v±1)∈(ℜ2)Θ(kT).(\mathbf{v}_{\pm 1},\mathbf{v}_{\pm 1},\ldots,\mathbf{v}_{\pm 1})\in(\real^{2})^{\Theta(kT)}. Thus we only need a constant k>6k>6 so that the algorithm will converge to a (T,Θ(1))(T,\Theta(1))-statistically complex set.

3 Implicit Bias in Constant Dimension

We next provide a construction in 2 that again rules out a class of regularizers, in particular strongly convex regularizers (and more generally, strictly quasi-convex regularizers).

In a similar fashion to previous constructions, we make SGD choose from a set of solutions, that exhibit comparable empirical loss. While the dimension of previous constructions depended on TT, this construction does not. However, for the construction we relax the assumption that f(w;z)f(\mathbf{w};z) are convex, but FF remains convex. Note that the learning guarantees of SGD are completely applicable to this setting.

Our construction relies on a 2-dimensional square, centered at the origin. Inside the square, SGD makes a simple 2-dimensional random walk, while when it exits from the square, it continues to perform a random walk in just one dimension (denoted as yy), while the other coordinate (denoted as xx) remains the same. As a result, the optimizer of FSF_{S} is independent of wxw_{x}.

We study the event that w\mathbf{w} will stay inside the square for enough iterations to ensure that the variance of wxw_{x} will be larger than some constant, but eventually w\mathbf{w} exit from the square to make FSF_{S} independent of wxw_{x}. This will result with a set of solutions that share the same empirical error and also SGD can converge to each one of them.

References

Appendix A Technical Background

A key technical tool in the proof of Theorem 4 is a construction by Feldman, Feldman 2016, of a statistically complex set in d. While Feldman’s construction is not the first to show that the sample complexity of an ERM algorithm may scale with the dimension, it greatly improved over previous construction Shalev-Shwartz et al. 2009, and showed that the dependence may be linear in the dimension.

We will exploit here Feldman’s set in order to construct an example where SGD essentially picks arbitrarily an element from a statistically complex set, akin to ERM, and we will need the following statement due to Feldman

Let Wd={−1d,1d}d.\mathcal{W}_{d}=\{-\frac{1}{\sqrt{d}},\frac{1}{\sqrt{d}}\}^{d}. There exists a distribution DD over 11-Lipschitz convex functions such that given a sample ∣S∣<d/6|S|<d/6 drawn i.i.d from DD then w.p. 1/21/2 (over the sample SS) there exists w∈Wd\mathbf{w}\in\mathcal{W}_{d} such that

We will need a slightly stronger version of the theorem which is an immediate corollary

Let A⊆WdA\subseteq\mathcal{W}_{d}, such that ∣A∣≥2d−1|A|\geq 2^{d-1}, then AA is (d/6,1/4)(d/6,1/4)-statistically complex.

For two vectors v∈{−1,1}d\mathbf{v}\in\{-1,1\}^{d} and an element w∈Wd\mathbf{w}\in\mathcal{W}_{d} let v∗w∈Wd\mathbf{v}*\mathbf{w}\in\mathcal{W}_{d} be the pointwise product between w\mathbf{w} and v\mathbf{v}, i.e.

Let DD be the distribution from Theorem 6 and consider a distribution where we draw uniformly an elements v∈{−1,1}d\mathbf{v}\in\{-1,1\}^{d} and a sample SS of size d/6 i.i.d from DD. One can show that with probability ∣A∣/(2d+1)|A|/(2^{d+1}) we have that there exists an elements w∈A\mathbf{w}\in A such that

In particular, there exists a v\mathbf{v} such that with probability ∣A∣2d+1\frac{|A|}{2^{d+1}}, Eqs. 11 and 12 holds for some w∈A\mathbf{w}\in A over the random sample SS. Thus, we can define a convex Lipschitz mapping parameterized by z\mathbf{z} such that

From the above discussion if we draw z∼Dz\sim D we can see that this distribution demonstrates that AA is (d/6,1/4)-statistically complex

A.2 Berry-Esseen Theorem

A very important and valuable tool for analysing the behavior of random walks that we will use is the well-known Berry-Esseen Theorem, discovered independently in Berry 1941; Esseen 1942.

where CBE<1C_{\textrm{BE}}<1 is an absolute constant, and Φ(a)\Phi(a) is the CDF of a unit variate zero-mean Gaussian random variable.

For a bound CBE<1C_{\textrm{BE}}<1 of the absolute constant see, for example, van Beek 1972. We will need the following technical Lemma which is derived via Theorem 7:

Let k≥0k\geq 0, and assume T>2⋅kT>2\cdot k. If XtX_{t} is a random variables such that

where erf(a)=Φ(a)−Φ(−a)\textrm{erf}(a)=\Phi(a)-\Phi(-a) is the error function.

First, we lower bound ∑i∈Iσi2\sum_{i\in I}\sigma_{i}^{2}, and obtain that:

Appendix B Proofs: Distribution Independent Regularizers

As discussed, the main technical gadget behind our distribution-independent-regularization results is a construction of a convex function on which GD does not converge to the minimal norm solution:

Let W={w:∥w∥<5}\mathcal{W}=\{\mathbf{w}:\|\mathbf{w}\|<5\}. For every 0<θ2≤10<\theta_{2}\leq 1, and 0<θ1≤0.025 θ20<\theta_{1}\leq 0.025\,\theta_{2}, there exists a a non-negative, convex, 11–smooth, and 11–Lipschitz function F=Fθ1,θ2F=F_{\theta_{1},\theta_{2}} such that, if we run GD (as defined in Eq. 4) with step size 0<η<10<\eta<1 over FF then GD outputs wF\mathbf{w}_{F} that satisfies the following

In words, even though (0,θ2)(0,\theta_{2}) and (θ1,θ2)(\theta_{1},\theta_{2}) are both minimizers of FF, GD converges closer to the latter despite it having the larger norm (that is, despite being farther away from the initial point—recall that we assume here that GD is initialized at the origin).

The proof of Theorem 8 is provided at the end of this section and we continue with the proof of Theorem 1.

For every regularizer rr we will choose a distribution DD that is concentrated on a single function FF (dependent on rr). Note that in this case, the iterates of SGD are completely equivalent to the iterates of GD with input function FF. That is, Theorem 1 in fact holds even for deterministic GD, and we continue with the analysis assuming we run GD over a fixed function FF.

We now proceed to choose the function FF for a given λ\lambda-strongly convex regularization rr. Denote e2=(0,1)\textbf{e}_{2}=(0,1) and c=(0.024,1)\mathbf{c}=(0.024,1). Consider the set [e2,c]={αe2+(1−α)c:0≤α≤1}[\textbf{e}_{2},\mathbf{c}]=\{\alpha\textbf{e}_{2}+(1-\alpha)\mathbf{c}:0\leq\alpha\leq 1\}, and let

We now want to choose function F≥0F\geq 0 such that F(e2)=F(c)=F(w∗)=0F(\textbf{e}_{2})=F(\mathbf{c})=F(\mathbf{w}^{*})=0 and that wF\mathbf{w}_{F}, the output of GD over FF, will satisfy the following:

∥w∗−wF∥>0.01;\|\mathbf{w}^{*}-\mathbf{w}_{F}\|>0.01;.

If Π(wF)\Pi(\mathbf{w}_{F}) is the projection of wF\mathbf{w}_{F} on [e2,c][\textbf{e}_{2},\mathbf{c}] then ∥wF−Π(wF)∥≤1/(ηT).\|\mathbf{w}_{F}-\Pi(\mathbf{w}_{F})\|\leq 1/(\eta T).

This will conclude the proof. Indeed, by strong convexity:

and for η=Ω(1/λT)\eta=\Omega(1/\lambda T) we would get r(wS)−r(w∗)≥Θ(λ)r(\mathbf{w}_{S})-r(\mathbf{w}^{*})\geq\Theta(\lambda) as claimed.

We now demonstrate how to choose an appropriate FF. We will consider two possible cases: ∥w∗−e2∥≥0.012\|\mathbf{w}^{*}-\textbf{e}_{2}\|\geq 0.012, or ∥w∗−c∥≥0.012\|\mathbf{w}^{*}-\mathbf{c}\|\geq 0.012.

First assume that ∥w∗−e2∥>0.012\|\mathbf{w}^{*}-\textbf{e}_{2}\|>0.012. We then choose

which can be seen to be 11-smooth and 11 Lipschitz on W\mathcal{W}. A simple analysis of the update step shows that for η<1\eta<1, we have that w(t+1)=∑i=0t−1(1−η2640)iη2640e2\mathbf{w}^{(t+1)}=\sum_{i=0}^{t-1}(1-\frac{\eta}{2640})^{i}\frac{\eta}{2640}\textbf{e}_{2}. Hence,

Next we assume that ∥w∗−c∥>0.012\|\mathbf{w}^{*}-\mathbf{c}\|>0.012. We now apply Theorem 8 with θ1=0.024\theta_{1}=0.024 and θ2=1\theta_{2}=1 and consider F=Fθ1,θ2F=F_{\theta_{1},\theta_{2}} as in the theorem’s statement. Then, we have that ∥wF−c∥<120ηT\|\mathbf{w}_{F}-\mathbf{c}\|<\frac{120}{\eta T}, and we obtain as before that ∥wF−Π(wF)∥≤2640ηT\|\mathbf{w}_{F}-\Pi(\mathbf{w}_{F})\|\leq\frac{2640}{\eta T} and that ∥w∗−wF∥>0.01\|\mathbf{w}^{*}-\mathbf{w}_{F}\|>0.01, as required.∎

B.2 Proof of Theorem 8

It will be more convenient to construct a function FF that is convex, 44-smooth and 2222-Lipschitz such that if we run GD with step-size 0<η<1/30<\eta<1/3 over FF then GD outputs wF\mathbf{w}_{F} that satisfies Eq. 14 and

Then, by re-scaling F→122FF\to\frac{1}{22}F, and observing that running GD on FF with step size η/22\eta/22 is equivalent to running GD on 122F\frac{1}{22}F with stepsize η\eta, we obtain the desired result.

Next, we construct FF. For 0≤θ2≤10\leq\theta_{2}\leq 1 and 0≤θ1≤0.025⋅θ20\leq\theta_{1}\leq 0.025\cdot\theta_{2} let us define the set: Aθ1,θ2={(α,θ2):0≤α≤θ1}A_{\theta_{1},\theta_{2}}=\{(\alpha,\theta_{2}):0\leq\alpha\leq\theta_{1}\}. In turn, we define the function F=Fθ1,θ2(w)F=F_{\theta_{1},\theta_{2}}(\mathbf{w}) to be:

We start with showing that FF is indeed convex, 44-smooth and 2222-Lipschitz as required (As discussed at the beginning, then we obtain the desired result by rescaling).

It is a standard fact that a function of the above form is indeed convex (see, e.g., Example 3.1 in Boyd and Vandenberghe 2004). We will next show that FF is also 44-smooth and 2222-Lipschitz. first, one can show that from Eq. 15), that the gradient is given by

where we denote v(w)=arg⁡min⁡v∈Aθ1,θ2(w−v)⊤Σ(w−v)\mathbf{v}(\mathbf{w})=\arg\min_{v\in A_{\theta_{1},\theta_{2}}}(\mathbf{w}-\mathbf{v})^{\top}\Sigma(\mathbf{w}-\mathbf{v}). Next, observe that for any w,w′\mathbf{w},\mathbf{w}^{\prime} we have ∥v(w)−v(w′)∥2≤(w−w′)⊤Σ(w−w′)≤32∥w−w′∥2\|\mathbf{v}(\mathbf{w})-\mathbf{v}(\mathbf{w}^{\prime})\|^{2}\leq(\mathbf{w}-\mathbf{w}^{\prime})^{\top}\Sigma(\mathbf{w}-\mathbf{w}^{\prime})\leq\tfrac{3}{2}\|\mathbf{w}-\mathbf{w}^{\prime}\|^{2} as v(w)\mathbf{v}(\mathbf{w}) is the projection of w\mathbf{w} onto Aθ1,θ2A_{\theta_{1},\theta_{2}} with respect to the norm ∥x∥2=x⊤Σx\|x\|^{2}=x^{\top}\Sigma x, and since projections are contracting distances. Then,

Also, since v(0)=(0,θ2)\mathbf{v}(0)=(0,\theta_{2}). We obtain that ∥∇F(0)∥≤θ252\|\nabla F(0)\|\leq\theta_{2}\frac{\sqrt{5}}{2}. Thus from smoothness we also get that for any w∈W\mathbf{w}\in\mathcal{W}, we have that ∥∇F(w)∥≤52+20≤22\|\nabla F(\mathbf{w})\|\leq\frac{\sqrt{5}}{2}+20\leq 22. This proves that indeed FF is convex, 44-smooth and 2222-Lipschitz.

To next prove the statement, we begin with the following analysis for trajectory of GD over the function Fθ1,θ2F_{\theta_{1},\theta_{2}}.

Let w(1),...,w(T)\mathbf{w}^{(1)},...,\mathbf{w}^{(T)} be the sequence defined by running unprojected GD (i.e., with W=ℜd\mathcal{W}=\real^{d}) over FF with step size η≤13\eta\leq\frac{1}{3}, starting from w(1)=0\mathbf{w}^{(1)}=0 for TT iterations. Then there exist 12η≤t0≤3η,t0≤t1≤t0+7η\frac{1}{2\eta}\leq t_{0}\leq\frac{3}{\eta},t_{0}\leq t_{1}\leq t_{0}+\frac{7}{\eta} s.t.:

Lemma 3 is the most technical part of the proof, and follows a careful step-by-step analysis of the trajectory of GD over the function FF; we defer its proof to later in this section and proceed with the proof of Theorem 8. We also complement the proof with a “proof by picture” and a schematic description of the trajectory in Fig. 4

We next set out to show that if we run GD on FF with any step-size 0<η<1/30<\eta<1/3, then

and F(0,θ2)=F(θ1,θ2)=0F(0,\theta_{2})=F(\theta_{1},\theta_{2})=0. Then, as discussed at the beginning the result follows by rescaling FF to obtain a 11-Lipschitz and smooth function FF.

We thus proceed with the proof. The fact that F(0,θ2)=F(θ1,θ2)=0F(0,\theta_{2})=F(\theta_{1},\theta_{2})=0 is immediate from definitions.

Next, we bound the sizes ∥ξ0∥,∥ξ1∥,∥w(t)∥\|\xi_{0}\|,\|\xi_{1}\|,\|\mathbf{w}^{(t)}\| for the setting depicted in Lemma 3. In particular when W=ℜd\mathcal{W}=\real^{d} and no projection steps occur. One can easily observe that ∥ξ1∥,∥ξ0∥<1.5\|\xi_{1}\|,\|\xi_{0}\|<1.5. Following the trajectory path of w(t)\mathbf{w}^{(t)}, provided in Lemma 3, we can also provide a bound on w(t)\mathbf{w}^{(t)}:

if t≤t0t\leq t_{0} we have that ∥w(t)∥<∥ξ0∥≤1\|\mathbf{w}^{(t)}\|<\|\xi_{0}\|\leq 1;

if t0≤t≤t1t_{0}\leq t\leq t_{1}, then ∥w(t)∥≤∥w(t0)∥+θ2≤2\|\mathbf{w}^{(t)}\|\leq\|\mathbf{w}^{(t_{0})}\|+\theta_{2}\leq 2;

and if t≥t1t\geq t_{1} we have that ∥w(t)∥≤∥w(t1)∥+∥ξ1∥<5\|\mathbf{w}^{(t)}\|\leq\|\mathbf{w}^{(t_{1})}\|+\|\xi_{1}\|<5.

Taken together we have that ∥w(t)∥<5\|\mathbf{w}^{(t)}\|<5. As such, one can show that for any set W\mathcal{W}, not necessarily W=ℜd\mathcal{W}=\real^{d}, as long as {w:∥w∥≤5}⊆W\{\mathbf{w}:\|\mathbf{w}\|\leq 5\}\subseteq\mathcal{W} then Lemma 3 holds. Indeed, in any such case running GD or GD without projection is completely equivalent.

Finally, by simple calculation we can show that the singular values of Σ\Sigma are 3/23/2 and 1/21/2. Hence,

where ∥⋅∥\|\cdot\| denotes the spectral (operator) norm. We are now ready to show that wF\mathbf{w}_{F} converges to ξ1\xi_{1}:

Computing v(w)\mathbf{v}(\mathbf{w}), and from Eq. 16 we obtain the following expressions for the gradient

We thus obtain two boundary conditions that governs the behavior of the trajectory:

Given η\eta, we claim that Lemma 3 holds if we let t0t_{0} denote the first iterate such that w(t0)\mathbf{w}^{(t_{0})} violates Eq. 22, when running GD, and if t1t_{1} denotes the first iterate for which w(t)\mathbf{w}^{(t)} satisfies Eq. 23. We will split the proof into 3 parts, according to GD’s trajectory, i.e. t≤t0,t0<t≤t1,t>t1t\leq t_{0},t_{0}<t\leq t_{1},t>t_{1}.

There exists 12η≤t0≤3η\frac{1}{2\eta}\leq t_{0}\leq\frac{3}{\eta} such that w(t0)\mathbf{w}^{(t_{0})} is the first iterate that violates Eq. 22. Further, for any t≤t0t\leq t_{0}, w(t)\textbf{w}^{(t)} can be calculated by Eq. 17. And finally, 0.03θ2≤w1(t0)0.03\theta_{2}\leq w_{1}^{(t_{0})}.

First note that w(1)\mathbf{w}^{(1)} satisfies Eq. 22, hence t0≥1t_{0}\geq 1. Now, following the calculation of the derivative provided in, Eq. 21 we obtain the update step w(t+1)=w(t)−ηΣ(w(t)−ξ0)\mathbf{w}^{(t+1)}=\mathbf{w}^{(t)}-\eta\Sigma(\textbf{w}^{(t)}-\xi_{0}) which we can rewrite as

By induction one can show that for 2≤t≤t02\leq t\leq t_{0}:

This shows that for any t≤t0t\leq t_{0}, w(t)\mathbf{w}^{(t)} can be calculated by Eq. 17. We proceed with the proof to show that 12η≤t0≤3η\frac{1}{2\eta}\leq t_{0}\leq\frac{3}{\eta}. Considering the singular value decomposition of Σ\Sigma one can show that:

Plugging this in Eq. 25, we obtain that for any t≤t0t\leq t_{0}:

To obtain the lower bound on t0t_{0} observe that t0t_{0} satisfies:

Plugging Eq. 27 and dividing by θ2/2\theta_{2}/2 we obtain that:

which for η<1/3\eta<1/3, can be rewritten as:

Next we provide an upper bound for t0t_{0}. Again, for every t<t0t<t_{0} Eq. 22 is satisfied, which, as we already saw (recall Eq. 28) means that for every t<t0t<t_{0}:

Using the inequality (1+2/n)n≥3(1+2/n)^{n}\geq 3, we obtain

In particular for t≥2η+1t\geq\frac{2}{\eta}+1 Eq. 29 is violated and hence t0≤3ηt_{0}\leq\frac{3}{\eta}.

Finally, we provide a lower bound for w1(t0)w_{1}^{(t_{0})}. Namely, we want to show that w1(t0)≥0.04θ2w_{1}^{(t_{0})}\geq 0.04\theta_{2}. First, by rearranging terms at Eq. 28 we obtain that t0t_{0} is sufficiently large so that (1−η2)t0−1≥3(1−3η2)t0−1\left(1-\frac{\eta}{2}\right)^{t_{0}-1}\geq 3\left(1-\frac{3\eta}{2}\right)^{t_{0}-1}. Again applying the formula for w(t0)\mathbf{w}^{(t_{0})} in Eq. 27 we have that:

This concludes the analysis of the first phase of the trajectory. ∎

We next move on to the case t0≤t≤t1t_{0}\leq t\leq t_{1}.

Let t0≤t≤t1t_{0}\leq t\leq t_{1}. Then w(t)\textbf{w}^{(t)} can be calculated by Eq. 18. Moreover t1≤t0+7ηt_{1}\leq t_{0}+\frac{7}{\eta}.

We again apply the calculation of the derivative provided in Eq. 21 at t0≤t≤t1t_{0}\leq t\leq t_{1} and obtain :

Note that this proves that w1(t)=w1(t0)w_{1}^{(t)}=w_{1}^{(t_{0})}. For w2(t)w_{2}^{(t)}, we have that

which leads by induction to the following:

This shows that for any t0≤t≤t1t_{0}\leq t\leq t_{1} Eq. 18 holds.

We next bound t1t_{1}. Recall that t1t_{1} is defined to be the first iterate for which Eq. 23 is satisfied. Let us show that for any tt s.t t0+7η<tt_{0}+\frac{7}{\eta}<t holds, Eq. 23 is satisfied and hence t1≤t0+7/ηt_{1}\leq t_{0}+7/\eta. Equivalently we will show that for t>t0+7/ηt>t_{0}+7/\eta, the following equation holds:

Next assume that t≥t0+7ηt\geq t_{0}+\frac{7}{\eta}, then

We now move to the last phase of the trajectory. ∎

Let t≥t1t\geq t_{1}, then w(t)\textbf{w}^{(t)} can be calculated by Eq. 19.

Let t≥t1t\geq t_{1} be such that Eq. 23 holds. Then again, we consider the formula of the derivative ∇F(w)\nabla F(\mathbf{w}) (see Eq. 21) and have that

We obtain the following recursive formula for tt if Eq. 23 holds for all t1≤t′≤tt_{1}\leq t^{\prime}\leq t:

This shows that w(t)\mathbf{w}^{(t)} can be calculated via Eq. 19. It remains thus to show that for any t≥t1t\geq t_{1}, Eq. 23 always holds. We prove this by induction. Note that for the base case, this follows from the definition of t1t_{1}. We can thus assume by induction hypothesis that w(t)\textbf{w}^{(t)} satisfies Eq. 33, and we want to prove that

We will denote also v=(11/2)\mathbf{v}=\left(\begin{smallmatrix}1\\ 1/2\end{smallmatrix}\right) Then using Eq. 26 and Eq. 33 we have that

where the last inequality is true since αt≤βt\alpha_{t}\leq\beta_{t} for η<1/3\eta<1/3 and we also have that w2(t1)<θ2\mathbf{w}^{(t_{1})}_{2}<\theta_{2}. This concludes the proof of Lemma 3. ∎

B.3 Proof of Theorem 2

For a vector w∈W⊆ℜ2\mathbf{w}\in\mathcal{W}\subseteq\real^{2} let us denote by w⊥:=(w2,−w1)\mathbf{w}^{\perp}:=(w_{2},-w_{1}). In particular, we have that w⊤w⊥=0\mathbf{w}^{\top}\mathbf{w}^{\perp}=0 and ∥w∥=∥w⊥∥\|\mathbf{w}\|=\|\mathbf{w}^{\perp}\|. Our proof relies on the following claim which we prove at the end of this section.

Let rr be an admissible regularizer over 2. There are two points w1\mathbf{w}_{1} and w2\mathbf{w}_{2} in the unit ball such that for some −0.005∥w1∥<δ<0.005∥w1∥-0.005\|\mathbf{w}_{1}\|<\delta<0.005\|\mathbf{w}_{1}\| we have

and r(w1)≠r(w2).r(\mathbf{w}_{1})\neq r(\mathbf{w}_{2}).

Let w1\mathbf{w}_{1} and w2\mathbf{w}_{2} be as in 8.4. First, because GD is invariant to rotations, we can assume w.l.o.g that w1=∥w1∥⋅e2\mathbf{w}_{1}=\|\mathbf{w}_{1}\|\cdot\textbf{e}_{2}, and hence w2=(1,δ)∥w1∥\mathbf{w}_{2}=(1,\delta)\|\mathbf{w}_{1}\|. We now set cr=12∣r(w1)−r(w2)∣c_{r}=\frac{1}{2}|r(\mathbf{w}_{1})-r(\mathbf{w}_{2})|. To choose Tr,DrT_{r},D_{r} and wr\mathbf{w}_{r} we now look at two cases: if r(w1)>r(w2)r(\mathbf{w}_{1})>r(\mathbf{w}_{2}) and if r(w1)<r(w2)r(\mathbf{w}_{1})<r(\mathbf{w}_{2}).

First suppose r(w1)>r(w2)r(\mathbf{w}_{1})>r(\mathbf{w}_{2}). By upper-semicontinuity there exists a neighborhood δ1\delta_{1} such that for every w\mathbf{w} s.t. ∥w−w1∥<δ1\|\mathbf{w}-\mathbf{w}_{1}\|<\delta_{1}, satisfies r(w)>r(w2)+crr(\mathbf{w})>r(\mathbf{w}_{2})+c_{r}. We thus set Tr=2640ηδ1T_{r}=\frac{2640}{\eta\delta_{1}}, and wr=w2\mathbf{w}_{r}=\mathbf{w}_{2}. We are left with choosing DrD_{r}. Note that in this case, the regularizer prefers a point with large Euclidean norm over a point with smaller Euclidean norm. Thus, to show it is not the implicit bias of SGD we only need to construct a distribution that is biased towards smaller Euclidean norms: Indeed, consider the set [w1,w2]={αw1+(1−α)w2:0≤α≤1}[\mathbf{w}_{1},\mathbf{w}_{2}]=\{\alpha\mathbf{w}_{1}+(1-\alpha)\mathbf{w}_{2}:0\leq\alpha\leq 1\} we set

Our distribution DrD_{r} is defined to choose ff w.p. 11. Having defined Tr,cr,wrT_{r},c_{r},\mathbf{w}_{r} and DrD_{r} we now set out to prove the result. A simple analysis of the update step of SGD shows that for η<1\eta<1 we have for every w(t)\textbf{w}^{(t)} that w(t+1)=∑i=0t−1(1−η2640)iη2640w1\mathbf{w}^{(t+1)}=\sum_{i=0}^{t-1}(1-\frac{\eta}{2640})^{i}\frac{\eta}{2640}\mathbf{w}_{1}. Hence,

By property of δ1\delta_{1} we have that r(wS)>r(w2)+crr(\mathbf{w}_{S})>r(\mathbf{w}_{2})+c_{r}. But because w2\mathbf{w}_{2} is optimal (i.e. attain zero on ff), we also have FS(wS)>F(wr)F_{S}(\mathbf{w}_{S})>F(\mathbf{w}_{r}). This proves the case r(w1)>r(w2)r(\mathbf{w}_{1})>r(\mathbf{w}_{2}).

Next, assume that r(w1)<r(w2)r(\mathbf{w}_{1})<r(\mathbf{w}_{2}). As before we have a neighborhood δ2\delta_{2} such that if ∥w−w2∥<δ2\|\mathbf{w}-\mathbf{w}_{2}\|<\delta_{2} then we are guaranteed that r(w)>r(w1)+crr(\mathbf{w})>r(\mathbf{w}_{1})+c_{r}. We choose then Tr=1δ2ηT_{r}=\frac{1}{\delta_{2}\eta} and wr=w1\mathbf{w}_{r}=\mathbf{w}_{1}. To define DrD_{r}, we now use the function Fθ1,θ2F_{\theta_{1},\theta_{2}} from Theorem 8. We assume w.l.o.g that δ>0\delta>0, if this is not the case we can use that function Fθ1,θ2(w)=Fθ1,θ2(−w)F_{\theta_{1},\theta_{2}}(\mathbf{w})=F_{\theta_{1},\theta_{2}}(-\mathbf{w}). Let us set θ2=∥w1∥\theta_{2}=\|\mathbf{w}_{1}\| and θ1=∣δ∣∥w1∥<0.05θ2\theta_{1}=|\delta|\|\mathbf{w}_{1}\|<0.05\theta_{2}. Again, we consider a deterministic distribution DrD_{r} that chooses Fθ1,θ2F_{\theta_{1},\theta_{2}} w.p. 11. Recall that we assume that w1=∥w1∥e2\mathbf{w}_{1}=\|\mathbf{w}_{1}\|\textbf{e}_{2}, hence w1=(0,θ2)\mathbf{w}_{1}=(0,\theta_{2}) and w2=(θ1,θ2)\mathbf{w}_{2}=(\theta_{1},\theta_{2}). Hence, by Theorem 8, if we run over a sample of size Tr>1δ2ηT_{r}>\frac{1}{\delta_{2}\eta}, we obtain that

In particular r(wS)>r(w1)+crr(\mathbf{w}_{S})>r(\mathbf{w}_{1})+c_{r}. But again FS(wS)≥F(w1)F_{S}(\mathbf{w}_{S})\geq F(\mathbf{w}_{1}), because w1\mathbf{w}_{1} is optimal.∎

First, let us assume that there are u,v\mathbf{u},\mathbf{v} such that ∥u∥2,∥v∥2=a\|\mathbf{u}\|_{2},\|\mathbf{v}\|_{2}=a and r(u)≠r(v)r(\mathbf{u})\neq r(\mathbf{v}) (at the end we will show that for admissible regularizer we always have such two points). We will also assume that ∥u−v∥2≤10−9⋅a2\|\mathbf{u}-\mathbf{v}\|_{2}\leq 10^{-9}\cdot a^{2}. If this was not the case we can cover the sphere {w:∥w∥2=a}\{\mathbf{w}:\|\mathbf{w}\|_{2}=a\} with balls with radius 10−9⋅a210^{-9}\cdot a^{2}, and have a constant function at every ball, concluding that rr is constant on the sphere (which contradicts our assumption). Next, we also assume that ∣u2∣>12a|u_{2}|>\frac{1}{2}a, (either ∣u1∣>12a|u_{1}|>\frac{1}{2}a or ∣u2∣>12a|u_{2}|>\frac{1}{2}a, and the proof is similar in both cases so we will analyse only the later case). Then, since u12+u22=v12+v22=a2u_{1}^{2}+u_{2}^{2}=v_{1}^{2}+v_{2}^{2}=a^{2}, one can show that

So, by choosing δ=u1−v1v2+u2=v2−u2u1+v1\delta=\frac{u_{1}-v_{1}}{v_{2}+u_{2}}=\frac{v_{2}-u_{2}}{u_{1}+v_{1}} we have that:

Using the first equality we can show that u1−δu2=v1+δv2u_{1}-\delta u_{2}=v_{1}+\delta v_{2} Similarly we can show that u2+δu1=v2−δv1.u_{2}+\delta u_{1}=v_{2}-\delta v_{1}. Taken together we obtain that

In particular r(u+δu⊥)=r(v−δv⊥)r(\mathbf{u}+\delta\mathbf{u}^{\perp})=r(\mathbf{v}-\delta\mathbf{v}^{\perp}). Since r(u)≠r(v)r(\mathbf{u})\neq r(\mathbf{v}), we either have r(u)≠r(u+δu⊥)r(\mathbf{u})\neq r(\mathbf{u}+\delta\mathbf{u}^{\perp}), or r(v)≠r(v−δv⊥)r(\mathbf{v})\neq r(\mathbf{v}-\delta\mathbf{v}^{\perp}). In the former case we choose w1=u\mathbf{w}_{1}=\mathbf{u}, whereas in the latter case we choose w1=v\mathbf{w}_{1}=\mathbf{v}.

Finally, so far we assume we can find two points on a sphere with different regularization penalty. Next, we assume that on every sphere rr is constant. Assume also to the contrary that for every −0.0025∥w∥<δ<0.0025∥w∥-0.0025\|\mathbf{w}\|<\delta<0.0025\|\mathbf{w}\|:

It is not hard to show that in this case rr is constant everywhere except maybe 00, making it in-admissible. ∎

Appendix C Proofs II: Distribution Dependent Regularization

We start this section by proving the existence of the auxiliary construction in Lemma 1.

See 1 Before we continue with the proof, notice the following immediate corollary of Lemma 1:

For every constants c,ρ>0c,\rho>0, there is a distribution DD over a pair of convex functions {f(w;1),f(w;−1)}\{f(\mathbf{w};1),f(\mathbf{w};-1)\}, such that f(w;z)f(\mathbf{w};z) is a ρ\rho-Lipschitz convex function in 2 and, for every c<η<1c<\eta<1 denote vz,η=−η∇f(0;z).\mathbf{v}_{z,\eta}=-\eta\nabla f(0;z). Then the following holds:

For every z∈{−1,1}z\in\{-1,1\} we have that f(vz,η;z)=f(v−z,η;z)f(\mathbf{v}_{z,\eta};z)=f(\mathbf{v}_{-z,\eta};z);

For every z∈{−1,1}z\in\{-1,1\}, ∇f(vz,η,z)=∇f(v−z,η,z)=0\nabla f(v_{z,\eta},z)=\nabla f(v_{-z,\eta},z)=0;

∥vz,η−v−z,η∥>ρη4\|\mathbf{v}_{z,\eta}-\mathbf{v}_{-z,\eta}\|>\frac{\rho\eta}{4}.

To derive Corollary 8.1 from Lemma 1, take a distribution that w.p. 1/21/2 picks ρf(w;1)\rho f(\mathbf{w};1) from Lemma 1, and with probability 1/21/2 picks ρf(w;−1)\rho f(\mathbf{w};-1). One can observe that the result holds.

Let us define f(w;±1)f(\mathbf{w};\pm 1) as follows. Denote v1=−(14,34)\mathbf{v}_{1}=-(\tfrac{1}{4},\tfrac{3}{4}), v−1=−34e2\mathbf{v}_{-1}=-\tfrac{3}{4}\textbf{e}_{2} and let

It is easy to check that ∇f(0;1)=−v1\nabla f(0;1)=-\mathbf{v}_{1} and that ∇f(0;−1)=−v−1\nabla f(0;-1)=-\mathbf{v}_{-1}, and that ∥v1−v−1∥≥14\|\mathbf{v}_{1}-\mathbf{v}_{-1}\|\geq\tfrac{1}{4}. Next, note that if η>c\eta>c then

Similarly, f(v−1,η;−1)=0=f(v1,η;−1)f(\mathbf{v}_{-1,\eta};-1)=0=f(\mathbf{v}_{1,\eta};-1). Note that, because f≥0f\geq 0 the above also proves that ∇f(vz,η,z)=∇f(v−z,η,z)=0\nabla f(v_{z,\eta},z)=\nabla f(v_{-z,\eta},z)=0. ∎

C.2 Proof of Theorem 3

Theorem 3 is an immediate corollary of the following theorem:

Let W={w:∥w∥≤1}\mathcal{W}=\{\mathbf{w}:\|\mathbf{w}\|\leq 1\}. For every TT and constant C>2C>2, there exists a distribution DD over 11-Lipschitz convex functions over d where d=10⋅Td=10\cdot T such that if we run SGD with step size 1/T2<η≤C/T1/T^{2}<\eta\leq C/\sqrt{T}, the following holds: for any regularizer rr, w.p. at least 1/101/10 over the sample SS there is wr∈W\mathbf{w}_{r}\in\mathcal{W} such that

To see how Theorem 3 follows, Let w∗\mathbf{w}^{*} be the minimizer of r(w)r(\mathbf{w}) amongst all w∈W\mathbf{w}\in\mathcal{W} with FS(w)≤FS(wS)F_{S}(\mathbf{w})\leq F_{S}(\mathbf{w}_{S}) then by strong convexity

Now if ∥wS−w∗∥>14⋅∥wr−wS∥\|\mathbf{w}_{S}-\mathbf{w}^{*}\|>\frac{1}{4}\cdot\|\mathbf{w}_{r}-\mathbf{w}_{S}\| we are done. If not, then

which leads to ∥wr−w∗∥≥34⋅∥wr−wS∥\|\mathbf{w}_{r}-\mathbf{w}^{*}\|\geq\frac{3}{4}\cdot\|\mathbf{w}_{r}-\mathbf{w}_{S}\|. Using this, we get by strong convexity:

Choose d=10⋅Td=10\cdot T. Let D0D_{0} be the distribution over convex functions in 2 whose existence follows from Corollary 8.1 with c<1/(4T2)c<1/(4T^{2}) and ρ=2/C\rho=2/C.

We now define a distribution over convex functions in d as follows: at each iteration pick uniformly z\mathbf{z} from the set {z=(z;i):z∈{−1,1},i=1,...,5T}\{\mathbf{z}=(z;i):z\in\{-1,1\},i=1,...,5T\} and let:

To prove the result we proceed as follows: given a sample SS drawn i.i.d from the distribution DD, let us call a sample point zt=(zt,it)\mathbf{z}_{t}=(z_{t},i_{t}) good if t<T/2t<T/2 and if iti_{t} appears only once in the sample (i.e. for any t′≤Tt^{\prime}\leq T, it′≠iti_{t^{\prime}}\neq i_{t}). Denote by SgS_{g} the set of good samples.

Next for a sample SS define a sample S′={z1′,…,zT′}S^{\prime}=\{\mathbf{z}^{\prime}_{1},\ldots,\mathbf{z}^{\prime}_{T}\} to be a sample that differ from SS only at good sample points, and for every good sample point if zt=(zt,it)\mathbf{z}_{t}=(z_{t},i_{t}) then zt′=(zt′,it)=(−zt,it)\mathbf{z}^{\prime}_{t}=(z^{\prime}_{t},i_{t})=(-z_{t},i_{t}). It is not hard to see that SS and S′S^{\prime} are identically distributed (though dependent).

Now first, we want to show that FS(wS)=FS(wS′)F_{S}(\mathbf{w}_{S})=F_{S}(\mathbf{w}_{S^{\prime}}) w.p. 11 and that w.p. 0.20.2 we have that

If we can show that, then we are done. Indeed, by symmetry, we have with probability 1/21/2 r(wS′)≤r(wS)r(\mathbf{w}_{S^{\prime}})\leq r(\mathbf{w}_{S}). We can then take wr=wS′\mathbf{w}_{r}=\mathbf{w}_{S^{\prime}}. Taken together we have that with probability 0.10.1 all the requirements of the theorem hold.

FS(wS)=FS(wS′)F_{S}(\mathbf{w}_{S})=F_{S}(\mathbf{w}_{S^{\prime}})

Fix a sample SS. To avoid cumbersome notations, and because SS, S′S^{\prime} are fixed, we will denote here wS=wˉ\mathbf{w}_{S}=\bar{\mathbf{w}} and wS′=wˉ′\mathbf{w}_{S^{\prime}}=\bar{\mathbf{w}}^{\prime}. Next, for a vector w\mathbf{w} and coordinate iti_{t} let us also denote w(it)=(w2it−1,w2it)∈ℜ2\mathbf{w}(i_{t})=(w_{2i_{t}-1},w_{2i_{t}})\in\real^{2}.

We first analyze the trajectory of SGD over a sequence {z1,…,zt}\{\mathbf{z}_{1},\ldots,\mathbf{z}_{t}\}. One can prove, by induction, that at step tt the algorithm chooses point w(t)\mathbf{w}^{(t)} as follows:

Indeed, for t=1t=1 this follows from initialization at 00. For t≥1t\geq 1 we have that

Now first assume that for some q≤t−1q\leq t-1, we have that it=ipi_{t}=i_{p}, then by assumption we have that w(t)(i)=−η∇f(0,zq)=vzq,η\mathbf{w}^{(t)}(i)=-\eta\nabla f(0,z_{q})=v_{z_{q},\eta} in the notation of Corollary 8.1. Also by Corollary 8.1 we have that ∇f(w(t),zq)=∇f(w(t)(it),zq)=0\nabla\mathbf{f}(\mathbf{w}^{(t)},\mathbf{z}_{q})=\nabla f(w^{(t)}(i_{t}),z_{q})=0.

Next, if no such pp exists we have by induction hypothesis that w(t)(it)=0w^{(t)}(i_{t})=0, the result will now clearly follow if we can show that

But since f(w,zt)\mathbf{f}(\mathbf{w},\mathbf{z}_{t}) depends only on the tuple in iti_{t} we have that w(t)⊥∇f(w(t),zt)=f(0,zt)w^{(t)}\perp\nabla\mathbf{f}(\mathbf{w}^{(t)},z_{t})=f(0,z_{t}) and we obtain that

Next, the value f(w;zt)\mathbf{f}(\mathbf{w};\mathbf{z}_{t}) depends only on w(it)\mathbf{w}(i_{t}) (i.e. independent of the other coordinates). Also, for any ii and tt, we have that w(t)(i)\mathbf{w}^{(t)}(i) depends only on zt′\mathbf{z}_{t^{\prime}}’s such that t′≤tt^{\prime}\leq t and it′=ii_{t^{\prime}}=i. In particular, for any zt∉Sg\mathbf{z}_{t}\notin S_{g} we have that wˉ(it)=wˉ′(it)\bar{\mathbf{w}}(i_{t})=\bar{\mathbf{w}}^{\prime}(i_{t}), hence

Next, we want to show that for a good coordinate zt\mathbf{z}_{t} we also have that f(wˉ;zt)=f(wˉ′;zt)f(\bar{\mathbf{w}};z_{t})=f(\bar{\mathbf{w}}^{\prime};z_{t}). For this, as in Corollary 8.1 let us denote for any η\eta and zz by vz,η=−η∇f(0;z)∈ℜ2\mathbf{v}_{z,\eta}=-\eta\nabla f(\textbf{0};z)\in\real^{2}. Then, for any good coordinate we can show that

where η′=T−tTη>12η>c\eta^{\prime}=\frac{T-t}{T}\eta>\frac{1}{2}\eta>c. Indeed, recall that we chose c=1/(4T2)c=1/(4T^{2}). Thus, from Corollary 8.1 we obtain that f(wˉ(it),zt)=f(wˉ′(it),zt)f(\bar{\mathbf{w}}(i_{t}),z_{t})=f(\bar{\mathbf{w}}^{\prime}(i_{t}),z_{t}) and in particular

Again we will use the notation wˉ=wS\bar{\mathbf{w}}=\mathbf{w}_{S} and wˉ′=wS′\bar{\mathbf{w}}^{\prime}=\mathbf{w}_{S^{\prime}}. Note that by Corollary 8.1, as well as Eqs. 35 and 36 we have that

for any good sample point zt\mathbf{z}_{t}. Now:

C.3 Proof of Theorem 4

Theorem 4 follows from the following refined statement:

Let W={w:∥w∥≤1}\mathcal{W}=\{\mathbf{w}:\|\mathbf{w}\|\leq 1\}. For every TT and constant C>2C>2, there exists a distribution DD over 11-Lipschitz convex functions over d where d=105⋅Td=10^{5}\cdot T such that if we run SGD with step size 1/T2<η<C/T1/T^{2}<\eta<C/\sqrt{T}, the following holds: for any regularizer rr, w.p. at least 1/101/10 over the sample SS there is a set WS⊆W\mathcal{W}_{S}\subseteq\mathcal{W} such that

Moreover WS\mathcal{W}_{S} is (2T,10−4TηC)(2T,10^{-4}\frac{\sqrt{T}\eta}{C}) statistically complex.

Note that since WS⊆KS,r(wS)\mathcal{W}_{S}\subseteq K_{S,r}(\mathbf{w}_{S}) we derive as a corollary Theorem 4

Again, let D0D_{0} be the distribution from Corollary 8.1 with c>1kT2c>\frac{1}{kT^{2}}, for some constant kk (to be determined later) and ρ=C/2\rho=C/2. We define a distribution DD over d, where we let d=100T⋅kd=100T\cdot k. as follows: pick kk r.v {z(1),...,z(k)}∈{−1,1}\{z^{(1)},...,z^{(k)}\}\in\{-1,1\} and kk distinct coordinates {i(1),…,i(k)}∈[d/2]\{i^{(1)},\ldots,i^{(k)}\}\in[d/2] (chosen uniformly from all possible distinct kk-tuples), set

Analogously to Theorem 9 the statement holds once we prove the following two facts: first we show that for every wS′∈WS\mathbf{w}_{S^{\prime}}\in\mathcal{W}_{S} we have that FS(wS)=FS′(wS′)F_{S}(\mathbf{w}_{S})=F_{S^{\prime}}(\mathbf{w}_{S^{\prime}}) and secondly, we show that WS\mathcal{W}_{S} is (Tk62,30−3kCηT)(\frac{Tk}{62},\frac{30^{-3}}{kC}\eta\sqrt{T})- statistically complex (claims 10.1 and 10.2 respectively). Thus, by setting k=124k=124 we obtain the desired result.

For every wS′∈WS\mathbf{w}_{S^{\prime}}\in\mathcal{W}_{S} we have that FS(wS)=FS′(wS′)F_{S}(\mathbf{w}_{S})=F_{S^{\prime}}(\mathbf{w}_{S^{\prime}}).

The proof is very similar to the analog case in Theorem 9, and by a similar argument (which we omit) we can show that for every tt

Next we prove the statistical complexity of WS\mathcal{W}_{S}:

The set WS\mathcal{W}_{S} is (Tk62,ηT303k)(\frac{Tk}{62},\frac{\eta\sqrt{T}}{30^{3}k})–statistically complex.

One can show that if we randomly pick SS and then pick uniformly an elements from S′∈S(S)S^{\prime}\in\mathcal{S}(S) then SS and S′S^{\prime} are identically distributed. As a corollary if we pick a random sample SS then w.p. 0.5 we have that

We next argue that any set A⊆{wS′:S′∈S(S)}A\subseteq\{\mathbf{w}_{S^{\prime}}:S^{\prime}\in\mathcal{S}(S)\} such that ∣A∣>∣S(S)∣2|A|>\frac{|\mathcal{S}(S)|}{2}, then AA is (Tk62,30−3kηT)(\frac{Tk}{62},\frac{30^{-3}}{k}\eta\sqrt{T})- statistically complex

Indeed, fix SS. Similar to the argument in 9.2, we have that with probability 0.20.2, that ∣Sg∣>T⋅k/7|S_{g}|>T\cdot k/7. We claim that if this event occurred then every subset of size ∣S(S)∣/2|\mathcal{S}(S)|/2 will be statistically complex.

It can be seen from Eq. 38 and Eq. 39 and Corollary 8.1 that ∥v1,ηt′−v−1,ηt′∥>T−t+1kTηρ/4>ηρ12k\|\mathbf{v}_{1,\eta^{\prime}_{t}}-\mathbf{v}_{-1,\eta^{\prime}_{t}}\|>\frac{T-t+1}{kT}\eta\rho/4>\frac{\eta\rho}{12k}, hence we can define u\mathbf{u} to be gg-Lipschitz where

Combining this with Corollary 6.1, we get that there exists a distribution DD over 11-Lipschitz convex functions such that, given m=∣Sg∣/6>Tk/62m=|S_{g}|/6>Tk/62 elements from DD, with probability 1/41/4 there is w∈A\mathbf{w}\in A such that

Appendix D Proof of Theorem 5

We begin the construction by the definition of the distribution DD:

Note that by symmetry F=Ez[f(w,z)]=0F=E_{z}[f(\mathbf{w},z)]=0, and indeed in expectation this is a convex function.

For the proof we will define two “good" events, set c=ηT=Θ(1)c=\eta\sqrt{T}=\Theta(1), and let:

where we write wS=(w1S,w2S)\mathbf{w}_{S}=(w_{1}^{S},w_{2}^{S}), and β\beta is a parameter sufficiently small so that.

Note that β\beta depends only on c=Θ(1)c=\Theta(1).

Let us denote by E(β)=E1∩E2(β)E(\beta)=E_{1}\cap E_{2}(\beta), then we will rely on the following claim that lower bounds the probability of the event EE. We deter the proof of the claim to the end of the section and continue with the proof:

Let E(β)=E1∩E2(β)E(\beta)=E_{1}\cap E_{2}(\beta) and suppose that z∼Dz\sim D then, for our choice of β\beta, and sufficiently large TT

Taking 10.3 into account, Fix a random sample SS. Let β\beta and TT be as in 10.3 and assume that event E:=E(β)E:=E(\beta) occurred. Throughout, let us denote c=ηTc=\eta\sqrt{T}.

To show that the statement holds, we define w0∗=(0,wˉ2S)\mathbf{w}^{*}_{0}=(0,\bar{w}_{2}^{S}) and w−1∗=(−w1S,wˉ2S)\mathbf{w}^{*}_{-1}=(-w^{S}_{1},\bar{w}^{S}_{2}). We will show that for one of these candidate vectors the statement holds.

First we want to show that if η=Θ(1/T)\eta=\Theta(1/\sqrt{T}), then ∥wS−w0∗∥=Θ(1)\|\mathbf{w}_{S}-\mathbf{w}^{*}_{0}\|=\Theta(1). Indeed, note that since E2(β)E_{2}(\beta) occurred

Similarly ∥wS−w−1∗∥=Θ(1)\|\mathbf{w}_{S}-\mathbf{w}^{*}_{-1}\|=\Theta(1).

Next we want to show that FS(w0∗)≤F(wˉ)F_{S}(\mathbf{w}^{*}_{0})\leq F(\bar{\mathbf{w}}), or FS(w−1∗)≤F(wˉ)F_{S}(\mathbf{w}^{*}_{-1})\leq F(\bar{\mathbf{w}}). Note that for every w\mathbf{w} such that ∣w2∣≥14|w_{2}|\geq\frac{1}{4}, for every z={1,2,3,4}z=\{1,2,3,4\}, f(w;z)f(\mathbf{w};z) depends only on the second coordinate, namely w2w_{2}. In particular, if ∣w2S∣≥14|w^{S}_{2}|\geq\frac{1}{4} we obtain by the construction that FS(wS)=FS(w0∗)=FS(w−1∗)F_{S}(\mathbf{w}_{S})=F_{S}(\mathbf{w}^{*}_{0})=F_{S}(\mathbf{w}^{*}_{-1}). Thus, due to event E1E_{1} we obtain the desired result.

Finally, we want to show min⁡{r(w0∗),r(w−1∗)}<r(wS)\min\{r(\mathbf{w}^{*}_{0}),r(\mathbf{w}^{*}_{-1})\}<r(\mathbf{w}_{S}), w.p probability at least 1/41/4. First, assume that with probability 1/21/2 we have that r(w−1∗)≠r(wS)r(\mathbf{w}^{*}_{-1})\neq r(\mathbf{w}_{S}). By symmetry one can show that in this case we have that r(w−1∗)<r(wS)r(\mathbf{w}^{*}_{-1})<r(\mathbf{w}_{S}) with probability 1/21/2. Next, assume that r(w−1∗)=r(wS)r(\mathbf{w}^{*}_{-1})=r(\mathbf{w}_{S}) with probability at least 1/21/2. In this case, we obtain that:

We will bound each event E1,E2E_{1},E_{2} separately. We begin by bounding the event E1E_{1}:

where Φ\Phi is the CDF of a mean zero unit variate normally distributed random variable, and erf is the error function, namely erf(x)=1−2Φ(−x)\textrm{erf}\left(x\right)=1-2\Phi(-x).

Note that if η=O(1T)\eta=O(\frac{1}{\sqrt{T}}), given the above bound, the probability that ∣w2S∣>14|w_{2}^{S}|>\frac{1}{4} is a constant.

and one can observe that ∂f(w(t),zt)∂w2\frac{\partial f(\textbf{w}^{(t)},z_{t})}{\partial w_{2}} equals 11 w.p. 1/41/4, −1-1, w.p 1/41/4 and 00 w.p 1/21/2, independently of zt′z_{t^{\prime}} for t′≠tt^{\prime}\neq t.

Hence, applying Lemma 2, with c=ηTc=\eta\sqrt{T}, k=1k=1 and a=504ca=\frac{\sqrt{50}}{4c} we obtain that

Let us consider a random sample S′={z1′,…,zT′}S^{\prime}=\{z^{\prime}_{1},\ldots,z^{\prime}_{T}\} that is generated by picking a random sample S=z1,…,zTS=z_{1},\ldots,z_{T} i.i.d distributed according to DD, and then for every ztz_{t} such that zt∈{1,2}z_{t}\in\{1,2\} with probability half we let zt′=1z^{\prime}_{t}=1 and with probability half we let zt′=2z^{\prime}_{t}=2. It can be seen that S′S^{\prime} is an i.i.d sequence drawn according to the distribution DD.

Next, let us denote c=ηTc=\eta\sqrt{T}, and a parameter α\alpha (to be chosen later). Define the event

For our choice of β>0\beta>0 we claim that for every α>0\alpha>0

Indeed, Given SS, let τ=min⁡{t:w(t+1)∉A}\tau=\min\{t:\mathbf{w}^{(t+1)}\notin A\} and set Sτ′={z1′,…,zτ′}S^{\prime}_{\tau}=\{z^{\prime}_{1},\ldots,z^{\prime}_{\tau}\} and denote

where xtx_{t} are i.i.d random variables such that w.p. 1/41/4 equals 11, w.p. 1/41/4 equals −1-1 and w.p. 1/21/2 equals 00. Due to symmetry we have that:

Thus applying again Lemma 2 with c=Tηc=\sqrt{T}\eta, I={1,…,T/k}I=\{1,\ldots,T/k\} with, k=α⋅c3/50k=\alpha\cdot c^{3}/50 and a=βa=\beta, we obtain the desired result.

Next, we want to bound P(Eτ)P(E_{\tau}). Now assume that for some t<T/(α⋅c)t<T/(\alpha\cdot c), we have that w(t)∉A\textbf{w}^{(t)}\notin A.

Let Tα=T/(α⋅c)T_{\alpha}=T/(\alpha\cdot c) and let Z1,…,ZTαZ_{1},\ldots,Z_{T_{\alpha}}, be i.i.d copies of a random variable such that P(Zt=1)=P(Zt=−1)=1/2P(Z_{t}=1)=P(Z_{t}=-1)=1/2. Then

where the last inequality is by symmetry (reflection principle). Next, by applying Hoeffding’s inequality we obtain that

Choosing β\beta sufficiently small, one can see that for large enough α\alpha and TT we obtain the desired result.