# Poster 29150

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/29150

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi, I am Armand Foucault and I'm going to present you our work with François Malbouire and Franck Mamalet on Binary and Sparse Ternary Orthogonal RNN and our model called Halam RNN.
First off, all RNN are regular neural networks with an orthogonal recurrent weight matrix, the recurrent weight matrix being W here in this equation. Where W is orthogonal, why is it for so, is because the orthogonality allow to circumvent both the vanishing and exploding gradient issues. Now binarization and ternarization for us is the process of constraining the weights and or the activations of a network to take 2 for binarization or 3 for ternarization distinct values.
The goal in this paper is to binauralize or ternarize the recurrent weight matrix W. The issue here being that naive binauralization or ternarization schemes do move away from orthogonality and then make the problems of vanishing or exploding gradient come back. Our contributions are the following ones. First we propose a lightweight, fully quantized orthogonal recurrent neural networks that has binary or ternary orthogonal recurrent weight matrix.
And we are able to battle model with our model long -term dependency modeling problems to do that better than some LSTM or GRU which has comparable size in terms of kilobytes. And we are able to solve an array of benchmarks which are displayed here.
For the theory our model rely on the Hadamard metrics theory. These matrices are square matrices that have values in negative 1 1 and that have rows which are pairwise orthogonal. Now if H is a Hadamard metrics then it has the property that F H times H transpose is equal to DH times identity metrics where DH is the size of the matrix.
In our Hadamard or RNN model, Hadamard RNN is an orthogonal neural network that have a linear activation, this is important, the activation being the identity, the function sigma in the previous equation.
And the Recurrent Neural Network Matrix W is parametriised according to the following equation. There you can see it includes a trainable vector U, which is a negative one one vector, and it includes a fixed hyper parameter parameter, which is the matrix S. Here this matrix S is a Hadamard matrix, a specific one which is called the Silvester matrix. An example of such parametrised W would be the following matrix.
matrix when the dimension is the h is equal to 4 with u being this vector here and in blue you have the Sylvester matrix of size 4 this is a Hadamard matrix and this w here is a binary is a binary matrix orthogonal for the training we train the vector u using the straight through estimator which is very well known for training quantized neural networks
I don't go into detail about that, but as I said we also extend the Hadam RNM to a sparse tensor version which is called block Hadam RNM. We introduce for this model a parameter Q which allow for fine -tuning the trade-off between performance of the model and its computational cost.
For the results, the experimental results, we only display here the copy task and parameter-mixed benchmarks results, but we can find all the benchmarks in the paper. Briefly, what we observe in this table is that our model achieved competitive results with state-of-the-art both full precision and quantized models, and our model does that while having a substantially smaller size in measuring.
billion kilobytes as you can see in the final column. To conclude we introduced the first binary enter enemy learn error recurrent weight orthogonal recurrent neural networks that is an RNN which has binary and or ternary recurrent weight matrix. We introduced the first fully quantized new recurrent neural networks which is able to solve the thousand time steps copy task, the copy task being a famous task which is known to be complex to include to include complex long -term dependencies modeling.
We achieve performance which are competitive with full precision re-renewal networks on a large set of benchmarks. And finally, by introducing a sparse tensor extension, we allow to fine-tune the trade -off between performance and computational cost.
For the perspectives, we think that it will be interesting to also try n-binaries or ternaries, the matrix of a space state space models, which are famous for sequential modelling as well. It will also be interesting to try and deploy our Hadamard RNN or our block Hadamard RNN on edge devices. Now thank you for your attention.
