HARMONY: A Hardware-Aware Mapping and Optimizing Framework for Computing-In-Memory Accelerators
- 5 December 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems
- Vol. PP (02780070) , 1
Abstract
The increasing adoption of artificial intelligence has spurred the development of specialized deep neural network (DNN) accelerators. Among them, computing-in-memory (CIM) architectures are promising for their in-situ computation capability, which alleviates the computation and data movement bottlenecks of modern DNNs. However, the diversity of models and hardware designs makes it challenging to fully exploit CIM accelerators. Existing approaches often rely on manual mapping or provide limited automation, struggling to integrate general-purpose optimizations with CIM-specific features. In this work, we present HARMONY, a hardware-aware compilation framework for CIM accelerators. At its core is a hardware intermediate representation (IR) that unifies computational and memory abstractions. Based on this IR, HARMONY introduces an automatic mapping algorithm that identifies offloadable operators and constructs a hybrid software–hardware IR. This enables systematic integration of general-purpose and CIM-specific scheduling primitives within a unified search space, which is efficiently explored using reinforcement learning (RL). Extensive evaluations show that HARMONY supports a broader set of operators than existing CIM compilers and consistently delivers substantial performance and energy improvements across diverse DNN workloads. These results demonstrate that HARMONY provides both generality and efficiency, making it a practical compilation solution for CIM accelerators.Keywords
Funding Information
- National Key Research and Development Program of China (2024YFB4405400)
This publication has 45 references indexed in Scilit:
- A compute-in-memory chip based on resistive random-access memoryNature, 2022
- A crossbar array of magnetoresistive memory devices for in-memory computingNature, 2022
- MLIR: Scaling Compiler Infrastructure for Domain Specific Computation2021
- Equivalent-accuracy accelerated neural-network training using analogue memoryNature, 2018
- Human-level control through deep reinforcement learningNature, 2015
- Design and performance of a scheduling framework for resizable parallel applicationsParallel Computing, 2010
- The LLVM Compiler Framework and Infrastructure Tutorial2005
- LLVM: A compilation framework for lifelong program analysis & transformation2004
- Q-learningMachine Learning, 1992
- Learning to predict by the methods of temporal differencesMachine Learning, 1988