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 条
  • [1] CSCNN: Algorithm-hardware Co-design for CNN Accelerators using Centrosymmetric Filters
    Li, Jiajun
    Louri, Ahmed
    Karanth, Avinash
    Bunescu, Razvan
    2021 27TH IEEE INTERNATIONAL SYMPOSIUM ON HIGH-PERFORMANCE COMPUTER ARCHITECTURE (HPCA 2021), 2021, : 612 - 625
  • [2] Low-Cost Hardware Design Approach for Long Short-Term Memory (LSTM)
    Khalil, Kasem
    Mohaidat, Tamador
    Bayoumi, Magdy
    2023 IEEE INTERNATIONAL SYMPOSIUM ON CIRCUITS AND SYSTEMS, ISCAS, 2023,
  • [3] E-LSTM: An Efficient Hardware Architecture for Long Short-Term Memory
    Wang, Meiqi
    Wang, Zhisheng
    Lu, Jinming
    Lin, Jun
    Wang, Zhongfeng
    IEEE JOURNAL ON EMERGING AND SELECTED TOPICS IN CIRCUITS AND SYSTEMS, 2019, 9 (02) : 280 - 291
  • [4] SpinBayes: Algorithm-Hardware Co-Design for Uncertainty Estimation Using Bayesian In-Memory Approximation on Spintronic-Based Architectures
    Ahmed, Soyed Tuhin
    Danouchi, Kamal
    Hefenbrock, Michael
    Prenat, Guillaume
    Anghel, Lorena
    Tahoori, Mehdi B.
    ACM TRANSACTIONS ON EMBEDDED COMPUTING SYSTEMS, 2023, 22 (05)
  • [5] CoMN: Algorithm-Hardware Co-Design Platform for Nonvolatile Memory-Based Convolutional Neural Network Accelerators
    Han, Lixia
    Pan, Renjie
    Zhou, Zheng
    Lu, Hairuo
    Chen, Yiyang
    Yang, Haozhang
    Huang, Peng
    Sun, Guangyu
    Liu, Xiaoyan
    Kang, Jinfeng
    IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2024, 43 (07) : 2043 - 2056
  • [6] Intrusion detection systems using long short-term memory (LSTM)
    FatimaEzzahra Laghrissi
    Samira Douzi
    Khadija Douzi
    Badr Hssina
    Journal of Big Data, 8
  • [7] Detecting Android malware using Long Short-term Memory (LSTM)
    Vinayakumar, R.
    Soman, K. P.
    Poornachandran, Prabaharan
    Kumar, S. Sachin
    JOURNAL OF INTELLIGENT & FUZZY SYSTEMS, 2018, 34 (03) : 1277 - 1288
  • [8] Intrusion detection systems using long short-term memory (LSTM)
    Laghrissi, FatimaEzzahra
    Douzi, Samira
    Douzi, Khadija
    Hssina, Badr
    JOURNAL OF BIG DATA, 2021, 8 (01)
  • [9] STOCK MARKET PREDICTION USING LONG SHORT-TERM MEMORY (LSTM)
    Abu Nadif, Mohammad
    Samin, Towhidur Rahman
    Islam, Tohedul
    2022 SECOND INTERNATIONAL CONFERENCE ON ADVANCES IN ELECTRICAL, COMPUTING, COMMUNICATION AND SUSTAINABLE TECHNOLOGIES (ICAECT), 2022,
  • [10] Advertisement design in dynamic interactive scenarios using DeepFM and long short-term memory (LSTM)
    Zeng, Lingling
    Asif, Muhammad
    PEERJ COMPUTER SCIENCE, 2024, 10