Semantic Locality and Context-based Prefetching Using Reinforcement Learning

被引:63
|
作者
Peled, Leeor [1 ]
Mannor, Shie [1 ]
Weiser, Uri [1 ]
Etsion, Yoav [1 ,2 ]
机构
[1] Technion Israel Inst Technol, Elect Engn, IL-32000 Haifa, Israel
[2] Technion Israel Inst Technol, Comp Sci, IL-32000 Haifa, Israel
关键词
D O I
10.1145/2749469.2749473
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Most modern memory prefetchers rely on spatio-temporal locality to predict the memory addresses likely to be accessed by a program in the near future. Emerging workloads, however, make increasing use of irregular data structures, and thus exhibit a lower degree of spatial locality. This makes them less amenable to spatio-temporal prefetchers. In this paper, we introduce the concept of Semantic Locality, which uses inherent program semantics to characterize access relations. We show how, in principle, semantic locality can capture the relationship between data elements in a manner agnostic to the actual data layout, and we argue that semantic locality transcends spatio-temporal concerns. We further introduce the context-based memory prefetcher, which approximates semantic locality using reinforcement learning. The prefetcher identifies access patterns by applying reinforcement learning methods over machine and code attributes, that provide hints on memory access semantics. We test our prefetcher on a variety of benchmarks that employ both regular and irregular patterns. For the SPEC 2006 suite, it delivers speedups as high as 2.8x (20% on average) over a baseline with no prefetching, and outperforms leading spatio-temporal prefetchers. Finally, we show that the context-based prefetcher makes it possible for naive, pointer-based implementations of irregular algorithms to achieve performance comparable to that of spatially optimized code.
引用
收藏
页码:285 / 297
页数:13
相关论文
共 50 条
  • [1] Learning intraoperative organ manipulation with context-based reinforcement learning
    Claudia D’Ettorre
    Silvia Zirino
    Neri Niccolò Dei
    Agostino Stilli
    Elena De Momi
    Danail Stoyanov
    International Journal of Computer Assisted Radiology and Surgery, 2022, 17 : 1419 - 1427
  • [2] Learning intraoperative organ manipulation with context-based reinforcement learning
    D'Ettorre, Claudia
    Zirino, Silvia
    Dei, Neri Niccolo
    Stilli, Agostino
    De Momi, Elena
    Stoyanov, Danail
    INTERNATIONAL JOURNAL OF COMPUTER ASSISTED RADIOLOGY AND SURGERY, 2022, 17 (08) : 1419 - 1427
  • [3] Multi-Task Reinforcement Learning with Context-based Representations
    Sodhani, Shagun
    Zhang, Amy
    Pineau, Joelle
    INTERNATIONAL CONFERENCE ON MACHINE LEARNING, VOL 139, 2021, 139
  • [4] Context-based Image Semantic Similarity
    Franzoni, Valentina
    Leung, Clement H. C.
    Milani, Alfredo
    Pallottelli, Simonetta
    Li, Yuanxi
    2015 12TH INTERNATIONAL CONFERENCE ON FUZZY SYSTEMS AND KNOWLEDGE DISCOVERY (FSKD), 2015, : 1280 - 1284
  • [5] Context-Based Meta-Reinforcement Learning With Bayesian Nonparametric Models
    Bing, Zhenshan
    Yun, Yuqi
    Huang, Kai
    Knoll, Alois
    IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 2024, 46 (10) : 6948 - 6965
  • [6] A context-based meta-reinforcement learning approach to efficient hyperparameter optimization
    Liu, Xiyuan
    Wu, Jia
    Chen, Senpeng
    NEUROCOMPUTING, 2022, 478 : 89 - 103
  • [7] Context-based semantic inhibition is impaired in schizophrenia
    Hoenig, K
    Müller, DJ
    Pels, H
    Wagner, M
    JOURNAL OF PSYCHOPHYSIOLOGY, 2002, 16 (04) : 232 - 232
  • [8] Context-based interoperability of semantic web services
    Mecheri K.
    Boufaida M.
    Meslati D.
    Souici-Meslati L.
    International Journal of Metadata, Semantics and Ontologies, 2019, 13 (03) : 209 - 226
  • [9] Learning Topics using Semantic Locality
    Zhao, Ziyi
    Pugdeethosapol, Krittaphat
    Lin, Sheng
    Li, Zhe
    Ding, Caiwen
    Wang, Yanzhi
    Qiu, Qinru
    2018 24TH INTERNATIONAL CONFERENCE ON PATTERN RECOGNITION (ICPR), 2018, : 3710 - 3715
  • [10] Optimizing locality for self-organizing context-based systems
    Knoll, Mirko
    Weis, Torben
    SELF-ORGANIZING SYSTEMS, PROCEEDINGS, 2006, 4124 : 62 - 73