Compressing 1D Time-Channel Separable Convolutions Using Sparse Random Ternary Matrices

Gonçalo Mordido, Matthijs Van Keirsbilck, Alexander Keller

Abstract

We demonstrate that 1×1-convolutions in 1D time-channel separable convolutions may be replaced by constant, sparse random ternary matrices with weights in -1, 0, +1. Such layers do not perform any multiplications and do not require training. Moreover, the matrices may be generated on the chip during computation and therefore do not require any memory access. With the same parameter budget, we can afford deeper and more expressive models, improving the Pareto frontiers of existing models on several tasks. For command recognition on Google Speech Commands v1, we improve the state-of-the-art accuracy from 97.21% to 97.41% at the same network size. Alternatively, we can lower the cost of existing models. For speech recognition on Librispeech, we halve the number of weights to be trained while only sacrificing about 1% of the floating-point baseline’s word error rate.

Introduction

Deploying deep learning models for speech and command recognition on "edge" devices—such as smart speakers or wearable technology—presents significant challenges due to limited memory, battery life, and processing power. While efficient architectures like QuartzNet and MatchboxNet utilize time-channel separable convolutions to reduce complexity, the 1x1 convolutions (pointwise layers) within their residual blocks still dominate the parameter count. Traditionally, these weights are 32-bit floating-point numbers that must be learned during training and stored in memory. This research explores whether these specific layers can be replaced with fixed, multiplication-free structures to drastically reduce computational and memory overhead without compromising performance.

Methodology: Sparse Random Ternary Matrices

The core of the proposed method is the replacement of trained 1x1 convolutions with Sparse Random Ternary Matrices (RTMs). This approach relies on four key principles:

  1. Ternary Weights: Weights are restricted to $\{-1, 0, +1\}$. This simplifies matrix multiplication into a "scaled difference of sums," requiring only additions and subtractions—operations that are significantly cheaper for hardware than floating-point multiplications.
  2. Random and Constant Initialization: These weights are generated once and remain fixed throughout training. Only the surrounding temporal convolutions and batch normalization layers are updated.
  3. On-the-fly Generation: By using pseudo-random number generators or hash functions, the matrices can be recreated on-chip during computation. This eliminates the need to store them in memory, drastically reducing memory bandwidth requirements.
  4. Sparsity Control: A threshold parameter $t$ allows for controlling the density of the matrix. Experiments showed that models remain robust even with up to 90% sparsity in these layers.

Analysis and Insights

A pivotal discovery in this work is that the specific learned values of 1x1 convolutions may be less important than their connectivity structure. The authors observed that quantized versions of trained 1x1 convolutions are visually indistinguishable from purely random ones, suggesting that the "randomness" itself provides a sufficient basis for feature transformation when combined with trained temporal layers.

Visualization of model weights and activations across different architectural configurations (a-e), illustrating the integration of RTMs and identity skip links.

Furthermore, the researchers found that while 1x1 layers are highly amenable to randomization, "skip links" (residual shortcuts) are more sensitive. Utilizing simple identity skip links proved more effective than attempting to ternarize them, ensuring stable gradient flow during training.

Experimental Results

The method was evaluated on three standard benchmarks: Google Speech Commands (GSC) v1, AN4, and Librispeech.

Improving the Pareto Frontier

By treating 1x1 layers as "free" in terms of trainable parameters, the researchers could increase model depth or width within the same parameter budget. On the Google Speech Commands task, this approach pushed the state-of-the-art accuracy from 97.21% to 97.41%.

Pareto frontier for MatchboxNet on Google Speech Commands v1, showing the improved trade-off between error rate and the number of trainable FP32 parameters.

Large-Scale Scalability

On the 1,000-hour Librispeech dataset, the method demonstrated impressive compression capabilities. The number of trainable parameters was reduced from 19M to 11M (a nearly 50% reduction) with only a marginal increase in Word Error Rate (WER), moving from 3.98% to 4.30% on the "dev-clean" set. This confirms that the approach scales effectively to complex, large-vocabulary speech recognition tasks.

Conclusion and Future Work

This work demonstrates that 1x1 convolutions in speech models do not necessarily need to be learned. By utilizing sparse RTMs, researchers can eliminate multiplications and significantly reduce the memory footprint of state-of-the-art models. While these benefits were demonstrated on GPUs, the full potential of this approach lies in custom ASIC or FPGA implementations designed for ternary logic. Future research will explore applying this technique to other architectures, such as the Conformer, to further push the boundaries of efficient edge AI.

Summary updated

BibTeX
@inproceedings{mordido2021compressing,
  author = {Gonçalo Mordido and Matthijs Van Keirsbilck and Alexander Keller},
  title = {{Compressing 1D Time-Channel Separable Convolutions Using Sparse Random Ternary Matrices}},
  booktitle = {Interspeech},
  year = {2021},
  url = {https://openreview.net/forum?id=8R3vYWqQ3H},
}
Figure