TransforMAP:用于内存访问预测的Transformer
TransforMAP: Transformer for Memory Access Prediction
摘要:
数据预取是一种可以通过在程序需要数据之前获取数据来隐藏内存延迟的技术。预取依赖于准确的存储器访问预测,基于任务机器学习的方法越来越多地应用于该预测。与以前的方法,从增量或偏移量学习,并执行一个访问预测,我们开发的TransforMAP,强大的Transformer模型的基础上,可以从整个地址空间学习,并执行多个高速缓存行预测。我们建议使用二进制的内存地址作为模型输入,这避免了信息丢失,并节省了一个令牌表的硬件。我们设计了一个块索引位图来收集当前页地址下无序的未来页偏移量作为学习标签。因此,我们的模型可以学习页面内的时间模式和空间模式。在实际实现中,该方法具有隐藏预测等待时间的潜力,因为它预取可能在长时间范围中使用的多个高速缓存行。我们表明,我们的方法实现了35.67%的MPKI的改善和20.55%的IPC改善在模拟中,高于国家的最先进的最佳偏移预取器和ISB预取。
英文摘要:
Data Prefetching is a technique that can hide memory latency by fetching data before it is needed by a program. Prefetching relies on accurate memory access prediction, to which task machine learning based methods are increasingly applied. Unlike previous approaches that learn from deltas or offsets and perform one access prediction, we develop TransforMAP, based on the powerful Transformer model, that can learn from the whole address space and perform multiple cache line predictions. We propose to use the binary of memory addresses as model input, which avoids information loss and saves a token table in hardware. We design a block index bitmap to collect unordered future page offsets under the current page address as learning labels. As a result, our model can learn temporal patterns as well as spatial patterns within a page. In a practical implementation, this approach has the potential to hide prediction latency because it prefetches multiple cache lines likely to be used in a long horizon. We show that our approach achieves 35.67% MPKI improvement and 20.55% IPC improvement in simulation, higher than state-of-the-art Best-Offset prefetcher and ISB prefetcher.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。