TL;DR
Streaming recommender systems suffer from massive memory bloat as new users and items arrive continuously over time. This paper introduces SCALL, a reinforcement learning-based framework that dynamically resizes user and item embeddings on the fly while strictly adhering to a hard, predefined memory budget.
What Problem Does This Paper Address?
In modern deep learning-based recommendation systems, user and item embedding tables dominate the model's parameter footprint. In real-world streaming scenarios, new users and items constantly enter the system, causing these embedding tables to grow indefinitely.
While mixed-dimension embedding search methods have been proposed to save memory, they typically operate in static settings or assume embedding sizes only grow with interaction frequency. This leads to two critical flaws: memory usage eventually explodes past physical hardware limits, and the system cannot shrink embeddings for users or items whose popularity has waned. SCALL addresses the challenge of dynamically adjusting embedding sizes (both up and down) for existing and unseen entities under a strict, unyielding memory budget.
Methods
SCALL leverages a Reinforcement Learning (RL) paradigm based on the Soft Actor-Critic (SAC) algorithm to dynamically search for optimal embedding sizes. Its core pipeline consists of:
- Controllable Budget Allocation: The total parameter budget $B$ is split dynamically between users ($wB$) and items ($(1-w)B$) using a predicted ratio $w$.
- Probabilistic Size Sampling: Instead of directly predicting a discrete size for each entity, the RL policy network outputs parameters ($\alpha^U, \alpha^V$) for a Power Law distribution. Embedding sizes are then sampled from this distribution, ensuring that the total parameter count strictly satisfies the budget constraint. This allows embedding sizes to dynamically scale up or down based on current frequency.
- Fixed-Length State Space via Mean Pooling: In streaming settings, the number of users and items changes constantly, making standard RL state vectors variable in length. SCALL solves this by sorting entities by interaction frequency, partitioning them into $L$ fixed groups, and calculating the mean frequency per group to maintain a constant state vector size.
- User-Item Separation: Users and items are modeled via separate distributions to account for their distinct interaction frequency characteristics.
Datasets
The authors evaluated SCALL on two widely used public datasets containing user ratings, processed into chronological streaming segments where a new segment is created whenever 15,000 new users or items are introduced:
- Amazon-Book: Processed with 30-core filtering, resulting in 5,076,971 interactions across 66,351 users and 57,270 items (split into 8 data segments).
- Yelp: Processed with 10-core filtering, resulting in 2,762,098 interactions across 99,011 users and 56,441 items (split into 10 data segments).
Key Insights and Ideas
- The Zero-Sum Parameter Game: By framing the problem as sampling from a bounded probability distribution, SCALL treats memory allocation as a zero-sum game. If an item becomes less popular, its embedding size naturally shrinks to free up budget for newly popular items, preventing memory explosion over time.
- Overcoming Streaming State Volatility: Recommender systems are highly dynamic, making standard RL state tracking impossible due to shifting dimensions. The "aha moment" here is applying a simple CNN-inspired trick—mean pooling over frequency-sorted groups—to compress an open-ended, growing user base into a fixed-size state vector that an RL agent can consistently interpret.
- Prioritizing the New: In case studies of user embedding trajectories, SCALL naturally gives larger initial embedding sizes to new users even if their frequency is low, prioritizing exploration and learning for fresh additions to the system before optimizing based on long-term frequency.
Key Results
- Superior Performance Under Strict Budgets: SCALL consistently outperformed state-of-the-art baselines (like CIESS, BET, AutoEmb, ESAPN, and DESS) across various strict memory budgets (5MB and 10MB) and mean embedding sizes (16, 32, 64).
- Beating Unconstrained Models: Remarkably, at a mean embedding size of $c=64$, SCALL achieved higher Recall@20 and NDCG@20 on both datasets compared to models like ESAPN and AutoEmb, despite those baselines using significantly more memory because they lack hard budget constraints.
- For instance, on the Yelp dataset with a strict 5MB budget, SCALL achieved a Recall@20 of 0.0545, outperforming the next best budget-constrained baseline (BET) at 0.0524 and Equal Sizes (ES) at 0.0474.
Limitations and Future Work
The primary limitation acknowledged by the authors is frequency bias. Because SCALL relies heavily on interaction counts to guide parameter allocation, it inherently discriminates against low-frequency (long-tail) users and items, assigning them smaller embedding sizes which may degrade their recommendation quality.
Future Work: The authors plan to explore fairer embedding size allocation strategies that mitigate this frequency bias by incorporating alternative importance signals, such as model confidence metrics.
Summary updated