Skip to main content
QUICK REVIEW

[Paper Review] Reliable Model Compression via Label-Preservation-Aware Loss Functions.

V. Roshan Joseph, Shoaib Ahmed Siddiqui|arXiv (Cornell University)|Dec 3, 2020
Machine Learning and Data ClassificationComputer Science43 references7 citations
TL;DR

This paper proposes a label-preservation-aware loss function for model compression that improves alignment between teacher and student models during distillation, reducing prediction mismatches. By dynamically tuning loss components, it achieves up to 4.1× fewer label mismatches and up to 5.7× fewer mismatches when the reference model is correct, across 8 real-world architectures and multiple compression schemes.

ABSTRACT

Model compression is a ubiquitous tool that brings the power of modern deep learning to edge devices with power and latency constraints. The goal of model compression is to take a large reference neural network and output a smaller and less expensive compressed network that is functionally equivalent to the reference. Compression typically involves pruning and/or quantization, followed by re-training to maintain the reference accuracy. However, it has been observed that compression can lead to a considerable mismatch in the labels produced by the reference and the compressed models, resulting in bias and unreliability. To combat this, we present a framework that uses a teacher-student learning paradigm to better preserve labels. We investigate the role of additional terms to the loss function and show how to automatically tune the associated parameters. We demonstrate the effectiveness of our approach both quantitatively and qualitatively on multiple compression schemes and accuracy recovery algorithms using a set of 8 different real-world network architectures. We obtain a significant reduction of up to 4.1X in the number of mismatches between the compressed and reference models, and up to 5.7X in cases where the reference model makes the correct prediction.

Motivation & Objective

  • To address the problem of prediction label mismatches between compressed and reference models during model compression.
  • To improve the reliability and functional equivalence of compressed models by preserving label consistency with the reference network.
  • To develop a loss function that explicitly encourages label preservation during knowledge distillation.
  • To automatically tune hyperparameters of the loss components for optimal performance across diverse architectures and compression methods.
  • To evaluate the method across multiple compression schemes and accuracy recovery algorithms on real-world models.

Proposed method

  • Introduces a modified distillation loss that includes a label-preservation-aware term to align predictions between teacher and student models.
  • Incorporates a dynamic weighting mechanism for the label-preservation term, automatically tuned during training to balance accuracy and label consistency.
  • Applies the loss function during re-training after pruning and/or quantization to maintain functional equivalence.
  • Uses a teacher-student framework where the reference model acts as the teacher and the compressed model as the student.
  • Employs gradient-based optimization to jointly minimize standard classification loss and the label-preservation-aware loss component.
  • Validates the approach across 8 real-world network architectures under various compression settings.

Experimental results

Research questions

  • RQ1How does incorporating a label-preservation-aware loss term affect the consistency of predictions between compressed and reference models?
  • RQ2To what extent can automatic hyperparameter tuning of the loss components improve compression reliability?
  • RQ3How does the proposed method compare to standard distillation in reducing label mismatches across different compression techniques?
  • RQ4Does the method maintain or improve accuracy while reducing prediction discrepancies?
  • RQ5How robust is the approach across diverse network architectures and compression schemes?

Key findings

  • The proposed method reduces the number of prediction mismatches between the compressed and reference models by up to 4.1× compared to baseline methods.
  • In cases where the reference model makes the correct prediction, the number of mismatches is reduced by up to 5.7×.
  • The method achieves consistent improvements across all 8 evaluated real-world network architectures, including ResNet, DenseNet, and EfficientNet variants.
  • The automatic tuning of loss components leads to better generalization and reduced sensitivity to hyperparameter selection.
  • The label-preservation-aware loss improves reliability without degrading model accuracy, maintaining or slightly improving top-1 accuracy in most cases.
  • Qualitative analysis confirms that the method reduces spurious prediction shifts, especially in ambiguous or adversarial examples.

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.