The curse of (non)convexity: The case of an Optimization-Inspired Data Pruning algorithm

Fadhel Ayed, Soufiane HayouICBINB @ NeurIPS 2022

TL;DR

This paper introduces LiPrune, a novel data pruning algorithm that selects training data points based on the Lipschitz constants of the loss function. The goal is to accelerate training by prioritizing "harder" examples. While LiPrune shows promise in convex settings, it surprisingly offers no significant advantage over random pruning in non-convex deep learning scenarios, highlighting the complex role of loss landscape geometry in modern neural networks.

What Problem Does This Paper Address?

Training large neural networks on massive datasets is computationally expensive and time-consuming. Data pruning aims to alleviate this by selecting a smaller, representative subset of the training data (a "coreset") that can be used for training. Existing methods often focus on selecting "difficult" examples based on error or proximity to decision boundaries. This paper, however, tackles a different question: can data pruning be used to accelerate training, not just reduce computational cost, by intelligently selecting data points that are most beneficial for optimization? Specifically, they investigate if leveraging theoretical insights from importance sampling in Stochastic Gradient Descent (SGD) can lead to a data pruning strategy that speeds up convergence.

Methods

The core of the paper is the LiPrune algorithm. It's inspired by the theory of importance sampling for SGD, which suggests that sampling data points with a probability proportional to the Lipschitz constant of their corresponding loss function ($p_i \propto L_i$) can accelerate convergence in convex settings. LiPrune directly applies this idea to data pruning: instead of sampling, it selects the data points with the largest Lipschitz constants ($L_i$) to form the pruned dataset.

The Lipschitz constant $L_i$ of a function $f_i$ (representing the loss on a single data point) is related to the curvature of the loss landscape around that point. A higher $L_i$ suggests a steeper or more complex loss landscape for that specific data point. By selecting points with high $L_i$, LiPrune aims to retain data that provides the most informative gradients for optimization.

The paper also explores different ways to estimate these Lipschitz constants:

  • Using the Gradient: Approximating $L_i$ using gradient norms, similar to the GraNd algorithm.
  • Using the Hessian: Estimating $L_i$ using the norm of the Hessian matrix. This is computationally more expensive and is primarily considered for batch pruning.

The theoretical analysis focuses on convex optimization problems, demonstrating that importance sampling with $p_i \propto L_i$ leads to faster convergence. LiPrune is presented as a deterministic counterpart to this optimal sampling strategy.

Datasets

The paper uses the following datasets:

  • Synthetic Linear Data: Generated using Eq. (3) for experiments on linear models.
  • CIFAR10: Used for evaluating LiPrune on a deep learning task with a ResNet architecture.

Key Insights and Ideas

  • Lipschitz Constants as Pruning Scores: The paper proposes a novel idea of using Lipschitz constants of individual loss functions as a principled way to select informative data points for pruning, aiming for accelerated training.
  • Convex vs. Non-Convex Behavior: The theoretical underpinnings of LiPrune are strongest in convex settings, where it demonstrably accelerates convergence. However, its performance in non-convex deep learning scenarios is surprisingly similar to random pruning, suggesting that the "curse of non-convexity" fundamentally alters the benefits of such data selection strategies.
  • The "Curse" of Non-Convexity: The paper hypothesizes that in non-convex landscapes, the noise introduced by SGD and the presence of many local minima might play a more crucial role in generalization than the specific geometry of individual data points captured by Lipschitz constants. Pruning based on Lipschitz constants might inadvertently remove data that contributes to this beneficial noise or helps escape poor local minima.
  • Loss Landscape Modification: Pruning, even with LiPrune, can significantly alter the loss landscape, potentially making it harder to find global minima, especially when a large fraction of data is removed.

Key Results

  • Linear Models (Convex): In synthetic linear regression tasks, LiPrune consistently outperforms random pruning, achieving faster convergence, especially at lower compression ratios. This aligns with the theoretical predictions for convex optimization.
  • Deep Learning (Non-Convex): On the CIFAR10 dataset with a ResNet architecture, LiPrune shows no significant advantage over random pruning in terms of training acceleration or final test error. The performance is largely comparable, suggesting that the benefits observed in convex settings do not directly translate to complex, non-convex deep learning models.
  • Robustness to Hyperparameters: LiPrune appears to be relatively robust to variations in batch size, learning rate, and pruning iteration in the linear model setting.

Limitations and Future Work

  • Estimating Lipschitz Constants: The paper acknowledges that accurately estimating Lipschitz constants for deep neural networks is challenging and computationally expensive. The proposed methods (gradient and Hessian norms) are approximations.
  • Non-Convexity Challenge: The primary limitation is the lack of clear benefits in non-convex deep learning settings. The authors conjecture this is due to the complex interplay of noise, local minima, and the loss landscape's geometry, which LiPrune's Lipschitz-based selection doesn't fully capture.
  • Future Work: The authors suggest that future work should focus on understanding how data pruning methods interact with the learning dynamics in non-convex settings. Developing pruning strategies that account for the stochastic nature of SGD and the properties of flat minima might be more effective for deep learning. Investigating dynamic pruning strategies that adapt the selected data over time could also be a promising direction.

Summary updated

BibTeX
@inproceedings{ayed2022curse,
  author = {Fadhel Ayed and Soufiane Hayou},
  title = {{The curse of (non)convexity: The case of an Optimization-Inspired Data Pruning algorithm}},
  booktitle = {ICBINB @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=5DZBAWOlit},
}
Figure