arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.09166cs.AR
收藏

稀疏分布存储器的分支预测

Branch Predicting with Sparse Distributed Memories

Ilias Vougioukas, Andreas Sandberg, Nikos Nikoleris

摘要:

现代处理器严重依赖于推测来保持流水线被填满,从而尽可能接近最大容量地执行和提交指令。为了提高指令级并行,处理器内核需要在每个周期获取和解码多条指令,并且依赖于非常准确的分支预测。然而,这是以现代高精度分支预测器所需的增加的面积和复杂性为代价的。这项工作中描述的关键思想是使用多维计算和稀疏分布式内存原理来创建一个新的分支预测器,可以为当前区域的一小部分提供复杂的预测。稀疏分布式存储器可以以压缩方式存储大量数据,理论上使分支历史比今天使用的分支预测器更大更精确,以相同或更小的面积占用存储。此外,由于所有数据都是散列格式,并且由于所使用的散列方案的性质,因此利用已知的侧信道攻击来操纵固有地更困难。我们描述了我们的概念验证,并根据最先进的学术TAGE预测器对其进行评估。我们的实验进行了现实的合成分支预测模式和冠军分支预测的痕迹,并显示竞争力的准确性。最后,我们描述了一些技术,可用于解决处理超维向量的一些挑战,以便提供及时的预测。

英文摘要:

Modern processors rely heavily on speculation to keep the pipeline filled and consequently execute and commit instructions as close to maximum capacity as possible. To improve instruction-level parallelism, the processor core needs to fetch and decode multiple instructions per cycle and has come to rely on incredibly accurate branch prediction. However, this comes at cost of the increased area and complexity which is needed for modern high accuracy branch predictors. The key idea described in this work is to use hyperdimensional computing and sparse distributed memory principles to create a novel branch predictor that can deliver complex predictions for a fraction of the current area. Sparse distributed memories can store vast amounts of data in a compressed manner, theoretically enabling branch histories larger and more precise than the branch predictors used today to be stored with equal or smaller area footprint. Furthermore, as all the data is in a hashed format and due to the nature of the hashing scheme used, it is inherently harder to manipulate with known side-channel attacks. We describe our proof-of-concept and evaluate it against a state-of-the-art academic TAGE predictor. Our experiments are conducted on realistic synthetic branch predictor patterns and the Championship Branch Prediction traces and show competitive accuracy. Finally, we describe techniques that can be used to solve some of the challenges of processing with hyperdimensional vectors in order to deliver timely predictions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑