[Paper Review] ShiftsReduce: Minimizing Shifts in Racetrack Memory 4.0
This paper proposes ShiftsReduce, a novel data placement technique for Racetrack Memory 4.0 that minimizes shift operations by exploiting temporal and spatial locality. Using an ILP formulation, a tailored heuristic, and a genetic algorithm refinement, ShiftsReduce reduces shifts by up to 52.5%, outperforming state-of-the-art methods by 16.1%.
Racetrack memories (RMs) have significantly evolved since their conception in 2008, making them a serious contender in the field of emerging memory technologies. Despite key technological advancements, the access latency and energy consumption of an RM-based system are still highly influenced by the number of shift operations. These operations are required to move bits to the right positions in the racetracks. This paper presents data placement techniques for RMs that maximize the likelihood that consecutive references access nearby memory locations at runtime thereby minimizing the number of shifts. We present an integer linear programming (ILP) formulation for optimal data placement in RMs, and revisit existing offset assignment heuristics, originally proposed for random-access memories. We introduce a novel heuristic tailored to a realistic RM and combine it with a genetic search to further improve the solution. We show a reduction in the number of shifts of up to 52.5%, outperforming the state of the art by up to 16.1%.
Motivation & Objective
- Address the high energy and latency costs in Racetrack Memory (RM) caused by frequent shift operations to align data with access ports.
- Minimize the number of shift operations by strategically placing data to exploit temporal and spatial locality in memory access patterns.
- Improve upon existing data placement heuristics for RMs by combining local and global access adjacency awareness.
- Develop a scalable, compiler-friendly solution that reduces shift overhead without requiring complex hardware modifications.
- Achieve near-optimal data placement performance with low runtime overhead for practical deployment in memory systems.
Proposed method
- Formulate the data placement problem as an Integer Linear Programming (ILP) model to find optimal solutions for small-scale problems.
- Adapt and analyze existing offset assignment heuristics—originally designed for DSP stack frames—for application in Racetrack Memory.
- Propose ShiftsReduce, a novel heuristic that intelligently assigns memory offsets by leveraging both local access patterns and global data adjacency.
- Introduce a tie-breaking mechanism in ShiftsReduce to resolve conflicts when multiple valid offsets exist, improving placement quality.
- Integrate a genetic algorithm as a refinement step to further optimize placement results after initial heuristic assignment.
- Combine the heuristic with genetic search to explore the solution space more effectively and improve shift reduction beyond baseline heuristics.
Experimental results
Research questions
- RQ1How can data placement be optimized in Racetrack Memory 4.0 to minimize the number of shift operations required for data access?
- RQ2To what extent do existing offset assignment heuristics designed for DSP stacks generalize to the unique constraints of Racetrack Memory?
- RQ3Can a hybrid heuristic combining local and global access locality outperform purely local or global approaches in shift reduction?
- RQ4How effective is the integration of a genetic algorithm in refining heuristic-based data placement for RMs?
- RQ5What is the performance gain of the proposed ShiftsReduce framework compared to state-of-the-art data placement techniques in RMs?
Key findings
- ShiftsReduce reduces the number of shift operations by up to 52.5% compared to baseline methods, significantly outperforming the state of the art.
- The method achieves a 28.8% reduction in shifts on the OffsetStone benchmark suite, surpassing the best existing heuristics by 4.4% and 6.6% respectively.
- The genetic algorithm refinement step improves the solution quality by 9.5% on average, demonstrating the effectiveness of metaheuristic optimization.
- The ILP formulation provides near-optimal results for small problem instances, validating the correctness and potential of the proposed approach.
- ShiftsReduce outperforms the Chen heuristic and other state-of-the-art heuristics by intelligently combining local and global access adjacency information.
- The proposed method achieves near-optimal performance in under 3 milliseconds for small-scale problems, indicating practical feasibility for compiler integration.
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.