Redundancy allocation in finite-length nested codes for nonvolatile memories

Yongjune Kim, B. V. K. Vijaya Kumar

Modern nonvolatile memories (NVMs), such as Flash and Phase Change Memory (PCM), face a dual reliability challenge as they scale to higher densities. They are plagued by both permanent hardware defects—cells "stuck" at a specific value due to wear—and transient noise, which causes random bit flips or erasures. This paper, published in 2018, addresses how to optimally manage a fixed redundancy budget to combat these two distinct error sources simultaneously.

The Problem: Finite-Length Constraints in NVMs

In practical NVM systems, researchers employ Partitioned Linear Block Codes (PLBCs), a type of nested code. In these schemes, a portion of the redundancy is dedicated to masking permanent defects, while the remainder is used to correct transient errors. While information theory provides asymptotic bounds for infinite-length codes, real-world systems rely on finite-length codes.

The authors identified a critical gap: even if a redundancy allocation satisfies theoretical capacity requirements, the actual failure rates in finite-length implementations can vary by orders of magnitude. There has been a lack of systematic methods to determine the optimal split between defect masking and noise correction for a specific memory chip's health profile.

Methods and Channel Modeling

The study focuses on two primary channel models to represent NVM behavior: the Binary Defect and Erasure Channel (BDEC), which combines permanent defects with data erasures, and the Binary Defect and Symmetric Channel (BDSC), which combines defects with random bit flips.

Figure 1: Channel models for BDEC and BDSC, illustrating the relationship between input X, state S (defects), and output Y.

To address these models, the authors developed several key contributions:

  • Redundancy Optimization Framework: They formulated the problem as minimizing the probability of recovery failure $P(\hat{m} \neq m)$ given a fixed total redundancy $n-k = l + r$, where $l$ bits are allocated for defects and $r$ bits for noise.
  • Analytical Upper Bounds: They derived new upper bounds for the probability of encoding failure (the inability to mask all defects). These bounds leverage code weight distributions and binomial approximations, providing a faster alternative to exhaustive simulations.
  • Two-Step Encoding for BDSC: For the more complex symmetric channel, they proposed a practical algorithm. If the initial encoding fails to mask all defects, the second step masks as many as possible, leaving the remaining defects to be handled as random errors by the decoder.
  • KKT Optimization: By treating redundancy values as continuous variables, they applied Karush-Kuhn-Tucker (KKT) conditions to derive closed-form estimates for the optimal $(l, r)$ allocation.

Key Insights: Finding the "Sweet Spot"

The most significant insight is the extreme sensitivity of short-to-medium length codes to redundancy allocation. A minor misallocation can drastically reduce perceived system reliability. The authors discovered a mathematical duality between how erasures and defects affect failure bounds, allowing for a unified optimization approach.

Furthermore, they demonstrated that while optimal defect masking is generally NP-hard, a linear-complexity approach using linear equations is sufficient to reach capacity, provided the redundancy is partitioned correctly. As a memory chip ages and accumulates more defects, the "sweet spot" for allocation shifts, requiring more redundancy for defect masking ($l$) and less for transient noise ($r$).

Results and Reliability Gains

The proposed mathematical estimates for optimal redundancy matched Monte-Carlo simulation results almost perfectly across various channel conditions. The practical impact of this optimization is profound.

Figure 5: Probability of recovery failure vs. redundancy for masking defects (l). The V-shaped curves highlight the "sweet spot" where reliability is maximized for different channel conditions.

As shown in Figure 5, the failure probability reaches a clear minimum at a specific allocation of $l$. In one test case (Channel 6), moving from a naive allocation to the calculated optimal one improved the failure probability from $2.8 \times 10^{-3}$ to $1.0 \times 10^{-7}$—a 40,000x improvement in reliability without adding any extra hardware redundancy.

Conclusion and Future Directions

This work provides a robust framework for engineers to instantly calculate optimal code parameters for NVM controllers, bypassing the need for time-consuming simulations. While the study primarily utilizes Partitioned BCH (PBCH) codes, the underlying principles of redundancy rebalancing are broadly applicable.

Future research could extend these findings to other modern coding schemes like LDPC or Polar codes. Additionally, developing adaptive redundancy allocation systems—where the memory controller dynamically re-partitions the code as the chip accumulates defects over its lifespan—remains a promising area for enhancing long-term NVM reliability.

Summary updated

BibTeX
@article{kim2018redundancy,
  author = {Yongjune Kim and B. V. K. Vijaya Kumar},
  title = {{Redundancy allocation in finite-length nested codes for nonvolatile memories}},
  journal = {J. Commun. Networks},
  year = {2018},
  doi = {10.1109/jcn.2018.000051},
}
Figure