TL;DR
This paper introduces a framework that jointly optimizes quantization levels and flash memory verify levels to minimize Mean Squared Error (MSE) in flash-based Processing-in-Memory (PIM) systems. By treating source quantization and channel noise as interdependent problems, their proposed iterative algorithm significantly improves the reliability and perceptual quality of stored images and neural network parameters under high-noise conditions without requiring latency-heavy error-correcting codes.
What Problem Does This Paper Address?
Flash-based Processing-in-Memory (flash-based PIM) is an emerging architecture for edge AI and data-intensive tasks because it bypasses the traditional von Neumann data-transfer bottleneck by performing computations directly inside high-capacity flash memory. However, as flash cells scale down to high-density configurations like Multi-Level Cell (MLC) or Quad-Level Cell (QLC), they become highly susceptible to threshold voltage noise, which introduces computational errors.
Traditional flash optimization techniques focus on minimizing the Bit Error Rate (BER) for general data storage, often relying on heavy error-correcting codes (ECC) that introduce unacceptable latency for PIM applications. Furthermore, standard quantization methods (like the classical Lloyd-Max algorithm) assume a perfect, noiseless channel. This paper addresses the lack of an integrated approach that optimizes both data quantization (source optimization) and flash cell threshold levels (channel optimization) specifically to minimize Mean Squared Error (MSE), which is a far more relevant metric for machine learning and computer vision tasks than raw BER.
Methods
The authors propose an integrated framework that models the system from source to sink, accounting for both quantization noise and flash memory channel transitions.
The flash memory channel is modeled using a Gaussian mixture distribution where errors primarily occur between adjacent states, resulting in a tridiagonal channel transition matrix.
Because the optimal quantization thresholds/levels and the optimal verify levels (the physical voltage boundaries between states) are mutually dependent, the authors develop an iterative coordinate-descent-style algorithm:
- Initialization: Start with a baseline verify level configuration (optimized for minimum BER) and standard Lloyd-Max quantization.
- Quantization Update: Fix the channel transition matrix and update the quantization thresholds ($u$) and levels ($v$) using a channel-aware variant of the Lloyd-Max algorithm.
- Verify Level Update: Fix the quantization parameters and optimize the voltage state distances ($\Delta$) by solving a newly formulated convex optimization problem.
- Iteration: Repeat these steps until the overall MSE converges.
Datasets
The framework was evaluated using two primary tasks and standard datasets:
- BSD68 (Berkeley Segmentation Dataset 68): A dataset containing 68 grayscale images, used to evaluate the framework on a quantized image retrieval task.
- Set5 and Set14: Standard benchmark datasets for image quality and super-resolution, used to evaluate the performance of the framework when storing the quantized parameters of a SwinIR-S neural network model.
Key Insights and Ideas
- Shifting from BER to MSE: Traditional storage systems care about exact bit reproduction (BER), but PIM systems running neural networks or image processing care about the magnitude of the error (MSE). A bit flip in a highly significant bit hurts system performance much more than one in a least significant bit.
- Co-designing Source and Channel: Quantization and flash noise shouldn't be treated as isolated problems. Adjusting the physical verify levels changes the channel transition probabilities, which in turn shifts where the optimal quantization boundaries should lie.
- Convexity Hidden in Non-Convexity: While the overall joint optimization problem is non-convex, the authors decoupled it so that the verify-level update step can be solved exactly as a convex optimization problem, ensuring stable and efficient iterative convergence.
Key Results
- Image Retrieval: Under high-noise conditions ($\tilde{\Delta}/\sigma = 0.75$), the proposed joint optimization achieved a Peak Signal-to-Noise Ratio (PSNR) of 23.13 dB, vastly outperforming the conventional decoupled approach which scored 17.92 dB. Visually, this translates to significantly fewer noise artifacts and better perceptual quality.
- Neural Network Robustness: When applied to the weights of a SwinIR-S super-resolution model quantized to 4 bits in QLC flash memory, the proposed method maintained high reconstruction fidelity even in severe noise environments ($\tilde{\Delta}/\sigma = 0.5$), yielding a PSNR of 31.62 dB compared to a disastrous 16.12 dB from the conventional method.
Limitations and Future Work
- Uniform Noise Assumption: For simplicity in their experimental evaluation, the authors assumed uniform standard deviations ($\sigma$) across all flash memory voltage states. Real-world flash memory often exhibits state-dependent noise (e.g., higher states degrade faster due to wear and program disturb), though the authors note their mathematical framework can theoretically handle arbitrary variances.
- Hardware Overhead: The paper focuses on the algorithmic formulation and numerical simulation of the optimization problem. It does not detail the practical hardware overhead or the time required to dynamically adjust verify levels via Incremental Step Pulse Programming (ISPP) in a real PIM chip.
Summary updated