Risk and parameter convergence of logistic regression

Ziwei Ji, Matus Telgarsky

Introduction

Despite the simplicity of this setting, a general characterization of the gradient descent path has escaped the literature for a variety of reasons. It is possible for the data to be configured so that Rlog⁡\mathcal{R}_{\log} is strongly convex, in which case standard convex optimization tools grant the existence of a unique bounded optimum, and moreover a rate at which gradient descent iterates converge to it. It is also possible, however, that data is linearly separable, in which case Rlog⁡\mathcal{R}_{\log} has an infimum of 0 despite being positive everywhere; the optimum is off at infinity, and convergence analyses operate by establishing a maximum margin property of the normalized iterates \nicefracwj∣wj∣\nicefrac{{w_{j}}}{{|w_{j}|}} (Soudry et al., 2017), just as in the analysis of AdaBoost (Schapire and Freund, 2012; Telgarsky, 2013).

In general, data can fail to induce a strongly convex risk or a linearly separable problem. Despite this, there is still a unique characterization of the gradient descent path. Specifically, gradient descent is biased to follow an optimal ray {vˉ+r⋅uˉ : r≥0}\mathinner{\left\{\bar{v}+r\cdot\bar{u}\ \mathrel{\mathop{\ordinarycolon}}\ r\geq 0\right\}}, which is constructed as follows. First, as detailed in Section 2, the data uniquely determines (via a greedy procedure) a linearly separable subset, with a corresponding maximum margin predictor uˉ\bar{u}; gradient descent converges to uˉ\bar{u} in direction, meaning \nicefracwj∣wj∣→uˉ\nicefrac{{w_{j}}}{{|w_{j}|}}\to\bar{u}. The remaining data span a space SS; the empirical risk of the remaining data is strongly convex over bounded subsets of SS, and possesses a unique optimum vˉ\bar{v}, to which the projected gradient descent iterates converge, meaning ΠSwj→vˉ\Pi_{S}w_{j}\to\bar{v}.

(Convergence in risk.) For any step sizes ηj≤1\eta_{j}\leq 1 and any t≥1t\geq 1,

where O(⋅)\mathcal{O}(\cdot) hides problem-dependent constants.

(Convergence in parameters; implicit bias and regularization.) The data uniquely determines a subspace SS and a vector vˉ∈S\bar{v}\in S, such that if ηj:=1/j+1\eta_{j}\mathrel{\mathop{\ordinarycolon}}=1/\sqrt{j+1} and t2=Ω(nln⁡(t))t^{2}=\Omega(n\ln(t)), letting ΠS\Pi_{S} denote orthogonal projection onto SS and wˉt:=arg min⁡{R(w):∣w∣≤∣wt∣}\bar{w}_{t}\mathrel{\mathop{\ordinarycolon}}=\operatorname*{arg\,min}\mathinner{\left\{\mathcal{R}(w)\mathrel{\mathop{\ordinarycolon}}|w|\leq|w_{t}|\right\}} denote the solution to the constrained optimization problem, then

If there are examples outside SS, their projection onto S⊥S^{\perp} is linearly separable with maximum margin predictor uˉ∈S⊥\bar{u}\in S^{\perp}, and

In particular, \nicefracwt∣wt∣→uˉ\nicefrac{{w_{t}}}{{|w_{t}|}}\to\bar{u} and ΠSwt→vˉ\Pi_{S}w_{t}\to\bar{v}.

This theorem captures implicit bias by showing that gradient descent follows the unique ray {vˉ+r⋅uˉ:r≥0}\{\bar{v}+r\cdot\bar{u}\mathrel{\mathop{\ordinarycolon}}r\geq 0\}, even though the risk itself may be minimized by any vector which lies in the relative interior of a convex cone defined by the problem. Similarly, the theorem captures implicit regularization by showing that the gradient descent iterates also track the sequence of constrained optima (wˉj)j≥1(\bar{w}_{j})_{j\geq 1}.

This section first builds up the case of general data with a few illustrative examples, including strongly convex and linearly separable cases. Thereafter, a complete construction and characterization of the optimal ray {vˉ+r⋅uˉ:r≥0}\{\bar{v}+r\cdot\bar{u}\mathrel{\mathop{\ordinarycolon}}r\geq 0\} and related objects is provided in Theorem 2.1.

Risk convergence (Section 3).

The preceding section on problem structure reveals that the (bounded) point vˉ+uˉ(\nicefracln⁡(t)γ)\bar{v}+\bar{u}\mathinner{\left(\nicefrac{{\ln(t)}}{{\gamma}}\right)} achieves low risk; plugging this into a modified smoothness argument yields converge in risk with no apparent dependence on the optimum at infinity.

Parameter convergence (Section 4).

The preceding problem structure reveals R\mathcal{R} is strongly convex over bounded subsets of SS, which gives convergence to vˉ\bar{v} via standard convex optimization tools.

To prove \nicefracwj∣wj∣→uˉ\nicefrac{{w_{j}}}{{|w_{j}|}}\to\bar{u}, the first key to the analysis is to study not R\mathcal{R} but instead ln⁡R\ln\mathcal{R}, which more conveniently captures local smoothness (extreme flattening) of R\mathcal{R}. To complete the proof, a number of technical issues must be worked out, including bounds on ∣wt∣|w_{t}|, which rely upon an adaptation of the perceptron convergence proof. This proof goes through much more easily for the exponential loss, which is the main reason for its appearance in Theorem 1.1.

Related work (Section 5).

The paper closes with a discussion of related work.

1 Notation

which has made use of LL at varying input dimensions.

Gradient descent here will always start with w0:=0w_{0}\mathrel{\mathop{\ordinarycolon}}=0, and thereafter set wj+1:=wj−ηj∇R(wj)w_{j+1}\mathrel{\mathop{\ordinarycolon}}=w_{j}-\eta_{j}\nabla\mathcal{R}(w_{j}). It is convenient to define γj:=∣∇(ln⁡R)(wj)∣=∣∇R(wj)∣/R(wj)\gamma_{j}\mathrel{\mathop{\ordinarycolon}}=|\nabla(\ln\mathcal{R})(w_{j})|=|\nabla\mathcal{R}(w_{j})|/\mathcal{R}(w_{j}) and η^j:=ηjR(wj)\hat{\eta}_{j}\mathrel{\mathop{\ordinarycolon}}=\eta_{j}\mathcal{R}(w_{j}), whereby

Moreover, let wˉt:=arg min⁡{R(w):∣w∣≤∣wt∣}\bar{w}_{t}\mathrel{\mathop{\ordinarycolon}}=\operatorname*{arg\,min}\mathinner{\left\{\mathcal{R}(w)\mathrel{\mathop{\ordinarycolon}}|w|\leq|w_{t}|\right\}} denote the solution to the corresponding constrained optimization problem.

Problem structure

This section culminates in Theorem 2.1, which characterizes the unique ray {vˉ+r⋅uˉ:r≥0}\{\bar{v}+r\cdot\bar{u}\mathrel{\mathop{\ordinarycolon}}r\geq 0\}. To build towards this, first consider the following examples.

Strong convexity.

An intermediate setting.

The general case.

Combining elements from the preceding examples, the general case may be characterized as follows; it appears in Figure 4, with all relevant objects labeled. In the general case, the dataset consists of a maximal linearly separable subset ZZ, with the remaining data falling into a subset over which the empirical risk is strongly convex. Specifically, ZZ is constructed with the following greedy procedure: for each example (xi,yi)(x_{i},y_{i}), include it in ZZ if there exists uiu_{i} with ⟨ui,xiyi⟩>0\left\langle u_{i},x_{i}y_{i}\right\rangle>0 and min⁡j⟨uj,xjyj⟩≥0\min_{j}\left\langle u_{j},x_{j}y_{j}\right\rangle\geq 0. The aggregate u:=∑i∈Zuiu\mathrel{\mathop{\ordinarycolon}}=\sum_{i\in Z}u_{i} satisfies ⟨u,xiyi⟩>0\left\langle u,x_{i}y_{i}\right\rangle>0 for i∈Zi\in Z and ⟨u,xiyi⟩=0\left\langle u,x_{i}y_{i}\right\rangle=0 otherwise. Therefore ZZ can be strictly separated by some vector uu orthogonal to ZcZ^{c}; let uˉ\bar{u} denote the maximum margin separator of ZZ which is orthogonal to ZcZ^{c}.

Turning now to ZcZ^{c}, any vector vv which is correct on some (xi,yi)∈Zc(x_{i},y_{i})\in Z^{c} (i.e., ⟨u,xiyi⟩>0\left\langle u,x_{i}y_{i}\right\rangle>0) must also be incorrect on some other example (xj,yj)(x_{j},y_{j}) in ZcZ^{c} (i.e., ⟨v,xjyj⟩<0\left\langle v,x_{j}y_{j}\right\rangle<0); otherwise, (xi,yi)(x_{i},y_{i}) would have been included in ZZ! Consequently, as in Figure 2 above, the empirical risk restricted to ZcZ^{c} is strongly convex, with a unique optimum vˉ\bar{v}. The gradient descent iterates follow the ray {vˉ+r⋅uˉ:r≥0}\{\bar{v}+r\cdot\bar{u}\mathrel{\mathop{\ordinarycolon}}r\geq 0\}, which means they are globally optimal along ZcZ^{c}, and achieve zero risk and follow the maximum margin direction uˉ\bar{u}.

Turning back to the construction in Figure 4, the linearly separable data ZZ is the two red and blue circles, while ZcZ^{c} consists of data points on the vertical axis. The points in ZcZ^{c} do not affect uˉ\bar{u}, and have been adjusted to move vˉ\bar{v} away from 0, where it rested in Figure 3.

Now using the notation Ai=−yixi⊤A_{i}=-y_{i}x_{i}^{\top}, for i∈Zi\in Z, the vector −yixi-y_{i}x_{i} is collected into AcA_{c}, while for i∈Zci\in Z^{c}, the vector −yixi⊤-y_{i}x_{i}^{\top} is put into ASA_{S}. The above constructions are made rigorous in the following theorem. The proof of Theorem 2.1, presented in the appendix, follows the intuition above.

The rows of AA can be uniquely partitioned into matrices (AS,Ac)(A_{S},A_{c}), with a corresponding pair of orthogonal subspaces (S,S⊥)(S,S^{\perp}) where S=span(AS⊤)S=\textup{span}(A^{\top}_{S}) satisfying the following properties.

(Separable part.) If AcA_{c} is nonempty (and thus so is A⊥A_{\perp}), then A⊥A_{\perp} is linearly separable. The maximum margin is given by

Risk convergence

Gradient descent decreases the risk as follows.

This proof relies upon three essential steps.

A slight generalization of standard smoothness-based gradient descent bounds (cf. Section 3).

A useful comparison point to feed into the preceding gradient descent bound (cf. Section 3): the choice vˉ+uˉ(\nicefracln⁡(t)γ)\bar{v}+\bar{u}\mathinner{\left(\nicefrac{{\ln(t)}}{{\gamma}}\right)}, made possible by Theorem 2.1.

In more detail, the first step, a refined smoothness-based gradient descent guarantee, is as follows. While similar bounds are standard in the literature (Bubeck, 2015; Nesterov, 2004), this version has a short proof and no issue with unbounded domains.

Suppose ff is convex, and there exists β≥0\beta\geq 0 so that 1−\nicefracηjβ2≥01-\nicefrac{{\eta_{j}\beta}}{{2}}\geq 0 and gradient iterates (w0,…,wt)(w_{0},\ldots,w_{t}) with wj+1:=wj−ηj∇f(wj)w_{j+1}\mathrel{\mathop{\ordinarycolon}}=w_{j}-\eta_{j}\nabla f(w_{j}) satisfy

The proof is similar to the standard ones, and appears in the appendix.

The second step, as above, is to produce a reference point zz to plug into Section 3.

Lastly, the smoothness guarantee on R\mathcal{R}. Even though the logistic loss is smooth, this proof gives a refined smoothness inequality where the jthj^{\textup{th}} step is R(wj)\mathcal{R}(w_{j})-smooth; this refinement will be essential when proving parameter convergence. This proof is based on the convergence guarantee for AdaBoost (Schapire and Freund, 2012). Recall the definitions γj:=∣∇(ln⁡R)(wj)∣=∣∇R(wj)∣/R(wj)\gamma_{j}\mathrel{\mathop{\ordinarycolon}}=|\nabla(\ln\mathcal{R})(w_{j})|=|\nabla\mathcal{R}(w_{j})|/\mathcal{R}(w_{j}) and η^j:=ηjR(wj)\hat{\eta}_{j}\mathrel{\mathop{\ordinarycolon}}=\eta_{j}\mathcal{R}(w_{j}).

Additionally, ∣wt∣≤∑j<tη^jγj|w_{t}|\leq\sum_{j<t}\hat{\eta}_{j}\gamma_{j}.

This proof mostly proceeds in a usual way via recursive application of a Taylor expansion

A direct but important consequence is obtained by applying ln⁡\ln to both sides:

It follows that ln⁡R\ln\mathcal{R} is smooth, but moreover has constant smoothness unlike R\mathcal{R} above.

Combining these pieces now leads to a proof of Theorem 3.1, given in full in the appendix. As a final remark, note that step size ηj=1\eta_{j}=1 led to a O~(1/t)\widetilde{\mathcal{O}}(1/t) rate, whereas ηj=1/j+1\eta_{j}=1/\sqrt{j+1} leads to a O~(1/t)\widetilde{\mathcal{O}}(1/\sqrt{t}) rate.

Parameter convergence

As in Theorem 1.1, the parameter convergence guarantee gives convergence to vˉ∈S\bar{v}\in S over the strongly convex part SS (that is, ΠSwt→vˉ\Pi_{S}w_{t}\to\bar{v} and ΠSwˉt→vˉ\Pi_{S}\bar{w}_{t}\to\bar{v}), and convergence in direction (convergence of the normalized iterates) to uˉ∈S⊥\bar{u}\in S^{\perp} over the separable part S⊥S^{\perp} (\nicefracwt∣wt∣→uˉ\nicefrac{{w_{t}}}{{|w_{t}|}}\to\bar{u} and \nicefracwˉt∣wˉt∣→uˉ\nicefrac{{\bar{w}_{t}}}{{|\bar{w}_{t}|}}\to\bar{u}). In more detail, the convergence rates are as follows.

(General case.) Suppose ηj=1/j+1\eta_{j}=1/\sqrt{j+1}, and t≥5t\geq 5, and \nicefractln⁡(t)3≥\nicefracn(1+R)γ2,\displaystyle\nicefrac{{\sqrt{t}}}{{\ln(t)^{3}}}\geq\nicefrac{{n(1+R)}}{{\gamma^{2}}}, where R:=sup⁡j<t∣ΠSwj∣=O(1)R\mathrel{\mathop{\ordinarycolon}}=\sup_{j<t}|\Pi_{S}w_{j}|=\mathcal{O}(1). Then

and if AcA_{c} is nonempty, then ∣ΠS⊥wt∣=Θ(ln⁡(t))|\Pi_{S^{\perp}}w_{t}|=\Theta(\ln(t)), and

Establishing rates of parameter convergence not only relies upon all previous sections, but also is much more involved, and will be split into multiple subsections.

The easiest place to start the analysis is to dispense with the behavior over SS. For convenience, define

and note R(w)=RS(w)+Rc(w)\mathcal{R}(w)=\mathcal{R}_{S}(w)+\mathcal{R}_{c}(w).

Convergence over SS is a consequence of strong convexity and risk convergence (cf. Theorem 3.1).

By Theorem 2.1, RS(vˉ)=ˉR\mathcal{R}_{S}(\bar{v})=\bar{}\mathcal{R}. Thus, by strong convexity, for w∈{wt,wˉt}w\in\mathinner{\left\{w_{t},\bar{w}_{t}\right\}} (whereby R(w)≤R(wt)\mathcal{R}(w)\leq\mathcal{R}(w_{t})),

The bound follows by noting R(wt)≤R(w0)≤1\mathcal{R}(w_{t})\leq\mathcal{R}(w_{0})\leq 1, and alternatively invoking in Theorem 3.1. ∎

If AcA_{c} is empty, the proof is complete by plugging ηj=1/j+1\eta_{j}=1/\sqrt{j+1} into Section 4. The rest of this section establishes convergence to uˉ∈S⊥\bar{u}\in S^{\perp}.

Before getting into the guts of Theorem 4.1, this section will establish bounds on ∣wt∣|w_{t}|. These bounds are used in Theorem 4.1 in two ways. First, as will be clear in the next section, it is natural to prove rates with ∣wt∣|w_{t}| in the denominator, thus lower bounding ∣wt∣|w_{t}| with a function of tt gives the desired bound.

Note that this section focuses on behavior within AcA_{c}; suppose that AcA_{c} is nonempty, since otherwise A=ASA=A_{S} and Theorem 4.1 follows from Section 4. When AcA_{c} is nonempty, the solution is off at infinity, and ∣wt∣|w_{t}| grows without bound. For this reason, these bounds will be on wtw_{t} rather than Π⊥wt\Pi_{\perp}w_{t}, since ∣wt−Π⊥wt∣=∣ΠSwt∣=O(1)|w_{t}-\Pi_{\perp}w_{t}|=|\Pi_{S}w_{t}|=\mathcal{O}(1) by Section 4.

On one hand, ⟨Π⊥wt−uˉ⋅r,uˉ⟩\left\langle\Pi_{\perp}w_{t}-\bar{u}\cdot r,\bar{u}\right\rangle is upper bounded by  ⁣∥Π⊥wt−uˉ⋅r∥\mathinner{\!\left\lVert\Pi_{\perp}w_{t}-\bar{u}\cdot r\right\rVert}, whose upper bound is given by the following lemma, which is a modification of Section 3 with R\mathcal{R} replaced with Rc\mathcal{R}_{c}.

The proof is similar to that of Section 3, but inserts Π⊥\Pi_{\perp} in a few key places.

On the other hand, to lower bound ⟨Π⊥wt−uˉ⋅r,uˉ⟩\left\langle\Pi_{\perp}w_{t}-\bar{u}\cdot r,\bar{u}\right\rangle, notice that

To show that ww is close to uˉ\bar{u} in direction, it is essential to lower bound ⟨uˉ,w⟩/∣w∣\left\langle\bar{u},w\right\rangle/|w|, since

To control this, recall the representation uˉ=−A⊤qˉ/γ\bar{u}=-A^{\top}\bar{q}/\gamma, where qˉ\bar{q} is a dual optimum (cf. Theorem 2.1). With this in hand, and an appropriate choice of convex function gg, the Fenchel-Young inequality gives for any wtw_{t}, t≥1t\geq 1, and any ww such that g(Aw)≤g(Awt)g(Aw)\leq g(Aw_{t}),

The significance of working with ww with g(Aw)≤g(Awt)g(Aw)\leq g(Aw_{t}) is to allow the proof to handle both wˉt\bar{w}_{t} and wtw_{t} simultaneously.

The other key idea is to use g=ln⁡(Lexp⁡/n)g=\ln(L_{\exp}/n). With this choice, both preceding numerator terms can be bounded: g∗(q)=ln⁡n+∑i=1nqiln⁡qi≤ln⁡ng^{*}(q)=\ln n+\sum_{i=1}^{n}q_{i}\ln q_{i}\leq\ln n for any probability vector qq, whereas g(Awt)g(Aw_{t}) can be upper bounded by applying ln⁡\ln to both sides of Section 3, as eq. 3.2, yielding an expression which will cancel with the denominator since ∣wt∣≤∑j<tη^jγj|w_{t}|\leq\sum_{j<t}\hat{\eta}_{j}\gamma_{j}.

To simplify this further, note ηj≤1\eta_{j}\leq 1 and Section 3 also imply

and moreover the definition γ=min⁡{∣A⊥⊤q∣:q≥0,∑iq=1}\gamma=\min\mathinner{\left\{|A_{\perp}^{\top}q|\mathrel{\mathop{\ordinarycolon}}q\geq 0,\sum_{i}q=1\right\}} (cf. Theorem 2.1) implies

To finish, invoke the preceding inequality with w∈{wˉt,wt}w\in\{\bar{w}_{t},w_{t}\}, noting that ∣wt∣=∣wˉt∣|w_{t}|=|\bar{w}_{t}|. To produce a rate depending on tt and not ∣wt∣|w_{t}|, the lower bound on ∣wt∣|w_{t}| in Section 4.1 is applied with ∣vˉ∣=R=0|\bar{v}|=R=0 and n=ncn=n_{c} thanks to separability. The following proposition summarizes this derivation.

where ∣wt∣≥min⁡{ln⁡(t)−ln⁡2, ln⁡(∑j<tηj)−2ln⁡ln⁡t+2ln⁡γ}+ln⁡ln⁡2|w_{t}|\geq\min\mathinner{\left\{\ln(t)-\ln 2,\ {}\ln\mathinner{\left(\sum_{j<t}\eta_{j}\right)}-2\ln\ln t+2\ln\gamma\right\}}+\ln\ln 2.

The scheme from the separable case does not directly work: for instance, the proofs relied upon γi≥γ\gamma_{i}\geq\gamma, but now γi→0\gamma_{i}\to 0. This term γi\gamma_{i} arose by applying Section 3 to control ln⁡R(wt)\ln\mathcal{R}(w_{t}), which in the separable case decreased to −∞-\infty, in the general case, however, it can be bounded below.

The fix is to replace R(wt)\mathcal{R}(w_{t}) with Rc(wt)\mathcal{R}_{c}(w_{t}), or rather R(wt)−ˉR=R(wt)−inf⁡wR(w)\mathcal{R}(w_{t})-\bar{}\mathcal{R}=\mathcal{R}(w_{t})-\inf_{w}\mathcal{R}(w); this quantity goes to 0, and there is again a hope of exhibiting the fortuitous cancellations which proved parameter convergence. More abstractly, by subtracting ˉR\bar{}\mathcal{R}, the proof is again trying to work in the separable case, though there will be cross-terms to contend with.

The first step, then, is to replace the appearance of R\mathcal{R} in earlier Fenchel-Young approach (cf. Section 4.2) with R(wt)−ˉR\mathcal{R}(w_{t})-\bar{}\mathcal{R}.

Note the appearance of the additional cross term ∣ΠS(w)∣|\Pi_{S}(w)|; by Section 4, this term is bounded.

The next difficulty is to replace the separable case’s use of Section 3 to control ln⁡R(wt)\ln\mathcal{R}(w_{t}) with something controlling ln⁡(R(wt)−ˉR)\ln(\mathcal{R}(w_{t})-\bar{}\mathcal{R}).

Moreover, if there exists a sequence (wj)j=t0t−1(w_{j})_{j=t_{0}}^{t-1} such that the above condition holds, then

The proof of Section 4.3 is quite involved, but boils down to the following case analysis. The first case is that there is more error over SS, whereby a strong convexity argument gives a lower bound on the gradient. Otherwise, the error is larger over ScS^{c}, which leads to a big step in the direction of uˉ\bar{u}.

A key property of the upper bound in Section 4.3 is that it has replaced γj2\gamma_{j}^{2} in Section 3 with γjγ\gamma_{j}\gamma. Plugging this bound into the Fenchel-Young scheme in Section 4.3 will now fortuitously cancel γ\gamma, which leads to the following promising bound.

As in the separable case, an extended amount of careful massaging, together with Section 3 and Section 4.1 to control the warm start, is sufficient to establish the parameter convergence of Theorem 4.1 in the general case.

Related work

The technical basis for this work is drawn from the literature on AdaBoost, which was originally stated for separable data (Freund and Schapire, 1997), but later adapted to general instances (Mukherjee et al., 2011; Telgarsky, 2012). This analysis revealed not only a problem structure which can be refined into the (S,S⊥)(S,S^{\perp}) used here, but also the convergence to maximum margin solutions (Telgarsky, 2013). Since the structural analysis is independent of the optimization method, the key structural result, Theorem 2.1 in Section 2, can be partially found in prior work; the present version provides not only an elementary proof, but moreover differs by providing SS and S⊥S^{\perp} (and not just a partition of the data) and the subsequent construction of a unique uˉ\bar{u} and its properties.

The remainder of the analysis has some connections to the AdaBoost literature, for instance when providing smoothness inequalities for R\mathcal{R} (cf. Section 3). There are also some tools borrowed from the convex optimization literature, for instance smoothness-based convergence proofs of gradient descent (Nesterov, 2004; Bubeck, 2015), and also from basic learning theory, namely an adaptation of ideas from the perceptron convergence proof in order to bound ∣wt∣|w_{t}| (Novikoff, 1962).

Another close line of work is an analysis of gradient descent for logistic regression when the data is separable (Soudry et al., 2017; Gunasekar et al., 2018; Nacson et al., 2018). The analysis is conceptually different (tracking (wj)j≥0(w_{j})_{j\geq 0} in all directions, rather than the Fenchel-Young and smoothness approach here), and (assuming linear separability) achieves a better rate than the one here, although it is not clear if this is possible in the nonseparable case. Other work shows that not just gradient descent but also steepest descent with other norms can lead to margin maximization (Gunasekar et al., 2018; Telgarsky, 2013), and that constructing loss functions with an explicit goal of margin maximization can lead to better rates (Nacson et al., 2018). Another line of work uses condition numbers to analyze these problems with a different parameterization (Freund et al., 2017).

There is some work in online learning on optimization over unbounded sets, for instance bounds where the regret scales with the norm of the comparator (Orabona and Pal, 2016; Streeter and McMahan, 2012). By contrast, as the present work is not adversarial and instead has a fixed training set, part of the work (a consequence of the structural result, Theorem 2.1) is the existence of a good, small comparator.

The authors are grateful for support from the NSF under grant IIS-1750051.

References

Appendix A Omitted proofs from Section 2

Before proving Theorem 2.1, note the following result characterizing margin maximization over S⊥S^{\perp}.

Suppose A⊥A_{\perp} has nc>0n_{c}>0 rows and there exists uu with A⊥u<0A_{\perp}u<0. Then

Moreover there exists a unique nonzero primal optimum uˉ\bar{u}, and every dual optimum qˉ\bar{q} satisfies uˉ=−A⊥⊤qˉ/γ\bar{u}=-A_{\perp}^{\top}\bar{q}/\gamma.

To start, note γ>0\gamma>0 since there exists uu with A⊥u<0A_{\perp}u<0.

Combining this with the Fenchel-Rockafellar duality theorem (Borwein and Lewis, 2000, Theorem 3.3.5, Exercise 3.3.9.f),

and moreover every primal-dual optimal pair (uˉ,qˉ)(\bar{u},\bar{q}) satisfies A⊥⊤qˉ∈∂(ι∣⋅∣2≤1)(−uˉ)A_{\perp}^{\top}\bar{q}\in\partial\left(\iota_{|\cdot|_{2}\leq 1}\right)(-\bar{u}), which means uˉ=−A⊥⊤qˉ/γ\bar{u}=-A_{\perp}^{\top}\bar{q}/\gamma.

It only remains to show that uˉ\bar{u} is unique. Since γ>0\gamma>0, necessarily any primal optimum has unit length, since the objective value will only decrease by increasing the length. Consequently, suppose u1u_{1} and u2u_{2} are two primal optimal unit vectors. Then u3:=(u1+u2)/2u_{3}\mathrel{\mathop{\ordinarycolon}}=(u_{1}+u_{2})/2 would satisfy

but then the unit vector u4:=u3/∣u3∣u_{4}\mathrel{\mathop{\ordinarycolon}}=u_{3}/|u_{3}| would have ∣u4∣>∣u3∣|u_{4}|>|u_{3}| when u1≠u2u_{1}\neq u_{2}, which implies max⁡i(A⊥u4)<max⁡i(A⊥u3)=max⁡i(A⊥u1)\max_{i}(A_{\perp}u_{4})<\max_{i}(A_{\perp}u_{3})=\max_{i}(A_{\perp}u_{1}), a contradiction. ∎

(of Theorem 2.1) Partition the rows of AA into AcA_{c} and ASA_{S} as follows. For each row ii, put it in AcA_{c} if there exists uiu_{i} so that Aui≤0Au_{i}\leq 0 (coordinate-wise) and (Aui)i<0(Au_{i})_{i}<0; otherwise, when no such uiu_{i} exists, add this row to ASA_{S}. Define S:=span(AS⊤)S\mathrel{\mathop{\ordinarycolon}}=\textup{span}(A_{S}^{\top}), the linear span of the rows of ASA_{S}. This has the following consequences.

To start, S⊥=span(AS⊤)⊥=ker⁡(AS)⊆ker⁡(A)S^{\perp}=\textup{span}(A_{S}^{\top})^{\perp}=\ker(A_{S})\subseteq\ker(A).

which again is in fact a chain of equalities.

For every v∈Sv\in S with ∣v∣>0|v|>0, there exists a row aa of ASA_{S} such that ⟨a,v⟩>0\left\langle a,v\right\rangle>0. To see this, suppose contradictorily that ASv≤0A_{S}v\leq 0. It cannot hold that ASv=0A_{S}v=0, since v≠0v\neq 0 and ker⁡(AS)⊆S⊥\ker(A_{S})\subseteq S^{\perp}. this means ASv≤0A_{S}v\leq 0 and moreover (ASv)i<0(A_{S}v)_{i}<0 for some ii. But since Auˉ≤0A\bar{u}\leq 0 and Acuˉ<0A_{c}\bar{u}<0, then for a sufficiently large r>0r>0, A(v+ruˉ)≤0A(v+r\bar{u})\leq 0 and (AS(v+ruˉ))j<0(A_{S}(v+r\bar{u}))_{j}<0, which means row jj of ASA_{S} should have been in AcA_{c}, a contradiction.

Consequently, L∘AL\circ A has compact sublevel sets over SS (Hiriart-Urruty and Lemaréchal, 2001, Proposition B.3.2.4).

the final inequality since the minimization is of a continuous function over a compact set, thus attained at some point, and the infimand is positive over the domain. Consequently, L∘AL\circ A is strongly convex over compact subsets of SS.

Since L∘AL\circ A is strongly convex over SS and moreover has bounded sublevel sets over SS, it attains a unique optimum over SS.

Appendix B Omitted proofs from Section 3

To start, note how the three key lemmas provided in the main text lead to a proof of Theorem 3.1.

Consequently, by the choice z:=vˉ+uˉ(\nicefracln⁡(t)γz\mathrel{\mathop{\ordinarycolon}}=\bar{v}+\bar{u}(\nicefrac{{\ln(t)}}{{\gamma}} and Section 3,

To fill out the proof, first comes the smoothness-based risk guarantee.

(of Section 3) Define rj:=ηj(1−βηj/2)r_{j}\mathrel{\mathop{\ordinarycolon}}=\eta_{j}(1-\beta\eta_{j}/2). For any jj,

Summing this inequality over i∈{0,…,t−1}i\in\mathinner{\left\{0,\ldots,t-1\right\}} and rearranging gives the bound. ∎

Define η^:=ηR(w)\hat{\eta}\mathrel{\mathop{\ordinarycolon}}=\eta\mathcal{R}(w) and suppose η^≤1\hat{\eta}\leq 1; then R(w′)≤R(w)\mathcal{R}(w^{\prime})\leq\mathcal{R}(w) and

Combining this, the choice of η\eta, and Appendix B,

a contradiction. Therefore R(w′)≤R(w)\mathcal{R}(w^{\prime})\leq\mathcal{R}(w), which in turn implies

Together, these pieces prove the desired smoothness inequality.

(of Section 3) For any j<tj<t, by Appendix B and the definition of γj\gamma_{j},

Applying this recursively gives the bound.

Appendix C Omitted proofs from Section 4

This section will be split into subsections paralleling those in Section 4.

To start, the proof of the smoothness-based convergence guarantee, but with sensitivity to AcA_{c}.

(of Section 4.1) Fix any u∈S⊥u\in S^{\perp}. Expanding the square,

the last inequality making use of smoothness, namely Section 3. Therefore

Applying ∑j<t\sum_{j<t} to both sides and canceling terms yields

Proving Section 4.1 is now split into upper and lower bounds.

(of upper bound in Section 4.1) For a fixed t≥1t\geq 1, define

where the last inequality comes from Section 4.

Proceeding with this plan, first note (similarly to the main text)

(of lower bound in Section 4.1) First note

Combining these steps, and invoking Theorem 2.1,

C.2 Parameter convergence when separable

(of Theorem 4.1 when A=Ac=A⊥A=A_{c}=A_{\perp} (separable case)) Let 0<ϵ≤10<\epsilon\leq 1 be arbitrary, and select t0t_{0} so that R(wt0)≤ϵ/n\mathcal{R}(w_{t_{0}})\leq\epsilon/n. By Section 3, since ηj≤1\eta_{j}\leq 1, the loss decreases at each step, and thus for any t≥t0t\geq t_{0}, R(wt)≤ϵ/n\mathcal{R}(w_{t})\leq\epsilon/n. Now let t≥t0t\geq t_{0} and R(w)≤R(wt)\mathcal{R}(w)\leq\mathcal{R}(w_{t}) with arbitrary tt and ww. By Section 4.2 and Section 3,

For j≥t0j\geq t_{0}, by Section 4.2 and γ=min⁡{∣A⊥⊤q∣:q≥0,∑iq=1}\gamma=\min\mathinner{\left\{|A_{\perp}^{\top}q|\mathrel{\mathop{\ordinarycolon}}q\geq 0,\sum_{i}q=1\right\}} (cf. Theorem 2.1),

Invoking eq. C.1 and eq. C.2 with w=wtw=w_{t} or wˉt\bar{w}_{t} (notice that in both cases ∣w∣=∣wt∣|w|=|w_{t}|) gives

Next, ϵ\epsilon and t0t_{0} are tuned as follows. First, set ϵ:=min⁡{4/∣wt∣,1}\epsilon\mathrel{\mathop{\ordinarycolon}}=\min\{4/|w_{t}|,1\}; this is possible if the corresponding t0≤tt_{0}\leq t, or equivalently R(wt)≤4/n∣wt∣\mathcal{R}(w_{t})\leq 4/n|w_{t}|. This in turn is true as long as t≥5t\geq 5 and

because then (ln⁡t)2≥2(\ln t)^{2}\geq 2, and since γ≤1\gamma\leq 1, ∣wt∣≤4ln⁡t/γ2|w_{t}|\leq 4\ln t/\gamma^{2} given by Section 4.1, Theorem 3.1 gives

By Theorem 3.1, R(wt0)≤ϵ/n\mathcal{R}(w_{t_{0}})\leq\epsilon/n if

By Section 4.1, ∣wt0∣≤O(ln⁡(n/ϵ))/γ2|w_{t_{0}}|\leq\mathcal{O}\left(\ln(n/\epsilon)\right)/\gamma^{2}. Together with eq. C.3,

where the constants hidden in the O\mathcal{O} do not depend on the problem. Combining this with the lower and upper bounds on ∣wt∣|w_{t}| in Section 4.1,

C.3 Parameter convergence in general

For convenience in these proofs, define vt:=ΠSwtv_{t}\mathrel{\mathop{\ordinarycolon}}=\Pi_{S}w_{t}.

The general application of Fenchel-Young is as follows.

Next, the adjustment of Section 3 to upper bounding ln⁡(R(wt)−ˉR)\ln(\mathcal{R}(w_{t})-\bar{}\mathcal{R}), which leads to an upper bound with γγi\gamma\gamma_{i} rather than γi2\gamma_{i}^{2}, and the necessary cancellation.

(of Section 4.3) The first inequality implies the second via the same direct induction in Section 3, so consider the first inequality.

Making use of Appendices B and B and proceeding as in Appendix B,

Next it will be shown, by analyzing two cases, that

In the following, for notational simplicity let ww denote wjw_{j}.

Suppose Rc(w)<r(R(w)−Rˉ)\mathcal{R}_{c}(w)<r\mathinner{\left(\mathcal{R}(w)-\bar{\mathcal{R}}\right)}. Consequently,

Then, since 4(R(w)−Rˉ)≤2λ(1−r)4\mathinner{\left(\mathcal{R}(w)-\bar{\mathcal{R}}\right)}\leq 2\lambda(1-r),

Otherwise, suppose Rc(w)≥r(R(w)−Rˉ)\mathcal{R}_{c}(w)\geq r\mathinner{\left(\mathcal{R}(w)-\bar{\mathcal{R}}\right)}. Using an expression inspired by a general analysis of AdaBoost (Mukherjee et al., 2011, Lemma 16 of journal version), and introducing (1−ϵ)(1-\epsilon) by invoking Section 4.2 as in the separable case,

Next, the proof of the intermediate inequality by combining Section 4.3 and Section 4.3.

(of Section 4.3) By Section 3, since ηj≤1\eta_{j}\leq 1, the loss decreases at each step, and thus for any t≥t0t\geq t_{0}, R(wt)≤ϵ/n\mathcal{R}(w_{t})\leq\epsilon/n. Combining Section 4.3 and Section 4.3,

The pieces are in place to prove parameter convergence in general.

(of general case in Theorem 4.1) The guarantee on vˉt\bar{v}_{t} and the Ac=∅A_{c}=\emptyset case have been discussed in Section 4, therefore assume Ac≠∅A_{c}\neq\emptyset. The proof will proceed via invocation of the Fenchel-Young scheme in Section 4.3, applied to w∈{wt,wˉt}w\in\{w_{t},\bar{w}_{t}\} since R(wˉt)≤R(wt)\mathcal{R}(\bar{w}_{t})\leq\mathcal{R}(w_{t}).

It is necessary to first control the warm start parameter t0t_{0}. Fix an arbitrary ϵ∈(0,1)\epsilon\in(0,1), set r:=1−\nicefracϵ3r\mathrel{\mathop{\ordinarycolon}}=1-\nicefrac{{\epsilon}}{{3}}, and let t0t_{0} be large enough such that

By Theorem 3.1 and the choice of step sizes, it is enough to require

Therefore, choosing t0=O~(n2ϵ2)t_{0}=\widetilde{\mathcal{O}}\left(\frac{n^{2}}{\epsilon^{2}}\right) suffices.

Invoking Section 4.3 with the above choice for w∈{wt,wˉt}w\in\mathinner{\left\{w_{t},\bar{w}_{t}\right\}},

Suppose t≥5t\geq 5 and t/ln⁡3t≥n(1+R)/γ4\sqrt{t}/\ln^{3}t\geq n(1+R)/\gamma^{4}, where R=sup⁡j<t∣Π⊥wj−wj∣=O(1)R=\sup_{j<t}|\Pi_{\perp}w_{j}-w_{j}|=\mathcal{O}(1) is introduced in Section 4.1. As will be shown momentarily, tt satisfies (C.6) with ϵ≤\nicefracC∣wt∣\epsilon\leq\nicefrac{{C}}{{|w_{t}|}} for some constant CC, and therefore this choice of ϵ\epsilon can be plugged into (C.7). To see this, note that Theorem 3.1 gives

where the last line uses Section 4.1. It can be shown similarly that other parts of (C.6) hold.

Continuing with Equation C.7 but using ϵ≤\nicefracC∣wt∣\epsilon\leq\nicefrac{{C}}{{|w_{t}|}} and upper bounding ∣wt0∣|w_{t_{0}}| via Section 4.1,

Lastly, controlling the denominator with the lower bound on ∣wt∣|w_{t}| in Section 4.1,