Abstract
Data-intensive applications and throughput-oriented processors demand more memory bandwidth. Memory compression can provide more data beyond physical limits, yet new data types and smaller block sizes are challenging. This paper presents a novel and lightweight memory compression framework, Multi-Prediction Compression (MPC), to increase the effective memory bandwidth. Based on multiple prediction models and data-driven algorithm tuning, MPC can provide 31.7% better compression than state-of-the-art (SOTA) algorithms for 32B blocks. Moreover, MPC is hardware-friendly and scalable to support a growing number of data patterns.
Introduction: Breaking the Memory Wall
As GPU computational power continues to skyrocket, memory bandwidth—the ability to feed these processors with data—has struggled to keep pace. This disparity, often called the memory wall, is a primary bottleneck for modern high-performance computing. While memory compression is a proven strategy to increase effective bandwidth, it faces significant hurdles in the context of modern GPUs:
- Granularity: Modern GPUs use sector caches operating on small 32B blocks, which contain far less internal redundancy than traditional 128B lines.
- Latency Constraints: Decompression must occur within a few clock cycles to avoid negating the performance gains of compression.
- Manual Design Limitations: Traditional algorithms like BDI or FPC rely on human-picked patterns. These struggle to adapt to the diverse data types (e.g., bfloat16, int4) introduced by modern AI workloads.
The MPC Framework
Multi-Prediction Compression (MPC) addresses these challenges by shifting the burden of pattern discovery from human engineers to an automated, data-driven offline analysis. Instead of a single complex algorithm, MPC employs multiple lightweight prediction models running in parallel. Each model predicts a value based on another within the block using a base position and a "ratio factor" (optimized as powers of two for hardware efficiency).
To determine the optimal parameters for these models, the researchers utilize a metric called Ratio Entropy (RE). By applying a Minimum Spanning Tree (MST) algorithm to the RE data, the framework generates a hardware-friendly prediction map that avoids circular dependencies. Once a prediction is made, the resulting difference (residue) is processed by a shared encoder. This encoder transforms residues into bit-planes and applies XOR operations to maximize zero-runs, which are then compacted using a specialized 16-bit symbol encoding table.
Evaluation and Performance
The framework was rigorously tested against 59 applications from seven major benchmark suites, including Pytorch, Rodinia, and Polybench. The dataset encompassed a wide variety of integer (INT32/64) and floating-point (FP32/64) workloads.
MPC achieved an average compression ratio of 2.26 for 32B blocks, representing a 31.7% improvement over the previous state-of-the-art, C-Pack. The performance gains were particularly notable in bandwidth-limited scenarios, where MPC delivered up to a 69.0% speedup for I/O-bound applications.
Beyond raw performance, MPC is designed for practical hardware implementation. It features a low-latency pipeline (3-cycle compression, 4-cycle decompression) and a minimal power footprint of 47.1 mW—roughly 0.019% of an NVIDIA Titan-V’s power envelope.
Key Insights and Future Directions
A core finding of this research is that data types are often better correlated by fixed ratios than by simple deltas. By leveraging parallelism and a "transformer" approach to bit-plane reordering, MPC creates highly compressible data streams regardless of the original data type.
While MPC currently relies on offline analysis to tune its models, future work may explore online, adaptive tuning to respond to shifting data patterns in real-time. Additionally, while MPC excels at intra-block redundancy, some SOTA methods like C-Pack occasionally outperform it by exploiting spatial locality across different blocks—a potential area for hybrid framework development.
Summary updated