[Paper Review] A Simplified Fully Quantized Transformer for End-to-end Speech Recognition
This paper proposes a simplified, fully quantized Transformer for end-to-end speech recognition that achieves 10x model compression with no performance loss by removing decoder-side convolutions, positional encodings, and reducing hidden dimensionality, followed by 8-bit post-training quantization. The resulting model enables efficient on-device inference while maintaining full-precision ASR accuracy on Librispeech.
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 enable efficient on-device deployment of Transformer-based end-to-end ASR systems by reducing model size and computational cost.
- To investigate the impact of removing specific components—such as decoder-side convolutions and positional encodings—on ASR performance.
- To evaluate the feasibility of fully quantizing a compact Transformer to 8-bit fixed-point precision without performance degradation.
- To achieve significant model compression while maintaining state-of-the-art recognition accuracy on standard benchmarks.
Proposed method
- The authors simplify the Transformer by reducing the hidden dimension and removing decoder-side 1D causal convolutions and sinusoidal positional encodings.
- They apply post-training quantization to both weights and activations, converting them to 8-bit fixed-point representation.
- The model is trained with large batch sizes (80k audio frames) to ensure convergence, especially after architectural simplifications.
- Activation clamping ranges are fine-tuned over 1,000 steps post-quantization to prevent degenerate outputs.
- The final model uses a standard Transformer architecture with multi-head self-attention and feed-forward networks, but with reduced capacity and no explicit positional encoding.
- Quantization is applied using a scheme similar to that in [21], ensuring compatibility with efficient inference hardware.
Experimental results
Research questions
- RQ1Can the performance of a full-precision Transformer ASR model be preserved after removing decoder-side convolutions and positional encodings?
- RQ2To what extent can model size be reduced through architectural simplification and weight/activation quantization without performance loss?
- RQ3Does post-training 8-bit quantization maintain ASR accuracy when applied to a simplified Transformer architecture?
- RQ4Is there a training strategy that enables convergence and stable inference after significant architectural and precision reduction?
Key findings
- The simplified model without positional encodings and decoder convolutions maintains full-precision ASR performance, indicating that the autoregressive decoder structure implicitly learns positional information.
- Post-training 8-bit quantization reduces model size by 4x compared to the simplified model, achieving a total compression of over 10x from the original 138M-parameter baseline.
- The final fully quantized model achieves word error rates comparable to the full-precision baseline on the Librispeech dev-clean set, with no measurable performance drop.
- The model requires large-batch training (80k frames) to converge, and a 1,000-step fine-tuning of activation clamping ranges is critical to avoid degenerate outputs after quantization.
- The absence of quantization-aware training does not significantly affect performance, and the full-precision performance is recovered through post-quantization calibration.
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.