Section 01
[Introduction] Disrupting CPU Branch Prediction with Machine Learning: Core Analysis of the ML-branch-predictor Project
ML-branch-predictor is an open-source project developed by Anurag Raj and Aditi Chauhan, aiming to replace the traditional CPU's 2-bit saturating counter branch predictor with the XGBoost machine learning model. By intercepting execution traces using the Intel Pin tool, training the AI model, and translating it into pure C++ code, it achieves a prediction accuracy of 95.18% on adversarial test loads—significantly outperforming the traditional hardware solution's 71.12%—and brings disruptive ideas to CPU architecture design.