[Paper Review] Trace norm regularization and faster inference for embedded speech recognition RNNs
This paper introduces trace norm regularization to train low-rank recurrent and fully connected layers in speech recognition models, enabling better parameter-accuracy trade-offs without prior rank knowledge. It also presents optimized ARM64 kernels that accelerate inference by 3x–7x at low batch sizes, significantly improving on-device performance for embedded LVCSR systems.
We propose and evaluate new techniques for compressing and speeding up dense matrix multiplications as found in the fully connected and recurrent layers of neural networks for embedded large vocabulary continuous speech recognition (LVCSR). For compression, we introduce and study a trace norm regularization technique for training low rank factored versions of matrix multiplications. Compared to standard low rank training, we show that our method leads to good accuracy versus number of parameter trade-offs and can be used to speed up training of large models. For speedup, we enable faster inference on ARM processors through new open sourced kernels optimized for small batch sizes, resulting in 3x to 7x speed ups over the widely used gemmlowp library. Beyond LVCSR, we expect our techniques and kernels to be more generally applicable to embedded neural networks with large fully connected or recurrent layers.
Motivation & Objective
- Address the challenge of deploying large, accurate speech recognition models on resource-constrained embedded devices with strict latency and size constraints.
- Reduce model size and inference latency in large vocabulary continuous speech recognition (LVCSR) systems by compressing dense matrix multiplications in RNNs and fully connected layers.
- Improve training efficiency and model accuracy for low-rank factorized networks through a novel trace norm regularization technique that automatically selects optimal rank.
- Optimize inference performance on ARM processors by designing custom kernels tailored for small batch sizes, which are common in sequential RNN processing.
Proposed method
- Apply variational trace norm regularization during training to induce low-rank structure in weight matrices, promoting sparsity in singular values without requiring manual rank selection.
- Use a two-stage training approach: first pre-train a full-rank model, then initialize a low-rank model via truncated SVD of the pre-trained weights, followed by trace norm-regularized fine-tuning.
- Implement custom, hand-optimized assembly kernels for 64-bit ARM (AArch64) processors targeting low batch sizes (1–4), improving memory bandwidth utilization and computation efficiency.
- Combine the trace norm regularization with int8 quantization and model pruning to further compress models while maintaining accuracy.
- Benchmark performance against gemmlowp, a widely used low-precision GEMM library, on devices including iPhone 7, iPhone 6, and Raspberry Pi 3.
- Release optimized kernels and implementation details via GitHub to enable broader adoption in embedded deep learning systems.
Experimental results
Research questions
- RQ1Can trace norm regularization improve the accuracy and parameter efficiency of low-rank factorized RNNs in speech recognition without requiring prior knowledge of optimal rank?
- RQ2How effective is trace norm regularization in reducing the number of parameters while maintaining competitive WER in LVCSR models?
- RQ3To what extent do custom ARM64 kernels improve inference speed for low batch size GEMMs compared to existing libraries like gemmlowp?
- RQ4What is the impact of low batch size optimization on end-to-end latency in on-device speech recognition systems?
- RQ5Can the combination of low-rank factorization, quantization, and optimized kernels enable production-grade on-device speech recognition across diverse embedded devices?
Key findings
- Trace norm regularization enables automatic rank selection and achieves better accuracy versus parameter trade-offs than standard low-rank training, with relative WER increases of -19.6% (iPhone 7), -27.4% (iPhone 6), and -37.6% (Raspberry Pi 3) compared to a full-size baseline.
- The proposed ARM64-optimized kernels achieve 3x to 7x faster inference than gemmlowp on devices including iPhone 7, iPhone 6, and Raspberry Pi 3, especially in the low batch size regime (1–4).
- The combination of low-rank factorization, int8 quantization, and custom kernels reduces acoustic model size to as low as 14 MB (Raspberry Pi 3) while maintaining acceptable WER.
- Inference latency is significantly reduced, with real-time factors dropping from 10.39 on a GPU server to 1.08 on Raspberry Pi 3, achieving 86.3% of real-time performance.
- The method is generalizable beyond LVCSR, offering a practical framework for compressing and accelerating neural networks with large dense or recurrent layers on embedded platforms.
- The trace norm regularization technique is shown to be effective in inducing low-rank structure, with improved convergence and reduced sensitivity to initial rank choice compared to standard SVD-based initialization.
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.