Quantized Approximately Orthogonal Recurrent Neural Networks
Armand Foucault, Franck Mamalet, François Malgouyres
TL;DR
The paper tackles the challenge of quantizing Orthogonal Recurrent Neural Networks (ORNNs) to enable edge deployment while preserving long-term dependencies. It introduces Quantized Approximately Orthogonal RNNs (QORNNs) and develops two Quantization-Aware Training approaches, STE-projUNN and STE-Björck, along with post-training activation quantization, achieving competitive results with as few as 4 bits for weights on benchmarks like copy-task and pMNIST. The key theoretical contribution includes bounds on the approximate orthogonality of quantized weights, and the empirical results demonstrate that a fully quantized recurrence can solve very long sequences (e.g., $T_0=1000$) with small model footprints, outperforming many prior quantized RNNs on long-range tasks. These findings advance practical, energy-efficient RNNs for edge computing and lay groundwork for quantizing other long-range models such as SSSMs.
Abstract
In recent years, Orthogonal Recurrent Neural Networks (ORNNs) have gained popularity due to their ability to manage tasks involving long-term dependencies, such as the copy-task, and their linear complexity. However, existing ORNNs utilize full precision weights and activations, which prevents their deployment on compact devices.In this paper, we explore the quantization of the weight matrices in ORNNs, leading to Quantized approximately Orthogonal RNNs (QORNNs). The construction of such networks remained an open problem, acknowledged for its inherent instability. We propose and investigate two strategies to learn QORNN by combining quantization-aware training (QAT) and orthogonal projections. We also study post-training quantization of the activations for pure integer computation of the recurrent loop. The most efficient models achieve results similar to state-of-the-art full-precision ORNN, LSTM and FastRNN on a variety of standard benchmarks, even with 4-bits quantization.
