PIM-Forge: Toward Autonomous PIM Kernel Synthesis through Constraint-Guided Hardware Exploration
Processing-in-Memory (PIM) architectures offer a promising paradigm to overcome the “memory wall”. While a limited set of hand-tuned kernels has been developed for specific PIM platforms, a comprehensive, high-performance operator library supporting mainstream machine learning workloads is still lacking. Manual PIM kernel development is challenging due to domain-specific constraints that demand significant hardware expertise. Although Large Language Models (LLMs) have shown potential in automated kernel synthesis, existing research primarily targets GPUs and NPUs, leaving LLM-based PIM kernel synthesis largely unexplored. Unlike GPUs with abundant documentation and community code, PIM platforms lack sufficient public programming corpora, severely limiting LLM zero-shot capabilities. To address this, we propose PIM-Forge, a constraint-guided memory-augmented multi-agent framework that iteratively explores hardware constraints and refines synthesis knowledge. To validate this approach, we introduce PIM-Forge-Bench, a benchmark of 230 PIM operators mostly distilled from MindSpore. We conceptualize the guidebook evolution as a knowledge trajectory, where the zero-shot baseline represents the starting point with minimal hardware awareness. Experimental results on a commercial UPMEM system demonstrate that constraint-guided exploration improves the static few-shot pass rate from 4.3% (zero-shot) to 35.7% (one-shot) and 45.7% (five-shot); with iterative environmental feedback, our framework ultimately reaches 88.3%, validating the efficacy of constraint-guided hardware exploration. PIM-Forge is available at https://github.com/SailingEver/PIM-Forge.
- Link
- https://www.semanticscholar.org/paper/1230313159a2fae1c33767a4e1d74d392c870058
- Found by
- Semantic Scholar
- Authors
- Yi-Xing Du, Qing-Yun Tang, Li-Xiao Cui, Yu-Sen Li, Gang Wang, Xiao-Guang Liu
- Categories
- benchmark, dataset
- Published
- 2026-09-27
- Last seen by the radar
- 2026-09-29
- Citations
- 0
- Influential citations
- 0
- Radar score
- 35.50 / 100 (how it is scored)
- Why it scored so
- Matched: benchmark, corpora$; Primary record: Semantic Scholar
- Related links
- https://doi.org/10.1145/3832810.3832867