Skip to main content
QUICK REVIEW

[Paper Review] LilNetX: Lightweight Networks with EXtreme Model Compression and Structured Sparsification

Sharath Girish, Kamal Gupta|arXiv (Cornell University)|Apr 6, 2022
Advanced Neural Network ApplicationsComputer Science7 citations
TL;DR

LilNetX introduces an end-to-end trainable framework that jointly optimizes deep neural networks for model compression and structured sparsity via reparameterized latent space regularization. It achieves up to 50% smaller model size and 98% sparsity on ResNet-20 (CIFAR-10) and 35% smaller size with 42% structured sparsity on ResNet-50 (ImageNet), matching original accuracy without post-processing or multi-stage training.

ABSTRACT

We introduce LilNetX, an end-to-end trainable technique for neural networks that enables learning models with specified accuracy-rate-computation trade-off. Prior works approach these problems one at a time and often require post-processing or multistage training which become less practical and do not scale very well for large datasets or architectures. Our method constructs a joint training objective that penalizes the self-information of network parameters in a reparameterized latent space to encourage small model size while also introducing priors to increase structured sparsity in the parameter space to reduce computation. We achieve up to 50% smaller model size and 98% model sparsity on ResNet-20 while retaining the same accuracy on the CIFAR-10 dataset as well as 35% smaller model size and 42% structured sparsity on ResNet-50 trained on ImageNet, when compared to existing state-of-the-art model compression methods. Code is available at https://github.com/Sharath-girish/LilNetX.

Motivation & Objective

  • To address the growing need for efficient deep learning models that minimize storage, computation, and transmission costs in real-world deployment.
  • To bridge the gap between model compression (for storage) and structured sparsity (for computation) by jointly optimizing both in a single training process.
  • To eliminate the need for post-hoc quantization or pruning steps, enabling direct, end-to-end training with no additional processing.
  • To introduce a novel method that enforces structured sparsity (slice sparsity) while maintaining high compression ratios through latent space priors.
  • To provide a tunable trade-off between model size, inference computation (FLOPs), and accuracy via adjustable regularization weights.

Proposed method

  • The method uses a reparameterized latent space to quantize network weights, enabling extreme model compression by minimizing the entropy of these latent representations.
  • It introduces two regularization terms: one for unstructured sparsity (via L1 norm on latent weights) and another for structured sparsity (slice sparsity) in the decoded weight space.
  • Slice sparsity is enforced by penalizing non-zero K×K kernel slices, enabling block-sparse matrix multiplication and efficient inference via libraries like CuSPARSE.
  • The joint optimization objective combines cross-entropy loss with entropy minimization and structured/unstructured sparsity regularization, trained end-to-end.
  • The framework allows control over the accuracy-rate-computation trade-off by tuning the hyperparameters λU (unstructured sparsity) and λS (structured sparsity).
  • The method operates directly on the model parameters without requiring post-processing or fine-tuning, enabling scalable deployment on large datasets and architectures.

Experimental results

Research questions

  • RQ1Can model compression and structured sparsity be jointly optimized during end-to-end training without post-processing?
  • RQ2Does enforcing slice sparsity in the weight space lead to practical inference speedups while maintaining high compression and accuracy?
  • RQ3How effective are latent space priors in achieving extreme compression and structured sparsity simultaneously?
  • RQ4Can the trade-off between model size, FLOPs, and accuracy be effectively controlled via regularization hyperparameters?
  • RQ5How does the proposed method compare to state-of-the-art quantization and pruning techniques in terms of compression and sparsity?

Key findings

  • LilNetX achieves 50% smaller model size and 98% sparsity on ResNet-20 for CIFAR-10 with no accuracy drop compared to the original model.
  • On ResNet-50 for ImageNet, the method reduces model size by 35% and achieves 42% structured sparsity while maintaining the same accuracy as the baseline.
  • The method enables a continuous trade-off between model size, FLOPs, and accuracy through adjustable regularization weights λU and λS.
  • Slice sparsity enforcement leads to higher structured sparsity than unstructured sparsity alone, with the latter showing a 98% sparsity gain when combined with structured priors.
  • Ablation studies confirm that structured sparsity priors significantly improve both compression and sparsity without sacrificing accuracy, even on larger datasets like CIFAR-100.
  • The framework outperforms existing state-of-the-art methods in both model compression and structured sparsity, with no need for post-hoc processing or multi-stage training.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.