Efficient Similarity-aware Compression to Reduce Bit-writes in Non-Volatile Main Memory for Image-based Applications

Zhangyu Chen, Yu Hua, Pengfei Zuo, Yuanyuan Sun, Yuncheng GuoarXiv 2019

Abstract

Non-Volatile Main Memory (NVM) technologies, such as Phase Change Memory (PCM), provide high density and low standby power but are hindered by high write latency and energy costs. Traditional hardware compression schemes like Frequent Pattern Compression (FPC) and Base-Delta-Immediate (BDI) are ineffective for image data due to its lack of simple bit patterns. This paper presents SimCom (Similarity-aware Compression), a hardware-level scheme that exploits pixel-level similarity and approximate computing to reduce NVM bit-writes. Evaluation across various image-processing workloads shows that SimCom reduces write latency by ~34% and energy consumption by ~29% with negligible loss in image quality.

Introduction

The adoption of NVMs as DRAM alternatives is limited by the "write problem": writing to NVM is significantly slower and more energy-intensive than reading. While data compression can mitigate this by reducing the volume of written bits, standard hardware-layer schemes struggle with the "noisy" nature of raw pixel data. Software-layer compression (e.g., JPEG) is too slow for real-time memory controller operations and lacks the granularity required for direct pixel manipulation.

SimCom addresses this gap by operating within the NVM module controller, utilizing a hardware-fast approach that understands image data structures. It partitions data based on pixel granularity and employs a "Base + Run" compression strategy, identifying sequences of similar pixels to minimize data transfer.

SimCom Architecture and Methodology

SimCom is integrated into the NVM module controller, intercepting write requests from the CPU's memory controller. As shown in Figure 1, the system identifies approximable data and applies compression before writing to the NVM array.

Figure 1: System architecture illustrating the integration of SimCom within the NVM write path.

The core logic of SimCom rests on four pillars:

  1. Pixel-level Similarity: Data is partitioned by pixel (e.g., 3-byte RGB) rather than arbitrary word boundaries.
  2. Base + Run Compression: The first pixel in a similar sequence is stored as a base, followed by a run count for subsequent similar pixels.
  3. Adaptive Mode Selection: SimCom runs multiple compression modes in parallel to handle various image formats (bit depths, channel counts) and selects the most efficient one on-the-fly.
  4. Approximate Computing: By allowing a small error threshold (Approximation Factor), SimCom can treat nearly identical pixels as a match, significantly increasing compression opportunities.

Motivation: Similarity in Image Data

The effectiveness of SimCom is rooted in the high degree of spatial similarity found in image workloads. Figure 2 demonstrates how the ratio of continuous similar words increases as the approximation factor (AF) is relaxed from 0% (lossless) to 5%. Even a small 1% AF dramatically improves the potential for "Base + Run" compression across all tested workloads.

Figure 2: Impact of approximation factor on the ratio of continuous similar words across various workloads.

Evaluation and Results

The researchers evaluated SimCom using the gem5 simulator and NVMain, modeling a PCM-based system. Six real-world image-based workloads—including edge detection (sobel), clustering (kmeans), and demosaicing (debayer)—were tested using the Kodak Lossless True Color Image Suite.

Key findings include:

  • Performance: Average write latency was reduced by 33.0% to 34.8%.
  • Energy Efficiency: Total energy savings ranged from 28.3% to 29.0%.
  • Compression Superiority: While traditional FPC and BDI schemes achieved compression ratios near 1.0 (indicating failure to compress), SimCom significantly reduced the bit-write ratio.
  • Visual Quality: These gains were achieved with a Root-Mean-Square Error (RMSE) of only ~3%, which is visually imperceptible in most practical applications.

Conclusion

SimCom provides a robust hardware-level solution for the NVM write problem in image-centric systems. By combining pixel-aware partitioning with adaptive approximate compression, it achieves substantial gains in performance and energy efficiency. Future work may explore extending this approach to other streaming data types, such as audio and video, and optimizing the hardware area overhead associated with parallel compression engines.

Summary updated

BibTeX
@misc{chen2019efficient,
  author = {Zhangyu Chen and Yu Hua and Pengfei Zuo and Yuanyuan Sun and Yuncheng Guo},
  title = {{Efficient Similarity-aware Compression to Reduce Bit-writes in Non-Volatile Main Memory for Image-based Applications}},
  year = {2019},
  eprint = {1905.02487},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.02487},
}
Figure