Introduction
As modern computing hits the "memory wall," Near-Memory Processing (NMP) has emerged as a critical architectural paradigm. By moving computation into the memory itself—using technologies like Hybrid Memory Cube (HMC) or High Bandwidth Memory (HBM)—NMP significantly reduces the energy and latency costs associated with data movement. However, modern NMP systems are typically organized as networks of 3D-stacked memory cubes, introducing a complex optimization challenge: the "where-to-place-what" problem.
Optimizing these systems requires balancing two intermingled decisions: Data Mapping (which cube stores specific pages) and Computation Mapping (which cube executes specific operations). Misalignment leads to excessive network traffic, negating NMP's benefits. Because application access patterns are dynamic, static mapping is insufficient, and the decision space can exceed $10^{14}$ possibilities.
The AIMM Framework
To address these challenges, researchers from Texas A&M and UC Santa Barbara proposed AIMM (Artificially Intelligent Memory Mapping). AIMM treats the mapping problem as a continual learning task, utilizing Deep Reinforcement Learning (DRL) to optimize system performance in real-time.
Reinforcement Learning Agent
At the core of AIMM is a Dueling Deep Q-Network (DQN). Unlike standard DQNs, the dueling architecture separately estimates the value of a state and the advantage of specific actions, leading to more robust learning in complex environments.
The agent operates on a comprehensive state representation including system information (buffer hit rates, queue occupancy) and page information (access frequency, migration history). The action space consists of eight operations, including moving data pages, remapping NMP operations, and adjusting decision intervals to balance optimization gains against overhead.
Evaluation and Results
AIMM was evaluated using a cycle-accurate simulator across various data-intensive benchmarks, including the Rodinia suite and graph/ML kernels like Pagerank and Sparse Matrix-Vector Multiply.
Key findings include:
- Performance Boost: AIMM achieved up to a 70% performance improvement for single-program workloads and 50% for multi-program scenarios compared to static NMP baselines.
- Efficiency Gains: The system significantly increased Operations Per Cycle (OPC) by reducing the average "hop count" for data transfers within the 3D mesh.
- Scalability: The framework remained effective as the memory network scaled from 4x4 to 8x8 cube configurations.
Discussion and Future Work
AIMM demonstrates that co-exploring data and computation mapping is essential for maximizing NMP benefits. By moving math to where data lives (or vice versa) holistically, the system achieves gains that independent optimization cannot reach.
However, the study identified that for "low-reuse" applications like Backprop, the energy overhead of migrations increased total consumption by approximately 25%. Future iterations of AIMM could incorporate an "energy-aware" reward function to mitigate these costs. Additionally, the authors suggest that this continual learning approach could be extended to other domains such as cache management and storage systems.
Summary updated