AutoRAC: Automated Processing-in-Memory Accelerator Design for Recommender Systems

Feng Cheng, Tunhou Zhang, Junyao Zhang, Jonathan Hao-Cheng Ku, Yitu Wang, Xiaoxuan Yang, Hai Li, Yiran Chen

Abstract

Modern recommender systems are increasingly bottlenecked by the massive data movement required between memory and compute units. While Processing-in-Memory (PIM) architectures using ReRAM offer a promising solution by performing computations directly within memory arrays, the design space for co-optimizing neural architectures and hardware parameters is prohibitively large. This paper introduces AutoRAC, a framework that automates the co-design of deep learning recommender models and PIM accelerators. By employing an evolutionary search algorithm across a design space of over $10^{54}$ configurations, AutoRAC identifies optimal mixed-precision architectures and hardware settings, achieving significant improvements in speed, area, and power efficiency over both CPU baselines and state-of-the-art handcrafted PIM designs.

Introduction

Deep Neural Networks (DNNs) have become the backbone of modern recommender systems, particularly for tasks like Click-Through Rate (CTR) prediction. However, these models face a severe "memory wall" due to their reliance on massive embedding tables and complex feature interaction layers. Traditional von Neumann architectures suffer from high energy consumption and latency caused by constant data shuffling between the CPU and memory.

Processing-in-Memory (PIM) architectures, specifically those utilizing emerging non-volatile memory like ReRAM, address this by executing matrix-vector multiplications (MVM) directly within memory crossbars. Despite their potential, designing an efficient PIM accelerator is a multi-dimensional challenge. Designers must tune hardware parameters—such as crossbar sizes and ADC/DAC resolutions—while simultaneously tailoring the model architecture to fit analog hardware constraints. Existing Neural Architecture Search (NAS) methods often fail in this context because they do not account for the specific dataflow requirements of PIM, leading to hardware-software mismatches.

The AutoRAC Framework

AutoRAC addresses these challenges through a unified hardware-software co-design approach. The framework consists of three primary components:

1. Unified Design Space

AutoRAC explores a massive search space that encompasses both the DNN backbone and the PIM hardware. On the software side, it considers operators such as Fully-Connected (FC) layers, Embedded Fully-Connected layers, Dot-Products (DP), and Factorization Machines (FM), along with varying layer connections and feature dimensions. On the hardware side, it optimizes weight quantization (4-bit vs. 8-bit), ReRAM crossbar sizes, memristor precision, and ADC/DAC resolutions.

2. Novel PIM Mapping for Recommenders

Standard PIM crossbars are optimized for general MVM, but recommender-specific operations like Factorization Machines do not map cleanly to these structures. AutoRAC introduces a transposed ReRAM crossbar layout specifically for FMs. This innovation allows the hardware to compute the "square of the sum" and the "sum of squares" concurrently. By aligning the layout spatially with the inputs, AutoRAC enables full data pipelining, eliminating the need for idle buffers and significantly increasing throughput for pairwise feature interactions.

3. Evolutionary Co-Search Strategy

To navigate the $10^{54}$ possible configurations, AutoRAC utilizes a regularized evolutionary algorithm on a one-shot supernet. Candidate sub-networks are evaluated based on a multi-objective fitness score that balances model accuracy (Log Loss) with hardware metrics (area, power, and throughput). Hardware performance is estimated using industry-standard simulation tools, including CACTI and MNSIM2.0.

Experimental Evaluation

The framework was evaluated using three gold-standard CTR prediction benchmarks: Criteo, Avazu, and KDD Cup 2012.

Predictive Performance

AutoRAC discovered architectures that achieved top-tier accuracy, outperforming both handcrafted models like DeepFM and DLRM, as well as NAS-crafted baselines like NASRec. For the Criteo dataset, AutoRAC achieved a Log Loss of 0.4397 and an AUC of 0.8116, demonstrating that hardware-aware search does not come at the cost of predictive power.

Hardware Efficiency

The efficiency gains provided by AutoRAC are substantial:

  • Vs. CPU: Compared to an Intel Xeon CPU, the AutoRAC-designed PIM system achieved a 22.83× speedup and a 66.87× improvement in power efficiency.
  • Vs. Naive NAS: When compared to mapping a standard NASRec model onto PIM hardware without co-optimization, AutoRAC delivered a 3.17× speedup and a 2.39× improvement in power efficiency.
  • Vs. Handcrafted PIM: AutoRAC outperformed RecNMP, a state-of-the-art manually designed PIM accelerator, by 3.36× in speed and 12.48× in power efficiency.

Key Insights

One of the most significant findings from the AutoRAC search was the emergence of "mixed-precision sweet spots." The automated search naturally favored 8-bit precision for the initial and final Fully-Connected layers to preserve critical feature details, while aggressively quantizing intermediate layers to 4-bit to minimize computational overhead. This nuanced distribution of precision is difficult to achieve through manual design but is easily identified through the AutoRAC search process.

Conclusion

AutoRAC demonstrates that hardware-aware NAS is essential for the next generation of PIM-based recommender systems. By co-designing the neural architecture alongside the physical hardware parameters and introducing specialized mapping schemes for feature interactions, AutoRAC bridges the gap between high-level model design and low-level hardware implementation. Future work may involve extending this automated approach to other emerging memory technologies, such as Phase-Change Memory (PCM), or scaling to even larger multi-domain models.

Summary updated

BibTeX
@inproceedings{cheng2025autorac,
  author = {Feng Cheng and Tunhou Zhang and Junyao Zhang and Jonathan Hao-Cheng Ku and Yitu Wang and Xiaoxuan Yang and Hai Li and Yiran Chen},
  title = {{AutoRAC: Automated Processing-in-Memory Accelerator Design for Recommender Systems}},
  booktitle = {ACM Great Lakes Symposium on VLSI},
  year = {2025},
  doi = {10.1145/3716368.3735229},
}
Figure