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 条
  • [31] SOIL MOISTURE ESTIMATION FROM SMAP OBSERVATIONS USING LONG SHORT-TERM MEMORY (LSTM)
    Ben Abbes, Ali
    Magagi, Ramata
    Goita, Kalifa
    2019 IEEE INTERNATIONAL GEOSCIENCE AND REMOTE SENSING SYMPOSIUM (IGARSS 2019), 2019, : 1590 - 1593
  • [32] Earthquake vulnerability assessment for the Indian subcontinent using the Long Short-Term Memory model (LSTM)
    Jena, Ratiranjan
    Naik, Sambit Prasanajit
    Pradhan, Biswajeet
    Beydoun, Ghassan
    Park, Hyuck-Jin
    Alamri, Abdullah
    INTERNATIONAL JOURNAL OF DISASTER RISK REDUCTION, 2021, 66
  • [33] Long Short-Term Memory (LSTM)-Based Dog Activity Detection Using Accelerometer and Gyroscope
    Hussain, Ali
    Begum, Khadija
    Armand, Tagne Poupi Theodore
    Mozumder, Md Ariful Islam
    Ali, Sikandar
    Kim, Hee Cheol
    Joo, Moon-Il
    APPLIED SCIENCES-BASEL, 2022, 12 (19):
  • [34] PM2.5 Forecast in Korea using the Long Short-Term Memory (LSTM) Model
    Ho, Chang-Hoi
    Park, Ingyu
    Kim, Jinwon
    Lee, Jae-Bum
    ASIA-PACIFIC JOURNAL OF ATMOSPHERIC SCIENCES, 2023, 59 (05) : 563 - 576
  • [35] Development of a Regional Gridded Runoff Dataset Using Long Short-Term Memory (LSTM) Networks
    Ayzel, Georgy
    Kurochkina, Liubov
    Abramov, Dmitriy
    Zhuravlev, Sergei
    HYDROLOGY, 2021, 8 (01) : 1 - 19
  • [36] Analysis of Piano Playing Techniques Research Using Long Short-Term Memory Networks (LSTM)
    Su, Tong
    PROCEEDINGS OF 2024 INTERNATIONAL CONFERENCE ON MACHINE INTELLIGENCE AND DIGITAL APPLICATIONS, MIDA2024, 2024, : 511 - 516
  • [37] Optimizing the Parameters of Long Short-Term Memory Networks Using the Bees Algorithm
    Alamri, Nawaf Mohammad H.
    Packianather, Michael
    Bigot, Samuel
    APPLIED SCIENCES-BASEL, 2023, 13 (04):
  • [38] Enhancing misinformation detection using long short-term memory (LSTM) and bidirectional LSTM (Bi-LSTM) with word embedding techniques
    Ennejjai, Imane
    Ariss, Anass
    Mabrouki, Jamal
    Ziti, Soumia
    DISCRETE MATHEMATICS ALGORITHMS AND APPLICATIONS, 2024,
  • [39] A NOVEL SOLUTION TO JS']JSPS BASED ON LONG SHORT-TERM MEMORY AND POLICY GRADIENT ALGORITHM
    Ren, J. F.
    Ye, C. M.
    Yang, F.
    INTERNATIONAL JOURNAL OF SIMULATION MODELLING, 2020, 19 (01) : 157 - 168
  • [40] Daily Streamflow Prediction and Uncertainty Using a Long Short-Term Memory (LSTM) Network Coupled with Bootstrap
    Zhuoqi Wang
    Yuan Si
    Haibo Chu
    Water Resources Management, 2022, 36 : 4575 - 4590