---
title: "Effective Quantization Approaches for Recurrent Neural Networks"
description: "How binary, ternary and quaternary weight quantization affects recurrent networks for sentiment analysis and moving-digit prediction."
canonical: "https://research.elamur.ai/free/en/papers/alom-2018-effective-quantization-approaches-recurrent-neural/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/alom-2018-effective-quantization-approaches-recurrent-neural/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2018](https://md.research.elamur.ai/free/en/papers/2018/) / Effective Quantization Approaches for Recurrent Neural Networks

# Effective Quantization Approaches for Recurrent Neural Networks

Paper · 2018 · Md Zahangir Alom; Adam T Moody; Naoya Maruyama; Brian C Van Essen; and Tarek M. Taha

**Authors:** [Md Zahangir Alom; Adam T Moody; Naoya Maruyama; Brian C Van Essen;](https://md.research.elamur.ai/free/en/authors/md-zahangir-alom-adam-t-moody-naoya-maruyama-brian-c-van-essen/) and [Tarek M. Taha](https://md.research.elamur.ai/free/en/authors/tarek-m-taha/) · **Year:** 2018 · **Venue:** arXiv:1802.02615 · **Licence:** [CC BY 4.0 (arXiv)](http://creativecommons.org/licenses/by/4.0/)

[licence](http://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/1802.02615)
- [arXiv 1802.02615](https://arxiv.org/abs/1802.02615)

## What it is about

How binary, ternary and quaternary weight quantization affects recurrent networks for sentiment analysis and moving-digit prediction. · about 35 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

Recurrent neural networks process sequences by carrying information from earlier steps into later ones. That ability makes them useful for tasks such as reading a review or predicting the next image in a video, but it also creates a deployment problem: repeatedly applying large weight arrays requires computation, memory capacity and memory traffic. *Effective Quantization Approaches for Recurrent Neural Networks* investigates whether those weights can be restricted to a small collection of values while preserving useful task performance. Its subject belongs to [efficient computation and compression](https://md.research.elamur.ai/free/en/topics/efficient-models/), with particular attention to recurrent architectures intended for resource-constrained devices.

Binary Connect, Ternary Connect and Quaternary Connect are compared with full-precision weights by the authors. Binary Connect uses the values −1 and 1; Ternary Connect adds 0; Quaternary Connect uses −1, −0.5, 0.5 and 1. Their main methodological choice concerns how a real-valued weight is assigned to one of these alternatives. Instead of placing thresholds at fixed locations without considering the actual weights, they use a layer’s mean and standard deviation. They examine threshold arrangements intended to produce either a concentrated, approximately normal pattern of quantized values or a more uniform allocation across the available values.

The investigation covers Long Short Term Memory networks, Gated Recurrent Units and Convolutional Long Short Term Memory networks, abbreviated LSTM, GRU and ConvLSTM. A preliminary addition task helps the authors choose between the proposed distribution patterns. They then evaluate LSTM and GRU on IMDB review classification and ConvLSTM on future-frame prediction with moving MNIST. During training, forward computation uses quantized weights, while updates retain access to full-precision weight values. The experiment therefore concerns restricted weights during propagation, rather than a training process conducted entirely with low-precision arithmetic.

The results support a qualified conclusion. Full precision performs best in the reported comparisons, but the quantized alternatives retain useful predictive ability. For LSTM on IMDB, the reported test accuracies are 82.87% with full precision, 79.64% with Quaternary Connect, 76.86% with Ternary Connect and 76.25% with Binary Connect. The addition experiment favors the approximately normal distribution arrangement over the uniform arrangement, so the authors use that choice in the later ternary and quaternary experiments. For moving MNIST, full precision gives better reconstruction and lower mean squared error, while ternary and quaternary ConvLSTM still produce recognizable future-frame predictions.

The paper presents quantization as a promising route towards embedded recurrent computation, rather than demonstrating a completed hardware implementation. Its experimental evidence concerns training behavior, classification accuracy and frame reconstruction. It does not provide direct measurements of energy consumption, device latency or memory traffic for the proposed recurrent implementations. The useful distinction is between what the experiments establish—how predictive behavior changes under these weight restrictions—and the hardware advantages that motivate the work.

### Ideas worth borrowing

Adapt discretization to the values being represented. A fixed threshold can be poorly matched to a distribution concentrated near zero. The paper’s layer-specific statistics offer a simple way to make discretization responsive to the actual numerical scale. The broader lesson applies to compressed scores, approximate numerical tables and any representation that replaces a continuous range with a small set of categories.

Inspect category occupancy before trusting a compressed representation. A nominally ternary system may assign almost everything to its central value; a nominally quaternary system may effectively use only its inner values. The available vocabulary of numerical states does not establish that the system uses those states meaningfully. Examining occupancy can reveal a failed representation before downstream accuracy becomes the only diagnostic.

Separate precise adaptation from inexpensive execution. The authors retain full-precision weight values for updates while using restricted values in forward computation. This separates the resolution needed to accumulate learning changes from the representation intended for execution. The same design principle can help whenever a system needs a detailed internal estimate but a cheaper published or operational representation.

Use a small diagnostic task to choose an experimental setting. The addition experiment compares distribution arrangements before the main application experiments. A bounded task makes it easier to inspect convergence and detect an unsuitable threshold design. Elsewhere, this suggests testing a proposed representation on a deliberately understandable workload before embedding it in a larger pipeline.

Evaluate a compression rule across different computational structures. The paper applies related quantization choices to gated sequence processing and spatially structured recurrence. Success in a classification setting alone would say little about future-image reconstruction. Testing distinct structures helps identify whether a numerical approximation is broadly useful or depends on one particular architecture and output type.

Measure the quality dimension the application actually needs. Review classification is assessed through accuracy, whereas frame prediction is examined through images and mean squared error. A compressed system can preserve one kind of behavior while damaging another. Evaluation should therefore follow the intended output and its failure modes, instead of treating numerical compression itself as evidence of usefulness.

Keep efficiency claims separate from efficiency measurements. Restricted weight values create opportunities for simpler arithmetic and smaller representations, but the paper’s own task results do not quantify realized device savings. This distinction is reusable in any optimization study: representational simplicity, predictive quality and measured execution cost are related questions that require separate evidence.

### How Mova uses it

Mova is a small, transparent language system implemented in Rust. Its documented direction emphasizes explicit logic, rules and statistics, so the most relevant transfers are not a proposal to replace its language core with recurrent neural computation. They concern controlled approximation, representation diagnostics, experimental design and the separation between internal estimates and admitted operational behavior. The status marks below are proposals against the documented mechanisms; they do not establish that this paper caused an implementation or that a proposed transfer has improved Mova.

Idea: Adapt discretization to observed scale. Where: Section III, the threshold construction using layer statistics. Area: statistics and numerical representation. Mova: нове. A candidate transfer would be to compare statistically chosen boundaries with fixed boundaries when compressing learned feature scores or other approximate numerical information. The documented digest does not establish an existing implementation of this particular rule, and its suitability would depend on the actual score distribution. Why Mova: A transparent boundary derived from inspected data could reduce wasted numerical categories while remaining easy to explain and test.

Idea: Audit whether representational categories are actually used. Where: Section III, Figures 9 and 10. Area: data diagnostics. Mova: частково є (the dictionary occurrence index reports feature counts and explained statistical proposals). Mova could extend that diagnostic habit to any proposed discrete approximation by reporting how often each category occurs and which source values enter it. The paper’s collapsed weight distributions motivate the check, but they do not show that Mova currently suffers the same problem. The benefit would be early detection of a representation that technically offers several states but operationally distinguishes very little.

Idea: Preserve detailed adaptation state behind a cheaper execution view. Where: Section III, forward propagation and full-precision updates. Area: learning and execution. Mova: частково є (the architecture distinguishes parameters, compiled knowledge and separately admitted revisions). A possible numerical extension would retain detailed learned scores while exposing a bounded approximation to an execution path. This would require an explicit correspondence and regression checks. Mova’s existing separation of training from shipped behavior is related, but it is not evidence that the paper’s weight-training procedure is implemented.

Idea: Choose approximation settings on a bounded diagnostic task. Where: Section IV, the addition experiment and Figure 14. Area: evaluation design. Mova: вже є (held-out self-play experiments and regression-gated changes in the documented training workflow). Mova already tests candidate changes before admission. The paper suggests making the diagnostic purpose explicit: a small task should isolate the representation choice under investigation, while the main task determines whether that choice transfers. A local diagnostic success should remain separate from evidence about the complete reader.

Idea: Test the same approximation across different consumers. Where: Section IV, the LSTM, GRU and ConvLSTM experiments. Area: evaluation and architecture. Mova: частково є (shared global knowledge feeds pragmatics, worlds and quantitative reasoning, with regression gates). When changing a shared representation, Mova could examine each affected consumer rather than relying on one aggregate result. The paper’s architectural breadth motivates this comparison, although its findings do not predict which Mova component would be most sensitive.

Idea: Match the metric to the task’s output. Where: Section IV, sentiment accuracy and frame-prediction error. Area: evaluation. Mova: вже є (dependency evaluation, pragmatic evaluation, school assessment and task-specific reader checks). Mova already uses different measurements for different capabilities. The useful transfer is to preserve that separation when evaluating an approximation: parser agreement, retained answers and resource cost should each be measured at the scope where they matter. A favorable result on one does not establish a favorable result on the others.

Idea: Separate expected savings from measured execution cost. Where: Introduction and Section IV. Area: performance measurement. Mova: вже є (CPU reference execution, measured GPU approximants and prospective versus observed costs in the twin tooling). Mova’s documentation already distinguishes predictions from receipts and exact stages from approximants. This paper supplies a concrete reason to maintain the distinction: simple weight alphabets suggest cheaper arithmetic, while the reported experiments establish predictive behavior. A Mova optimization should likewise retain separate evidence for correctness and realized cost.

Idea: Adapt locally instead of imposing one numerical boundary everywhere. Where: Section III, mean and standard deviation calculated for each layer. Area: statistics and configuration. Mova: нове. For an approximate numerical component, Mova could compare a shared boundary with boundaries fitted to individual feature families or components. This is a narrower proposal than changing global logical rules according to local frequencies; exact meanings and invariants would remain governed by their own contracts. Why Mova: Components with different scales may need different numerical treatment, and an explicit local rule would make that choice inspectable.

Idea: Preserve structural absence separately from weak positive or negative influence. Where: Section III, the distinction between ternary and quaternary output values. Area: representation and mathematics. Mova: частково є (typed concepts, explicit gaps and declared failure states in the language and operational layers). A numerical zero can remove a contribution, while a small signed value still contributes. Mova could require approximate score formats to state whether zero denotes a mathematical value, missing evidence or a suppressed contribution. The transfer is conceptual; the paper does not supply an epistemic interpretation of zero.

Idea: Keep exact logical knowledge outside approximate numerical compression. Where: Section III, quantization of weight values. Area: logic and approximation boundaries. Mova: вже є (the exact CPU reference, typed compiled knowledge and declared approximants). The recurrent experiments concern numerical weights, not the truth-preserving compression of rules. Mova can use that boundary when assessing related optimizations: an approximation appropriate for a learned score does not automatically apply to concept identities, exact rationals or rule conditions. This is a constraint on transfer instead of a proposed new quantizer.

Idea: Compare against the corresponding precise implementation. Where: Section IV, full-precision baselines for the recurrent architectures. Area: controlled evaluation. Mova: вже є (GPU-stage agreement is assessed against the CPU path). A candidate approximation should be paired with the implementation whose behavior it is intended to reproduce. That comparison makes disagreement attributable to a declared change rather than to an unrelated architecture. The paper does not completely isolate every possible training influence, but its matched full-precision comparisons provide the relevant experimental pattern.

Idea: Inspect learning behavior as well as final answers. Where: Section IV, the loss and accuracy curves for addition and IMDB. Area: training diagnostics. Mova: частково є (the self-play journal records experiments, and training changes pass held-out gates). Mova could retain convergence information when changing numerical representations, rather than storing only the final score. A compressed representation might learn more slowly or respond differently to a fixed training budget. That possibility should be tested directly, without treating a training curve as a substitute for held-out performance.

Idea: Test accumulated error along a sequence. Where: Section IV.B, future-frame predictions and Figure 23. Area: sequential evaluation. Mova: частково є (world readers track changes over a text, and the Logic Language chain has boundary diagnostics). A candidate approximation could be assessed after successive state updates to locate where divergence first becomes consequential. The paper’s recurrent image task motivates looking beyond an immediate output. Whether an analogous effect occurs in Mova’s explicit world updates is unknown until measured.

Idea: Combine output inspection with an aggregate metric. Where: Section IV.B, reconstructed frames and mean squared error. Area: interpretability and evaluation. Mova: вже є (answers retain reasons, school traces expose decisions, and parse diagnostics expose structure). Mova can preserve both the score and the observable case that produced it. For a reader, that could mean an answer alongside the relevant frame, world change and explanation. The image experiments illustrate why an average error and an inspectable output answer different questions.

Idea: Treat distributional assumptions as hypotheses. Where: Section III, the approximately normal weight distribution illustrated in Figure 7. Area: statistics. Mova: частково є (the occurrence index exposes counts and source strata, while confidence evaluation checks reliability against correctness). A proposed Mova quantizer should first inspect the data it would compress rather than assuming that all learned quantities share the weight pattern in this paper. The authors’ observation concerns their numerical setting. It does not establish a universal distribution for linguistic features or graph statistics.

Idea: Measure the entire deployment path when claiming an operational benefit. Where: Introduction, Section III and the hardware motivation in the conclusion. Area: systems evaluation. Mova: частково є (job tools log estimates and actual resource use, and execution modes declare their boundaries). A compressed internal representation could reduce storage yet add conversion or lookup work. Mova could evaluate that complete path under the intended workload. The paper motivates such measurement but supplies no recurrent-device result that could be imported as a Mova prediction.

Idea: Keep exploratory choices outside frozen assessment. Where: Section IV, the preliminary distribution comparison before the application experiments. Area: experimental procedure. Mova: вже є (held-out development gates and separately protected release assessments). The paper’s sequence of choosing a distribution and then applying it elsewhere is useful, but its reporting does not fully specify the assessment safeguards Mova documents. Mova should retain those stronger boundaries when borrowing the experimental pattern. The borrowed idea is staged exploration, not permission to tune on a final assessment.

Idea: State the scope of architectural transfer explicitly. Where: Section IV.B and the conclusion’s proposed evaluation on more complex data. Area: evidence and generalization. Mova: вже є (configured task families, explicit unsupported outcomes and source-bound claims). A result for one approximate component should name its workload, configuration and failure behavior. The paper’s moving-digit result does not establish general video prediction, just as a Mova parser improvement would not establish general task understanding. Keeping that scope visible makes later expansion testable.

Idea: Record all representation choices needed for reproduction. Where: Section III, the threshold formulas and output alphabets. Area: provenance and reproducibility. Mova: частково є (source fingerprints, versioned labels, explicit groupant assumptions and configuration identities). A numerical approximation should identify its source data, boundary rule, allowed outputs and update procedure. The paper’s difficult threshold notation shows why an informal label such as “normal distribution” is insufficient by itself. Mova’s existing provenance mechanisms provide places to record those details.

### The problem and its context

#### Why recurrent computation creates a deployment problem

The paper begins with a familiar engineering tension. Increasing a neural network’s capacity can improve recognition performance, but larger parameter collections require more storage and more work to apply. The authors emphasize not only arithmetic but also memory bandwidth and runtime memory. Their intended deployment settings include mobile equipment, embedded devices and specialized hardware, where these demands can matter as much as task accuracy.

Recurrent computation makes the issue especially relevant because the same parameterized transformations are applied repeatedly along a sequence. A review is processed through successive inputs; video prediction depends on earlier frames and evolving internal state. The question is not merely how much it costs to store a weight array once. It is also how often that array must be accessed and used.

The authors describe a broad divide between architectural efficiency and numerical efficiency. Architectural changes alter the organization of computation, for example through smaller convolutional filters or other changes to the network structure. Numerical changes keep the general computation but reduce the precision of the values used within it. This paper concentrates on the latter route.

That focus is important for understanding what is being compared. Quantization does not, by itself, remove the need for recurrent state or replace a gated architecture with a simpler task-specific rule. It changes how numerical connections are represented and applied. The paper therefore evaluates whether several recurrent structures can tolerate this change while continuing to learn useful sequence behavior.

#### The earlier work the authors build on

The introduction presents binary and ternary connections as established approaches to reducing multiplication cost. [BinaryConnect](https://md.research.elamur.ai/free/en/papers/courbariaux-2015-binaryconnect-training-deep-neural-networks/) is part of that background. If a weight is restricted to a sign, multiplying an activation by it can be expressed through sign selection, addition or subtraction rather than a general real-valued multiplication. Introducing a zero value also allows some contributions to disappear.

The authors distinguish deterministic conversion from stochastic conversion. A deterministic rule maps a weight according to thresholds. A stochastic rule uses probabilities to choose its restricted representation. Their own proposed rules follow the deterministic route: the current value and the layer’s statistics determine the quantized output.

The paper also discusses [XNOR-Net](https://md.research.elamur.ai/free/en/papers/rastegari-2016-xnor-net-imagenet-classification-using/). In that earlier work, binary convolutional computation is connected with substantial reported speed and storage benefits. These claims help motivate the recurrent experiments, but they arise from a different setting. They should not be treated as measurements of the LSTM, GRU or ConvLSTM implementations studied here.

Other cited work includes limited-precision computation, ternary weight representations and previous recurrent quantization studies. The authors therefore do not present low-precision recurrence as an unexplored category. Their contribution is the proposed statistical thresholding approach, its comparison across the chosen recurrent architectures and the experimental extension to ConvLSTM future-frame prediction.

The background contains occasional inconsistencies between narrative attributions and reference details. Those inconsistencies do not need to determine the article’s historical account. What matters for the technical argument is the sequence of ideas the paper uses: restricted weight alphabets can simplify computation; recurrent architectures have substantial numerical workloads; and the choice of quantization boundaries may determine whether the restricted representation remains useful.

#### Why the distribution of weights matters

A threshold is meaningful only relative to the values it divides. Suppose most weights occupy a narrow interval near zero. A ternary rule with a wide central interval can assign nearly every weight to zero. Although the representation permits negative, neutral and positive outputs, it has effectively discarded most distinctions.

The paper illustrates a related problem for quaternary quantization. Fixed boundaries can leave the outer output values little used, turning an intended quaternary representation into something closer to a binary one. The issue is not that the permitted values are mathematically invalid. It is that their assignment fails to reflect the scale of the current weights.

The proposed response is to calculate simple statistics for each layer and use those statistics in the thresholds. The mean describes the average weight, and the standard deviation describes spread around that average. This gives the boundary rule a connection to the numerical population it is supposed to compress.

The authors also ask what occupancy pattern should result after quantization. They compare a concentrated arrangement, described as approximately normal, with an arrangement described as uniform. Since the outputs belong to a small finite set, “normal” does not mean that the final values form a continuous Gaussian distribution. It refers to the relative concentration of assignments among the permitted values.

This distinction makes the paper more specific than a generic low-bit comparison. Its question is partly about representational geometry: where should boundaries lie so that the available discrete values express useful distinctions? The downstream experiments then test whether the resulting arrangement preserves enough information for learning and prediction.

### The method, step by step

#### Begin with a recurrent state

A recurrent network combines the current input with information retained from a previous step. In the paper’s basic formulation, the hidden state is updated as follows:

```
hₜ = σₕ(wₕxₜ + uₕhₜ₋₁ + bₕ)
```

Here, t identifies the current sequence position. The vector xₜ is the current input, hₜ is the new hidden state, and hₜ₋₁ is the preceding hidden state. The matrix wₕ transforms the input, while uₕ transforms the previous hidden state. The vector bₕ is a bias, and σₕ is the hidden-state activation function.

The output is then calculated from that hidden state:

```
yₜ = σᵧ(wᵧhₜ + bᵧ)
```

The vector yₜ is the output at position t. The matrix wᵧ maps hidden-state information into the output space, bᵧ is its bias, and σᵧ is the output activation function. The important structural feature is reuse: the recurrence carries information through hₜ₋₁ instead of treating each input as independent.

Quantization acts on the weight values used in such transformations. It does not remove the sequence index or the dependence on previous state. The central experimental question is whether a much smaller set of permitted connection values can support the same general kind of temporal processing.

#### Understand the gated architectures

LSTM introduces a cell state and gates that regulate information retention and modification. The forget gate is written as:

```
fₜ = σ(W_f · [hₜ₋₁, xₜ] + b_f)
```

The vector fₜ controls the retained contribution from the preceding cell state. The brackets indicate concatenation of hₜ₋₁ and xₜ. W_f is the forget-gate weight matrix, b_f is its bias, and σ denotes the sigmoid function.

The input gate has a corresponding form:

```
iₜ = σ(W_i · [hₜ₋₁, xₜ] + b_i)
```

The vector iₜ controls how much proposed new information enters the cell. W_i and b_i are the input gate’s weights and bias. The same current input and preceding hidden state contribute to this decision.

The candidate cell content is obtained through a hyperbolic tangent transformation:

```
C̃ₜ = tanh(W_C · [hₜ₋₁, xₜ] + b_C)
```

C̃ₜ denotes proposed cell content, W_C is its weight matrix, and b_C is its bias. The paper’s printed candidate expression has an inconsistent hidden-state subscript; the role of this term is nonetheless the candidate update derived from the recurrent input. The notation above makes that role consistent with the surrounding LSTM equations.

The cell combines retained and proposed content:

```
Cₜ = fₜ ⊙ Cₜ₋₁ + iₜ ⊙ C̃ₜ
```

Cₜ is the updated cell state and Cₜ₋₁ is its previous value. The symbol ⊙ denotes elementwise multiplication. The forget gate scales the previous cell content, while the input gate scales the candidate content.

The output gate is calculated separately:

```
Oₜ = σ(W_O · [hₜ₋₁, xₜ] + b_O)
```

Oₜ is the output-gate vector. W_O and b_O are its weights and bias. Its role is to control which transformed cell information becomes visible in the hidden state.

The hidden state follows:

```
hₜ = Oₜ ⊙ tanh(Cₜ)
```

The symbols hₜ, Oₜ and Cₜ retain their preceding meanings. This equation shows that the maintained cell content and the exposed recurrent output are related but distinct quantities.

GRU uses a different gated arrangement. Its update gate is:

```
zₜ = σ(W_z · [hₜ₋₁, xₜ])
```

The vector zₜ controls the mixture between old state and candidate state. W_z is the update-gate matrix. Bias terms are not displayed in the paper’s GRU equations.

The reset gate is:

```
rₜ = σ(W_r · [hₜ₋₁, xₜ])
```

The vector rₜ controls how previous-state information enters the candidate calculation. W_r is its weight matrix. As before, the brackets combine the previous hidden state with the current input.

The GRU candidate is:

```
h̃ₜ = tanh(W · [rₜ ⊙ hₜ₋₁, xₜ])
```

The vector h̃ₜ is proposed new state content. W is the candidate transformation matrix, and rₜ scales the previous state element by element before concatenation with xₜ.

The final GRU state mixes the alternatives:

```
hₜ = (1 − zₜ) ⊙ hₜ₋₁ + zₜ ⊙ h̃ₜ
```

The scalar notation 1 represents the complementary gate value in each component. A component of zₜ determines the balance between the corresponding old-state and candidate-state components. This provides a recurrent memory mechanism without the separate LSTM cell-state arrangement.

The paper presents GRU as structurally lighter than LSTM and evaluates both for review classification. It does not make architecture selection the main contribution. Rather, the architecture comparison tests whether the quantization approach remains useful under different gating structures.

#### Preserve spatial structure with ConvLSTM

ConvLSTM extends the recurrent idea to data with spatial organization. Instead of treating all input positions through fully connected transformations, it uses convolutional operations in its state transitions. The internal quantities are tensors whose spatial dimensions preserve the arrangement of image locations.

That matters for moving MNIST because an object’s future appearance depends partly on where it was and how it moved. A transformation that keeps neighborhood structure can use local spatial information while evolving through time. The paper contrasts this with fully connected LSTM processing, where the state transitions do not encode spatial organization in the same way.

The ConvLSTM equations contain input, forget and output gates, a candidate cell update, a retained cell state and an exposed hidden state. They also include cell-state contributions to gate calculations. In the paper’s notation, 𝒳ₜ is an input tensor, ℋₜ₋₁ is the previous hidden tensor and 𝒞ₜ₋₁ is the previous cell tensor.

The printed formulas mix convolution notation, ordinary multiplication notation and elementwise notation inconsistently. In particular, a symbol identified as convolution appears in a cell-update position that elsewhere has an elementwise role, while gate expressions reuse weight labels across different operations. The safe reading is architectural: input and recurrent spatial transformations are combined with gated cell updates. The exact printed expressions do not provide a fully unambiguous specification of every operation.

For the actual experiment, the authors describe a basic stack containing a ConvLSTM layer, batch normalization and a reconstruction layer using three-dimensional convolution. Batch normalization is an intermediate normalization component; the reconstruction stage converts the recurrent representation into an image prediction. The paper does not provide a detailed inventory of all dimensions and kernel settings.

#### Maintain precise weights and quantize their forward use

The training procedure keeps full-precision weight values while deriving restricted values for forward propagation. The loss is calculated from the resulting predictions. Weight updates then operate with respect to the full-precision values.

This arrangement addresses a practical difficulty of coarse representations. A small update may be meaningful for learning without immediately changing which discrete interval contains a weight. Retaining a precise value allows such changes to accumulate. If the only stored state were the discrete output, those small changes would have no detailed numerical location in which to accumulate.

The paper does not specify every part of differentiation through its quantizers. It mentions a straight-through estimator when discussing an earlier recurrent quantization study, but that discussion should not be converted into a claim that the present implementation completely documents the same estimator. The available account establishes the separation between quantized propagation and full-precision updates more clearly than it establishes the exact derivative treatment.

The overall sequence is:

Statistical weight quantization during recurrent training The steps in order.

This flow also clarifies what remains untouched by the central proposal. The sequence task still supplies inputs and targets, the architecture still maintains recurrent state, and a task loss still guides adaptation. The altered component is the connection representation used in forward computation.

#### Binary Connect

The binary mapping is the clearest threshold rule in the paper:

```
q_B(w) = { 1 if w ≥ 0; −1 otherwise }
```

The function q_B maps a weight w to its binary representation. Zero is the boundary; non-negative weights receive 1, and negative weights receive −1. The authors describe the rule with reference to normalized layer weights.

This rule preserves sign while discarding magnitude differences within each side of the boundary. A small positive weight and a large positive weight therefore receive the same forward value. That is a substantial representational restriction, even though it can simplify arithmetic.

The paper’s distribution illustration suggests balanced use of the binary alternatives in the demonstrated setting. That observation should not be read as a mathematical guarantee that thresholding any weight collection at zero produces equal occupancy. The rule determines categories; the original distribution determines how many weights enter them.

#### Ternary Connect

For the approximately normal ternary arrangement, the paper gives a central interval controlled by the mean and standard deviation:

```
q_T(w) = { −1 if w ≤ −(μ + σ); 0 if −(μ + σ) < w ≤ μ + σ; 1 if w > μ + σ }
```

The function q_T is the ternary mapping. The symbol μ denotes the layer’s mean weight and σ its standard deviation. The weight w is assigned −1 below the lower boundary, 0 within the central interval and 1 above the upper boundary.

The zero category has an important operational meaning. A connection assigned zero contributes nothing through that weight during forward computation. The rule therefore changes both numerical precision and the pattern of active contributions.

The boundaries are written symmetrically around zero using the quantity μ + σ. This differs from placing boundaries directly at μ − σ and μ + σ around the mean. The distinction matters when interpreting the formula, even though the authors motivate it through weight distributions concentrated near zero.

The paper also presents a ternary rule intended to produce a more uniform distribution. That expression uses a narrower central interval involving a fraction of the standard deviation. Its typography does not preserve every denominator reliably enough to turn it into an unquestionable implementation specification. The experimental comparison between the distribution arrangements is clear; the precise alternate formula is less securely recoverable.

#### Quaternary Connect

Quaternary Connect permits negative and positive values with an inner and outer magnitude. The inner values are −0.5 and 0.5; the outer values are −1 and 1. Unlike the ternary representation, this alphabet has no zero output.

The mapping divides negative weights between the negative outer and inner values, and positive weights between the positive inner and outer values. Zero separates the signs, while additional negative and positive thresholds determine which magnitude is selected. The authors again derive those boundaries from the layer’s mean and a fraction of its standard deviation.

The paper supplies separate boundary choices for the approximately normal and uniform arrangements. The printed expressions contain displaced fractional components, so a faithful account should not silently replace them with a confidently reconstructed implementation. Their shared design is nonetheless explicit: adjust the outer boundaries to the observed scale so that the quaternary mapping does not collapse into use of only the inner values.

This is also why ternary and quaternary quantization should not be described merely as adjacent points on a precision scale. Ternary includes a neutral contribution. Quaternary instead provides magnitude distinctions within each sign. The experiments compare these complete representation choices, not only the count of available values.

#### Choose the distribution arrangement before the main tasks

The preliminary addition task is used to compare learning under the proposed arrangements. Inputs are encoded from a character vocabulary containing digits, an addition sign and a space. The output is encoded and later decoded into the predicted sum.

The experiment uses 1000 samples per epoch and runs for 350 epochs. Both LSTM and GRU are examined under full precision and the quantized alternatives. The authors compare training loss and accuracy, then inspect the normal-versus-uniform choice for LSTM.

Their reported observation is that the approximately normal arrangement learns better than the uniform arrangement in this diagnostic. They therefore carry that choice into the ternary and quaternary application experiments. This is an empirical selection step, not a proof that one occupancy pattern must be best for every recurrent workload.

The paper reports ADAM optimization and binary cross-entropy loss. Its implementation uses Keras with TensorFlow, and experiments run on the Surface cluster at Lawrence Livermore National Laboratory. These details establish the software setting, but they do not constitute a specialized low-power hardware implementation.

### Experiments and results

#### What is compared

The experimental design has a simple central comparison: preserve the recurrent architecture while changing the forward weight representation. Full precision is the reference, and Binary Connect, Ternary Connect and Quaternary Connect are the alternatives.

The authors describe full precision as 32 bits. That specification identifies the reference numerical format. It does not, on its own, establish the actual storage layout used for the quantized alternatives, because a restricted mathematical alphabet can still be represented inefficiently in a general-purpose software framework.

The application experiments cover [sentiment classification](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/) and future-frame prediction. The former asks for a decision about a review, while the latter asks for a spatial output that evolves over time. This variety is useful because recurrent quantization could affect discrete decisions and image reconstruction differently.

The paper also includes the addition experiment discussed earlier. That experiment serves primarily as a diagnostic and a way to select the distribution arrangement. Its training behavior should not be confused with a fully documented held-out arithmetic benchmark.

#### IMDB review classification

The review dataset is associated with [Learning Word Vectors for Sentiment Analysis](https://md.research.elamur.ai/free/en/papers/maas-2011-learning-word-vectors-sentiment-analysis/), which the authors cite as its source. The experiment uses a maximum feature count of 20,000 and a maximum review length of 80 words. The batch size is 64.

Both LSTM and GRU use 128 hidden units, and training lasts 20 epochs. Keeping these headline settings aligned makes the architectures easier to compare, although the paper does not establish equal parameter counts or equal computational workloads.

For LSTM, the full-precision run converges faster and reaches a lower training loss than the quantized alternatives. The authors also show validation accuracy curves. Their central numerical result is the test accuracy comparison:

IMDB test accuracy for LSTM weight representations Full precision leads, while quaternary quantization is the strongest restricted-weight setting.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Full precision | 82.87 |
| Quaternary Connect (this paper) | 79.64 |
| Ternary Connect | 76.86 |
| Binary Connect | 76.25 |

The star marks the strongest quantized setting. Full precision remains the highest-accuracy reference in this comparison. The ordering supports the paper’s claim that ternary and quaternary representations are more successful than the binary alternative for this LSTM experiment.

The result does not show accuracy preservation without cost. Each quantized setting has a lower reported test accuracy than the full-precision setting. The useful finding is that a very restricted weight representation can still support substantial review-classification performance under the stated setup.

The authors’ prose describes the accuracy gap using approximate percentages that do not align cleanly with the listed test values. The reported accuracies themselves are the firmer basis for interpretation. There is no need to derive a replacement gap or repeat an inconsistent approximation.

The GRU experiment includes training and validation curves and a figure for test accuracy. The narrative says that the quantized alternatives perform well relative to full-precision GRU, and that LSTM generally performs better across the sentiment comparisons.

However, exact GRU test values are not written out in the numerical account. They should therefore not be invented or read into a new chart. The defensible conclusion is qualitative: the authors report useful quantized GRU behavior, but the LSTM results provide the clearest explicitly stated numerical comparison.

#### Addition as a diagnostic workload

The addition task uses a character-level encoding rather than word-level review inputs. Its vocabulary contains 12 characters, comprising digits and the symbols needed to express the arithmetic input. The paper illustrates how an encoded input becomes an encoded answer and is then decoded.

Training proceeds with 1000 samples per epoch for 350 epochs. The figures compare loss and accuracy for LSTM and GRU under the weight representations. Full precision performs best in the authors’ account, while ternary and quaternary settings are described as retaining promising training performance.

The normal-versus-uniform comparison is particularly relevant to the proposed method. The approximately normal arrangement performs better in the displayed LSTM learning curves. This observation is the stated reason for using that arrangement in later ternary and quaternary experiments.

No exact final accuracy values are stated for these comparisons. Their evidential role is therefore narrower than the IMDB chart: they establish the reported direction of the diagnostic result, without supporting a precise numerical estimate of its size.

#### Moving MNIST future-frame prediction

The visual experiment uses moving MNIST sequences containing 15 frames. The authors describe using seven frames for training the observed trajectory and beginning subsequent generation at frame number 8. They train the ConvLSTM setup for 50 epochs.

The comparison includes full precision and the binary, ternary and quaternary weight alternatives. The architecture is the basic ConvLSTM stack described in the method section, instead of a broad search over increasingly elaborate video-prediction systems.

The displayed examples compare predicted images with ground truth. They include the observed trajectory around the 7th frame and subsequent outputs for the 8th, 9th and 10th frames. The authors judge the full-precision reconstruction more favorably, particularly for the later displayed prediction.

This visual inspection is accompanied by mean squared error, abbreviated MSE. MSE measures squared pixel-value disagreement and averages it across the compared image. A lower value indicates closer numerical agreement under that metric.

The paper identifies I as the input frame and K as the predicted frame in its error discussion. The displayed equation is not legible enough to reproduce every normalization and index convention faithfully. The accompanying description and plot nevertheless make clear that the quantitative analysis concerns frame-level squared reconstruction error.

The MSE plot favors full-precision ConvLSTM over the quantized alternatives. The authors regard ternary and quaternary prediction as promising despite that disadvantage. Exact plotted MSE values are not stated in the numerical prose, so this account preserves the ordering without fabricating a numerical chart.

#### What the experiments establish

Across the tasks, full precision remains the strongest reference. The paper’s practical contribution is evidence that severe restrictions on weight values do not make the recurrent architectures useless. The degree of retained performance depends on the representation and task.

The IMDB experiment provides the clearest numerical support for choosing quaternary over the other restricted alternatives. The addition experiment supports the selected distribution arrangement. The moving MNIST experiment broadens the scope from sequence classification to spatial recurrent prediction.

These results should be assessed together without flattening their differences. A classification accuracy, a training curve and an image-reconstruction plot answer different questions. None of them directly measures embedded deployment efficiency, and none substitutes for a complete report of the others.

### What the ablations show

#### The distribution comparison is the main mechanism analysis

The clearest controlled comparison within the proposed thresholding approach concerns the distribution of assignments after quantization. The authors compare approximately normal and uniform arrangements on the addition task. Their displayed LSTM curves favor the approximately normal choice.

This analysis matters because both alternatives use restricted output values. The difference lies in where the thresholds divide the underlying weights and therefore how frequently each output value occurs. It tests a design decision inside the quantization method, rather than merely comparing quantized and unquantized computation.

The result supports the authors’ choice for their later experiments. It does not establish that approximate normality is intrinsically desirable for every layer or every application. The comparison is tied to the diagnostic workload and the particular threshold arrangements under study.

Nor does it isolate exactly why the preferred arrangement learns better. It could reflect the balance between retained signed information and suppressed contributions, interactions with the evolving weights, or the suitability of the boundaries for the training setup. The paper does not supply a separate experiment that distinguishes these explanations.

#### Binary, ternary and quaternary comparisons

The weight-alphabet comparison is another important analysis. Binary Connect keeps sign but removes magnitude distinctions. Ternary Connect adds a zero contribution. Quaternary Connect retains an inner and outer magnitude for each sign.

For LSTM on IMDB, the reported ordering favors quaternary over ternary and binary quantization. This supports using a richer restricted representation in that setting. It does not isolate a pure “extra numerical state” effect, because the alphabets differ structurally.

In particular, ternary and quaternary do not differ only in how finely they divide the same interval. One can silence a weight, while the other has no zero output. Their threshold choices also differ. The observed comparison therefore belongs to the full quantizer designs.

A more narrowly targeted ablation would hold other properties fixed while changing one component of the quantization rule. The paper does not report that complete isolation. Its experiments are still useful, but they should not be interpreted as proving a single mechanism behind the accuracy ordering.

#### Distribution visualizations explain a failure mode

The weight histograms demonstrate why fixed boundaries can be unsuitable. If most original values lie near zero, broad thresholds can concentrate ternary outputs in the neutral category. Likewise, a quaternary rule can mainly use the inner signed values.

These illustrations are stronger as diagnostics than as performance measurements. They show that an intended representation can collapse in practice. They do not independently show that a particular occupancy pattern causes better held-out task performance.

The paper links the two kinds of evidence through its experiments: inspect the distribution, choose a statistical rule, then observe learning and application results. That chain is plausible and useful, but each step has a distinct evidential role. A visually balanced histogram is not automatically an accurate predictor.

#### Architecture and convergence analyses

The LSTM-versus-GRU comparison offers an architectural perspective. The authors report generally stronger sentiment performance from LSTM while presenting quantized GRU as a viable alternative. This suggests that architecture choice remains consequential even after selecting a numerical representation.

The comparison is not a strict efficiency ablation. Equal hidden-unit settings do not establish identical parameter counts, training work or memory demands. Since the paper does not report those matched resource quantities, it cannot turn the architecture comparison into a complete cost-quality ranking.

The learning curves add another distinction. Full precision is described as converging faster and reaching lower loss in the LSTM sentiment experiment. Quantization therefore affects optimization behavior as well as the eventual discrete representation.

Because the sentiment runs use a stated training duration, final performance is conditional on that budget. The paper does not establish whether a different duration would preserve the same ordering or alter the gaps. The curves reveal a practical effect without fully characterizing the optimization landscape.

#### Sequential reconstruction analysis

The moving MNIST examples and error plot examine predictions beyond the observed trajectory. This gives some visibility into behavior as generation proceeds, rather than evaluating only a reconstructed observed image.

The full-precision result is described as better, especially for a later displayed frame. That observation is consistent with the importance of evaluating recurrent outputs over time. A small numerical distortion may matter differently after successive state updates.

The paper does not provide a dedicated analysis separating accumulated state error from immediate reconstruction error. Its evidence concerns the combined prediction process. That is sufficient to show the reported quality ordering, but not to identify precisely where the quantized variants lose information.

### Limitations

#### Limits the authors acknowledge

The authors characterize the sentiment experiments as preliminary. That wording fits the scale of the report: a defined review-classification setup and a limited selection of recurrent architectures are used to demonstrate feasibility. The results are not presented as a comprehensive search for the strongest possible sentiment system.

They also identify more complex data as a future direction for quantized ConvLSTM. Moving MNIST provides an understandable spatial sequence task, but the authors do not claim that it settles the behavior of quantized recurrence on more demanding video content.

Their own results retain full precision as the stronger reference. The paper does not show that the proposed weight restrictions remove computational cost while preserving the reported task performance exactly. Its claim is that the restricted alternatives remain promising in spite of reduced predictive quality.

The hardware discussion is motivational and prospective. The authors connect restricted arithmetic with embedded devices and FPGA implementation, but the experiments are conducted using their stated software framework and cluster setting. A specialized deployment is an intended application rather than a measured outcome.

#### Limits visible in the experimental setup

A careful reader cannot derive realized energy savings from the reported accuracy and reconstruction results. No direct device-power measurements are supplied for the proposed recurrent implementations. The same applies to execution latency, memory bandwidth and packed storage.

This matters because a mathematical restriction and an implementation optimization are different achievements. A framework can calculate with values drawn from a small alphabet while still storing and processing them in a general-purpose numerical format. The paper does not document enough low-level implementation detail to establish that its experiments realize the anticipated hardware advantages.

Training also retains full-precision weight values. That is central to the procedure, but it means the method should not be described as eliminating precise training state. Any memory claim would need to distinguish deployment weights from training-time weights, gradients and intermediate quantities.

The paper does not report repeated-run variability or confidence intervals for its task comparisons. Consequently, the stated accuracies describe the reported runs. They do not quantify how stable the ordering would be across different initializations or other sources of training variation.

The sentiment setup gives useful headline settings but leaves important procedural details unspecified. The account does not fully document all split sizes, preprocessing choices, initialization settings or every training hyper-parameter. These omissions limit exact reproduction and make it harder to attribute all observed differences solely to the quantizer.

The addition task is especially limited as an assessment. The paper describes training samples and learning curves, but does not establish a detailed held-out arithmetic evaluation. Its strongest role is diagnostic selection of the distribution arrangement, not a general claim about numerical reasoning.

The GRU and ConvLSTM results are also less numerically explicit than the LSTM sentiment result. Their plots and narrative support qualitative conclusions, but exact values are not written out consistently. A reader should resist filling those gaps with invented precision.

#### Formula and specification limits

The threshold formulas are central enough that notation quality affects reproducibility. Some expressions have displaced fractional terms, and the surrounding narrative contains mismatched equation references. The general method is understandable, but parts of the exact ternary and quaternary boundary specification remain difficult to recover confidently.

The ConvLSTM notation creates a related problem. Convolution and elementwise multiplication are not consistently distinguished throughout the printed equations, and some weight labels appear to serve multiple roles. Those issues do not erase the architecture’s stated purpose, but they prevent the equations from functioning as an entirely clean implementation contract.

The paper also does not fully specify how gradients are handled at discontinuous quantization boundaries. It explains the use of full-precision updates and discusses a straight-through estimator in related work, but does not provide a complete mathematical treatment of its own training derivative.

A rigorous reproduction would therefore need to resolve details beyond the broad description. The uncertainty should remain attached to those details. It would be misleading to substitute a familiar implementation from elsewhere and present it as uniquely determined by this paper.

#### Limits on interpretation

The approximately normal arrangement is an empirical preference within the reported experiments. It is not a theorem about the optimal distribution of quantized recurrent weights. The underlying weights may evolve during training, and the paper does not offer a general guarantee covering that evolution.

Likewise, the quaternary advantage in the LSTM sentiment comparison is conditional on the stated setup. It does not establish that quaternary quantization always dominates ternary quantization. Different architectures, data or resource constraints could change which representation is most useful, but that possibility is not experimentally resolved here.

The future-frame results concern moving digits, not arbitrary visual understanding. Recognizable output and favorable comparison within this task do not establish preservation of every spatial or temporal property that another application might need.

Finally, the work does not supply a complete quality-cost frontier. Such a frontier would require measured computational costs alongside predictive performance under clearly specified implementations. The paper supplies the predictive side more directly than the operational side, so its deployment promise remains a motivation for further testing.

### What came after

The paper closes by proposing evaluation of quantized ConvLSTM on more complex data. That is the clearest forward direction in its own account. It would test whether the favorable feasibility result extends beyond moving digits and whether the observed reconstruction disadvantage changes with a more demanding workload.

No specific later citing study can be described responsibly on the evidence available for this account. That does not imply that the work had no successors or influence. It means there is no documented basis here for assigning a later method, result or implementation to its citation lineage.

The distinction matters because the paper already cites earlier recurrent quantization research. Similarity between a later technique and this paper’s statistical thresholding would not, by itself, establish that the later technique built on it. A historical claim requires an identifiable work and evidence of the connection.

What the paper leaves open is technically concrete. The threshold rules need an unambiguous implementation specification; repeated experiments would help characterize stability; more demanding sequence tasks would test transfer; and actual device measurements would connect restricted weight alphabets to realized resource savings.

Those open questions also define the lasting usefulness of the study. It shows why a quantizer should be examined as a complete representation choice: its boundaries, occupancy pattern, training interaction and task behavior all matter. Its strongest conclusion is a measured feasibility claim for the reported recurrent experiments, accompanied by a clear need to test the promised deployment benefits separately.

## Cite

Cite as Md Zahangir Alom; Adam T Moody; Naoya Maruyama; Brian C Van Essen; and Tarek M. Taha. 2018. Effective Quantization Approaches for Recurrent Neural Networks. arXiv:1802.02615.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.1802.02615](https://doi.org/10.48550/arxiv.1802.02615) · [arXiv 1802.02615](https://arxiv.org/abs/1802.02615)

```bibtex
@misc{essen2018effective,
  title = {{Effective Quantization Approaches for Recurrent Neural Networks}},
  author = {Md Zahangir Alom; Adam T Moody; Naoya Maruyama; Brian C {Van Essen;} and Tarek M. Taha},
  year = {2018},
  doi = {10.48550/arxiv.1802.02615},
  eprint = {1802.02615},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1802.02615}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
