[Paper Review] Statistical Model Compression for Small-Footprint Natural Language Understanding
This paper proposes a post-processing model compression framework for small-footprint natural language understanding (NLU) using parameter quantization and perfect feature hashing, achieving up to 14.25-fold memory reduction with minimal performance degradation—only +0.86% increase in slot error rate and +0.26% in intent classification error rate compared to baseline models.
In this paper we investigate statistical model compression applied to natural language understanding (NLU) models. Small-footprint NLU models are important for enabling offline systems on hardware restricted devices, and for decreasing on-demand model loading latency in cloud-based systems. To compress NLU models, we present two main techniques, parameter quantization and perfect feature hashing. These techniques are complementary to existing model pruning strategies such as L1 regularization. We performed experiments on a large scale NLU system. The results show that our approach achieves 14-fold reduction in memory usage compared to the original models with minimal predictive performance impact.
Motivation & Objective
- Address the challenge of deploying large-scale NLU models on resource-constrained embedded devices such as in-car voice assistants.
- Reduce on-demand model loading latency in cloud-based systems by shrinking the memory footprint of skill-specific NLU models.
- Enable efficient deployment of NLU models in offline environments where internet connectivity is unavailable.
- Maintain high predictive performance while significantly reducing model size through post-processing compression techniques.
- Provide a plug-and-play compression pipeline compatible with existing model training pipelines without requiring retraining or separate configurations.
Proposed method
- Apply parameter quantization to reduce the precision of model weights, decreasing memory usage while preserving predictive performance.
- Implement perfect feature hashing to map high-dimensional feature spaces into compact, fixed-size representations using deterministic hashing functions.
- Combine quantization and perfect hashing to achieve synergistic compression gains beyond individual techniques.
- Use fingerprinting in the hashing process to reduce false positives and minimize performance degradation during feature mapping.
- Optimize the trade-off between memory footprint, inference speed, and predictive accuracy through controlled quantization levels and hashing schemes.
- Evaluate the compression pipeline on real-world NLU tasks including domain classification, intent classification, and named-entity recognition using MaxEnt and CRF models.
Experimental results
Research questions
- RQ1To what extent can parameter quantization reduce the memory footprint of statistical NLU models without significant performance loss?
- RQ2How effective is perfect feature hashing in compressing high-dimensional NLU feature spaces while maintaining model accuracy?
- RQ3What is the combined impact of quantization and perfect hashing on model size, inference speed, and predictive performance?
- RQ4How do false positives in feature hashing affect model reliability, and can fingerprinting mitigate this issue?
- RQ5What is the optimal balance between memory reduction, latency, and predictive accuracy in compressed NLU models for real-world deployment?
Key findings
- The proposed compression framework achieves a 14.25-fold reduction in model memory size compared to the original baseline models with minimal performance degradation.
- The compressed models show only a +0.86% relative increase in slot error rate (SER) and +0.26% in intent classification error rate (ICER) on the supported domains test set.
- For ultra-compressed models without fingerprinting, the memory reduction reaches 25.3-fold, though with higher error increases of +2.20% in SER and +3.14% in ICER.
- Per-domain performance analysis reveals that most domains experience less than 1% increase in F-ICER, except Domain 3, which sees a +1.58% increase due to sparse, high-impact features.
- False positives in hashing introduce only small noise because most parameters are near zero, making the impact of incorrect feature mapping tolerable.
- The combination of quantization and perfect hashing provides a strong trade-off between memory savings, inference speed, and predictive accuracy, making it viable for both embedded and cloud-based NLU systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.