paper-with-me

홈 › Papers

Pythia: A Customizable Hardware Prefetching Framework Using Online Reinforcement Learning

2021-09-24 · Rahul Bera, Konstantinos Kanellopoulos, Anant V. Nori, Taha Shahroodi, Sreenivas Subramoney, Onur Mutlu

Past research has proposed numerous hardware prefetching techniques, most of which rely on exploiting one specific type of program context information (e.g., program counter, cacheline address) to predict future memory accesses. These techniques either completely neglect a prefetcher's undesirable effects (e.g., memory bandwidth usage) on the overall system, or incorporate system-level feedback as an afterthought to a system-unaware prefetch algorithm. We show that prior prefetchers often lose their performance benefit over a wide range of workloads and system configurations due to their inherent inability to take multiple different types of program context and system-level feedback information into account while prefetching. In this paper, we make a case for designing a holistic prefetch algorithm that learns to prefetch using multiple different types of program context and system-level feedback information inherent to its design. To this end, we propose Pythia, which formulates the prefetcher as a reinforcement learning agent. For every demand request, Pythia observes multiple different types of program context information to make a prefetch decision. For every prefetch decision, Pythia receives a numerical reward that evaluates prefetch quality under the current memory bandwidth usage. Pythia uses this reward to reinforce the correlation between program context information and prefetch decision to generate highly accurate, timely, and system-aware prefetch requests in the future. Our extensive evaluations using simulation and hardware synthesis show that Pythia outperforms multiple state-of-the-art prefetchers over a wide range of workloads and system configurations, while incurring only 1.03% area overhead over a desktop-class processor and no software changes in workloads. The source code of Pythia can be freely downloaded from https://github.com/CMU-SAFARI/Pythia.

📄 PDF Abstract BibTeX arXiv:2109.12021

Code (2)

cmu-safari/pythia 공식 구현
cmu-safari/hermes

Tasks

reinforcement-learningReinforcement LearningReinforcement Learning (RL)

Similar Papers 제목 키워드 기반

Coordinated Reinforcement Learning Prefetching Architecture for Multicore Systems

2025-09-12 · Mohammed Humaid Siddiqui, Fernando Guzman, Yufei Wu, Ruishu Ann arxiv

Hardware prefetching is critical to fill the performance gap between CPU speeds and slower memory accesses. With multicore architectures becoming commonplace, traditional prefetchers are severely challenged. Independent …

Reinforcement Learning

DeePref: Deep Reinforcement Learning For Video Prefetching In Content Delivery Networks

2023-10-11 · Nawras Alkassab, Chin-Tser Huang, Tania Lorido Botran

Content Delivery Networks carry the majority of Internet traffic, and the increasing demand for video content as a major IP traffic across the Internet highlights the importance of caching and prefetching optimization al…

Deep Reinforcement Learningreinforcement-learningTransfer Learning

NVR: Vector Runahead on NPUs for Sparse Memory Access

2025-02-19 · Hui Wang, Zhengpeng Zhao, Jing Wang, Yushu Du 외

Deep Neural Networks are increasingly leveraging sparsity to reduce the scaling up of model parameter size. However, reducing wall-clock time through sparsity and pruning remains challenging due to irregular memory acces…

A Joint Learning Approach to Hardware Caching and Prefetching

2025-10-13 · Samuel Yuan, Divyanshu Saxena, Jiayi Chen, Nihal Sharma 외 arxiv

Several learned policies have been proposed to replace heuristics for scheduling, caching, and other system components in modern systems. By leveraging diverse features, learning from historical trends, and predicting fu…

Contrastive Learning

A Spatio-Temporal Expert Prefetching Framework for Efficient MoE-based LLM Inference

2026-06-13 · Yingnan Zhao, Razvan Bunescu, Ahmed Louri, Avinash Karanth 외 arxiv

Mixture-of-Experts (MoE) based large language models (LLMs), such as Qwen and DeepSeek, have recently emerged as an effective approach to improving model capacity without proportionally increasing computational cost. By …

Code Generation