LESS: LEARNING TO SELECT A STRUCTURED ARCHITECTURE OVER FILTER PRUNING AND LOW-RANK DECOMPOSITION

Moonjung Eo, Suhyun Kang, Wonjong RheePML4LRS @ ICLR 2024

TL;DR

This paper introduces LeSS, a novel algorithm that jointly learns which filters to prune and what rank to use for low-rank decomposition in deep neural networks. By simultaneously optimizing these two compression techniques, LeSS achieves better performance and efficiency compared to methods that tackle them separately or iteratively, all while respecting a defined resource budget.

What Problem Does This Paper Address?

Deploying powerful deep neural networks (DNNs) on resource-constrained devices like those found in edge computing or mobile applications is a significant challenge. These networks are often too large and computationally expensive. To address this, researchers employ DNN compression techniques. Two prominent methods are filter pruning (removing less important filters) and low-rank decomposition (reducing the dimensionality of weight matrices). While these methods have complementary strengths, their combined application has been limited, often requiring complex, iterative, or heuristic approaches to find the optimal balance. This paper aims to bridge this gap by proposing a unified, end-to-end learning framework that simultaneously determines both filter pruning and low-rank decomposition strategies without relying on such heuristics.

Methods

The core of the proposed method, LeSS (Learning to Select a Structured architecture), is a novel learning algorithm that jointly optimizes filter pruning and low-rank decomposition. Instead of relying on discrete choices or iterative refinement, LeSS transforms the problem into minimizing a differentiable surrogate function. This is achieved through two key modules:

  • Module $s_m$ (Mask Learning for Filter Selection): This module learns binary masks to identify informative filters for pruning. It uses a scheduled sigmoid function to approximate binary masks, allowing for gradient-based optimization. The masks are applied to the weight tensors to effectively select which filters to keep.
  • Module $s_t$ (Threshold Learning for Rank Selection): This module learns an optimal rank for low-rank decomposition. It employs a Singular Value Thresholding (SVT) function, guided by a learned threshold, to determine the rank for each layer.

LeSS integrates these modules into a single objective function that includes a loss term for model performance and a regularization term that enforces a specified resource budget (e.g., FLOPs). The algorithm learns continuous variables ($z_c$ and $z_r$) that are then mapped to discrete filter selections and ranks. This end-to-end differentiable approach eliminates the need for manual hyperparameter tuning or heuristic search for optimal compression strategies.

Datasets

The paper evaluates LeSS on the following datasets:

  • CIFAR10
  • ImageNet

Key Insights and Ideas

  • Joint Optimization is Key: The paper strongly suggests that simultaneously learning filter pruning and low-rank decomposition is more effective than treating them as separate or sequential steps. This allows the model to find a more synergistic compression strategy.
  • End-to-End Learning without Heuristics: LeSS's ability to learn both filter selection and rank determination through differentiable modules is a significant advancement. This bypasses the need for complex, time-consuming, and often suboptimal heuristic search algorithms.
  • Budget-Aware Compression: The explicit inclusion of a resource budget (e.g., FLOPs) in the objective function ensures that the learned compression strategy is practical and directly applicable to resource-constrained scenarios.
  • Improved Performance with Compression: Surprisingly, LeSS not only reduces model size and computation but, in some cases, can even improve accuracy over the baseline model, indicating that the compression process can act as a form of regularization.

Key Results

LeSS demonstrates superior performance across various benchmarks, outperforming existing state-of-the-art methods for filter pruning, low-rank decomposition, and hybrid approaches.

  • ResNet56 on CIFAR10: LeSS achieved the best performance across all FLOP reduction rates, notably outperforming other methods at a 50% FLOP reduction rate.
  • ResNet50 on ImageNet: LeSS showed superior performance compared to other methods, even achieving higher performance than the baseline model at a 50% FLOP reduction. It also demonstrated a significant inference time acceleration (14% faster than a comparable method at the same performance level).
  • ResNet18 on ImageNet: LeSS outperformed single-method compression techniques and achieved higher performance even when compressed up to 70% FLOP reduction.
  • MobileNetV2 on ImageNet: For this already efficient model, LeSS surprisingly increased top-1 accuracy by up to 72% at a 35% FLOP reduction rate, while accelerating inference time more than twice and with only a minor performance drop (0.17 percentage points).

Limitations and Future Work

  • Limitations: While LeSS shows strong results, the paper does not explicitly detail limitations. However, as with most compression techniques, there's an inherent trade-off between compression ratio and accuracy, and achieving extremely high compression rates might still lead to performance degradation. The paper mentions that the choice of $\alpha$ for the sigmoid scheduling factor is set to a large constant (50) and $\beta$ is explored via grid search, suggesting some hyperparameter tuning is still involved, albeit simplified.
  • Future Work: The paper positions LeSS as a promising advancement for DNN compression in low-resource environments. Future work could explore applying LeSS to a wider range of network architectures and tasks, investigating different resource budget metrics beyond FLOPs (e.g., memory footprint, latency), and further refining the differentiable modules for even more precise control over the compression process.

Summary updated

BibTeX
@inproceedings{eo2024less,
  author = {Moonjung Eo and Suhyun Kang and Wonjong Rhee},
  title = {{LESS: LEARNING TO SELECT A STRUCTURED ARCHITECTURE OVER FILTER PRUNING AND LOW-RANK DECOMPOSITION}},
  booktitle = {PML4LRS @ ICLR},
  year = {2024},
  url = {https://openreview.net/forum?id=09L9QybmQs},
}
Figure