[Paper Review] Fully Quantizing a Simplified Transformer for End-to-end Speech Recognition
This paper proposes a simplified and fully quantized Transformer for end-to-end speech recognition, reducing model size and enabling edge deployment. By removing non-essential modules and applying 8-bit fixed-point quantization, the authors achieve a 4x model compression while preserving full-precision performance.
While significant improvements have been made in recent years in terms of end-to-end automatic speech recognition (ASR) performance, such improvements were obtained through the use of very large neural networks, unfit for embedded use on edge devices. That being said, in this paper, we work on simplifying and compressing Transformer-based encoder-decoder architectures for the end-to-end ASR task. We empirically introduce a more compact Speech-Transformer by investigating the impact of discarding particular modules on the performance of the model. Moreover, we evaluate reducing the numerical precision of our network's weights and activations while maintaining the performance of the full-precision model. Our experiments show that we can reduce the number of parameters of the full-precision model and then further compress the model 4x by fully quantizing to 8-bit fixed point precision.
Motivation & Objective
- To develop a compact, efficient Transformer architecture suitable for edge deployment in end-to-end speech recognition.
- To investigate the impact of removing specific modules from the Transformer encoder-decoder architecture on ASR performance.
- To evaluate the effect of reducing numerical precision through full 8-bit fixed-point quantization on model accuracy.
- To achieve significant model compression without sacrificing recognition performance.
Proposed method
- The authors simplify the Transformer by removing non-essential components, such as certain attention mechanisms or feed-forward layers, to reduce parameter count.
- They apply post-training quantization to convert full-precision weights and activations to 8-bit fixed-point representation.
- The simplified model is trained end-to-end on speech recognition data with standard loss functions.
- Model compression is achieved through systematic module removal followed by full quantization to 8-bit precision.
- Performance is evaluated using standard ASR metrics such as word error rate (WER) on benchmark datasets.
- The approach maintains full-precision performance levels despite significant compression.
Experimental results
Research questions
- RQ1How does removing specific modules from a Transformer affect end-to-end ASR performance?
- RQ2To what extent can numerical precision be reduced via quantization without degrading ASR accuracy?
- RQ3Can a simplified Transformer with reduced parameters be effectively quantized to 8-bit fixed-point precision while maintaining performance?
- RQ4What is the maximum achievable compression ratio through module simplification and full quantization?
Key findings
- The simplified Transformer model achieves a 4x reduction in model size after full 8-bit quantization.
- The quantized model maintains the same word error rate (WER) as the full-precision baseline.
- Removal of non-essential modules reduces the number of parameters without significant performance degradation.
- Full 8-bit quantization preserves model accuracy, enabling deployment on resource-constrained edge devices.
- The combination of architectural simplification and quantization enables efficient, low-latency inference on edge hardware.
- The approach demonstrates that high-accuracy end-to-end ASR is feasible on edge devices through model compression.
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.