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 条
  • [21] A Context-Based Adaptation In Mobile Learning
    Alila, F. Soualah
    Mendes, F.
    Nicolle, C.
    BULLETIN OF THE TECHNICAL COMMITTEE ON LEARNING TECHNOLOGY, 2013, 15 (04): : 14 - 18
  • [22] Context-based resolution of semantic conflicts in biological pathways
    Seyeol Yoon
    Jinmyung Jung
    Hasun Yu
    Mijin Kwon
    Sungji Choo
    Kyunghyun Park
    Dongjin Jang
    Sangwoo Kim
    Doheon Lee
    BMC Medical Informatics and Decision Making, 15
  • [23] Context-Based Semantic Communication via Dynamic Programming
    Zhang, Yichi
    Zhao, Haitao
    Wei, Jibo
    Zhang, Jiao
    Flanagan, Mark F.
    Xiong, Jun
    IEEE TRANSACTIONS ON COGNITIVE COMMUNICATIONS AND NETWORKING, 2022, 8 (03) : 1453 - 1467
  • [24] CTNet: Context-Based Tandem Network for Semantic Segmentation
    Li, Zechao
    Sun, Yanpeng
    Zhang, Liyan
    Tang, Jinhui
    IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 2022, 44 (12) : 9904 - 9917
  • [25] Context-based learning for autonomous vehicles
    Peixoto, Maria J. P.
    Azim, Akramul
    2020 IEEE 23RD INTERNATIONAL SYMPOSIUM ON REAL-TIME DISTRIBUTED COMPUTING (ISORC 2020), 2020, : 150 - 151
  • [26] Context-Based News Headlines Analysis Using Machine Learning Approach
    Rahman, Shadikur
    Hossain, Syeda Sumbul
    Islam, Saiful
    Chowdhury, Mazharul Islam
    Rafiq, Fatama Binta
    Badruzzaman, Khalid Been Md
    COMPUTATIONAL COLLECTIVE INTELLIGENCE, PT II, 2019, 11684 : 167 - 178
  • [27] Context-Based Photography Learning using Crowdsourced Images and Social Media
    Rawat, Yogesh Singh
    Kankanhalli, Mohan S.
    PROCEEDINGS OF THE 2014 ACM CONFERENCE ON MULTIMEDIA (MM'14), 2014, : 217 - 220
  • [28] Context-Based Tourism Information Filtering with a Semantic Rule Engine
    Lamsfus, Carlos
    Martin, David
    Alzua-Sorzabal, Aurkene
    Lopez-de-Ipina, Diego
    Torres-Manzanera, Emilio
    SENSORS, 2012, 12 (05): : 5273 - 5289
  • [29] Extended context-based semantic communication system for text transmission
    Liu, Yueling
    Jiang, Shengteng
    Zhang, Yichi
    Cao, Kuo
    Zhou, Li
    Seet, Boon-Chong
    Zhao, Haitao
    Wei, Jibo
    DIGITAL COMMUNICATIONS AND NETWORKS, 2024, 10 (03) : 568 - 576
  • [30] A context-based region labeling approach for semantic image segmentation
    Athanasiadis, Thanos
    Mylonas, Phivos
    Avrithis, Yannis
    SEMANTIC MULTIMEDIA, PROCEEDINGS, 2006, 4306 : 212 - +