LSTM-CRP: Algorithm-Hardware Co-Design and Implementation of Cache Replacement Policy Using Long Short-Term Memory

被引:0
|
作者
Wang, Yizhou [1 ]
Meng, Yishuo [1 ]
Wang, Jiaxing [1 ]
Yang, Chen [1 ]
机构
[1] Xi An Jiao Tong Univ, Sch Microelect, Xian 710049, Peoples R China
基金
中国国家自然科学基金;
关键词
memory bottleneck; cache replacement policy; long short-term memory; LSTM hardware accelerator; lightweight;
D O I
10.3390/bdcc8100140
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
As deep learning has produced dramatic breakthroughs in many areas, it has motivated emerging studies on the combination between neural networks and cache replacement algorithms. However, deep learning is a poor fit for performing cache replacement in hardware implementation because its neural network models are impractically large and slow. Many studies have tried to use the guidance of the Belady algorithm to speed up the prediction of cache replacement. But it is still impractical to accurately predict the characteristics of future access addresses, introducing inaccuracy in the discrimination of complex access patterns. Therefore, this paper presents the LSTM-CRP algorithm as well as its efficient hardware implementation, which employs the long short-term memory (LSTM) for access pattern identification at run-time to guide cache replacement algorithm. LSTM-CRP first converts the address into a novel key according to the frequency of the access address and a virtual capacity of the cache, which has the advantages of low information redundancy and high timeliness. Using the key as the inputs of four offline-trained LSTM network-based predictors, LSTM-CRP can accurately classify different access patterns and identify current cache characteristics in a timely manner via an online set dueling mechanism on sampling caches. For efficient implementation, heterogeneous lightweight LSTM networks are dedicatedly constructed in LSTM-CRP to lower hardware overhead and inference delay. The experimental results show that LSTM-CRP was able to averagely improve the cache hit rate by 20.10%, 15.35%, 12.11% and 8.49% compared with LRU, RRIP, Hawkeye and Glider, respectively. Implemented on Xilinx XCVU9P FPGA at the cost of 15,973 LUTs and 1610 FF registers, LSTM-CRP was running at a 200 MHz frequency with 2.74 W power consumption.
引用
收藏
页数:28
相关论文
共 50 条
  • [11] ADMM-NN: An Algorithm-Hardware Co-Design Framework of DNNs Using Alternating Direction Method of Multipliers
    Ren, Ao
    Zhang, Tianyun
    Ye, Shaokai
    Li, Jiayu
    Xu, Wenyao
    Qian, Xuehai
    Lin, Xue
    Wang, Yanzhi
    TWENTY-FOURTH INTERNATIONAL CONFERENCE ON ARCHITECTURAL SUPPORT FOR PROGRAMMING LANGUAGES AND OPERATING SYSTEMS (ASPLOS XXIV), 2019, : 925 - 938
  • [12] Implementation of Long Short-Term Memory (LSTM) Models for Engagement Estimation in Online Learning
    Karimah, Shofiyati Nur
    Unoki, Teruhiko
    Hasegawa, Shinobu
    IEEE TALE2021: IEEE INTERNATIONAL CONFERENCE ON ENGINEERING, TECHNOLOGY AND EDUCATION, 2021, : 283 - 289
  • [13] Malicious Traffic classification Using Long Short-Term Memory (LSTM) Model
    Thapa, K. Naresh Kumar
    Duraipandian, N.
    WIRELESS PERSONAL COMMUNICATIONS, 2021, 119 (03) : 2707 - 2724
  • [14] Forecasting salmon market volatility using long short-term memory (LSTM)
    Zitti, Mikaella
    AQUACULTURE ECONOMICS & MANAGEMENT, 2024, 28 (01) : 143 - 175
  • [15] Malicious Traffic classification Using Long Short-Term Memory (LSTM) Model
    K. Naresh Kumar Thapa
    N. Duraipandian
    Wireless Personal Communications, 2021, 119 : 2707 - 2724
  • [16] Interpreting Pilot Behavior Using Long Short-Term Memory (LSTM) Models
    Barone, Ben
    Coar, David
    Shafer, Ashley
    Guo, Jinhong K.
    Galego, Brad
    Allen, James
    ADVANCES IN ARTIFICIAL INTELLIGENCE, SOFTWARE AND SYSTEMS ENGINEERING (AHFE 2021), 2021, 271 : 60 - 66
  • [17] Prediction of groundwater levels using a long short-term memory (LSTM) technique
    Thakur, Abhinav
    Chandel, Abhishish
    Shankar, Vijay
    JOURNAL OF HYDROINFORMATICS, 2024, 27 (01) : 51 - 68
  • [18] An accident diagnosis algorithm using long short-term memory
    Yang, Jaemin
    Kim, Jonghyun
    NUCLEAR ENGINEERING AND TECHNOLOGY, 2018, 50 (04) : 582 - 588
  • [19] Realization and Hardware Implementation of Gating Units for Long Short-Term Memory Network Using Hyperbolic Sine Functions
    Joseph, Tresa
    Bindiya, T. S.
    IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2023, 42 (12) : 5141 - 5145
  • [20] Forecasting Hourly Solar Irradiance Using Long Short-Term Memory (LSTM) Network
    Obiora, Chibuzor N.
    Ali, Ahmed
    Hasan, Ali N.
    2020 11TH INTERNATIONAL RENEWABLE ENERGY CONGRESS (IREC), 2020,