Manuscript Offprint

arXiv:2610.27371

M3D-FLOW: A Monolithic 3-D-Stackable Processing-Near-DRAM Architecture for Generative Normalizing Flow Applications

Bipin Thapa Magar, Ishan Thakkar, Sudeep Pasricha

Bipin Thapa Magar, Graduate Student Member, IEEE, Ishan Thakkar, Member, IEEE, and Sudeep Pasricha, Fellow, IEEE

Abstract—Normalizing Flows (NFs) have shown strong results in generative modeling, recently reaching state-of-the-art image generation performance. However, their repetitive, sequential operations limit the computational and memory efficiency achievable with GPUs and TPUs. We propose M3D-FLOW, a novel monolithic 3D-stackable (M3D) DRAM-based processing-near-memory (PNM) architecture that eliminates memory bottlenecks using a Cu-Cu hybrid-bonded logic die integrated with an M3D DRAM die. The M3D DRAM provides dense bank integration and a tiered organization with variable access latencies that M3D-FLOW exploits for the efficient processing of different NF workloads. To maximize compute density while minimizing area, energy, and thermal overhead, M3D-FLOW employs hybrid binary-stochastic floating-point multipliers, performing mantissa multiplication in the stochastic domain and exponent operations in the binary domain. A pipelined execution strategy maps sequential NF stages across dynamically partitioned PE groups, and together with the stochastic hardware, enables M3D-FLOW to achieve at least 6.6×6.6\times higher performance and 3×3\times better energy efficiency than prior PNM accelerators, with only a 2.2% bits-per-dimension (BPD) increase over bfloat16 and 4.1% over FP32. An analysis of stochastic hardware variants further shows that shorter stochastic bitstreams reduce execution time by up to 3.3×3.3\times at the cost of higher approximation error, providing a concrete design guide for latency-accuracy trade-offs.

Index Terms—Monolithic 3-D (M3D) DRAM, normalizing flows (NFs), processing near memory (PNM), stochastic computing (SC)

I. INTRODUCTION

THE rapid progress of generative modeling has enabled state-of-the-art performance in image synthesis, density estimation, and representation learning [1]-[3]. Among modern generative models, Normalizing Flows (NFs) have emerged as a powerful class of architectures that learn expressive probability distributions while supporting exact likelihood evaluation [3]-[8]. By composing a sequence of invertible transformations, NFs map complex data distributions into tractable latent spaces, enabling efficient training and inference [4]. Recent NF architectures [3], [8], [9] further improve expressiveness and sample quality, making NFs competitive with diffusion-based and other generative models.

Despite these advances, NF inference is fundamentally memory-bound. Unlike conventional feedforward networks, NFs apply many sequential transformations, resulting in frequent transfers of large weight tensors and intermediate activations between memory and compute units [4], [9]. Core NF operations, including matrix multiplications, point-wise multiplications, additions, and nonlinear transformations, repeatedly switch between computation types and touch large parameter sets. This pattern leads to frequent off-chip DRAM accesses and underutilized compute units on conventional GPU and TPU architectures [10]. Therefore, NF workloads are often limited by memory bandwidth and data movement overheads rather than raw floating-point operation (FLOP) capability.

Processing-near-memory (PNM) architectures address these bottlenecks by reducing data movement and executing computation closer to memory [11]–[13]. By exploiting the high internal bandwidth of DRAM and integrating compute logic near memory, PNM designs [14]–[18] can significantly lower the latency and energy cost of data transfers. However, existing PNM solutions are constrained by limited compute density, modest bandwidth scalability, and stringent thermal envelopes. These constraints become particularly pronounced for NF workloads, which demand sustained high-throughput computation across tens to hundreds of sequential stages [3]. Recent advances in monolithic 3D-stackable DRAM (M3D) and hybrid bonding introduce new opportunities to overcome these limitations. M3D integration enables vertically stacked DRAM arrays with extremely high density [19]–[21], while hybrid bonding provides fine-pitch, low-latency Cu–Cu interconnects between memory and logic dies [22]–[25]. Together, these technologies support tightly coupled memory–compute systems with massive internal bandwidth, which are well-suited to the bandwidth-hungry nature of NF workloads. At the same time, placing logic directly beneath stacked DRAM introduces significant design challenges: power density and heat flow are tightly coupled to DRAM reliability, logic area is constrained by the DRAM footprint, and computation must be highly energy-efficient to remain within safe operating temperatures [26], [27].

In this work, we propose M3D-FLOW, a novel monolithic 3D-stackable DRAM-based PNM architecture tailored to NF workloads. M3D-FLOW leverages hybrid-bonded M3D DRAM to provide high-bandwidth, low-latency access to model parameters and activations, while dedicated processing engines (PEs) located beneath DRAM banks execute NF computations near memory. To maximize compute density under tight thermal constraints, M3D-FLOW employs a hybrid binary-stochastic floating-point arithmetic: mantissa multipli-

Bipin Thapa Magar and Ishan Thakkar are with the Department of Electrical and Computer Engineering, University of Kentucky, Lexington, KY 40506, USA (e-mail: bipin.thapa@uky.edu; igthakkar@uky.edu).

Sudeep Pasricha is with the Department of Electrical and Computer Engineering, Colorado State University, Fort Collins, CO 80523, USA (e-mail: sudeep@colostate.edu).

This work has been accepted for publication in IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems.

© 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

cation is performed in the stochastic domain, while exponent operations remain in the binary domain, substantially reducing area and energy with minimal loss in numerical accuracy. To fully exploit the sequential structure of NFs, M3D-FLOW introduces a pipelined execution strategy that maps different flow stages across dynamically partitioned PE groups, enabling concurrent execution of multiple stages and improving hardware utilization. Finally, an optimized dataflow and prefetching mechanism overlaps DRAM access with computation, hiding memory latency and saturating the high internal bandwidth of the M3D DRAM stack.

The key contributions of this work are:

• We introduce M3D-FLOW, a novel hybrid-bonded monolithic 3D-stackable PNM architecture designed specifically to accelerate generative NF applications.

• We propose a hybrid floating-point design that performs mantissa multiplication stochastically while retaining exponent operations in binary, achieving significant reductions in area and power with minor accuracy loss.

• We demonstrate that integrating low-power stochastic computing within a hybrid-bonded M3D stack enables higher multiply-accumulate (MAC) density while maintaining safe DRAM operating temperatures, addressing key thermal challenges in 3D-stacked systems.

• We design a dataflow that overlaps DRAM access with computation via SRAM buffering and prefetching, and a pipelined execution strategy that maps sequential NF stages across dynamically partitioned PE sets to enable pipeline parallelism and higher throughput.

• We explore multiple stochastic multiplier configurations and analyze latency–area–accuracy trade-offs, identifying practical operating points for different system constraints.

• We benchmark M3D-FLOW in performance and energy efficiency across multiple NF models against state-of-the-art CPU, GPU, TPU, and prior PNM accelerators.

References (65)

  • Denoising diffusion probabilistic models
  • Language models are few-shot learners
  • Normalizing flows are capable generative models (opens arXiv in a new tab)
  • Variational inference with normalizing flows
  • NICE: Non-linear independent components estimation (opens arXiv in a new tab)
  • Density estimation using Real NVP
  • Glow: Generative flow with invertible 1x1 convolutions
  • Masked autoregressive flow for density estimation
  • Improved variational inference with inverse autoregressive flow
  • Gpu energy consumption optimization with a global-based neural network method
  • Processing data where it makes sense in modern computing systems: Enabling in-memory computation
  • Enabling practical processing in and near memory for data-intensive computing
  • Processing-in-memory: A workload-driven perspective
  • GRIM-Filter: Fast seed location filtering in DNA read mapping using PIM technologies
  • Polynesia: Enabling effective hybrid transactional/analytical databases with specialized hardware/software codesign (opens arXiv in a new tab)
  • SISA: Set-centric instruction set architecture for graph mining on processing-in-memory systems
  • NERO: A near high-bandwidth memory stencil accelerator for weather prediction modeling
  • Accelerating dependent cache misses with an enhanced memory controller
  • Ongoing evolution of DRAM scaling via third dimension-vertically stacked DRAM
  • Monolithic 3d stackable dram
  • Monolithic 3D stackable DRAM design with BEOL-compatible oxide channel access transistor
  • 3D-optimized SRAM macro design and application to memory-on-logic 3D-IC at advanced nodes
  • A stacked embedded DRAM array for LPDDR4/4X using hybrid bonding 3D integration
  • 184QPS/w 64Mb/mm² 3D logic-to-DRAM hybrid bonding with process-near-memory engine
  • A three dimensional DRAM (3D DRAM) technology for the next decades
  • Power and thermal modeling of in-3d-memory computing
  • Signal margin, density, and scalability of 3D DRAM: a comparative study of two bitline architectures
  • Ugemm: Unary computing architecture for gemm applications
  • A bit-parallel deterministic stochastic multiplier
  • An energy-efficient random number generator for stochastic circuits
  • Scope: A stochastic computing engine for dram-based in-situ accelerator
  • Sc-dcnn: Highly-scalable deep convolutional neural network using stochastic computing
  • Heif: Highly efficient stochastic computing-based inference framework for deep neural networks
  • Hybrid stochastic number and its neural network computation
  • Survey of stochastic computing
  • Atria: A bit-parallel stochastic arithmetic based accelerator for in-dram cnn processing
  • Agni: In-situ, iso-latency stochastic-to-binary number conversion for in-dram deep learning
  • Star: A mixed analog stochastic in-dram convolutional neural network accelerator
  • Artemis: A mixed analog-stochastic in-dram accelerator for transformer neural networks
  • 3D-PATH: A hierarchy LUT processing-in-memory accelerator with thermal-aware hybrid bonding integration
  • H2-LLM: Hardware-dataflow co-exploration for heterogeneous hybrid-bonding-based low-batch LLM inference
  • Stratum: System-hardware co-design with tiered monolithic 3d-stackable dram for efficient moe serving
  • A 1.2 GHz 12.77 GB/s/mm² 3D two-DRAM-one-Logic process-near-memory chip for edge LLM applications
  • Quantifying the energy cost of data movement for emerging smart phone workloads
  • Profiling a warehouse-scale computer
  • A modern primer on processing in memory
  • NeuPIMS: NPU-PIM heterogeneous acceleration for batched LLM inferencing
  • Dristi: Enabling hierarchical buffering and flexible dataflows for reconfigurable in-dram neural network accelerators
  • In-dram bulk bitwise execution engine (opens arXiv in a new tab)
  • Roc: Dram-based processing with reduced operation cycles
  • Exploiting similarity opportunities of emerging vision AI models on hybrid bonding architecture
  • GraphPIM: Enabling instruction-level PIM offloading in graph computing frameworks
  • Google workloads for consumer devices: Mitigating data movement bottlenecks
  • A 32Gb 8.0 Gb/s/pin DDR5 SDRAM with a symmetric-mosaic architecture
  • An open-source platform for high-performance non-coherent on-chip communication
  • Hardware-assisted polygon antialiasing
  • Transpim: A memory-based acceleration via software-hardware co-design for transformer
  • Asap7: A 7-nm FinFET predictive process design kit
  • A distributed approach to silicon compilation: Invited
  • Thermal simulation of PIM devices using HotSpot 7.0
  • Hardware-software co-design for 3D-DRAM-based LLM serving accelerator (opens arXiv in a new tab)
  • 5th gen AMD EPYC processor architecture (70353)
  • Nvidia A100 Tensor Core GPU: Performance and innovation
  • Google TPUs Explained: Architecture and performance for Gemini 3
  • A 192-Gb 12-high 896-GB/s HBM3 DRAM with a TSV auto-calibration scheme