Skip to main content
QUICK REVIEW

[Paper Review] Deep $k$-Means: Re-Training and Parameter Sharing with Harder Cluster Assignments for Compressing Deep Convolutions

Junru Wu, Yue Wang|arXiv (Cornell University)|Jun 24, 2018
Advanced Neural Network ApplicationsComputer Science32 references84 citations
TL;DR

The paper proposes a spectrally relaxed k-means regularization to encourage hard cluster assignments during re-training and a row-wise parameter sharing strategy for convolutional weights, enabling effective compression of CNNs with energy-aware evaluation.

ABSTRACT

The current trend of pushing CNNs deeper with convolutions has created a pressing demand to achieve higher compression gains on CNNs where convolutions dominate the computation and parameter amount (e.g., GoogLeNet, ResNet and Wide ResNet). Further, the high energy consumption of convolutions limits its deployment on mobile devices. To this end, we proposed a simple yet effective scheme for compressing convolutions though applying k-means clustering on the weights, compression is achieved through weight-sharing, by only recording $K$ cluster centers and weight assignment indexes. We then introduced a novel spectrally relaxed $k$-means regularization, which tends to make hard assignments of convolutional layer weights to $K$ learned cluster centers during re-training. We additionally propose an improved set of metrics to estimate energy consumption of CNN hardware implementations, whose estimation results are verified to be consistent with previously proposed energy estimation tool extrapolated from actual hardware measurements. We finally evaluated Deep $k$-Means across several CNN models in terms of both compression ratio and energy consumption reduction, observing promising results without incurring accuracy loss. The code is available at https://github.com/Sandbox3aster/Deep-K-Means

Motivation & Objective

  • Motivate the need to compress convolutional layers due to dominance in parameters and energy consumption in modern CNNs.
  • Develop a regularization-based re-training framework that promotes clustered weight structures for subsequent sharing.
  • Propose a row-wise k-means parameter-sharing scheme aligned with energy-efficient hardware dataflows.
  • Introduce energy-aware metrics to better estimate CNN energy consumption beyond traditional compression ratios.

Proposed method

  • Formulate parameter sharing by reshaping a convolutional layer into W in R^{s x N} and applying k-means to cluster its N columns into K centers.
  • Introduce a spectrally relaxed k-means regularization term that couples the training objective with a cluster-forming auxiliary variable F via E(W) + (lambda/2)[Tr(W^T W) - Tr(F^T W^T W F)], with F^T F = I.
  • Update W via SGD with gradient ∇E(W) + lambda W(I - F F^T) and update F using the k-truncated SVD of W.
  • Apply row-wise k-means for final parameter sharing to obtain K centers and weight assignment indexes, enabling compression through weight sharing.
  • Incorporate energy-aware metrics to estimate CNN energy consumption, including computational cost (FAs), weight and activation representational costs, and data movement considerations.
  • Compare Deep k-Means with multiple baselines across CR and energy metrics, including GoogleNet/ ImageNet spectrum, demonstrating favorable trade-offs.

Experimental results

Research questions

  • RQ1Can spectrally relaxed k-means regularization guide convolutional weights toward hard cluster assignments during re-training?
  • RQ2Does row-wise k-means parameter sharing of convolutional weights achieve higher compression ratios with minimal accuracy loss?
  • RQ3Are the proposed energy-aware metrics effective proxies for hardware energy consumption across CNN architectures?
  • RQ4How does Deep k-Means perform compared to state-of-the-art convolutional compression methods on standard models (e.g., GoogLeNet, Wide ResNet) and energy-aware evaluations?

Key findings

  • Deep k-Means consistently achieves higher accuracy at the same compression ratio compared to several baselines.
  • The spectrally relaxed regularization promotes approximately hard cluster assignments during re-training, aiding subsequent weight sharing.
  • Row-wise k-means parameter sharing enables effective compression of convolutional layers with favorable energy-aware profiles.
  • Energy-aware metrics show strong correlation with hardware-extrapolated estimates (R^2 up to 0.9931 on AlexNet and 0.9675 on GoogLeNet_v1).
  • On large models like GoogleNet, compression at low CRs (CR ≤ 3) is nearly lossless, with modest accuracy impacts at higher CRs.

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.