Coding and bounds for partially defective memory cells

Haider Al Kim, Sven Puchinger, Ludo Tolhuizen, Antonia Wachter-Zeh

Abstract

In non-volatile memory technologies such as Flash and Phase Change Memory (PCM), cell wearout typically leads to "stuck-at" defects. Traditional coding theory treats these as binary states: a cell is either fully functional or entirely failed. This paper introduces a more nuanced model of "partially defective" cells, which can no longer reach all possible levels but retain the ability to store some information. We propose three novel code constructions and a trading strategy to efficiently mask these partial defects while simultaneously correcting random errors. Our results demonstrate that leveraging these restricted levels significantly reduces redundancy compared to traditional defect-masking techniques.

Introduction

As memory density increases, the reliability of individual cells decreases due to physical wearout from repeated write-erase cycles. Multi-level cells (MLC) store multiple bits by partitioning the physical state (e.g., voltage or resistance) into $q$ discrete levels. When a cell wears out, it may become "partially stuck," meaning its range of reachable states is restricted. For instance, a 4-level cell might be unable to reach level 0 but can still transition between levels 1, 2, and 3.

Conventional error-correction methods often discard such cells or treat them as fully stuck-at defects, leading to high redundancy costs. This work addresses the efficiency gap by designing codes that specifically exploit the remaining entropy in partially defective cells.

Problem Formulation

We consider a memory with $n$ cells, each capable of storing a value from an alphabet of size $q$. A cell is partially defective if it can only store values from a subset of the alphabet. Specifically, we model a defect at position $i$ as a constraint $c_i \geq s_i$ or $c_i \in \mathcal{S}_i$, where $\mathcal{S}_i$ is the set of allowed levels.

Comparison of reliable, defective, and partially defective cells across two representations.

As shown in the figure above, the model distinguishes between reliable cells (A), fully defective cells (B), and partially defective cells (C). Representation 1 (green) corresponds to values in $\mathbb{F}_{2^2}$, while Representation 2 (blue) corresponds to $\mathbb{Z}/4\mathbb{Z}$. The goal is to design a code $\mathcal{C}$ such that for any message and any set of defect constraints, there exists a codeword that satisfies all constraints while maintaining error-correction capability.

Proposed Coding Constructions

The authors propose three primary constructions to handle varying defect densities and alphabet structures:

  1. Construction 1 (Low Defect Density): This construction is optimized for a small number of defects ($u < q$). It utilizes a generator matrix where a single redundancy symbol can mask multiple defects by shifting the entire codeword into a valid range.
  2. Construction 2 (High Defect Density): A more general approach using parity-check matrices to mask up to $u \leq n$ defects. It provides a robust framework for high-wear scenarios.
  3. Construction 3 (Binary Sub-field Subcodes): Tailored for alphabets where $q = 2^\mu$, this construction uses sub-field subcodes to improve efficiency in digital hardware implementations.

Additionally, the paper introduces a "Trading" Strategy (Proposition 3). Instead of attempting to mask every single defect, the encoder may treat a small number of "difficult" defects as random errors. This allows the error-correction component of the code to handle them, often resulting in a lower overall redundancy requirement.

Theoretical Bounds and Results

To evaluate the performance of these codes, the authors derived new versions of classical coding bounds—including the Singleton, Sphere-packing, and Gilbert-Varshamov (GV) bounds—adapted for the partially stuck model.

Key findings include:

  • Redundancy Efficiency: For $q > 2$, the proposed constructions require strictly less redundancy to mask $u$ partial defects than state-of-the-art methods require for $u$ full defects.
  • Near-Optimality: Numerical evaluations show that Construction 1, when implemented with BCH codes, closely approaches the theoretical GV-like bounds.
  • Joint Capability: The codes successfully manage the trade-off between defect masking and random error correction, providing higher data storage capacity (cardinality) than classical approaches for the same hardware constraints.

Conclusion

This work demonstrates that partially defective memory cells are a valuable resource rather than a total loss. By modeling defects as level constraints rather than fixed values, we can design more efficient codes that extend the lifespan of non-volatile memory. Future research will focus on reducing the computational complexity of finding optimal masking vectors and exploring "blind" masking scenarios where defect locations are unknown to the encoder.

Citation: Al Kim, H., Puchinger, S., Tolhuizen, L. et al. Coding and bounds for partially defective memory cells. Des. Codes Cryptogr. 91, 4019–4058 (2023).

Summary updated

BibTeX
@article{kim2023coding,
  author = {Haider Al Kim and Sven Puchinger and Ludo Tolhuizen and Antonia Wachter-Zeh},
  title = {{Coding and bounds for partially defective memory cells}},
  journal = {Des. Codes Cryptogr.},
  year = {2023},
  doi = {10.1007/s10623-023-01270-0},
}
Figure