atlas

Research map / Architectures and efficiency / Pruning and efficient tuning

HADAMRNN: BINARY AND SPARSE TERNARY ORTHOGONAL RNNS

ICLR 2025 · Architectures and efficiency › Pruning and efficient tuning · approach: Sparse training from scratch

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes HadamRNN and Block-HadamRNN, orthogonal RNNs whose recurrent weights are binary or sparse ternary, built by sign-flipping rows of Sylvester Hadamard matrices and trained with the straight-through estimator.

Problem

Vanilla and orthogonal RNNs are highly sensitive to recurrent weight changes, so binarizing or ternarizing recurrent weights has not succeeded; prior quantized ORNNs need at least 4-5 bits and quantized LSTMs fail long-horizon tasks such as the 1000-step copy task.

Approach

Parameterize binary orthogonal recurrent matrices as diag(u) times a normalized Sylvester Hadamard matrix with trainable binary sign vector u (and sparse ternary block-diagonal variants with I_q kron Hadamard), so orthogonality holds by construction and u is trained with STE.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use binary orthogonal recurrent weights instead of 5-bit QORNN weightsHadamRNN versus QORNN · Copy task (T=1000)cross-entropy: 2.5e-3 -> 1.6e-7Helped
Quantize activations to 12 bits (ablation)HadamRNN · Permuted MNISTaccuracy: 94.88 -> 94.90No clear effect
Quantize activations to 12 bits (ablation)HadamRNN · Sequential MNISTaccuracy: 96.63 -> 96.34Hurt
Increase U and V bitwidth from 2 to 4 bits (ablation)HadamRNN · Permuted MNISTaccuracy: 91.13 -> 94.88Helped
Increase U and V bitwidth from 2 to 4 bits (ablation)HadamRNN · Sequential MNISTaccuracy: 92.65 -> 96.63Helped
Increase hidden size from 128 to 512 (ablation)HadamRNN · IMDBaccuracy: 85.34 -> 87.43Helped
Use ternary rather than 2-bit U and V (ablation)HadamRNN (hidden size 128) · IMDBaccuracy: 85.34 -> 81.18Hurt
Use sparse ternary recurrent weights with q=8 instead of binary weights (ablation)Block-HadamRNN versus HadamRNN · Copy task (T=1000)cross-entropy: 1.6e-7 -> 6.6e-5Hurt
Use sparse ternary recurrent weights with q=2 instead of binary weights (ablation)Block-HadamRNN versus HadamRNN · Permuted MNISTaccuracy: 94.88 -> 93.12Hurt
Use sparse ternary recurrent weights with q=2 instead of binary weights (ablation)Block-HadamRNN versus HadamRNN · Sequential MNISTaccuracy: 96.63 -> 96.47Hurt
Use sparse ternary recurrent weights with q=2 instead of binary weights (ablation)Block-HadamRNN versus HadamRNN · IMDBaccuracy: 87.43 -> 86.30Hurt
Increase q from 2 to 128 (ablation)Block-HadamRNN · Permuted MNISTaccuracy: 93.12 -> 60.74Hurt

Surprising findings

Limitations

Experimental setup

Datasets: copy task (synthetic) permuted MNIST sequential MNIST IMDB SST-2 QQP

Benchmarks: copy task permuted MNIST sequential MNIST IMDB SST-2 QQP HAR-2 DSA-19

Metrics: accuracy cross-entropy model size (kB) additions count

Baselines: LSTM ORNN QORNN FastGRNN BiBERT BinaryBERT TernaryBERT

Builds on: orthogonal RNN QORNN straight-through estimator BinaryConnect

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy