A conditional branch predictor based on weightless neural networks

被引:3
作者
Villon, Luis A. Q. [1 ]
Susskind, Zachary [2 ]
Bacellar, Alan T. L. [1 ]
Miranda, Igor D. S. [5 ]
de Araujo, Leandro S. [3 ]
Lima, Priscila M. V. [1 ]
Breternitz, Mauricio [4 ]
John, Lizy K. [2 ]
Franca, Felipe M. G. [1 ,6 ]
Dutra, Diego L. C. [1 ]
机构
[1] Univ Fed Rio de Janeiro UFRJ, Rio De Janeiro, RJ, Brazil
[2] Univ Texas Austin, Austin, TX USA
[3] Univ Fed Fluminense UFF, Niteroi, RJ, Brazil
[4] Inst Univ Lisboa ISCTE IUL, ISTAR, Lisbon, Portugal
[5] Univ Fed Reconcavo Bahia UFRB, Salvador, BA, Brazil
[6] Inst Telecomunicacoes, Lisbon, Portugal
关键词
Weightless neural network; WiSARD; Branch prediction; Binary classification;
D O I
10.1016/j.neucom.2023.126637
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Conditional branch prediction allows the speculative fetching and execution of instructions before knowing the direction of conditional statements. As in other areas, machine learning techniques are a promising approach to building branch predictors, e.g., the Perceptron predictor. However, those traditional solutions demand large input sizes, which impose a considerable area overhead. We propose a conditional branch predictor based on the WiSARD (Wilkie, Stoneham, and Aleksander's Recognition Device) weightless neural network model. The WiSARD-based predictor implements one-shot online training designed to address branch prediction as a binary classification problem. We compare the WiSARD-based predictor with two state-of-the-art predictors: TAGESC-L (TAgged GEometric-Statistical Corrector-Loop) and the Multiperspective Perceptron. Our experimental evaluation shows that our proposed predictor, with a smaller input size, outperforms the perceptron-based predictor by about 0.09% and achieves similar accuracy to that of TAGE-SC-L. In addition, we perform an experimental sensitivity analysis to find the best predictor for each dataset, and based on these results, we designed new specialized predictors using a particular parameter composition for each dataset. The results show that the specialized WiSARD-based predictor outperforms the state-of-the-art by more than 2.3% in the best case. Furthermore, through the implementation of specialized predictor classifiers, we discovered that utilizing 90% of the specialized predictor for a specific dataset yielded comparable performance to the corresponding specialized predictor.
引用
收藏
页数:20
相关论文
共 36 条
[11]  
Tarsa SJ, 2019, Arxiv, DOI arXiv:1906.09889
[12]  
Jimenez D., 2005, J. Instr.-Level Parallelism, V7, P1
[13]  
Jimenez D.A., 2016, 5 JILP WORKSH COMP A, P5
[14]   Piecewise linear branch prediction [J].
Jiménez, DA .
32ND INTERNATIONAL SYMPOSIUM ON COMPUTER ARCHITECTURE, PROCEEDINGS, 2005, :382-393
[15]  
Jiménez DA, 2003, 36TH INTERNATIONAL SYMPOSIUM ON MICROARCHITECTURE, PROCEEDINGS, P243
[16]  
Jiménez DA, 2001, IEEE IJCNN, P2122, DOI 10.1109/IJCNN.2001.938494
[17]   Neural methods for dynamic branch prediction [J].
Jiménez, DA ;
Lin, C .
ACM TRANSACTIONS ON COMPUTER SYSTEMS, 2002, 20 (04) :369-397
[18]   Dynamic branch prediction with perceptrons [J].
Jiménez, DA ;
Lin, C .
HPCA: SEVENTH INTERNATIONAL SYMPOSIUM ON HIGH-PERFORMANCE COMPUTING ARCHITECTURE, PROCEEDINGS, 2001, :197-206
[19]  
Jiménez DA, 2006, INT SYM COMP ARCHIT, P55
[20]   Generalizing Neural Branch Prediction [J].
Jimenez, Daniel A. .
ACM TRANSACTIONS ON ARCHITECTURE AND CODE OPTIMIZATION, 2008, 5 (04)