arXiv(opens in a new tab)cs.ARAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.23404

VIPER: Architecture-Aware Performance Modeling for Processing-in-Memory Design-Space Exploration

Haoran Geng, Tomas Sousa Pereira, Xiaoyang Lu, Xian-He Sun, Michael Niemier, X. Sharon Hu

Haoran Geng †,∗^{\dagger,*}, Tomas Sousa Pereira †,∗^{\dagger,*}, Xiaoyang Lu ‡^{\ddagger}, Xian-He Sun ‡^{\ddagger}, Michael Niemier †^{\dagger}, and X. Sharon Hu †^{\dagger}

†^{\dagger}University of Notre Dame, Notre Dame, IN, USA

‡^{\ddagger}Illinois Institute of Technology, Chicago, IL, USA

∗^{*}Equal contribution

{hgeng, tsousape, mniemier, shu}@nd.edu, {xlu40, sun}@illinoistech.edu

Abstract—Processing-in-Memory (PIM) promises to reduce data movement overhead by executing computation in or near memory, but its realized application speedup remains highly design-dependent. Non-offloadable host execution, host-PIM transfers, limited PIM capacity, and device programming latency can limit end-to-end speedup, making fast early-stage design-space exploration (DSE) essential. However, existing PIM evaluation methods remain limited: circuit- and device-level tools cannot capture these end-to-end PIM performance factors, while cycle-accurate simulation is too slow for iterative DSE. To address this gap, we present VIPER, a unified, lightweight, and architecture-aware performance evaluation framework for PIM DSE. VIPER profiles host execution once and combines the measured host behavior with a PIM-aware analytical engine that sweeps PIM-side parameters across candidate designs. It supports both Processing Near Memory (PNM) and Processing Using Memory (PUM) under task-offloading and data-triggered execution by capturing host-PIM transfer, array access, in-memory computation, device programming latency, and capacity-induced partitioning, providing rapid architecture-aware performance estimates for iterative DSE without repeated cycle-accurate simulation. We validate VIPER against a commercial UPMEM system and more than 400 cycle-accurate gem5 configurations. VIPER predicts the UPMEM offloading decision and break-even region a priori, and, with a refined transfer model, captures the measured peak-and-rolloff behavior with 12% mean speedup error across the DPU sweep (6% up to the 256-DPU peak). Against gem5, VIPER achieves less than 10% error while reducing evaluation time from hours to under one minute. Case studies of UPMEM, ReRAM/FeFET crossbars, and IMCRYPTO show that architecture-aware DSE reveals key performance trade-offs that device-level evaluation misses.

I. INTRODUCTION

Before a Processing-in-Memory (PIM) design is committed to silicon, the architect must determine whether its system-level benefits justify its capacity, technology, and processing resources. How much on-chip capacity should be provisioned, and what does falling short cost? Which memory technology should host the computation, when NVM programming is 10–50× slower than reading [50], [74]? How many processing units pay for themselves before host-side data movement erases the gains? These are architecture-level questions, must be answered at the earliest design stage, when the only artifacts that exist are device parameters and a workload.

Our case studies on real PIM designs (Section VII) show that early design decisions produce cliffs, not slopes: a crossbar array with almost enough capacity for its workload performs strictly worse than one four times smaller, and missing the residency threshold costs two orders of magnitude of speedup; a commercial near-memory system benefits from its first few hundred processing units, then beyond the sweet spot, each additional unit reduces end-to-end speedup; and for the same in-memory AES engine design, changing only the memory technology that hosts its arrays decides viability: CMOS and FeFET keep the encryption overhead acceptable, while slower-programming RRAM and PCM do not. None of these outcomes is visible at the circuit or device level, where PIM proposals are typically evaluated. They arise from cross-layer design parameter interactions such as, the architecture-level data transfer between host and PIM, the device-physics programming latency of NVM cells, capacity-driven partitioning of the working set, and non-offloadable host execution. Such interactions can only be studied when the PIM device is placed inside a full memory hierarchy and driven by a real workload [26], [27], [47], [48], [70], [77]. Investigating these interactions essentially requires answer the following question: what design parameters determine whether a PIM design delivers real performance benefit, and how can a designer quantify them before committing to silicon?

Given the huge design space, answering this question requires fast early-stage design-space exploration (DSE) across both PIM paradigms: Processing Near Memory (PNM), which places processing elements adjacent to memory arrays [2], [10], [17], [20], [33], [38], and Processing Using Memory (PUM), which computes in situ within the memory cells themselves [14], [28], [43], [46], [57], [63]–[65], [70]. As Figure 1 illustrates, existing tool families each sacrifice a dimension a PIM designer cannot do without. Interface-level models such as LogCA and Gables [6], [29] evaluate in seconds, but reduce the host and memory system to a few interface costs, missing in-memory computation, capacity partitioning, and programming latency. Circuit- and device-level tools such as IMAC-Sim and Eva-CAM [7], [44] are accurate at the array boundary but model neither the work-

Figure

Fig. 1: PIM evaluation tools across six dimensions. VIPER pairs architecture-level modeling and PNM/PUM support with evaluation in seconds, within 10% of gem5.

load nor its interaction with the host and memory hierarchy; application-level simulators such as NeuroSim, MNSIM, and CAMASim [8], [13], [36], [71], [79] are tied to narrow application domains; memory-system simulators such as Ramulator, DRAMsim3, and Sim2PIM [34], [35], [40], [54], [60] detail the memory but omit host execution and barely support PUM; and cycle-accurate full-system simulators such as gem5-X, gem5-SALAM, and PIMSim [12], [16], [41], [56], [66], [75] model the whole system but need 6–30 hours per configuration and heavy engineering per design, making iterative exploration of hundreds of points impractical. No existing tool provides fast, accurate, architecture-level modeling for PIM DSE across both PNM and PUM.

We present VIPER, 1^{1}, an analytical PIM DSE framework that fills this gap. VIPER's key insight is to model PIM as a component of the memory hierarchy rather than as a conventional host-attached accelerator, so every PIM cost, from device physics to host interaction, enters the memory access path directly. Building on the classical Average Memory Access Time (AMAT) formulation, VIPER derives a cross-layer PIM performance model with explicit terms for host–PIM data transfer, data movement between memory arrays and PIM processing units, NVM cell programming latency, and capacity-driven partitioning. This single formulation spans PNM and PUM under both task-offloading and data-triggered execution, and evaluates a design point in seconds, letting a designer sweep hundreds of configurations before any hardware or simulator exists.

In summary, this paper makes the following contributions:

• A cross-layer analytical performance model for PIM. We derive a analytical model that embeds PIM in the memory access path, capturing device-, architecture-, and execution-level latency for PNM and PUM under task-offloading and data-triggered execution, including data transfer overhead, array access latency, device programming overhead, and the partitioning overhead when the working set exceeds PIM capacity, providing a unified analytical foundation for DSE.

• An open-source tool for PIM DSE. We build the above cross-layer model into VIPER, which profiles the host application once to fix all CPU-side parameters and then allows the designer to explore PIM designs through dedicated task-offloading and data-triggering flows, each exposing the design parameters relevant to its execution model. This removes simulation from the DSE loop: VIPER evaluates in seconds what requires 6–30 hours per configuration in gem5. The VIPER framework, including source code and evaluation scripts, is publicly available at https://github.com/Notre-Dame-HW-SW-Codesign-Lab/VIPER.

• Validated performance estimation on commercial PIM hardware and cycle-accurate simulation. Across 400+ gem5 runs spanning diverse PIM configurations, benchmarks, and CPU types, VIPER achieves below 10% mean estimation error, with 97% of task-offloading predictions falling within a ±10% envelope. On a 2,560-DPU UPMEM server [17], the first commercial PNM system, VIPER's a-priori prediction of a Llama2 matmul offload, built entirely from host profiling and published UPMEM parameters, correctly anticipated the measured Amdahl ceiling, break-even DPU range, and offload decision before a single line of DPU code had been ported.

• Design-space insights on real PIM designs. We apply VIPER to crossbar arrays on two beyond-CMOS devices (ReRAM, FeFET) and an in-memory AES accelerator to identify pre-silicon limits: end-to-end speedup is limited by the work that stays on the CPU and by CPU–PIM data transfer, not by how fast the PIM device computes; an array slightly too small for its workload performs worse than a far smaller one, because the workload must be repeatedly split and reloaded; and the same PIM design can be fast enough in one memory technology yet too slow in another.

References (78)

  • Compute caches
  • A scalable processing-in-memory accelerator for parallel graph processing
  • Graph prefetching using data structure knowledge
  • An event-triggered programmable prefetcher for irregular workloads
  • Adaptive cache compression for high-performance processors
  • Logca: A high-level performance model for hardware accelerators
  • A python framework for spice circuit simulation of in-memory analog computing circuits (opens arXiv in a new tab)
  • Puma: A programmable ultra-efficient memristor-based accelerator for machine learning inference
  • A survey on processing-in-memory techniques: Advances and challenges
  • Google workloads for consumer devices: Mitigating data movement bottlenecks
  • Accuracy evaluation of gem5 simulator system
  • gem5-salam: A system architecture for llvm-based accelerator modeling
  • Neurosim: A circuit-level macro model for benchmarking neuro-inspired architectures in online learning
  • PRIME: A novel processing-in-memory architecture for neural network computation in ReRAM-based main memory
  • Upmem unleashed: Software secrets for speed (opens arXiv in a new tab)
  • Pimsys: A virtual prototype for processing in memory
  • The true processing in memory accelerator
  • Nvsim: A circuit-level performance, energy, and area model for emerging nonvolatile memory
  • A robust main-memory compression scheme
  • NDA: Near-DRAM acceleration architecture
  • pluto: Enabling massively parallel computation in dram via lookup tables
  • ParaBit: Processing parallel bitwise operations in NAND flash memory
  • Cosmos: RI-enhanced locality-aware counter cache optimization for secure memory
  • Ppimce: An in-memory computing fabric for privacy preserving computing
  • Processing-in-memory: A workload-driven perspective
  • Benchmarking a new paradigm: An experimental analysis of a real processing-in-memory architecture (opens arXiv in a new tab)
  • SIMDRAM: A framework for bit-serial SIMD processing using DRAM
  • Gables: A roofline model for mobile socs
  • Computing-in-memory using ferroelectrics: From single- to multi-input logic
  • Achieving software-equivalent accuracy for hyperdimensional computing with ferroelectric-based in-memory computing
  • Accelerating llms using an efficient gemm library and target-aware optimizations on real-world pim devices
  • Aquabolt-XL: HBM2-PIM with in-memory processing
  • Ramulator: A fast and extensible dram simulator
  • A 20nm 6gb function-in-memory dram, based on hbm2 with a 1.2 tflops programmable computing unit using bank-level parallelism, for machine learning applications
  • Camasim: A comprehensive simulation framework for content-addressable memory based accelerators
  • Invited paper: Algorithm/hardware co-design for few-shot learning at the edge
  • Hardware architecture and software stack for PIM based on commercial DRAM technology: Industrial product
  • Accelerating polynomial modular multiplication with crossbar-based compute-in-memory
  • Dramsim3: a cycle-accurate, thermal-capable dram simulator
  • Pim-gem5: a system simulator for processing-in-memory design space exploration
  • A review on SRAM-based computing in-memory: Circuits, functions, and applications
  • COSIME: FeFET based associative memory for in-memory cosine similarity search
  • Eva-cam: A circuit/architecture-level evaluation tool for general content addressable memories
  • A reconfigurable FeFET content addressable memory for multi-state Hamming distance
  • Shared-pim: enabling concurrent computation and data flow for faster processing-in-dram
  • In-memory computing with emerging memory devices: Status and outlook
  • A modern primer on processing in memory
  • Graphbig: understanding graph computing in the context of industrial solutions
  • Ferroelectric ternary content-addressable memory for one-shot learning
  • Flash-cosmos: In-flash bulk bitwise operations using inherent computation capability of nand flash memory
  • Linearly compressed pages: A low-complexity, low-latency main memory compression framework
  • Base-delta-immediate compression: Practical data compression for on-chip caches
  • Nvmain: An architectural-level main memory simulator for emerging non-volatile memories
  • Efsim: An efficient and flexible simulation framework for digital in-memory computing
  • gem5-x: A gem5-based system level simulation framework to optimize many-core platforms
  • Imcrypto: An in-memory computing fabric for aes encryption and decryption
  • Computing in-memory with FeFETs
  • Multi-scale attributed node embedding
  • Sim2pim: A complete simulation framework for processing-in-memory
  • Decoupled compressed cache: Exploiting spatial locality for energy-optimized compressed caching
  • täkō: A polymorphic cache hierarchy for general-purpose optimization of data movement
  • RowClone: Fast and energy-efficient in-DRAM bulk data copy and initialization
  • Ambit: In-memory accelerator for bulk bitwise operations using commodity DRAM technology
  • ISAAC: A convolutional neural network accelerator with in-situ analog arithmetic in crossbars
  • Co-designing accelerators and soc interfaces using gem5-aladdin
  • SPEC CPU2017 Benchmark Suite
  • Prodigy: Improving the memory latency of data-indirect irregular workloads using hardware-software co-design
  • Compress objects, not cache lines: An object-based compressed memory hierarchy
  • A compute-in-memory chip based on resistive random-access memory
  • Pimsim-nn: An isa-based simulation framework for processing-in-memory accelerators
  • Roofline: an insightful visual performance model for multicore architectures
  • An energy-efficient computing-in-memory (CiM) scheme using field-free spin-orbit torque (SOT) magnetic RAMs
  • Overcoming the challenges of crossbar resistive memory architectures
  • Pimsim: A flexible and detailed processing-in-memory simulator
  • Compute-in-memory based neural network accelerators for safety-critical systems: Worst-case scenarios and protections (opens arXiv in a new tab)
  • Deep random forest with ferroelectric analog content addressable memory
  • IMP: Indirect memory prefetcher
  • Mnsim 2.0: A behavior-level modeling tool for processing-in-memory architectures