An asymmetric heuristic for trained ternary quantization based on the statistics of the weights: an application to medical signal classification - Archive ouverte HAL
Article Dans Une Revue Pattern Recognition Letters Année : 2024

An asymmetric heuristic for trained ternary quantization based on the statistics of the weights: an application to medical signal classification

Résumé

One of the main challenges in the field of deep learning and embedded systems is the mismatch between the memory, computational and energy resources required by the former for good performance and the resource capabilities offered by the latter. It is therefore important to find a good trade-off between performance and computational resources used. In this study, we propose a novel ternarization heuristic based on the statistics of the weights, in addition to asymmetric pruning. Our approach involves the computation of two asymmetric thresholds based on the mean and standard deviation of the weights. This allows us to distinguish between positive and negative values prior to ternarization. Two hyperparameters are introduced into these thresholds, which permit the user to control the trade-off between compression and classification performance. Following thresholding, ternarization is carried out in accordance with the methodology of trained ternary quantisation (TTQ). The efficacy of the method is evaluated on three datasets, two of which are medical: a cerebral emboli (HITS) dataset, an epileptic seizure recognition (ESR) dataset, and the MNIST dataset. Two types of deep learning models were tested: 2D convolutional neural networks (CNNs) and 1D CNN-transformers. The results demonstrate that our approach, aTTQ, achieves a superior trade-off between classification performance and compression rate compared with TTQ, for all the models and datasets. In fact, our method is capable of reducing the memory requirements of a 1D CNN-transformer model for the ESR dataset by over 21% compared to TTQ, while maintaining a Matthews correlation coefficient of 95%. The code is available at: https://github.com/attq-submission/aTTQ.

Fichier principal
Vignette du fichier
aTTQ_PRL_Final.pdf (502.26 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-04777110 , version 1 (12-11-2024)

Licence

Identifiants

  • HAL Id : hal-04777110 , version 1

Citer

Yamil Vindas, Emmanuel Roux, Blaise Kévin Guépié, Marilys Almar, Philippe Delachartre. An asymmetric heuristic for trained ternary quantization based on the statistics of the weights: an application to medical signal classification. Pattern Recognition Letters, In press. ⟨hal-04777110⟩
23 Consultations
16 Téléchargements

Partager

More