Skip to main content
QUICK REVIEW

[Paper Review] MicroRec: Accelerating Deep Recommendation Systems to Microseconds by Hardware and Data Structure Solutions.

Wenqi Jiang, Zhenhao He|arXiv (Cornell University)|Oct 12, 2020
Advanced Image and Video Retrieval TechniquesComputer Science61 references4 citations
TL;DR

MicroRec proposes a hardware and data structure-optimized inference engine for deep recommendation systems that reduces embedding lookup latency by redesigning data structures and leveraging High-Bandwidth Memory (HBM) on FPGAs. It achieves 13.8–14.7x speedup in embedding lookup and 2.5–5.4x throughput improvement over CPU baselines, reducing inference latency from milliseconds to microseconds.

ABSTRACT

Deep neural networks are widely used in personalized recommendation systems. Unlike regular DNN inference workloads, recommendation inference is memory-bound due to the many random memory accesses needed to lookup the embedding tables. The inference is also heavily constrained in terms of latency because producing a recommendation for a user must be done in about tens of milliseconds. In this paper, we propose MicroRec, a high-performance inference engine for recommendation systems. MicroRec accelerates recommendation inference by (1) redesigning the data structures involved in the embeddings to reduce the number of lookups needed and (2) taking advantage of the availability of High-Bandwidth Memory (HBM) in FPGA accelerators to tackle the latency by enabling parallel lookups. We have implemented the resulting design on an FPGA board including the embedding lookup step as well as the complete inference process. Compared to the optimized CPU baseline (16 vCPU, AVX2-enabled), MicroRec achieves 13.8~14.7x speedup on embedding lookup alone and 2.5$~5.4x speedup for the entire recommendation inference in terms of throughput. As for latency, CPU-based engines needs milliseconds for inferring a recommendation while MicroRec only takes microseconds, a significant advantage in real-time recommendation systems.

Motivation & Objective

  • Address the high latency in recommendation system inference caused by memory-bound embedding lookups.
  • Overcome the performance bottleneck of random memory accesses in embedding tables during inference.
  • Enable real-time recommendation by reducing inference latency from milliseconds to microseconds.
  • Leverage FPGA-based High-Bandwidth Memory (HBM) to support parallel embedding lookups and improve throughput.
  • Design a system that achieves high throughput and ultra-low latency for production-grade recommendation workloads.

Proposed method

  • Redesign embedding data structures to minimize the number of required memory lookups during inference.
  • Utilize High-Bandwidth Memory (HBM) on FPGA accelerators to enable parallel access to embedding tables.
  • Implement a complete inference pipeline on an FPGA, including embedding lookup and subsequent neural network computation.
  • Optimize memory access patterns to reduce latency and improve bandwidth utilization on HBM-equipped FPGAs.
  • Integrate the optimized data structures and HBM access into a single, end-to-end inference engine for recommendation systems.

Experimental results

Research questions

  • RQ1How can embedding lookup latency be reduced in deep recommendation systems through data structure optimization?
  • RQ2To what extent can HBM on FPGAs accelerate parallel embedding lookups in recommendation inference?
  • RQ3What performance gains can be achieved in throughput and latency by replacing CPU-based inference with an FPGA-accelerated design?
  • RQ4Can the combination of data structure redesign and HBM utilization achieve sub-microsecond inference response times?
  • RQ5How does the proposed MicroRec system compare to optimized CPU baselines in terms of latency and throughput for recommendation workloads?

Key findings

  • MicroRec achieves 13.8–14.7x speedup in embedding lookup performance compared to an optimized CPU baseline (16 vCPU, AVX2-enabled).
  • The system delivers 2.5–5.4x higher throughput for the complete recommendation inference pipeline compared to the CPU baseline.
  • Inference latency is reduced from milliseconds on CPUs to microseconds on MicroRec, enabling real-time recommendation.
  • The use of HBM on FPGAs enables efficient parallelization of embedding lookups, significantly reducing memory access bottlenecks.
  • The end-to-end design on FPGA successfully integrates optimized data structures and hardware acceleration for low-latency inference.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.