Efficiently Bounding Optimal Solutions after Small Data Modification in Large-Scale Empirical Risk Minimization

Hiroyuki Hanada, Atsushi Shibagaki, Jun Sakuma, Ichiro TakeuchiarXiv 2016

Abstract

In large-scale machine learning, retraining models like Support Vector Machines (SVMs) after minor data updates is computationally expensive. This paper introduces a method to estimate the new optimal solution by calculating tight mathematical bounds. By leveraging the duality gap and partial optimization, the approach achieves computational costs proportional only to the size of the modification, bypassing the need for full dataset scans. Experiments on massive datasets show speedups of up to eight orders of magnitude while maintaining high predictive accuracy.

Introduction

The proliferation of "Big Data" has made training empirical risk minimization (ERM) models on millions of instances a standard yet taxing task. A common practical issue is the "small modification" problem: how to update a model when a tiny fraction of the training data changes. Standard approaches, including warm-starting, typically require at least one pass over the entire dataset ($O(nd)$ complexity), which is inefficient when the modification is minimal. This work proposes a theoretical framework to bound the new optimal solution $\tilde{w}^*$ without inspecting the unmodified data.

Problem Formulation

The study focuses on ERM frameworks where the loss function is smooth and the regularizer is strongly convex. The goal is to find the new optimal solution $\tilde{w}^*$ after a modification to the original data matrix $\hat{X}$.

Types of data modifications handled by the proposed bounding method.

As illustrated in the figure above, modifications can take several forms:

  1. Spot Modification: Changes to individual elements in the data matrix.
  2. Instance Modification: Updates to specific rows (data points).
  3. Feature Modification: Corrections or updates to specific columns (features).

Methodology

The proposed method avoids full retraining through two primary techniques:

1. Duality Gap Bounding

The core innovation relies on the duality gap—the difference between the primal and dual objective values. Since the previous solution $\hat{w}^*$ was optimal for the original data, its duality gap on the modified data remains small. The authors prove that the new optimal solution $\tilde{w}^*$ must lie within a hypersphere centered at the old solution, with a radius determined by this gap. Crucially, this gap can be computed in $O(|\mathcal{M}|)$ time, where $|\mathcal{M}|$ is the number of modified elements.

2. Partial Optimization

When initial bounds are insufficiently tight, "Partial Optimization" is employed. Instead of a full update, the algorithm optimizes only the parameters directly impacted by the data change (e.g., weights corresponding to modified features). This approach provides a middle ground that strictly tightens the bounds while remaining significantly cheaper than full retraining.

Experimental Evaluation

The method was evaluated on five large-scale benchmarks from the LIBSVM repository, including kdda (8.4M instances, 20M features) and url (2.4M instances).

Key Results

  • Efficiency: The computational cost for computing bounds was often $10^{-4}$ to $10^{-8}$ times the cost of full retraining.
  • Label Determination: On the kdda dataset, over 99.9% of test labels could be correctly determined using only the bounds. This suggests that for many practical applications, the exact optimal solution is not required if the bounds are tight enough to ensure consistent classification.
  • Tightness: Partial optimization significantly improved bound tightness in datasets like news20 and real-sim, where initial modifications caused larger shifts in the solution.

Conclusion

This research highlights the inherent "stability" of large-scale datasets: the larger the data, the less a small modification shifts the optimal solution. By providing rigorous mathematical guarantees rather than heuristics, this framework allows for safe and efficient decision-making in dynamic data environments. Future work may extend these techniques to a broader class of regularized convex regression problems.

Summary updated

BibTeX
@misc{hanada2016efficiently,
  author = {Hiroyuki Hanada and Atsushi Shibagaki and Jun Sakuma and Ichiro Takeuchi},
  title = {{Efficiently Bounding Optimal Solutions after Small Data Modification in Large-Scale Empirical Risk Minimization}},
  year = {2016},
  eprint = {1606.00136},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1606.00136},
}
Figure