Efficient Tabular Data Preprocessing of ML Pipelines

Wenqi Jiang, Yu Zhu, Wenqi Jiang 0001, Gustavo AlonsoarXiv 2024 · DOI

Abstract

Modern machine learning pipelines, particularly those involving recommendation systems with tabular data, are increasingly bottlenecked by CPU-based data preprocessing. While GPUs have seen exponential performance growth, CPU-bound tasks like UTF-8 decoding and feature encoding often leave training hardware underutilized. This paper introduces Piper, a high-performance FPGA-based hardware accelerator that shifts preprocessing from traditional row-wise CPU execution to a column-wise, network-attached architecture. Piper achieves up to a 71x speedup over high-end 128-core CPU servers, effectively eliminating the data stall in ML training.

Introduction

In the era of Deep Learning Recommendation Models (DLRM), the performance gap between data preprocessing and model training has become a critical inefficiency. Preprocessing involves stateful tasks such as decoding raw UTF-8 strings, handling missing values, and generating vocabulary tables. On multi-core CPUs, these operations require significant thread synchronization, leading to "data stalls" where GPUs remain idle for up to 60% of the training time. Simply scaling CPU cores fails to resolve this issue due to the non-linear overhead of synchronization.

Piper Architecture

Piper addresses these bottlenecks through a specialized hardware design prototyped on FPGAs. The architecture is built on four primary pillars:

  1. Column-wise Pipelined Execution: Unlike software implementations that process data row-by-row, Piper processes feature columns independently using heterogeneous Processing Elements (PEs). This eliminates the row-wise synchronization overhead that slows down traditional CPU implementations.
  2. Parallel UTF-8 Decoding: To overcome the notorious text-decoding bottleneck, Piper utilizes a parallel mechanism processing multiple bytes per cycle, matching high-speed memory bandwidth.
  3. Hybrid Memory Hierarchy: The system leverages on-chip SRAM for low-latency vocabulary access and off-chip High-Bandwidth Memory (HBM) as a cache for large datasets.
  4. Network-Attached Disaggregation: By attaching directly to the network rather than the local PCIe bus, Piper avoids host-side CPU overhead and can stream preprocessed data to multiple GPUs simultaneously.
Comparison of traditional CPU row-wise processing versus Piper's column-wise parallel dataflow.

Experimental Evaluation

The researchers evaluated Piper using the Criteo Kaggle dataset (11GB raw UTF-8), a standard benchmark for DLRM. The dataset includes 13 dense numerical features and 26 sparse categorical features.

Piper demonstrated significant performance improvements across various configurations. Compared to a 128-core AMD EPYC server, Piper achieved a latency speedup ranging from 4.7x to 71.3x. The highest gains were observed with binary input datasets, where the UTF-8 decoding stage was bypassed. Furthermore, Piper outperformed data-center GPUs (Nvidia V100) by 4.8x to 20.3x for similar preprocessing tasks.

Latency comparison showing the significant reduction in preprocessing time achieved by Piper compared to traditional CPU-based methods.

Conclusion and Future Work

Piper successfully demonstrates that specialized hardware can resolve the preprocessing bottleneck in ML pipelines. By bypassing CPU-level synchronization and utilizing a column-independent architecture, it ensures high GPU utilization. While currently optimized for categorical and integer operations, future iterations may explore dynamic reconfiguration to support a wider array of floating-point operations and seamless integration with frameworks like PyTorch and TensorFlow via Remote Procedure Calls (RPC).

Summary updated

BibTeX
@misc{jiang2024efficient,
  author = {Wenqi Jiang and Yu Zhu and Wenqi Jiang and Gustavo Alonso},
  title = {{Efficient Tabular Data Preprocessing of ML Pipelines}},
  year = {2024},
  eprint = {2409.14912},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.14912},
}
Figure