[Paper Review] Toward Computation and Memory Efficient Neural Network Acoustic Models with Binary Weights and Activations
This paper proposes training deep neural network acoustic models with binary weights and activations to drastically reduce memory usage and accelerate computation. By replacing real-valued weights and activations with {-1, +1} or {0, 1} values, matrix multiplications are replaced with fast bitwise and addition operations, enabling efficient inference on resource-constrained devices. The method achieves competitive WERs on WSJ and AMI datasets, with binary weight models reducing WER by ~1% absolute on AMI when using semi-stochastic binarization.
Neural network acoustic models have significantly advanced state of the art speech recognition over the past few years. However, they are usually computationally expensive due to the large number of matrix-vector multiplications and nonlinearity operations. Neural network models also require significant amounts of memory for inference because of the large model size. For these two reasons, it is challenging to deploy neural network based speech recognizers on resource-constrained platforms such as embedded devices. This paper investigates the use of binary weights and activations for computation and memory efficient neural network acoustic models. Compared to real-valued weight matrices, binary weights require much fewer bits for storage, thereby cutting down the memory footprint. Furthermore, with binary weights or activations, the matrix-vector multiplications are turned into addition and subtraction operations, which are computationally much faster and more energy efficient for hardware platforms. In this paper, we study the applications of binary weights and activations for neural network acoustic modeling, reporting encouraging results on the WSJ and AMI corpora.
Motivation & Objective
- To enable deployment of deep neural network acoustic models on resource-constrained embedded devices by reducing memory footprint and computational cost.
- To investigate the feasibility and performance of neural networks with binary weights and activations in large-vocabulary speech recognition.
- To develop practical training algorithms that mitigate training divergence issues common in binary neural networks.
- To evaluate the impact of different binarization strategies, including semi-stochastic binarization and threshold-based activation binarization.
- To compare performance across different activation ranges, such as (-1, +1) and (0, 1), in the context of speech recognition.
Proposed method
- Binarization of network weights using a stochastic approximation via a temperature-controlled sigmoid function, allowing backpropagation through discrete values.
- Use of a straight-through estimator to backpropagate gradients through the binary activation function, enabling end-to-end training.
- Application of semi-stochastic binarization with a learnable temperature parameter p to gradually transition from real-valued to binary weights during training.
- Threshold-based binarization of activations using a learnable threshold k, with separate optimization for different activation ranges.
- Adoption of a modified ReLU-like activation function with hard-sigmoid approximation for better gradient flow during training.
- Training with a lower initial learning rate (0.001) for binary models compared to the baseline (0.008) to stabilize optimization.
Experimental results
Research questions
- RQ1Can binary weights and activations be effectively used in large-vocabulary speech recognition tasks?
- RQ2How does semi-stochastic binarization with a temperature parameter p affect model convergence and performance?
- RQ3What is the impact of different activation ranges (e.g., (-1, +1) vs. (0, 1)) on model accuracy and training stability?
- RQ4How does threshold-based binarization of activations influence recognition performance and training dynamics?
- RQ5Why do models with both binary weights and activations fail to converge, and what are the underlying optimization challenges?
Key findings
- On the AMI dataset, semi-stochastic binarization with p = 0.01 reduced the WER on the evaluation set by approximately 1% absolute compared to the baseline.
- Binary weight models with p = 0.01 achieved a WER of 29.6% on the dev set and 31.7% on the eval set of the AMI dataset.
- Binary activations with (0,1) range performed significantly better than (-1,+1) when k=1, suggesting better compatibility with Sigmoid-initialized networks.
- Models with (0,1) binarization degraded rapidly as the threshold k increased, likely due to asymmetric approximation errors for negative inputs.
- The binary neural network with both binary weights and activations failed to converge with 2048 hidden units, indicating significant optimization challenges in joint binarization.
- On WSJ1, consistent WER improvements were not observed across dev and eval sets, possibly due to data distribution mismatch, limiting strong conclusions from that dataset.
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.