Lune

MICRO2023Top-tier venue

Micro-Armed Bandit: Lightweight & Reusable Reinforcement Learning for Microarchitecture Decision-Making

Gerasimos Gerogiannis, Josep Torrellas

Abstract

Online Reinforcement Learning (RL) has been adopted as an effective mechanism in various decision-making problems in microarchitecture. Its high adaptability and the ability to learn at runtime are attractive characteristics in microarchitecture settings. However, although hardware RL agents are effective, they suffer from two main problems. First, they have high complexity and storage overhead. This complexity stems from decomposing the environment into a large number of states and then, for each of these states, bookkeeping many action values. Second, many RL agents are engineered for a specific application and are not reusable.

In this work, we tackle both of these shortcomings by designing an RL agent that is both lightweight and reusable across different microarchitecture decision-making problems. We find that, in some of these problems, only a small fraction of the action space is useful in a given time window. We refer to this property as temporal homogeneity in the action space. Motivated by this property, we design an RL agent based on Multi-Armed Bandit algorithms, the simplest form of RL. We call our agent Micro-Armed Bandit.

We showcase our agent in two use cases: data prefetching and instruction fetch in simultaneous multithreaded (SMT) processors. For prefetching, our agent outperforms non-RL prefetchers Bingo and MLOP by 2.6% and 2.3% (geometric mean), respectively, and attains similar performance as the state-of-the-art RL prefetcher Pythia-with the dramatically lower storage requirement of only 100 bytes. For SMT instruction fetch, our agent outperforms the Hill Climbing method by 2.2% (geometric mean).

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

9 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • ICP: Exploiting Instruction Correlation for Prefetching Irregular Memory Accesses cites Bouquet of Instruction Pointers: Instruction Pointer Classifier-based Spatial Hardware Prefetching
  • ICP: Exploiting Instruction Correlation for Prefetching Irregular Memory Accesses cites Integrating Prefetcher Selection with Dynamic Request Allocation Improves Prefetching Efficiency
  • Pythia: A Customizable Hardware Prefetching Framework Using Online Reinforcement Learning cites A hierarchical neural model of data prefetching
  • Pythia: A Customizable Hardware Prefetching Framework Using Online Reinforcement Learning cites Bouquet of Instruction Pointers: Instruction Pointer Classifier-based Spatial Hardware Prefetching
  • Pythia: A Customizable Hardware Prefetching Framework Using Online Reinforcement Learning cites Designing a Cost-Effective Cache Replacement Policy using Machine Learning
  • Machine Learning-Guided Memory Optimization for DLRM Inference on Tiered Memory cites A hierarchical neural model of data prefetching
  • Machine Learning-Guided Memory Optimization for DLRM Inference on Tiered Memory cites Classifying Memory Access Patterns for Prefetching
  • Micro-MAMA: Multi-Agent Reinforcement Learning for Multicore Prefetching cites Pythia: A Customizable Hardware Prefetching Framework Using Online Reinforcement Learning
  • Micro-MAMA: Multi-Agent Reinforcement Learning for Multicore Prefetching cites A hierarchical neural model of data prefetching
  • Micro-MAMA: Multi-Agent Reinforcement Learning for Multicore Prefetching cites Designing a Cost-Effective Cache Replacement Policy using Machine Learning
  • Integrating Prefetcher Selection with Dynamic Request Allocation Improves Prefetching Efficiency cites Pythia: A Customizable Hardware Prefetching Framework Using Online Reinforcement Learning
  • Integrating Prefetcher Selection with Dynamic Request Allocation Improves Prefetching Efficiency cites Bouquet of Instruction Pointers: Instruction Pointer Classifier-based Spatial Hardware Prefetching
  • Integrating Prefetcher Selection with Dynamic Request Allocation Improves Prefetching Efficiency cites Classifying Memory Access Patterns for Prefetching
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. Machine Learning-Guided Memory Optimization for DLRM Inference on Tiered MemoryJie Ren, Bin Ma, Shuangyan Yang, Benjamin Francis et al.HPCA 2025 · 6 citations
  2. Micro-MAMA: Multi-Agent Reinforcement Learning for Multicore PrefetchingCharles Block, Gerasimos Gerogiannis, Josep TorrellasMICRO 2025 · 6 citations
  3. Integrating Prefetcher Selection with Dynamic Request Allocation Improves Prefetching EfficiencyMengming Li, Qijun Zhang, Yongqing Ren, Zhiyao XieHPCA 2025 · 6 citations
  4. ICP: Exploiting Instruction Correlation for Prefetching Irregular Memory AccessesMengming Li, Chenlu Miao, Buqing Xu, Qijun Zhang et al.ISCA 2026
  5. DAL: A Practical Prior-Free Black-Box Framework for Piecewise Stationary BanditsArgyrios Gerogiannis, Yu-Han Huang, Subhonmesh Bose, Venugopal VeeravalliICML 2026

Builds on13

  1. A hierarchical neural model of data prefetchingZhan Shi, Akanksha Jain, Kevin Swersky, Milad Hashemi et al.ASPLOS 2021 · 100 citations
  2. Bouquet of Instruction Pointers: Instruction Pointer Classifier-based Spatial Hardware PrefetchingSamuel Pakalapati, Biswabandan PandaISCA 2020 · 97 citations
  3. Pythia: A Customizable Hardware Prefetching Framework Using Online Reinforcement LearningRahul Bera, Konstantinos Kanellopoulos, Anant Nori, Taha Shahroodi et al.MICRO 2021 · 95 citations
  4. Classifying Memory Access Patterns for PrefetchingGrant Ayers, Heiner Litz, Christos Kozyrakis, Parthasarathy RanganathanASPLOS 2020 · 83 citations
  5. Designing a Cost-Effective Cache Replacement Policy using Machine LearningSubhash Sethumurugan, Jieming Yin, John SartoriHPCA 2021 · 81 citations

Related papers

  1. Towards Automated RISC-V Microarchitecture Design with Reinforcement LearningChen Bai, Jianwang Zhai, Yuzhe Ma, Bei Yu et al.AAAI 2024 · 20 citations
  2. Post-Fabrication MicroarchitectureChanchal Kumar, Anirudh Seshadri, Aayush Chaudhary, Shubham Bhawalkar et al.MICRO 2021 · 4 citations
  3. ReSemble: Reinforced Ensemble Framework for Data PrefetchingPengmiao Zhang, Rajgopal Kannan, Ajitesh Srivastava, Anant V. Nori et al.SC 2022 · 17 citations
  4. I-POP: Ignite Positive PrefetchersYiquan Lin, Wenhai Lin, Yiquan Chen, Jiexiong Xu et al.HPCA 2026 · 1 citation
  5. Merging Similar Patterns for Hardware PrefetchingShizhi Jiang, Qiusong Yang, Yiwei CiMICRO 2022 · 27 citations
Dusk over the sea between two cliffs drawn in fine vertical lines