[Paper Review] Data Cache Prefetching with Perceptron Learning
This paper proposes a two-level data cache prefetching scheme that combines table-based prefetching (e.g., stride or Markov) with a hardware-implementable perceptron learner to reduce unnecessary prefetching. The perceptron dynamically classifies memory access patterns using local and global temporal and spatial history, rejecting harmful prefetches and cutting memory requests by 60.64–83.84% with minimal impact on IPC and cache hit rate.
Cache prefetcher greatly eliminates compulsory cache misses, by fetching data from slower memory to faster cache before it is actually required by processors. Sophisticated prefetchers predict next use cache line by repeating program's historical spatial and temporal memory access pattern. However, they are error prone and the mis-predictions lead to cache pollution and exert extra pressure on memory subsystem. In this paper, a novel scheme of data cache prefetching with perceptron learning is proposed. The key idea is a two-level prefetching mechanism. A primary decision is made by utilizing previous table-based prefetching mechanism, e.g. stride prefetching or Markov prefetching, and then, a neural network, perceptron is taken to detect and trace program memory access patterns, to help reject those unnecessary prefetching decisions. The perceptron can learn from both local and global history in time and space, and can be easily implemented by hardware. This mechanism boost execution performance by ideally mitigating cache pollution and eliminating redundant memory request issued by prefetcher. Detailed evaluation and analysis were conducted based on SPEC CPU 2006 benchmarks. The simulation results show that generally the proposed scheme yields a geometric mean of 60.64%-83.84% decrease in prefetching memory requests without loss in instruction per cycle(IPC)(floating between -2.22% and 2.55%) and cache hit rate(floating between -1.67% and 2.46%). Though it is possible that perceptron may refuse useful blocks and thus cause minor raise in cache miss rate, lower memory request count can decrease average memory access latency, which compensate for the loss, and in the meantime, enhance overall performance in multi-programmed workloads.
Motivation & Objective
- Address cache pollution caused by inaccurate prefetching in high-performance processors.
- Reduce redundant memory requests from prefetchers without degrading IPC or cache hit rate.
- Leverage perceptron learning to dynamically adapt to program memory access patterns using local and global history.
- Develop a hardware-efficient, cycle-agnostic prefetching mechanism that integrates with existing table-based prefetchers.
- Evaluate the scheme’s effectiveness on SPEC CPU 2006 benchmarks under single- and multi-programmed workloads.
Proposed method
- Use a first-level table-based prefetcher (stride or Markov) to generate initial prefetch suggestions using a global history buffer (GHB).
- Feed the GHB state and historical access patterns into a single-neuron perceptron for final decision-making.
- The perceptron computes the sign of the weighted sum of inputs (including local and global time-space history) to determine whether to accept or reject a prefetch suggestion.
- The perceptron is trained online using historical memory access patterns, enabling dynamic adaptation to changing workloads.
- Integrate the two-level system into a microarchitectural simulation framework with SPEC CPU 2006 benchmarks.
- Use feedback from cache hit rates and GHB updates to model a dynamic equilibrium between prefetching activity and memory access behavior.
Experimental results
Research questions
- RQ1Can a perceptron-based second-level filter effectively reduce unnecessary prefetching requests from table-based prefetchers?
- RQ2To what extent does perceptron learning mitigate cache pollution while preserving or improving IPC and cache hit rate?
- RQ3How does the integration of local and global temporal and spatial history improve the accuracy of prefetch rejection decisions?
- RQ4What is the impact of reduced prefetching traffic on memory subsystem pressure in multi-core environments?
- RQ5How does the feedback loop between GHB updates, prefetcher suggestions, and cache hit rates affect system stability and performance?
Key findings
- The proposed two-level prefetcher reduces prefetching memory requests by a geometric mean of 60.64% compared to stride prefetching and 83.84% compared to Markov prefetching.
- The scheme maintains IPC within ±2.55% and cache hit rate within ±2.46% of baseline, indicating minimal performance degradation.
- Despite a minor average decrease of 0.03% in cache hit rate (stride) and 0.15% (Markov), reduced memory traffic leads to lower average memory access latency and improved overall performance.
- The perceptron achieves high rejection rates—denying a large fraction of redundant prefetch suggestions—thereby mitigating cache pollution and bandwidth pressure.
- A dynamic equilibrium is observed between GHB updates, prefetcher suggestions, and cache hit rates, which the system stabilizes at a new, more efficient operating point.
- The perceptron’s ability to learn from both local and global memory access patterns enables effective, hardware-friendly adaptation to irregular access patterns.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.