Introduction
Modern recommendation systems, such as those employed by Meta or Amazon, rely heavily on Deep Learning Recommendation Models (DLRMs). These models face a significant "memory wall" due to their embedding layers, which map categorical data to dense vectors. These layers are often massive (tens of GBs) and require frequent, irregular memory lookups, creating a bottleneck for traditional hardware.
Existing solutions face several challenges:
- GPUs possess high compute power but limited memory capacity, forcing large tables to remain on the CPU.
- CPUs have the capacity but lack the memory bandwidth for simultaneous, irregular lookups.
- Hybrid CPU-GPU setups suffer from high communication overhead across the PCIe bus.
UpDLRM addresses these bottlenecks by offloading the memory-intensive embedding layers to real-world Processing-In-Memory (PIM) hardware.
System Architecture
UpDLRM utilizes the UPMEM PIM architecture, the first commercially available PIM system. This architecture consists of standard DDR4 DIMMs equipped with hundreds of small RISC cores called DRAM Processing Units (DPUs). Each DPU is situated adjacent to a 64MB bank of DRAM (MRAM), providing high local bandwidth and reducing the need for data movement to the host CPU.
Optimization Strategies
To effectively utilize PIM for DLRMs, UpDLRM introduces three primary optimizations:
- Hardware-Aware Partitioning: Since each DPU has a limited 64MB memory, large embedding tables are "tiled." The authors optimized tile dimensions based on UPMEM’s latency characteristics, noting that MRAM read latency remains relatively flat for data sizes between 8B and 32B.
- Non-Uniform Partitioning: To handle the skew in real-world data access, UpDLRM uses a greedy bin-packing algorithm to distribute "hot" and "cold" items across DPUs, balancing the workload and preventing idle cores.
- Cache-Aware Partitioning: The system integrates partial-sum caching for frequently co-occurring items. The partitioner is "cache-aware," jointly balancing the memory load of raw embedding tables and cached data within the DPU's 64MB limit.
Evaluation and Key Results
The researchers evaluated UpDLRM using six real-world datasets (e.g., Amazon, Goodreads, Meta) representing diverse recommendation scenarios.
Key findings include:
- Significant Speedups: UpDLRM achieved a 1.9x–3.2x speedup over CPU-only implementations and a 2.2x–4.6x speedup over CPU-GPU hybrid systems.
- Efficiency: It outperformed FAE (a state-of-the-art GPU-caching system) by 1.1x–2.3x, demonstrating that PIM's aggregate bandwidth is superior for these workloads.
- Bottleneck Mitigation: In high-skew datasets, cache-aware partitioning reduced DPU lookup time from ~75% to ~50% of total latency, shifting the bottleneck away from memory access.
Conclusion and Future Work
UpDLRM demonstrates the viability of using real-world PIM hardware to accelerate recommendation systems. While the current system significantly reduces latency, limitations such as the lack of direct inter-DPU communication and tight memory capacity per DPU remain. Future work will focus on building truly heterogeneous systems where DPUs handle embedding lookups while GPUs manage dense neural network computations.
Summary updated