Post-Training Quantization of Generative and Discriminative LSTM Text Classifiers: A Study of Calibration, Class Balance, and Robustness
Not on the map. Why?
Abstract (arXiv)
Text classification plays a pivotal role in edge computing applications like industrial monitoring, health diagnostics, and smart assistants, where low latency and high accuracy are both key requirements. Generative classifiers, in particular, have been shown to exhibit robustness to out-of-distribution and noisy data, which is an extremely critical consideration for deployment in such real-time edge environments. However, deploying such models on edge devices faces computational and memory constraints. Post Training Quantization (PTQ) reduces model size and compute costs without retraining, making it ideal for edge deployment. In this work, we present a comprehensive comparative study of generative and discriminative Long Short Term Memory (LSTM)-based text classification models with PTQ using the Brevitas quantization library. We evaluate both types of classifier models across multiple bitwidths and assess their robustness under regular and noisy input conditions. We find that while discriminative classifiers remain robust, generative ones are more sensitive to bitwidth, calibration data used during PTQ, and input noise during quantized inference. We study the influence of class imbalance in calibration data for both types of classifiers, comparing scenarios with evenly and unevenly distributed class samples including their effect on weight adjustments and activation profiles during PTQ. Using test statistics derived from nonparametric hypothesis testing, we identify that using class imbalanced data during calibration introduces insufficient weight adaptation at lower bitwidths for generative LSTM classifiers, thereby leading to degraded performance. This study underscores the role of calibration data in PTQ and when generative classifiers succeed or fail under noise, aiding deployment in edge environments.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 32 of its 49 references that are in the map. First posted on arXiv 13 Jul 2025.
Builds on
32 of 49 references.
References · 32
- 2017Attention Is All You Needcited by 60,361
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2014Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Imagescited by 776
- 2019Learned Step Size Quantizationcited by 628
- 2020Up or Down? Adaptive Rounding for Post-Training Quantizationcited by 621
- 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 526
- 2021A White Paper on Neural Network Quantizationcited by 472
- 2024SpinQuant: LLM quantization with learned rotationscited by 471
20 more
- 2018HAQ: Hardware-Aware Automated Quantization with Mixed Precisioncited by 443
- 2019How to Fine-Tune BERT for Text Classification?cited by 411
- 2019Data-Free Quantization Through Weight Equalization and Bias Correctioncited by 336
- 2019Q8BERT: Quantized 8Bit BERTcited by 300
- 2020fastai: A Layered API for Deep Learningcited by 183
- 2021Understanding and Overcoming the Challenges of Efficient Transformer Quantizationcited by 141
- 2015A Sensitivity Analysis of (and Practitioners' Guide to) Convolutional Neural Networks for Sentence Classificationcited by 92
- 2023Generative models improve fairness of medical classifiers under distribution shiftscited by 90
- 2019Robust Inference via Generative Classifiers for Handling Noisy Labelscited by 68
- 2023On the Impact of Calibration Data in Post-training Quantization and Pruningcited by 58
- 2020EasyQuant: Post-training Quantization via Scale Optimizationcited by 57
- 2018Are Generative Classifiers More Robust to Adversarial Attacks?cited by 36
- 2017Generative and Discriminative Text Classification with Recurrent Neural Networkscited by 31
- 2025Qronos: Correcting the Past by Shaping the Future... in Post-Training Quantizationcited by 28
- 2020A Greedy Algorithm for Quantizing Neural Networkscited by 22
- 2020The Effect of Class Imbalance on Precision-Recall Curvescited by 5
- 2019Latent-Variable Generative Models for Data-Efficient Text Classificationcited by 4
- 2022Empirical Evaluation of Post-Training Quantization Methods for Language Taskscited by 4
- 2023FP8-BERT: Post-Training Quantization for Transformercited by 4
- 2021Generative and Discriminative Deep Belief Network Classifiers: Comparisons Under an Approximate Computing Frameworkcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Generative or Discriminative? Revisiting Text Classification in the Era of Transformers
- 2025Quantization Meets dLLMs: A Systematic Study of Post-training Quantization for Diffusion LLMs
- 2026LFQ: Logit-aware Final-block Quantization for Boosting the Generation Quality of Low-Bit Quantized LLMs
- 2026pQuant: Towards Effective Low-Bit Language Models via Decoupled Linear Quantization-Aware Training
- 2025Fine-Tuning Causal LLMs for Text Classification: Embedding-Based vs. Instruction-Based Approaches
- 2023QLLM: Accurate and Efficient Low-Bitwidth Quantization for Large Language Models
- 2025Layer-Wise High-Impact Parameter Ratio Optimization in Post-Training Quantization for Large Language Models
- 2026Robust Ultra Low-Bit Post-Training Quantization via Stable Diagonal Curvature Estimate