Skip to main content
QUICK REVIEW

[Paper Review] RecD: Deduplication for End-to-End Deep Learning Recommendation Model Training Infrastructure

Mark Zhao, Dhruv Choudhary|arXiv (Cornell University)|Nov 9, 2022
Machine Learning in HealthcareComputer Science4 citations
TL;DR

RecD introduces a suite of end-to-end optimizations for industrial Deep Learning Recommendation Model (DLRM) training pipelines, leveraging session-centric feature duplication to reduce storage, preprocessing, and training overheads. By coalescing duplicate features within training batches and encoding them via a novel tensor format, InverseKeyedJaggedTensors (IKJTs), RecD accelerates training and preprocessing throughput by up to 2.48× and 1.79×, respectively, while improving storage efficiency by 3.71×.

ABSTRACT

We present RecD (Recommendation Deduplication), a suite of end-to-end infrastructure optimizations across the Deep Learning Recommendation Model (DLRM) training pipeline. RecD addresses immense storage, preprocessing, and training overheads caused by feature duplication inherent in industry-scale DLRM training datasets. Feature duplication arises because DLRM datasets are generated from interactions. While each user session can generate multiple training samples, many features' values do not change across these samples. We demonstrate how RecD exploits this property, end-to-end, across a deployed training pipeline. RecD optimizes data generation pipelines to decrease dataset storage and preprocessing resource demands and to maximize duplication within a training batch. RecD introduces a new tensor format, InverseKeyedJaggedTensors (IKJTs), to deduplicate feature values in each batch. We show how DLRM model architectures can leverage IKJTs to drastically increase training throughput. RecD improves the training and preprocessing throughput and storage efficiency by up to 2.48x, 1.79x, and 3.71x, respectively, in an industry-scale DLRM training system.

Motivation & Objective

  • To characterize the prevalence of feature value duplication in industrial-scale DLRM training datasets, which arises from session-centric data generation.
  • To reduce storage, preprocessing, and training overheads caused by redundant feature values across the end-to-end DLRM pipeline.
  • To design and deploy a new tensor format, InverseKeyedJaggedTensors (IKJTs), that enables efficient deduplication and processing of features within training batches.
  • To optimize data ingestion, preprocessing, and training workloads by leveraging IKJTs to eliminate redundant compute, memory, and network usage.
  • To demonstrate that IKJTs can be seamlessly integrated into existing DLRM architectures with minimal changes, enabling broad compatibility and performance gains.

Proposed method

  • Coalescing training samples from the same user session within a batch to group duplicate feature values, improving data locality and compression.
  • Introducing InverseKeyedJaggedTensors (IKJTs), a new tensor format that encodes feature values and their inverse lookups to deduplicate values within each batch.
  • Using session ID-based sharding of raw inference logs in Scribe to enhance compression ratios during data storage and ingestion.
  • Enabling readers and trainers to operate directly on IKJTs by modifying data processing pipelines to consume and transform data into IKJT format during reading.
  • Extending IKJTs to support partial deduplication via shift-based encoding, capturing an additional 7.8% of duplicate values beyond exact matches.
  • Leveraging standardized jagged tensor interfaces to allow minimal modifications to existing preprocessing functions and model architectures for IKJT compatibility.

Experimental results

Research questions

  • RQ1How prevalent is feature value duplication in industrial-scale DLRM training datasets, and what are its system-level impacts on storage, preprocessing, and training?
  • RQ2Can coalescing samples from the same user session within a training batch significantly reduce data volume and improve compression efficiency?
  • RQ3What novel tensor format enables efficient deduplication of features during training while minimizing runtime overhead?
  • RQ4To what extent can existing DLRM model architectures and training pipelines be optimized to process deduplicated tensors without major architectural changes?
  • RQ5How do IKJTs compare to standard KJTs in terms of performance gains across storage, preprocessing, and training throughput in real-world deployments?

Key findings

  • Feature duplication accounts for 81.6–89.4% of feature values across samples from the same user session in industrial DLRM datasets, indicating a major source of redundancy.
  • RecD improves training throughput by up to 2.48× and preprocessing throughput by up to 1.79× in an industrial-scale DLRM training system.
  • Storage efficiency is enhanced by up to 3.71× due to effective deduplication and improved compression from session-based data coalescing.
  • The InverseKeyedJaggedTensor (IKJT) format enables efficient deduplication with minimal runtime overhead, allowing direct use in preprocessing and training pipelines.
  • Partial IKJTs extend deduplication to 91.7% of potential duplicates (81.6% exact + 7.8% partial), increasing the overall deduplication coverage.
  • RecD’s optimizations are generalizable across different table schemas and model architectures, requiring only a feature converter and index_select for compatibility.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.