---
title: "Improving the Generalization Performance of Multi-class SVM via Angular Regularization"
authors:
  - "Jianxin Li"
  - "Haoyi Zhou"
  - "Pengtao Xie"
  - "Yingchun Zhang"
doi: "10.24963/ijcai.2017/296"
url: "https://ijcai.org/proceedings/2017/296"
pdf: "https://ijcai.org/proceedings/2017/0296.pdf"
venue: "Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence"
year: 2017
pages: "2131-2137"
track: "Main track"
keywords:
  - "Machine Learning: Machine Learning"
  - "Machine Learning: Learning Theory"
  - "Machine Learning: Classification"
---

# Improving the Generalization Performance of Multi-class SVM via Angular Regularization

Jianxin Li, Haoyi Zhou, Pengtao Xie, Yingchun Zhang

*Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence*, pages 2131-2137. DOI: [10.24963/ijcai.2017/296](https://doi.org/10.24963/ijcai.2017/296)

## Abstract

In multi-class support vector machine (MSVM) for classification, one core issue is to regularize the coefficient vectors to reduce overfitting. Various regularizers have been proposed such as L2, L1, and trace norm. In this paper, we introduce a new type of regularization approach -- angular regularization, that encourages the coefficient vectors to have larger angles such that class regions can be widen to flexibly accommodate unseen samples. We propose a novel angular regularizer based on the singular values of the coefficient matrix, where the uniformity of singular values reduces the correlation among different classes and drives the angles between coefficient vectors to increase. In generalization error analysis, we show that decreasing this regularizer effectively reduces generalization error bound. On various datasets, we demonstrate the efficacy of the regularizer in reducing overfitting.

## Full text

## 1 Introduction

Multi-class classification, which classifies a data sample x into one of K &gt; 2 classes, is a fundamental task in machine learning. Among the various methods developed to accomplish this task, multi-class support vector machine (MSVM) [Weston and Watkins, 1998; Crammer and Singer, 2001; Shalev-Shwartz et al., 2011; Kumar et al., 2012] is a premier model that possesses both empirical efficacy and sound theoretical properties. At the core of MSVM is the principle of maximum margin learning [Crammer and Singer, 2001], encouraging the margin - which in the multi-class case is defined as the difference between the classification score w⊤ y x corresponding to the true label y and the largest score of other classes maxy′ ̸=yw⊤ y′x - to be large, such that different classes can be well discriminated.

In training multi-class classification models, one typical problem is overfitting where the model performs well on training data but poorly on testing data. To improve the generalization performance on unseen samples, a number of regularization methods have been studied, such as ℓ2-norm [Vapnik and Vapnik, 1998] encouraging large margin, ℓ1-norm [Bradley and Mangasarian, 1998; Wang and Shen, 2012] promoting sparsity and trace norm [Amit et al., 2007] encouraging low-rankness. While their effectiveness have been widely demonstrated, there is still much room for improvement. As an example, Table 1 shows the classification accuracy of ℓ2regularized MSVM on several datasets, where the gap between training and testing accuracy are still substantial.

Table 1: Classification Accuracy of MSVM-ℓ2

| Dataset            |   Yeast |   Usps |   YaleB |
|--------------------|---------|--------|---------|
| Dim. of Features   |       8 |    256 |    1024 |
| Train Accuracy (%) |   57.23 |  97.31 |   97.70 |
| Test Accuracy (%)  |   52.00 |  90.48 |   93.25 |

(a) Unregularized MSVM (b) Angular regularizedMSVM

![Image](https://ijcai.org/proceedings/2017/fulltext/296/image_000000_c446da059f06508caec1d191da19eff0818a67f492a205f7dc2c8aa4878cf9d4.png)

Figure 1: (a) Without angular regularization, the small angle between the green and blue lines narrows the decision region C3, which is consequently unable to accommodate unseen samples; (b) with angular regularization, the angle between the two lines is enlarged, which subsequently widens C3, that is more flexible to accommodate unseen data.

In this paper, we study a new type of regularizer that encourages the coefficient vectors (equivalently, the hyperplanes parameterized by them) in MSVM to have large angles, for the purpose to control overfitting. Fig. 1 illustrates the idea. Without regularization (Fig. 1(a)), the two hyperplanes denoted by the green and blue lines share a small angle, generating a narrow decision region C3 which is supposed to accommodate data samples of class 3 (denoted by triangles). While C3 successfully accommodates most training samples (denoted by filled triangles), many test samples (denoted by void triangles) fall out of C3 and get misclassified due to the narrowness of this region, incurring severe overfitting. To alleviate this problem, an angular regularizer can be applied to enlarge the angle between these two hyperplanes, which consequently widens C3, enabling it to successfully accommodate unseen samples. Previously, anglebased regularizers have been studied in other contexts, such as ensemble learning [Guo, 2016] and latent variable modeling [Xie et al., 2015a; Xie, 2015]. To our best knowledge, our work represents the first one introducing angular regularization into multi-class SVM. While the existing angular regularizers have shown promising results, they bear certain limitations, for instance, not amenable for theoretical analysis or optimization. We define a new angular regularizer based on the singular values of the coefficient matrix. These singular values are encouraged to approach uniformity, which reduces the correlation among different classes. Decreasing this regularizer can effectively enlarge the angles between coefficient vectors. In analysis, it is proved that decreasing the regularizer can reduce generalization error. In experiments on various datasets, we demonstrate the efficacy of this regularizer in preventing overfitting.

The major contributions of this paper are:

- We introduce the angular regularization into MSVM to improve its generalization performance.
- We propose a new angular regularizer that is amenable for optimization and theoretical analysis.
- Theoretically, we analyze how the angular regularizer affects the generalization performance.
- Empirically, we evaluate the effectiveness of the regularizer in control overfitting on various datasets.

The rest of this paper is organized as follows. Section 2 introduce the angular regularizer, which is applied to MSVM. Section 3 and 4 present the theoretical analysis and experimental results. Section 5 reviews related works and Section 6 concludes the paper.

## 2 Methods

In this section, we develop a new angular regularizer and apply it to regularize MSVM.

## 2.1 Multi-class Support Vector Machine (MSVM)

MSVM [Crammer and Singer, 2001; Weston and Watkins, 1998; Guermeur and Monfrini, 2011] is a well-established method for K-class classification. Given a set of training samples S = {(x1, y1), . . . , (xm, ym)}, each represented with a feature vector x ∈ RD and a class label y ∈ Y = {1, . . . ,K}, MSVM aims to learn a coefficient vector w for each class to separate the K classes apart. At the core of MSVM is the large margin principle [Crammer and Singer, 2001]: given a sample (x, y), the classification score w⊤ y x of the true label y is preferred to be larger than the scores of other classes with a certain margin (typically set to 1), namely

<!-- formula-not-decoded -->

where r = argmaxk∈Y,k̸=y w⊤ k x. Let W ∈ RD×K denote the coefficient matrix where the k-th column vector belongs to class k, MSVM solves the following optimization problem

<!-- formula-not-decoded -->

where the first term is a hinge loss encouraging large margin and the second term is an ℓ2 regularizer.

## 2.2 ANewAngular Regularizer

We propose to use an angular regularization to improve the generalization performance of MSVM. Previous angular regularizers [Yu et al., 2011; Bao et al., 2013; Xie et al., 2015a] either are not amenable for optimization or do not facilitate theoretical analysis. In this section, we aim to define a new angular regularizer that overcomes these limitations.

Given K coefficient vectors {wk}Kk=1 , we first measure the pairwise angles between them:

<!-- formula-not-decoded -->

Similar to [Xie et al., 2015a], we place an absolute value over w⊤ i wj to make θij insensitive to vector flip (fromw to -w). Then a straightforward angular regularizer R(W) can be defined as the negative of the minimum angle

<!-- formula-not-decoded -->

Minimizing R(W) encourages these coefficient vectors to have larger angles. As will be discussed later, this definition facilitates theoretical analysis. However, it is not amenable for optimization since it is non-smooth. To address this issue, we use a smooth function ̂R(W) to approximate R(W) and perform optimization over ̂R(W) instead.

A Decorrelation Regularizer To define ̂R(W), we begin with interpreting the angles from a statistical perspective. For the ease of presentation, we impose a constraint over W:

<!-- formula-not-decoded -->

where 1 ∈ RD is a vector whose elements are all 1. This constraint ensures the row vectors of W sum to 0. We will remove this constraint later on. Given two classes i and j, together with their coefficient vectors wi and wj , we can treat i and j as two random variables and {win}Dn=1 , {wjn}Dn=1 as samples drawn from them. The empirical correlation of these two random variables are defined as

<!-- formula-not-decoded -->

where ¯wi = 1n ∑Dn=1 win and ¯wj = 1n ∑Dn=1 wjn. According to the constraint in Eq.(5), we have ¯wi = 0 and ¯wj = 0, then ρij = cos(θij), which indicates that to encourage the angle to be larger, we can equivalently suppress the correlation.

Based on this idea, we define a regularizer ̂R(W) that encourages small correlation. First we compute the K × K Gram matrix G = W⊤W, where Gij = w⊤ i wj. Suppose W is a column full-rank matrix and K &lt; D, then G is a full-rank matrix with rank K. Let G= ∑Ki=1 λiuiu⊤i be the eigen-decomposition where λi is an eigenvalue and ui is the associated eigenvector. To understand the geometry meanings of these eigenvalues and eigenvectors, we can take a row view (Fig. 2) of W. Different from the column view where each column vector is a D-dimensional coefficient vector, in the row view, each row vector can be treated as a sample of a K-dimensional random vector by regarding the classes as random variables. According to Eq.(5), these samples have zero mean.

Figure 2: (a) Column view of W; (b) Row view of W.

![Image](https://ijcai.org/proceedings/2017/fulltext/296/image_000001_de53b7696f33a340b6232a5ac6bf10039f95a0a994676cc8d1ff937c2b48e376.png)

Figure 3: The geometry meanings of eigenvalue λi.

![Image](https://ijcai.org/proceedings/2017/fulltext/296/image_000002_e9698207e57fa2ad224454d7e210b32202c6d766b701f7c6ac5765eefe42f37d.png)

Under this view, G can be thought of as an empirical covariance matrix of the random vector. Consider a point cloud formed by the D samples in the K-dimensional space, as is well known in Principle Component Analysis [Jolliffe, 2002], an eigenvector ui of G represents a principal direction of the point cloud and the associated eigenvalue λi tells the variability of points along that direction. As shown in Fig. 3, the larger λi is, the more spread out the points along the direction ui. The level of disparity among eigenvalues indicates the level of correlations among the K dimensions. The more different the eigenvalues are, the higher the correlation is. In Fig. 3(a), the two eigenvalues have a large discrepancy and the two dimensions are strongly correlated. In contrast, in Fig. 3(b) where λ1 and λ2 are close, the correlation between the two dimensions is minimal. To reduce correlation, we encourage the eigenvalues to be uniform. We first transform the eigenvalues {λi}Ki=1 into a probability distribution p(X) through normalization

<!-- formula-not-decoded -->

then encourage p(X) to be close to a uniform distribution q(X = i) = 1K , where the "closeness" is measured using Kullback-Leibler divergence

<!-- formula-not-decoded -->

Note that the i-th eigenvalue λi of W⊤W is the square of the i-th singular value of W. Hence, KL(q||p) is essentially defined over the singular values of W. Using the two facts

<!-- formula-not-decoded -->

we have

KL(q||p) = log tr(W⊤W) - 1K log det(W⊤W) - log K. Dropping the constant, we define a decorrelation regularizer

<!-- formula-not-decoded -->

subject to W⊤1 = 0. From now on, we drop this constraint, which does not affect theoretical results given in next section. ̂R(W) is a smooth function that is much easier to optimize than R(W). Next, we show that ̂R(W) can achieve similar effect as R(W): enlarging angles between vectors inW.

Connection between ̂R(W) and R(W) The following theorem states that ̂R(W) is closely aligned with R(W).

Theorem 1. Let ∇̂R be the gradient of ̂R(W) w.r.t W. ∃κ &gt; 0, such that ∀ η ∈ (0, κ), R(W- η∇ ̂R) ≤ R(W).

Proof Due to space limit, we present the proof sketch of Theorem 1, and the following lemma is needed.

Lemma 1. (Extension of Lemma 2 in [Xie et al., 2015a]) Let the weight vector wk of hyperplane k be decomposed into wk = xk + lkek, where xk = ∑Kj=1,j̸=k αjwj lies in the subspace L spanned by {w1, . . . ,wK}\{wk}, ek is in the orthogonal complement of L, ‖ek‖ = 1, ek · wk &gt; 0, lk is a positive scalar. Then the gradient of ̂R(W) w.r.t wk is pkxk + qkek, where pk is a positive scalar .

Some of the proof techniques are borrowed from [Xie et al., 2015a]. Let s(W) = cos(-R(W)) = cos(θi∗j∗). If s(W) = 0, then s(W- η∇̂R) - s(W) = |(pi∗ + pj∗)s(W) + o(η)|[1 + f(η) + o(η)] = o(η), such that limη→0 s(W-η∇ ̂R)-s(W) η = 0. Otherwise, if s(W) ̸= 0, then s(W-η∇̂R) s(W) = 1 + ψi∗j∗η + o(η), where ψi∗j∗ = -[ pi∗l2 i∗-qi∗li∗ ‖wi∗‖2 + pj∗l2 j∗-qj∗lj∗ ‖wj∗‖2 ]. We have pi∗l2 i∗-qi∗li∗ ‖wi∗‖2 = li∗ K(ei∗·wi∗)‖wi∗‖2 &gt; 0 and pj∗l2 j∗-qj∗lj∗ ‖wj∗‖2 &gt; 0, so ψi∗j∗ &lt; 0. Thus, limη→0 s(W-η∇ ̂R)-s(W) η = s(W) · limη→0 s(W-η∇̂ R) s(W) -1 η = s(W)ψi∗j∗ &lt; 0. Overall, ∃κ &gt; 0, such that ∀η ∈ (0, κ), we have s(W-η∇̂R)-s(W) η ≤ 0, i.e. R(W - η∇ ̂R) ≤ R(W). □

From Theorem 1, we can see the negative gradient of ̂R(W) is a descent direction of R(W). Hence these two regularizers have closely-aligned shape and the same local optimal points. ̂R(W) can be utilized as a close approximation of R(W). Decreasing ̂R(W) effectively decreases R(W), which enlarges the angles.

MSVM with Angular Regularization Given ̂R(W), we can utilize it to enlarge the angles between coefficient vectors in MSVM, for the sake of reducing overfitting. An angleregularized MSVM (AR-MSVM) problem can be defined as:

<!-- formula-not-decoded -->

where β is the regularization parameter. We use a stochastic sub-gradient method [Shalev-Shwartz et al., 2011; Wang et al., 2010] to solve the AR-MSVM problem. The gradient of

̂R(W) is

<!-- formula-not-decoded -->

The subgradient of the hinge loss L = max(0, 1 +w⊤ ri xi - w⊤ yi xi) is a zero matrix if w⊤ yi -w⊤ ri xi &gt; 1. Otherwise, the k-th column vector of the sub-gradient matrix is xi if k ̸= yi and is -xi if k = yi.

## 3 Analysis

In this section, we analyze how the angular regularizer R(W) affects the generalization performance of MSVM. We begin with a recap of basic terminologies. Let L(h) = E(x,y)∼D[l(x, y)] be the true risk of a hypothesis h, where D represents the true distribution and l(x, y) is the loss function. Let ̂L(h) = 1m ∑mi=1 l(xi, yi) denote the empirical risk. Let h∗ ∈ argminh∈H L(h) and ˆh ∈ argminh∈H ̂L(h) be the true and empirical risk minimizer respectively. The generalization error is defined as L(ˆh)-L(h∗ ) which measures how well the hypothesis ˆh learned on the training data generalizes on the unseen data.

In the analysis of AR-MSVM, the hypothesis set is defined as H = {h|h(x, y) = w⊤ y x, x ∈ RD , y ∈ Y = {1, . . . ,K}}. Let H1 be the best-case hypothesis set where different classes can be perfectly separated: ∀(x, y), r ∈ Y\{y},w⊤ y x ≥ w⊤ r x. For each hypothesis h ∈ H, its multi-class margin for the input-output pair (x, y) is ρh(x, y) = h(x, y) -maxk̸=y h(x, k). And the loss set is defined as A = {l|l(x, y) = Φp(ρh(x, y))} , where Φp(x) = max(0, 1 - x/p) is a p-margin hinge loss. In addition, we assume ‖x‖2 ≤ C1 and ‖w‖2 ≤ C2.

The generalization error bound of AR-MSVM is given in the following theorem.

Theorem 2. Fix p &gt; 0. Then, for any δ &gt; 0, with probability at least 1 - δ, the following multi-class classification genralization bound holds for all h ∈ H ⇝ H1 :

<!-- formula-not-decoded -->

With the objective function in Eq.(10) decreasing, the maximum margin principle encourages H approaching H1 . As can be seen, the generalization error bound is an increasing function of the angular regularizer R(W). Hence decreasing R(W) can reduce the error bound and improve the generalization performance.

## 3.1 Proof Sketch

Inspired by [Xie et al., 2015b], we bound L(ˆh)-L(h∗ ) using Rademacher complexity Rm(A) = E[supl∈A 1m ∑mi=1 σi · l(xi, yi)] , where σi is uniform over {-1, 1}.

Lemma 2. [Percy, 2015] Fix p &gt; 0. Then, for any δ &gt; 0, with probability at least 1 - δ

<!-- formula-not-decoded -->

<!-- formula-not-decoded -->

Table 2: Statistics of Datasets

| Dataset          |   #Classes | #Train   | #Test   |   #Features |
|------------------|------------|----------|---------|-------------|
| YaleB            |         38 | 1500     | 914     |        1024 |
| ImageNet-50      |         50 | 30K      | 10K     |         128 |
| Covtype          |          7 | 100K     | 40K     |          54 |
| Shuttle          |          7 | 30450    | 14500   |           9 |
| New-thyroid      |          3 | 108      | 107     |           5 |
| Yeast            |         10 | 1134     | 350     |           8 |
| Dermatology      |          6 | 323      | 35      |          33 |
| Page-Blocks      |          5 | 4924     | 548     |          10 |
| Wine-Quality-Red |          6 | 1439     | 160     |          11 |
| Zoo              |          7 | 89       | 12      |          16 |

Then we bound Rm(A). Let ˜H = {z = (x, y) ↦→ ρh(x, y)} be an auxiliary hypothesis set, we have

Lemma 3. For a fixed p &gt; 0, we have

<!-- formula-not-decoded -->

The R‖m(A) denotes Rm(A)'s absolute form [Bartlett and Mendelson, 2002]. The second inequality is from the following proposition and the Lipschitz condition of p-margin hinge loss.

Proposition 1. (Extension of Theorem 1 in [Cortes et al., 2013]) For any fixed y ∈ Y, HX only takes x into consideration. From ˜H, the empirical Rademacher complexity has

<!-- formula-not-decoded -->

Next we bound B with the same Lipschitz condition and analyze ρh(x, y)'s distribution w.r.t H. The key step is making use of R(W) to upper bound ‖W‖op (operator norm).

Lemma 4. Fix p &gt; 0. Then, for any hypothesis set H, |l(x, y)| can be bounded as |l(x, y)| ≤ 2p C1C2 + 1.

When H ⇝ H1 , a tighter bound is acquired

<!-- formula-not-decoded -->

Putting the pieces together 1 , we can obtain Theorem 2.

## 4 Experiments

In this section, we present experimental results.

## 4.1 Experimental Setup

We evaluated our method on ten datasets. Table 2 summaries their statistics. The regularization parameters λ and β are tuned in the range [2-20 , 2-19 , . . . , 220 ] via 5-fold cross validations. In the stochastic sub-gradient descent algorithm, the mini-batch size and number of epochs are set to 20 and 50 respectively. The learning rate is set according to ADADELTA [Zeiler, 2012] in all methods. All the experiments are conducted over 10 random train/test splits and the results are averaged over the 10 runs. We compare AR-MSVM with the following baselines: (1) C-SVC [Chang and Lin, 2011]: performing multi-class classification using an one-against-one strategy. (2) AMM [Wang et al., 2011]: a multi-class classification method based on adaptive multi-hyperplanes; (3) MSVM-ℓ1 [Shalev-Shwartz and Tewari, 2011]: ℓ1-regularized MSVM; (4) CS-MSVM:

1 For more details, please refer to the complementary document at http:// act.buaa.edu.cn/ lijx/ pubs/ ijcai17-2077-supply.pdf .

Table 3: Classification results (%) on six multi-class datasets

| Dataset     | Metric   | C-SVC                                       | AMM                   | MSVM-ℓ1               | CS-MSVM                | IC-MSVM               | Div-MSVM              | MSVM-Struct           | MSVM-ℓ2               | AR-MSVM               |
|-------------|----------|---------------------------------------------|-----------------------|-----------------------|------------------------|-----------------------|-----------------------|-----------------------|-----------------------|-----------------------|
| YaleB       | Acc F    | 55.31 ±0.1 83.32 ±2.5 54.74 ±1.0 86.88 ±1.8 | 85.12 ±4.4 87.11 ±2.6 | 94.13 93.71           | ±1.6 ±1.3              | 89.38 ±0.9 90.54 ±1.4 | 94.25 ±0.4 93.87 ±0.3 | 91.50 ±0.0 91.39 ±0.0 | 93.90 ±0.5 93.51 ±0.5 | 94.55 ±0.8 94.38 ±0.7 |
| ImageNet-50 | Acc F    | 91.59 ±0.4 91.70 ±0.4                       | 92.27 ±0.1 92.31 ±0.1 | 91.23 ±0.0 91.38 ±0.0 | 92.86 ±0.1 92.90 ±0.1  | 92.96 ±0.1 92.98 ±0.1 | 92.93 ±0.1 92.97 ±0.1 | 89.36 ±0.0 89.65 ±0.0 | 92.32 ±0.1 92.35 ±0.0 | 93.12 ±0.1 93.17 ±0.1 |
| Covtype     | Acc F    | 71.35 ±0.5 50.97 ±3.1                       | 70.21 ±0.3 49.84 ±2.4 | 56.12 ±0.4 37.03 ±3.5 | 70.29 ±1.1 50.67 ±2.1  | 70.82 ±0.2 50.82 ±0.1 | 70.70 ±0.1 50.53 ±0.5 | 65.84 ±0.1 36.80 ±0.1 | 69.45 ±0.2 45.64 ±1.8 | 71.75 ±0.1 51.31 ±0.9 |
| Shuttle     | Acc F    | 98.86 ±0.3 52.94 ±2.1                       | 93.81 ±0.3 54.12 ±0.3 | 79.41 ±0.4 24.90 ±0.0 | 96.02 ±0.0 57.20 ±0.1  | 96.22 ±0.1 57.57 ±0.1 | 94.74 ±0.2 55.61 ±0.2 | 66.57 ±0.0 33.66 ±0.0 | 92.83 ±0.1 53.55 ±0.2 | 97.08 ±0.3 58.53 ±0.3 |
| New-thyroid | Acc F    | 76.92 ±0.9 58.73 ±1.0                       | 86.77 ±1.8 83.66 ±2.4 | 86.15 ±0.0 87.50 ±0.0 | 78.46 ±10.9 75.32 ±1.4 | 78.69 ±3.3 78.46 ±2.1 | 91.54 ±0.8 90.08 ±1.1 | 89.23 ±0.0 87.50 ±0.0 | 90.87 ±0.0 89.24 ±0.0 | 92.15 ±0.5 90.91 ±0.7 |
| Yeast       | Acc F    | 59.71 ±1.5 61.81 ±2.0                       | 48.63 ±5.3 44.87 ±5.1 | 53.71 ±2.4 48.63 ±4.8 | 53.61 ±6.2 52.80 ±4.1  | 54.14 ±0.2 52.07 ±2.0 | 53.14 ±2.5 52.64 ±3.7 | 49.93 ±0.1 37.09 ±0.1 | 51.86 ±3.8 49.45 ±3.1 | 54.80 ±1.1 54.65 ±4.3 |

Table 4: Classification accuracy (%) on four imbalance datasets

| Dataset          | Metric   |   Global-CS |    CS |   Static-SMT |   SL-SMT |   AdaB.NC | MSVM-ℓ2       | AR-MSVM       |      ∆ |
|------------------|----------|-------------|-------|--------------|----------|-----------|---------------|---------------|--------|
| Dermatology      | Acc      |       95.78 | 95.44 |        95.60 |    94.30 |     97.08 | 84.29 ± 8.959 | 94.57 ± 1.622 | +10.28 |
| Page-Blocks      | Acc      |       91.67 | 89.32 |        69.04 |    89.34 |     88.29 | 88.93 ± 2.237 | 92.27 ± 1.019 |  +3.34 |
| Wine-Quality-Red | Acc      |       39.33 | 37.82 |        30.74 |    37.93 |     37.22 | 49.94 ± 5.064 | 52.94 ± 1.793 |  +3.00 |
| Zoo              | Acc      |       95.02 | 93.02 |        95.35 |    93.02 |     95.02 | 93.28 ± 2.500 | 95.38 ± 1.510 |  +2.10 |

MSVM regularized by a cosine similarity regularizer [Yu et al., 2011]; (5) IC-MSVM: MSVM regularized by an incoherence regularizer [Bao et al., 2013]; (6) Div-MSVM: MSVM regularized by a diversity-promoting regularizer [Xie et al., 2015a]; (7) MSVM-Struct [Tsochantaridis et al., 2004]: ℓ2regularized MSVM solved with a cutting plane algorithm; (8) MSVM-ℓ2 [Wang et al., 2010]: ℓ2-regularized MSVM solved with a stochastic gradient descent algorithm; Two metrics are used for evaluation: accuracy (Acc) and F-measure (F).

## 4.2 Results

Table 3 shows the classification results on six datasets, from which we observe that: (1) AR-MSVM greatly improves upon vanilla MSVM methods, including MSVM-ℓ2 and MSVM-Struct. Comparing the last two columns, we can see AR-MSVM outperforms MSVM-ℓ2 (which works better than MSVM-Struct) on all the datasets. This demonstrates that the angular regularizer can effectively improve the generalization performance on test data. (2) AR-MSVM achieves better performance than CS-MSVM, IC-MSVM and Div-MSVM. These three methods use previously proposed regularizers to encourage large angles as well. But the incoherence (IC) regularizer and diversity-promoting (Div) regularizer are non-smooth, bringing in difficulty for optimization, which we conjecture is the major reason being inferior to the angular regularizer proposed in this paper. The cosine similarity (CS) regularizer can encourage the sum of angles to increase, but cannot guarantee each individual angle is increased. The AR regularizer we proposed strictly increases the minimal angle, hence ensuring all angles are increased. (3) AR-MSVM outperforms MSVM-ℓ1, demonstrating that angular regularization is more effective in control overfitting than ℓ1 regularization. (4) AR-MSVM outperforms two non-MSVM methods: C-SVC and AMM, demonstrating its competitive performance in solving multi-class classification problems. (5) AR-MSVM achieves better improvement on Fmeasure than on accuracy. Accuracy is biased toward classes with larger number of samples. F-measure aims to reduce this bias and is more suitable to measure the performance on small-sample classes. This indicates AR-MSVM's ability to better classify small-sample classes.

Figure 4: (a) AR enlarges the minimal angle; (b) Sensitivity to the regularization parameter.

![Image](https://ijcai.org/proceedings/2017/fulltext/296/image_000003_bca3f9bfec8439b62f5162ebfb172be5300435811e777c3dc27a044334951aa4.png)

To verify the ability of AR in enlarging angles, we plot how the minimal angle changes as the algorithm proceeds. Fig. 4(a) shows the curve on the New-thyroid dataset with β ≈ 0.02. It can be seen that the minimal angle consistently increases, which demonstrates that AR is able to drive the angles to become large.

## 4.3 Parameter Sensitivity

We study the sensitivity of AR-MSVM to the regularization parameter β. Fig. 4(b) shows how accuracy varies as β increases on the New-thyroid dataset. Initially, increasing β improves accuracy, because a larger β results in larger angles that help prevent overfitting. However, further increasing β causes the accuracy to drop. That is because, if β is too large, the regularizer dominates the hinge loss and impairs the largemargin learning.

## 4.4 Imbalanced Classification

Inspired by the study in [Xie et al., 2015a] that large-angle regularizer can effectively capture infrequent patterns when the frequency of patterns is imbalanced, we are interested in how the AR helps with imbalanced classification [Wang and Yao, 2012] where the number of samples of different classes is imbalanced. In Table 4, we compare with state-of-theart methods dealing with class imbalance, including GlobalCS, CS, Static-SMT, SL-SMT and AdaB.NC (summarized in [Fern´aNdez et al., 2013]). As can be seen, on three datasets, our method achieves the best accuracy, demonstraing its ability to handle imbalanced classification. To further verify this, we measure the per-class accuracy on the Page-Blocks dataset in Table 5. On small classes (2-5), AR-MSVM performs much better than MSVM. On large class (1), they are comparable. This indicates that AR-MSVM is able to improve the performance on small classes without sacrificing that on large classes.

Table 5: Acc (%) on each class in the Page-Blocks dataset

| Class   |     1 |     2 |     3 |     4 |     5 |   sum |
|---------|-------|-------|-------|-------|-------|-------|
| #Train  |  4421 |   296 |    25 |    79 |   103 |  4924 |
| #Test   |   492 |    33 |     3 |     8 |    12 |   548 |
| MSVM-ℓ2 | 96.75 | 21.21 | 66.67 | 12.50 | 16.67 | 89.05 |
| AR-MSVM | 95.93 | 54.55 | 66.67 | 50.00 | 75.00 | 92.15 |

Figure 5: Runtime on the Covtype dataset.

![Image](https://ijcai.org/proceedings/2017/fulltext/296/image_000004_ea88bc58e1ae3562861213097ba1844391f935023c916b9f8fca02a57578fbd6.png)

## 4.5 Computational Time

We evaluate how much extra time is incurred after adding the angular regularizer to MSVM. The algorithms were implemented in MATLAB and the experiments were run on a Linux machine with a 2.00GHz Xeon CPU and 256G memory. A comparison of runtime is shown in Fig. 5. As can be seen, the runtime of AR-MSVM is close to MSVM. The extra time cost is moderate.

## 5 RelatedWork

## 5.1 Multi-class Classification

Many works [Lee et al., 2004; Guermeur and Monfrini, 2011] have been proposed for multi-class classification. A detailed comparison is provided in [Wang and Xue, 2014]. Wang et al. [2011] proposed an Adaptive Multi-hyperplane Machine (AMM) algorithm that consists of a set of hyperplanes (weights), each assigned to one of the multiple classes, and predicts based on the associated class of the weight that provides the largest prediction. Lapin et al. [2015] proposed a top-k multiclass SVM that directly optimizes the top-k performance in image classification, to deal with class ambiguity. This method generalizes multiclass SVM based on a tight convex upper bound of the top-k error.

To avoid overfitting, several regularizers have been proposed. The ℓ2-norm [Vapnik and Vapnik, 1998] penalizes the magnitude of coefficients while encouraging large margin. The ℓ1-norm [Bradley and Mangasarian, 1998; Wang and Shen, 2012], which promotes sparsity, can effectively control overfitting in high dimensional feature spaces. Amit et al. [2007] uses trace norm to encourage low-rankness on the coefficient matrix, for the sake of capturing common structure shared by different classes. Guo [2016] proposed an angle-based regularization method in the ensemble learning of multiple binary SVMs.

## 5.2 Angular Regularizers

Several regularizers have been proposed to control the angles (equivalently, the cosine similarity) between vectors, in the context of ensemble learning, latent variable modeling and deep learning. Yu et al. [2011] computes the pairwise cosine similarity sij between K vectors and defines the regularizer as ∑1≤i&lt;j≤K (1 - sij). Similarly, Bao et al. [2013] aggregates the cosine similarity scores into a regularizer -log( 1 K(K-1) ∑1≤i&lt;j≤K β|sij|) 1β where β &gt; 0. In [Xie et al., 2015a], the regularizer is defined as mean of arccos(|sij|) minus the variance of arccos(|sij|). The variance term is utilized to encourage the vectors to evenly spread out to different directions. These regularizers have two limitations. First, they are not amenable for theoretical analysis. Second, some of them are non-smooth functions that present great challenges for optimization.

Another closely related regularizer is Determinantal Point Process (DPP) [Kulesza et al., 2012]. Given K vectors {wi}Ki=1 , DPP defines a probability distribution p({wi}Ki=1 ) ∝ det(G). G is a K × K kernel matrix where Gij = k(ai, aj) with k(·, ·) as a kernel function. det(·) denotes the determinant of a matrix. Under a linear kernel, the DPP regularizer is analogous to ̂R(W) in Eq.(9). The shortcoming of DPP is that it is sensitive to vector scaling, which can be overcome by the log tr(W⊤W) term in ̂R(W).

## 6 Conclusion

In this paper, we introduce a new regularization method - angular regularization - into multi-class SVM, to improve its generalization performance. This regularizer encourages the coefficient vectors to have larger angles such that the decision regions can be widen to flexibly accommodate unseen data. We define a novel angular regularizer by encouraging the singular values of the coefficient matrix to approach evenness and prove its effectiveness. We analyze how this regularizer influences the generalization performance of MSVM and the results indicate that decreasing the regularizer can reduce the generalization error bound. The evaluation on a number of datasets demonstrate the capability of this regularizer in reducing overfitting.

## Acknowledgements

This work is supported by China 973 Fundamental R&amp;D Program (No.2014CB340300), NSFC program (No.61472022, 61421003), SKLSDE-2016ZX-11, and partly by the Beijing Advanced Innovation Center for Big Data and Brain Computing. The corresponding author is Jianxin Li.

## References

1. [Amit et al., 2007] Yonatan Amit, Michael Fink, Nathan Srebro, and Shimon Ullman. Uncovering shared structures in multiclass classification. In ICML, pages 17-24, 2007.
2. [Bao et al., 2013] Yebo Bao, Hui Jiang, Lirong Dai, and Cong Liu. Incoherent training of deep neural networks to de-correlate bottleneck features for speech recognition. In ICASSP, pages 6980-6984. IEEE, 2013.
3. [Bartlett and Mendelson, 2002] Peter L Bartlett and Shahar Mendelson. Rademacher and gaussian complexities: Risk bounds and structural results. JMLR, 3:463-482, 2002.
4. [Bradley and Mangasarian, 1998] Paul S Bradley and Olvi L Mangasarian. Feature selection via concave minimiza- tion and support vector machines. In ICML, pages 82-90, 1998.
5. [Chang and Lin, 2011] Chih-Chung Chang and Chih-Jen Lin. LIBSVM: A library for support vector machines. ACM Transactions on Intelligent Systems and Technology, 2:27:1-27:27, 2011.
6. [Cortes et al., 2013] Corinna Cortes, Mehryar Mohri, and Afshin Rostamizadeh. Multi-class classification with max- imum margin multiple kernel. In ICML, pages 46-54, 2013.
7. [Crammer and Singer, 2001] Koby Crammer and Yoram Singer. On the algorithmic implementation of multiclass kernel-based vector machines. JMLR, 2:265-292, 2001.
8. [FernáNdez et al., 2013] Alberto FernáNdez, Victoria LóPez, Mikel Galar, MaríA José Del Jesus, and Francisco Herrera. Analysing the classification of imbalanced data-sets with multiple classes: Binarization techniques and ad-hoc approaches. Knowledge-based systems, 42:97-110, 2013.
9. [Guermeur and Monfrini, 2011] Yann Guermeur and Em- manuel Monfrini. A quadratic loss multi-class svm for which a radius-margin bound applies. Informatica, 22(1):73-96, 2011.
10. [Guo, 2016] Xiaojie Guo. Exclusivity regularized machine. arXiv:1603.08318, 2016.
11. [Jolliffe, 2002] Ian Jolliffe. Principal component analysis. Wiley Online Library, 2002.
12. [Kulesza et al., 2012] Alex Kulesza, Ben Taskar, et al. De- terminantal point processes for machine learning. Founda- tions and Trends R in Machine Learning, 5(2-3):123-286, 2012.
13. [Kumar et al., 2012] Abhishek Kumar, Alexandru Niculescu-Mizil, Koray Kavukcuoglu, and Hal Daume III. A binary classification framework for two-stage multiple kernel learning. In ICML, pages 1295-1302, 2012.
14. [Lapin et al., 2015] Maksim Lapin, Matthias Hein, and Bernt Schiele. Top-k multiclass svm. In NIPS, pages 325- 333, 2015.
15. [Lee et al., 2004] Yoonkyung Lee, Yi Lin, and Grace Wahba. Multicategory support vector machines: Theory and appli- cation to the classification of microarray data and satellite radiance data. JASA, 99(465):67-81, 2004.
16. [Percy, 2015] Liang Percy. Lecture notes of statistical learn- ing theory. https:// web.stanford.edu/ class/ cs229t/ notes. pdf , 2015.
17. [Shalev-Shwartz and Tewari, 2011] Shai Shalev-Shwartz and Ambuj Tewari. Stochastic methods for l1-regularized loss minimization. JMLR, 12:1865-1892, 2011.
18. [Shalev-Shwartz et al., 2011] Shai Shalev-Shwartz, Yoram Singer, Nathan Srebro, and Andrew Cotter. Pegasos: Pri- mal estimated sub-gradient solver for svm. Mathematical programming, 127(1):3-30, 2011.
19. [Tsochantaridis et al., 2004] Ioannis Tsochantaridis, Thomas Hofmann, Thorsten Joachims, and Yasemin Altun. Support vector machine learning for interdepen- dent and structured output spaces. In ICML, page 104, 2004.
20. [Vapnik and Vapnik, 1998] Vladimir Naumovich Vapnik and Vlamimir Vapnik. Statistical learning theory, volume 1. Wiley New York, 1998.
21. [Wang and Shen, 2012] Lifeng Wang and Xiaotong Shen. On l1-norm multiclass support vector machines. JASA, 102(478):583-594, 2012.
22. [Wang and Xue, 2014] Zhe Wang and Xiangyang Xue. Multi-class support vector machine. In Support Vector Ma- chines Applications, pages 23-48. Springer, 2014.
23. [Wang and Yao, 2012] Shuo Wang and Xin Yao. Multiclass imbalance problems: Analysis and potential solutions. TSMC, 42(4):1119-1130, 2012.
24. [Wang et al., 2010] Zhuang Wang, Koby Crammer, and Slo- bodan Vucetic. Multi-class pegasos on a budget. In ICML, pages 1143-1150, 2010.
25. [Wang et al., 2011] Zhuang Wang, Nemanja Djuric, Koby Crammer, and Slobodan Vucetic. Trading representabil- ity for scalability: adaptive multi-hyperplane machine for nonlinear classification. In SIGKDD, pages 24-32. ACM, 2011.
26. [Weston and Watkins, 1998] Jason Weston and Chris Watkins. Multi-class support vector machines. Technical report, Citeseer, 1998.
27. [Xie et al., 2015a] Pengtao Xie, Yuntian Deng, and Eric Xing. Diversifying restricted boltzmann machine for doc- ument modeling. In SIGKDD, pages 1315-1324, 2015.
28. [Xie et al., 2015b] Pengtao Xie, Yuntian Deng, and Eric Xing. On the generalization error bounds of neural net- works under diversity-inducing mutual angular regulariza- tion. arXiv:1511.07110, 2015.
29. [Xie, 2015] Pengtao Xie. Learning compact and effective distance metrics with diversity regularization. In ECML- KDD, pages 610-624. Springer, 2015.
30. [Yu et al., 2011] Yang Yu, Yu-Feng Li, and Zhi-Hua Zhou. Diversity regularized machine. In IJCAI, volume 22, pages 1603-1608. Citeseer, 2011.
31. [Zeiler, 2012] Matthew D Zeiler. Adadelta: an adaptive learning rate method. arXiv:1212.5701, 2012.
