NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CODAG: Characterizing and Optimizing Decompression Algorithms for GPUs

Jeongmin Brian Park, Zaid Qureshi, Vikram S. Mailthody, Andrew Gacek, Shunfan Shao, Mohammad Almasri, Isaac Gelado, Jinjun Xiong, Chris J. Newburn, I-Hsin Chung, Michael Garland, Nikolay Sakharnykh, Wen-Mei W. HwuarXiv 2023 · DOI

TL;DR

This paper introduces CODAG, a novel GPU decompression architecture that significantly boosts performance by re-architecting how decompression tasks are handled. Instead of relying on specialized threads for prefetching and decoding, CODAG uses warps as the primary unit for decompression, leading to better GPU resource utilization and substantial speedups over existing methods.

What Problem Does This Paper Address?

Big data applications are generating and processing ever-increasing volumes of data. To manage this, data compression is crucial for storage and transmission efficiency. However, this compressed data must be decompressed before it can be processed, and this decompression step can become a major bottleneck, especially when using GPUs, which are increasingly common for data analytics due to their high compute power and memory bandwidth. Existing GPU decompression techniques often assume decompression is memory-bound and employ complex strategies to hide memory latency. This paper argues that these approaches lead to poor GPU utilization because they create dependencies that leave many threads idle, waiting for a few decoding threads, thus exposing compute and synchronization latencies. The core problem is to achieve high-throughput, efficient decompression on GPUs that avoids these bottlenecks.

Methods

The paper proposes CODAG, a new GPU kernel architecture for high-throughput decompression. The key innovation is warp-level decompression. Instead of assigning a compressed chunk to an entire thread block (as done by state-of-the-art methods like NVIDIA RAPIDS), CODAG assigns each chunk to a single warp. This dramatically increases the number of concurrently active decompression units, allowing the GPU's hardware scheduler to better hide latencies.

CODAG also eliminates the need for specialized prefetching warps, instead having all threads within a warp collaboratively fetch compressed data into a shared buffer. This "all-thread decoding" approach avoids the overhead of broadcast synchronization and ensures that compute resources are more fully utilized. To simplify integration, CODAG provides a clean API with abstractions for input and output streams, allowing developers to easily incorporate their own encoding techniques without needing to implement complex, low-level GPU optimizations for memory access and synchronization.

Datasets

The authors evaluated CODAG using three common encoding techniques: RLE v1 and RLE v2 (from the Apache ORC file format) and Deflate. They used seven real-world sample datasets from various industrial application domains, including:

  • Mortgage Col 0 (MCO)
  • Mortgage Col 3 (MC3)
  • NYC Taxi Passenger Count (TPC)
  • NYC Taxi Payment Type (TPT)
  • Criteo Dense 2 (CD2)
  • Twitter COO Col 1 (TC2)
  • Human Reference Genome (HRG)

These datasets were chosen for their diverse properties, such as long run-lengths, repeated patterns, power-law distributions, and text patterns, to provide a comprehensive evaluation.

Key Insights and Ideas

  • Decompression is Compute-Bound on Modern GPUs: Contrary to prior assumptions, the paper's profiling reveals that decompression on modern GPUs is often compute-bound, not solely memory-bound. This means that simply optimizing memory access isn't enough; efficient use of compute resources is critical.
  • Warp-Level Parallelism is Key: By assigning decompression tasks to warps instead of thread blocks, CODAG significantly increases the number of independent tasks the GPU can work on. This allows the hardware scheduler to more effectively hide latencies by interleaving instructions from different warps.
  • Eliminating Specialized Prefetching Warps is Beneficial: The overhead of managing specialized prefetching threads and the synchronization required can be detrimental. CODAG's approach of having all threads in a warp collaborate on data fetching and decoding leads to better overall resource utilization.
  • All-Thread Decoding Reduces Synchronization Overhead: Instead of a single "leader" thread decoding and broadcasting, CODAG has all threads in a warp perform decoding. This eliminates the need for expensive broadcast operations and synchronization barriers, simplifying the execution flow.
  • Abstraction Simplifies Integration: The provision of input/output stream abstractions shields developers from the complexities of GPU optimizations, making it easier to integrate new decompression algorithms.

Key Results

CODAG demonstrates significant performance improvements over the state-of-the-art NVIDIA RAPIDS decompressor:

  • Speedup: CODAG achieves a geometric mean speedup of 13.46× for RLE v1, 5.69× for RLE v2, and 1.18× for Deflate on NVIDIA A100 GPUs.
  • Throughput: CODAG achieves decompression throughputs of 38.07 GBps (RLE v1), 26.87 GBps (RLE v2), and 51.96 GBps (Deflate), compared to RAPIDS's 2.83 GBps, 4.72 GBps, and 44.18 GBps, respectively.
  • Resource Utilization: Profiling shows that CODAG leads to higher compute and memory throughput percentages and reduces stalled instruction counts related to synchronization barriers.
  • Scalability: CODAG shows better scaling with hardware resources compared to the baseline, achieving higher speedups on newer GPUs like the A100 than on older ones like the V100.

Limitations and Future Work

  • Dataset Specificity: While CODAG shows significant speedups, the performance gains for RLE-based techniques are notably higher than for Deflate. This is attributed to the nature of RLE, where longer run lengths are beneficial for thread occupancy, a factor that CODAG's finer-grained parallelism addresses more effectively.
  • Hardware Impact: The paper notes that the impact of compute under-utilization becomes more critical on newer GPUs with higher compute resources. This suggests that further optimization might be needed to fully saturate the capabilities of the most advanced hardware.
  • Future Work: The paper implicitly suggests that the CODAG framework can be extended to support a wider range of encoding techniques due to its modular design and API abstractions. The authors also highlight the importance of efficient memory access patterns, which CODAG addresses through its coalesced on-demand reading and writing operations. Further exploration into optimizing these operations for specific encoding types could yield additional gains.

Summary updated

BibTeX
@misc{park2023codag,
  author = {Jeongmin Brian Park and Zaid Qureshi and Vikram S. Mailthody and Andrew Gacek and Shunfan Shao and Mohammad Almasri and Isaac Gelado and Jinjun Xiong and Chris J. Newburn and I-Hsin Chung and Michael Garland and Nikolay Sakharnykh and Wen-Mei W. Hwu},
  title = {{CODAG: Characterizing and Optimizing Decompression Algorithms for GPUs}},
  year = {2023},
  eprint = {2307.03760},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.03760},
}
Figure