Improving Branch Prediction By Modeling Global History with Convolutional Neural Networks

06/20/2019
by   Stephen J. Tarsa, et al.
0

CPU branch prediction has hit a wall--existing techniques achieve near-perfect accuracy on 99 that remain hide major performance gains. In a companion report, we show that a primary source of mispredictions is a handful of systematically hard-to-predict branches (H2Ps), e.g. just 10 static instructions per SimPoint phase in SPECint 2017. The lost opportunity posed by these mispredictions is significant to the CPU: 14.0 the pipeline is scaled four-fold, on par with gains from process technology. However, up to 80 predictors, even when afforded exponentially more resources. New approaches are needed, and machine learning (ML) provides a palette of powerful predictors. A growing body of work has shown that ML models are deployable within the microarchitecture to optimize hardware at runtime, and are one way to customize CPUs post-silicon by training to customer applications. We develop this scenario for branch prediction using convolutional neural networks (CNNs) to boost accuracy for H2Ps. Step-by-step, we (1) map CNNs to the global history data used by existing branch predictors; (2) show how CNNs improve H2P prediction in SPEC 2017; (3) adapt 2-bit CNN inference to the constraints of current branch prediction units; and (4) establish that CNN helper predictors are reusable across application executions on different inputs, enabling us to amortize offline training and deploy ML pattern matching to improve IPC.

READ FULL TEXT

page 1

page 2

research
06/13/2019

Branch Prediction Is Not a Solved Problem: Measurements, Opportunities, and Future Directions

Modern branch predictors predict the vast majority of conditional branch...
research
12/30/2021

A Survey of Deep Learning Techniques for Dynamic Branch Prediction

Branch prediction is an architectural feature that speeds up the executi...
research
08/10/2023

Machine Learning aided Computer Architecture Design for CNN Inferencing Systems

Efficient and timely calculations of Machine Learning (ML) algorithms ar...
research
06/20/2023

Mitigating Speculation-based Attacks through Configurable Hardware/Software Co-design

New speculation-based attacks that affect large numbers of modern system...
research
05/02/2018

Dynamically Improving Branch Prediction Accuracy Between Contexts

Branch prediction is a standard feature in most processors, significantl...
research
05/29/2020

Dynamic Merge Point Prediction

Despite decades of research, conditional branch mispredictions still pos...

Please sign up or login with your details

Forgot password? Click here to reset