TRiM: Tensor reduction in memory

B Kim, J Park, E Lee, M Rhu… - IEEE Computer …, 2020 - ieeexplore.ieee.org
IEEE Computer Architecture Letters, 2020ieeexplore.ieee.org
Personalized recommendation systems are gaining significant traction due to their industrial
importance. An important building block of recommendation systems consists of what is
known as the embedding layers, which exhibit a highly memory-intensive characteristics.
Fundamental primitives of embedding layers are the embedding vector gathers followed by
vector reductions, which exhibit low arithmetic intensity and becomes bottlenecked by the
memory throughput. To address this issue, recent proposals in this research space employ a …
Personalized recommendation systems are gaining significant traction due to their industrial importance. An important building block of recommendation systems consists of what is known as the embedding layers, which exhibit a highly memory-intensive characteristics. Fundamental primitives of embedding layers are the embedding vector gathers followed by vector reductions, which exhibit low arithmetic intensity and becomes bottlenecked by the memory throughput. To address this issue, recent proposals in this research space employ a near-data processing (NDP) solution at the DRAM rank-level, achieving a significant performance speedup. We observe that prior NDP solutions based on rank-level parallelism leave significant performance left on the table, as they do not fully reap the abundant data transfer throughput inherent in DRAM datapaths. Based on the observation that the datapath of the DRAM has a hierarchical tree structure, we propose a novel, fine-grained NDP architecture for recommendation systems, which augments the DRAM datapath with an “in-DRAM” reduction unit at the DDR4/5 rank/bank-group/bank level, achieving significant performance improvements over state-of-the-art approaches. We also propose hot embedding-vector replication to alleviate the load imbalance across the reduction units.
ieeexplore.ieee.org