Skip to main content
QUICK REVIEW

[Paper Review] MicroRec: Efficient Recommendation Inference by Hardware and Data Structure Solutions

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

MicroRec proposes a high-performance recommendation inference engine that reduces memory-bound bottlenecks in deep learning-based recommendation systems by optimizing data structures via Cartesian products and leveraging High-Bandwidth Memory (HBM) on FPGAs for parallel embedding lookups. It achieves 13.8–14.7× speedup in embedding lookup and 2.5–5.4× throughput gain over CPU baselines, with inference latency reduced 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

  • To address the memory-bound nature of deep learning recommendation inference, which is constrained by high-latency random DRAM accesses during embedding table lookups.
  • To reduce the number of memory accesses in sparse feature embedding retrieval using efficient data structure design.
  • To exploit High-Bandwidth Memory (HBM) on FPGAs to enable concurrent embedding lookups and reduce inference latency.
  • To achieve low-latency, high-throughput recommendation inference suitable for real-time production systems.
  • To provide a practical, hardware-aware solution that avoids reliance on specialized DRAM architectures or large-scale framework optimizations.

Proposed method

  • Redesigning embedding data structures using Cartesian products to minimize the number of random memory accesses during lookup.
  • Implementing a deeply pipelined FPGA architecture to exploit the parallelism enabled by HBM's wide memory interface.
  • Distributing embedding tables across multiple HBM memory channels to increase concurrent access bandwidth.
  • Integrating the optimized embedding lookup with the full inference pipeline on an FPGA accelerator.
  • Using a hybrid memory system with HBM to scale up memory bandwidth and reduce latency for sparse feature processing.
  • Optimizing the inference pipeline to minimize framework-level overhead by offloading computation and memory access to custom hardware.

Experimental results

Research questions

  • RQ1Can Cartesian product-based data structures reduce the number of random memory accesses in embedding lookup for recommendation models?
  • RQ2Can HBM-enabled FPGA accelerators achieve sufficient parallelism to overcome the memory wall in recommendation inference?
  • RQ3To what extent can hardware-aware data structure and memory system co-design improve end-to-end inference throughput and latency?
  • RQ4How does the proposed system compare to optimized CPU-based inference engines in terms of latency and throughput?
  • RQ5Can the proposed solution meet real-time latency requirements (tens of milliseconds) while maintaining high throughput in industrial-scale recommendation workloads?

Key findings

  • MicroRec achieves 13.8–14.7× speedup in embedding lookup alone compared to an optimized 16-vCPU, AVX2-enabled CPU baseline.
  • The full recommendation inference throughput is improved by 2.5–5.4× over the CPU baseline, demonstrating significant system-level gains.
  • Inference latency is reduced from milliseconds (on CPU) to microseconds on MicroRec, enabling real-time recommendation deployment.
  • The use of Cartesian products reduces the number of required embedding table lookups, directly addressing the memory access bottleneck.
  • HBM-based parallelization on FPGA enables high concurrency in embedding lookups, effectively eliminating the memory wall for this workload.
  • The end-to-end system design, combining data structure optimization and hardware acceleration, successfully eliminates the primary performance bottlenecks in recommendation 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.