arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.02269cs.ARcs.LG
收藏

基于注意力的可变度预取中的细粒度地址分割

Fine-Grained Address Segmentation for Attention-Based Variable-Degree Prefetching

University of Southern California(南加州大学);Intel Labs(英特尔研究院);US Army Research Lab-West(美国陆军研究实验室西部)

Pengmiao Zhang, Ajitesh Srivastava, Anant V. Nori, Rajgopal Kannan, Viktor K. Prasanna

摘要:

机器学习算法已经显示出通过准确预测未来的存储器访问来提高预取性能的潜力。现有的方法是基于文本预测的建模,考虑预取作为一个分类问题的序列预测。然而,巨大而稀疏的内存地址空间导致了大量的词汇,这使得这种建模不切实际。多个缓存行预取的输出数量和顺序也与文本预测有根本的不同。我们提出了transFetch,一种新的方式来模拟预取。为了减少词汇量,我们使用细粒度的地址分割作为输入。为了预测无序的未来地址集,我们使用delta位图进行多个输出。我们应用基于注意力的网络来学习输入和输出之间的映射。预测实验表明,对于SPEC 2006,SPEC 2017和GAP基准测试,地址分割的F1分数比delta输入高26% - 36%,比页面和偏移量输入高15% - 24%。仿真结果表明,与没有预取相比,TransFetch实现了38.75%的IPC改善,比性能最好的基于规则的预取器BOP提高了10.44%,比基于ML的预取器Voyager提高了6.64%。

英文摘要:

Machine learning algorithms have shown potential to improve prefetching performance by accurately predicting future memory accesses. Existing approaches are based on the modeling of text prediction, considering prefetching as a classification problem for sequence prediction. However, the vast and sparse memory address space leads to large vocabulary, which makes this modeling impractical. The number and order of outputs for multiple cache line prefetching are also fundamentally different from text prediction. We propose TransFetch, a novel way to model prefetching. To reduce vocabulary size, we use fine-grained address segmentation as input. To predict unordered sets of future addresses, we use delta bitmaps for multiple outputs. We apply an attention-based network to learn the mapping between input and output. Prediction experiments demonstrate that address segmentation achieves 26% - 36% higher F1-score than delta inputs and 15% - 24% higher F1-score than page & offset inputs for SPEC 2006, SPEC 2017, and GAP benchmarks. Simulation results show that TransFetch achieves 38.75% IPC improvement compared with no prefetching, outperforming the best-performing rule-based prefetcher BOP by 10.44%, and ML-based prefetcher Voyager by 6.64%.

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

↑