ARCHER: a ReRAM-based accelerator for compressed recommendation systems
Xinyang SHEN, Xiaofei LIAO, Long ZHENG(), Yu HUANG, Dan CHEN, Hai JIN
National Engineering Research Center for Big Data Technology and System, Services Computing Technology and System Lab, Clusters and Grid Computing Lab, School of Computer Science and Technology, Huazhong University of Science and Technology, Wuhan 430074, China
Modern recommendation systems are widely used in modern data centers. The random and sparse embedding lookup operations are the main performance bottleneck for processing recommendation systems on traditional platforms as they induce abundant data movements between computing units and memory. ReRAM-based processing-in-memory (PIM) can resolve this problem by processing embedding vectors where they are stored. However, the embedding table can easily exceed the capacity limit of a monolithic ReRAM-based PIM chip, which induces off-chip accesses that may offset the PIM profits. Therefore, we deploy the decomposed model on-chip and leverage the high computing efficiency of ReRAM to compensate for the decompression performance loss. In this paper, we propose ARCHER, a ReRAM-based PIM architecture that implements fully on-chip recommendations under resource constraints. First, we make a full analysis of the computation pattern and access pattern on the decomposed table. Based on the computation pattern, we unify the operations of each layer of the decomposed model in multiply-and-accumulate operations. Based on the access observation, we propose a hierarchical mapping schema and a specialized hardware design to maximize resource utilization. Under the unified computation and mapping strategy, we can coordinate the inter-processing elements pipeline. The evaluation shows that ARCHER outperforms the state-of-the-art GPU-based DLRM system, the state-of-the-art near-memory processing recommendation system RecNMP, and the ReRAM-based recommendation accelerator REREC by , , and in terms of performance and , , and in terms of energy savings, respectively.
Ke L, Gupta U, Cho B Y, Brooks D, Chandra V, Diril U, Firoozshahian A, Hazelwood K, Jia B, Lee H H S, Li M, Maher B, Mudigere D, Naumov M, Schatz M, Smelyanskiy M, Wang X, Reagen B, Wu C J, Hempstead M, Zhang X. RecNMP: Accelerating personalized recommendation with near-memory processing. In: Proceedings of the 47th ACM/IEEE Annual International Symposium on Computer Architecture. 2020, 790−803
2
M, Naumov D, Mudigere H J M, Shi J, Huang N, Sundaraman J, Park X, Wang U, Gupta C J, Wu A G, Azzolini D, Dzhulgakov A, Mallevich I, Cherniavskii Y, Lu R, Krishnamoorthi A, Yu V, Kondratenko S, Pereira X, Chen W, Chen V, Rao B, Jia L, Xiong M Smelyanskiy . Deep learning recommendation model for personalization and recommendation systems. 2019, arXiv preprint arXiv: 1906.00091
3
U, Gupta C J, Wu X, Wang M, Naumov B, Reagen D, Brooks B, Cottel K, Hazelwood M, Hempstead B, Jia H H S, Lee A, Malevich D, Mudigere M, Smelyanskiy L, Xiong X Zhang . The architectural implications of Facebook’s DNN-based personalized recommendation. In: Proceedings of 2020 IEEE International Symposium on High Performance Computer Architecture. 2020, 488−501
4
J, Wu X, He X, Wang Q, Wang W, Chen J, Lian X Xie . Graph convolution machine for context-aware recommender system. Frontiers of Computer Science, 2022, 16( 6): 166614
5
H, Guo R, Tang Y, Ye Z, Li X, He Z Dong . DeepFM: an end-to-end wide & deep learning framework for CTR prediction. 2018, arXiv preprint arXiv: 1804.04950
6
G, Zhou N, Mou Y, Fan Q, Pi W, Bian C, Zhou X, Zhu K Gai . Deep interest evolution network for click-through rate prediction. In: Proceedings of the 33rd AAAI Conference on Artificial Intelligence. 2019, 5941−5948
7
Hwang R, Kim T, Kwon Y, Rhu M. Centaur: a chiplet-based, hybrid sparse-dense accelerator for personalized recommendations. In: Proceedings of the 47th ACM/IEEE Annual International Symposium on Computer Architecture. 2020, 968−981
8
Kal H, Lee S, Ko G, Ro W W. SPACE: locality-aware processing in heterogeneous memory for personalized recommendations. In: Proceedings of the 48th ACM/IEEE Annual International Symposium on Computer Architecture. 2021, 679−691
9
A, Shafiee A, Nag N, Muralimanohar R, Balasubramonian J P, Strachan M, Hu R S, Williams V Srikumar . ISAAC: a convolutional neural network accelerator with in-situ analog arithmetic in crossbars. ACM SIGARCH Computer Architecture News, 2016, 44( 3): 14–26
10
P, Chi S, Li C, Xu T, Zhang J, Zhao Y, Liu Y, Wang Y Xie . PRIME: a novel processing-in-memory architecture for neural network computation in ReRAM-based main memory. ACM SIGARCH Computer Architecture News, 2016, 44( 3): 27–39
11
Imani M, Gupta S, Kim Y, Rosing T. FloatPIM: in-memory acceleration of deep neural network training with high precision. In: Proceedings of the 46th ACM/IEEE Annual International Symposium on Computer Architecture. 2019, 802−815
12
L, Song Y, Zhuo X, Qian H, Li Y Chen . GraphR: accelerating graph processing using ReRAM. In: Proceedings of 2018 IEEE International Symposium on High Performance Computer Architecture. 2018, 531−543
13
Y, Huang L, Zheng P, Yao J, Zhao X, Liao H, Jin J Xue . A heterogeneous PIM hardware-software co-design for energy-efficient graph processing. In: Proceedings of 2020 IEEE International Parallel and Distributed Processing Symposium. 2020, 684−695
14
L, Zheng J, Zhao Y, Huang Q, Wang Z, Zeng J, Xue X, Liao H Jin . Spara: an energy-efficient ReRAM-based accelerator for sparse graph analytics applications. In: Proceedings of 2020 IEEE International Parallel and Distributed Processing Symposium. 2020, 696−707
15
A I, Arka J R, Doppa P P, Pande B K, Joardar K Chakrabarty . ReGraphX: NoC-enabled 3D heterogeneous ReRAM architecture for training graph neural networks. In: Proceedings of 2021 Design, Automation & Test in Europe Conference & Exhibition. 2021, 1667−1672
16
Zha Y, Li J. Hyper-AP: enhancing associative processing through a full-stack optimization. In: Proceedings of the 47th ACM/IEEE Annual International Symposium on Computer Architecture. 2020, 846−859
17
M, Imani S, Pampana S, Gupta M, Zhou Y, Kim T Rosing . DUAL: acceleration of clustering algorithms using digital-based processing in-memory. In: Proceedings of the 53rd Annual IEEE/ACM International Symposium on Microarchitecture. 2020, 356−371
18
D, Niu C, Xu N, Muralimanohar N P, Jouppi Y Xie . Design of cross-point metal-oxide ReRAM emphasizing reliability and cost. In: Proceedings of 2013 IEEE/ACM International Conference on Computer-Aided Design. 2013, 17−23
19
H S P, Wong H Y, Lee S, Yu Y S, Chen Y, Wu P S, Chen B, Lee F T, Chen M J Tsai . Metal−oxide RRAM. Proceedings of the IEEE, 2012, 100( 6): 1951–1970
20
H, Li H, Jin L, Zheng Y, Huang X Liao . ReCSA: a dedicated sort accelerator using ReRAM-based content addressable memory. Frontiers of Computer Science, 2023, 17( 2): 172103
21
Yin C, Acun B, Wu C J, Liu X. TT-Rec: Tensor train compression for deep learning recommendation models. 2021, arXiv preprint arXiv: 2101.11714
22
M, Hu J P, Strachan Z, Li E M, Grafals N, Davila C, Graves S, Lam N, Ge J J, Yang R S Williams . Dot-product engine for neuromorphic computing: programming 1T1M crossbar to accelerate matrix-vector multiplication. In: Proceedings of the 53rd ACM/EDAC/IEEE Design Automation Conference. 2016, 1−6
23
Xu C, Niu D, Muralimanohar N, Balasubramonian R, Zhang T, Yu S, Xie Y. Overcoming the challenges of crossbar resistive memory architectures. In: Proceedings of the 21st IEEE International Symposium on High Performance Computer Architecture. 2015, 476−488
24
L, Song X, Qian H, Li Y Chen . PipeLayer: a pipelined ReRAM-based accelerator for deep learning. In: Proceedings of 2017 IEEE International Symposium on High Performance Computer Architecture. 2017, 541−552
25
H, Cai B, Liu J, Chen L, Naviner Y, Zhou Z, Wang J Yang . A survey of in-spin transfer torque MRAM computing. Science China Information Sciences, 2021, 64( 6): 160402
26
Y, Luo P, Wang X, Peng X, Sun S Yu . Benchmark of ferroelectric transistor-based hybrid precision synapse for neural network accelerator. IEEE Journal on Exploratory Solid-State Computational Devices and Circuits, 2019, 5( 2): 142–150
27
F, Xia D J, Jiang J, Xiong N H Sun . A survey of phase change memory systems. Journal of Computer Science and Technology, 2015, 30( 1): 121–144
28
N Gong . Multi level cell (MLC) in 3D crosspoint phase change memory array. Science China Information Sciences, 2021, 64( 6): 166401
29
K, Weinberger A, Dasgupta J, Langford A, Smola J Attenberg . Feature hashing for large scale multitask learning. In: Proceedings of the 26th Annual International Conference on Machine Learning. 2009, 1113−1120
30
H, Guan A, Malevich J, Yang J, Park H Yuen . Post-training 4-bit quantization on embedding tables. 2019, arXiv preprint arXiv: 1911.02079
31
I V Oseledets . Tensor-train decomposition. SIAM Journal on Scientific Computing, 2011, 33( 5): 2295–2317
32
T, Han P, Wang S, Niu C Li . Modality matches modality: pretraining modality-disentangled item representations for recommendation. In: Proceedings of the ACM Web Conference 2022. 2022, 2058−2066
33
Y, Long X, She S Mukhopadhyay . Design of reliable DNN accelerator with un-reliable ReRAM. In: Proceedings of 2019 Design, Automation & Test in Europe Conference & Exhibition. 2019, 1769−1774
34
X, Dong C, Xu Y, Xie N P Jouppi . NVSim: a circuit-level performance, energy, and area model for emerging nonvolatile memory. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2012, 31( 7): 994–1007
35
Y, Wang Z, Zhu F, Chen M, Ma G, Dai Y, Wang H, Li Y Chen . Rerec: in-ReRAM acceleration with access-aware mapping for personalized recommendation. In: Proceedings of 2021 IEEE/ACM International Conference on Computer Aided Design. 2021, 1−9
36
N, Muralimanohar R, Balasubramonian N Jouppi . Optimizing NUCA organizations and wiring alternatives for large caches with CACTI 6.0. In: Proceedings of the 40th Annual IEEE/ACM International Symposium on Microarchitecture. 2007, 3−14
37
N, Jiang D U, Becker G, Michelogiannakis J, Balfour B, Towles D E, Shaw J, Kim W J Dally . A detailed and flexible cycle-accurate network-on-chip simulator. In: Proceedings of 2013 IEEE International Symposium on Performance Analysis of Systems and Software. 2013, 86−96
38
Y, Huang L, Zheng P, Yao Q, Wang X, Liao H, Jin J Xue . Accelerating graph convolutional networks using crossbar-based processing-in-memory architectures. In: Proceedings of 2022 IEEE International Symposium on High-Performance Computer Architecture. 2022, 1029−1042
39
Qu Y, Cai H, Ren K, Zhang W, Yu Y, Wen Y, Wang J. Product-based neural networks for user response prediction. In: Proceedings of the 16th IEEE International Conference on Data Mining. 2016, 1149−1154
40
Y, Qu B, Fang W, Zhang R, Tang M, Niu H, Guo Y, Yu X He . Product-based neural networks for user response prediction over multi-field categorical data. ACM Transactions on Information Systems, 2019, 37( 1): 5
41
H, Ko S, Lee Y, Park A Choi . A survey of recommendation systems: recommendation models, techniques, and application fields. Electronics, 2022, 11( 1): 141
42
D, Chen H, Jin L, Zheng Y, Huang P, Yao C, Gui Q, Wang H, Liu H, He X, Liao R Zheng . A general offloading approach for near-dram processing-in-memory architectures. In: Proceedings of 2022 IEEE International Parallel and Distributed Processing Symposium. 2022, 246−257
43
D, Chen H, He H, Jin L, Zheng Y, Huang X, Shen X Liao . MetaNMP: leveraging Cartesian-like product to accelerate HGNNs with near-memory processing. In: Proceedings of the 50th Annual International Symposium on Computer Architecture. 2023, 56
44
Y, Kwon Y, Lee M Rhu . Tensor casting: co-designing algorithm-architecture for personalized recommendation training. In: Proceedings of 2021 IEEE International Symposium on High-Performance Computer Architecture. 2021, 235−248
45
M, Wilkening U, Gupta S, Hsia C, Trippel C J, Wu D, Brooks G Y Wei . RecSSD: near data processing for solid state drive based recommendation inference. In: Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems. 2021, 717−729