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 条
  • [31] A context-based mediation approach to compose semantic Web services
    Mrissa, Michael
    Ghedira, Chirine
    Benslimane, Djamal
    Maamar, Zakaria
    Rosenberg, Florian
    Dustdar, Schahram
    ACM TRANSACTIONS ON INTERNET TECHNOLOGY, 2008, 8 (01)
  • [32] Extended context-based semantic communication system for text transmission
    Yueling Liu
    Shengteng Jiang
    Yichi Zhang
    Kuo Cao
    Li Zhou
    BoonChong Seet
    Haitao Zhao
    Jibo Wei
    Digital Communications and Networks, 2024, 10 (03) : 568 - 576
  • [33] SeLeP: Learning Based Semantic Prefetching for Exploratory Database Workloads
    Zirak, Farzaneh
    Choudhury, Farhana
    Borovica-Gajic, Renata
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2024, 17 (08): : 2064 - 2076
  • [34] Active learning with online context-based modules
    Buikema, AL
    SELECTED PAPERS FROM THE 13TH INTERNATIONAL CONFERENCE ON COLLEGE TEACHING AND LEARNING, 2002, : 43 - 55
  • [35] APPLICATION OF CONTEXT-BASED LEARNING IN MODERN PEDAGOGY
    Androshchuk, Ihor
    Pohrebniak, Dmytro
    Kulchytskyi, Vitalii
    Zelman, Lesia
    Kuznetsova, Halyna
    Zhyhora, Iryna
    AD ALTA-JOURNAL OF INTERDISCIPLINARY RESEARCH, 2022, 12 (02): : 22 - 28
  • [36] Improving learning in undergraduate control engineering courses using context-based learning models
    Dong, ZY
    INTERNATIONAL JOURNAL OF ENGINEERING EDUCATION, 2005, 21 (06) : 1076 - 1082
  • [37] Context-based hierarchical clustering for the ontology learning
    Karoui, Lobna
    Aufaure, Marie-Aude
    Bennacer, Nacera
    2006 IEEE/WIC/ACM INTERNATIONAL CONFERENCE ON WEB INTELLIGENCE, (WI 2006 MAIN CONFERENCE PROCEEDINGS), 2006, : 420 - +
  • [38] Hyperparameter optimization through context-based meta-reinforcement learning with task-aware representation
    Wu, Jia
    Liu, Xiyuan
    Chen, Senpeng
    KNOWLEDGE-BASED SYSTEMS, 2023, 260
  • [39] A Research on the Generative Learning Model Supported by Context-Based Learning
    Ulusoy, Fatma Merve
    Onen, Aysem Seda
    EURASIA JOURNAL OF MATHEMATICS SCIENCE AND TECHNOLOGY EDUCATION, 2014, 10 (06) : 537 - 546
  • [40] SiameseQAT: A Semantic Context-Based Duplicate Bug Report Detection Using Replicated Cluster Information
    Rocha, Thiago Marques
    da Costa Carvalho, Andre Luiz
    IEEE ACCESS, 2021, 9 : 44610 - 44630