Practical Methods for Exploiting Bounds on Change in the Margin

Andrew Guillory, Jeff A. BilmesISAIM 2008

Introduction

Training linear classifiers, such as Support Vector Machines (SVMs), typically involves iterative optimization processes like gradient descent. A significant computational bottleneck in these methods is the repeated calculation of the margin—the dot product $w^T x_i$—for every data point $x_i$ in each iteration. As the weight vector $w$ converges, it often changes only incrementally. This paper explores techniques to exploit these small changes by using geometric bounds to skip redundant calculations, significantly reducing training time without compromising accuracy.

Methodology: Geometric Pruning and Sorting

The proposed approach centers on the observation that if the decision boundary moves only slightly, the classification status of many points remains unchanged.

1. Margin Bounds

Using the Cauchy-Schwarz inequality, the authors establish a bound on the change in margin. If the margin for a point $x_i$ was known at a previous weight vector $w'$, the new margin at $w$ can be bounded by: $$|w^T x_i - w'^T x_i| \leq \|w - w'\| \cdot \|x_i\|$$ By tracking the distance the weight vector has moved (|w - w'|) and the maximum norm of the data points, the algorithm can define a "safe zone" where points are guaranteed to maintain their loss status (e.g., zero loss for points far from the boundary).

Geometric intuition of the margin bound: points outside the shaded region do not require re-calculation.

2. Sorting and Aggregation

To make these bounds computationally efficient, the data points are sorted based on their previous margins. This allows the algorithm to process data in "blocks." For points identified as having a linear loss (the active part of the hinge loss), pre-computed running sums of data vectors are used to calculate the total gradient in a single operation, rather than iterating through each point individually.

3. Adaptive Resorting

Sorting introduces overhead. To optimize performance, the authors implement an adaptive rule that triggers a "resort" only when the pruning efficiency drops below a certain threshold, ensuring that the benefits of skipping calculations outweigh the cost of maintaining the sorted order.

Experimental Results

The methodology was evaluated on several benchmarks, including Covtype, MNIST, RCV1, and USPS. The results demonstrate that the pruning strategy becomes increasingly effective as the optimization approaches convergence.

Performance comparison across datasets showing significant speedups for tighter convergence thresholds (epsilon).

As shown in the results table, the method achieved a 9.25x speedup on the USPS dataset and a 6.54x speedup on MNIST for high-precision convergence ($\epsilon = 1E-6$). The speedup is particularly pronounced in later iterations where the weight vector $w$ changes slowly, allowing the geometric bounds to prune a vast majority of the dataset.

Discussion and Limitations

While highly effective for dense datasets, the method faces challenges with high-dimensional, sparse data like RCV1. In such cases, the overhead of managing the bounds and sorting can occasionally offset the gains from pruning. Furthermore, extending this approach to non-linear kernel SVMs is more complex due to the $O(N^2_{sv})$ cost of calculating distances in feature space. Future work may involve using more sophisticated bounding shapes, such as hyperrectangles or clusters, to achieve even tighter bounds and further improve efficiency.

Summary updated

BibTeX
@inproceedings{guillory2008practical,
  author = {Andrew Guillory and Jeff A. Bilmes},
  title = {{Practical Methods for Exploiting Bounds on Change in the Margin}},
  booktitle = {ISAIM},
  year = {2008},
}
Figure