TL;DR
ReCross is a novel in-memory computing (IMC) scheme that accelerates the "embedding reduction" step in Deep Learning Recommendation Models (DLRMs). By using ReRAM-based crossbars with intelligent data grouping and a dynamic switching circuit, it achieves a 3.97× speedup and a 6.1× energy efficiency improvement over existing state-of-the-art hardware accelerators.
What Problem Does This Paper Address?
Deep Learning Recommendation Models (DLRMs) power everything from Amazon's "Customers who bought this also bought..." to social media feeds. These models rely on massive embedding tables—look-up tables that translate categorical data (like a User ID or Item ID) into dense mathematical vectors.
The bottleneck isn't the complex math; it's the data movement. In a typical DLRM, "embedding lookup and reduction" (fetching multiple vectors and summing them) accounts for 50%–75% of the total inference time. While In-Memory Computing (IMC) using Resistive RAM (ReRAM) crossbars is a promising way to perform these sums directly where the data lives, naive implementations suffer from:
- Low Utilization: Because lookups are sparse, many parts of the expensive ReRAM hardware sit idle.
- Irregular Access: Some "hot" items are accessed constantly, creating bottlenecks, while others are rarely touched.
- Energy Waste: Analog-to-Digital Converters (ADCs) in these chips are power-hungry. Running a full-resolution ADC to read just a single vector is like using a sledgehammer to crack a nut.
Methods
The authors propose ReCross, which optimizes the hardware-software interface through three key pillars:
- Correlation-aware Embedding Grouping: The system analyzes historical access patterns to see which embeddings are frequently requested together. It builds a "co-occurrence graph" and groups these correlated embeddings onto the same ReRAM crossbar. This ensures that when a query comes in, more rows of the crossbar are active at once, maximizing hardware efficiency.
- Access-aware Crossbar Allocation: To handle the "power-law" distribution of data (where a few items are incredibly popular), ReCross uses logarithmic scaling to duplicate "hot" embeddings across multiple crossbars. This prevents any single crossbar from becoming a performance bottleneck.
- Energy-aware Dynamic Switching: The authors designed a custom Dynamic Switch ADC. Using a simple "popcount" circuit, the hardware detects how many rows are active. If only one row is accessed, it performs a low-power "read" operation. If multiple rows are accessed, it switches to a full "Multiply-Accumulate (MAC)" mode to sum the vectors.
Datasets
The researchers evaluated ReCross using the Amazon Review dataset, specifically focusing on five diverse categories to represent different workload behaviors:
- Software
- Office Products
- Electronics
- Automotive
- Sports
These datasets ranged from ~26,000 to nearly 1 million embeddings, providing a robust test of how the system scales with data size and sparsity.
Key Insights and Ideas
- The Sparsity Paradox: In recommendation models, most queries only activate a single row in a crossbar. Standard IMC designs ignore this, wasting energy by running high-power ADCs for simple reads. ReCross's dynamic switching is a "common-sense" hardware optimization that yields massive energy savings.
- Co-occurrence is Key: Simply grouping embeddings by ID is inefficient. By treating embedding placement as a graph-partitioning problem based on user behavior, you can "force" the hardware to be more efficient.
- Strategic Redundancy: While memory is often treated as a scarce resource, duplicating "hot" data (logarithmic duplication) is a small price to pay for the massive reduction in queuing delays and stalls.
Key Results
Compared to nMARS (a state-of-the-art IMC architecture for DLRMs), ReCross delivered:
- Execution Time: A 3.97× reduction in total inference time.
- Energy Efficiency: A 6.1× improvement in energy efficiency.
- Hardware Utilization: Up to an 8.79× reduction in the number of crossbar activations required to complete a task.
- Vs. Traditional Hardware: ReCross demonstrated energy efficiency two orders of magnitude higher than conventional CPU and GPU platforms.
Limitations and Future Work
- Area Overhead: Duplicating embeddings to improve access speed requires extra ReRAM area. While the authors argue the trade-off is worth it, in extremely area-constrained devices, this could be a limitation.
- Static vs. Dynamic Patterns: The current grouping strategy relies on an "offline" analysis of access history. If user trends shift rapidly (e.g., a viral product suddenly becomes "hot"), the system might need a way to re-group embeddings dynamically without significant downtime.
- Write Endurance: Like all ReRAM-based studies, the long-term endurance of the memory cells under frequent updates (if the model is being trained online) remains a general challenge for the underlying technology.
Summary updated