Abstract
Modern recommender systems rely heavily on latent factor models where users and items are represented as high-dimensional embedding vectors. However, the traditional approach of assigning a uniform, fixed dimensionality to all entities leads to significant memory waste, particularly for "cold-start" entities with limited interactions. This paper presents CIESS (Continuous Input Embedding Size Search), a reinforcement learning-based framework that enables a continuous search for optimal embedding sizes. By utilizing a novel random walk-based exploration strategy and a masked embedding mechanism, CIESS achieves state-of-the-art accuracy while reducing memory requirements by up to 95%.
1. Introduction
In the landscape of large-scale recommendation, the "Memory Wall" represents a critical bottleneck. As systems scale to millions of items and billions of users, the embedding table—often consisting of 256-dimensional vectors or larger—can consume gigabytes of RAM, making deployment on edge devices or cost-effective cloud infrastructure difficult.
A fundamental inefficiency in these systems is the "one size fits all" approach. A power user with thousands of data points and a new user with a single interaction are typically assigned the same capacity. While existing solutions like pruning or discrete reinforcement learning (RL) search offer some relief, they are often too coarse, limited to a small menu of predefined sizes (e.g., powers of two). CIESS addresses this by treating embedding size selection as a continuous optimization problem, allowing for granular, entity-specific dimensionality.
2. The CIESS Framework
CIESS is a model-agnostic framework designed to be integrated with various base recommendation architectures, such as Neural Collaborative Filtering (NCF) or LightGCN. It treats the selection of embedding sizes as a sequential decision-making problem solved via the Twin Delayed Deep Deterministic Policy Gradient (TD3) algorithm.
2.1 Masked Embeddings and State Representation
To maintain computational efficiency during the search phase, CIESS avoids the overhead of physical tensor resizing. Instead, it employs a binary masking strategy. The system maintains a full-sized embedding table but applies a mask to "zero out" dimensions beyond the size recommended by the RL agent. This allows the model to simulate variable sizes within a standard fixed-tensor framework.
The RL agent’s state representation is informed by three primary features:
- Popularity: The frequency of interactions for a given user or item.
- Current Size: The dimensionality currently assigned to the entity.
- Quality Indicator: A performance metric that compares the current model's accuracy against a full-sized baseline, guiding the agent on whether further compression is viable.
2.2 Random Walk Exploration
Searching a continuous space for millions of entities is a daunting task for standard RL. CIESS introduces a Random Walk Exploration strategy to prevent the agent from converging on local optima. The system samples a sequence of dimensions in the neighborhood of the actor’s suggested size and allows the Critic to evaluate which "mutation" yields the highest reward. This controlled exploration ensures the agent finds the "Goldilocks" dimension—the perfect balance between expressiveness and memory efficiency.
3. Experimental Evaluation
The authors evaluated CIESS using two industry-standard benchmarks: MovieLens-1M and Yelp2018. The framework was tested across three base models: NCF, NGCF, and LightGCN.
3.1 Accuracy at Scale
CIESS was tested at extreme sparsity levels (80%, 90%, and 95%). The results demonstrate that CIESS consistently outperforms existing baselines such as PEP, ESAPN, and OptEmbed. For instance, on the MovieLens-1M dataset using LightGCN at 90% sparsity, CIESS achieved a Recall@20 of 0.2248, significantly outperforming the "Equal Sizes" baseline of 0.2105.
3.2 Efficiency and Robustness
On the Yelp2018 dataset, CIESS demonstrated a unique ability to maintain high accuracy even when using significantly less memory than competing methods. Ablation studies confirmed that the Random Walk component is essential; without it, the agent's ability to navigate the continuous action space was severely diminished, leading to a marked drop in recommendation quality.
4. Conclusion and Future Work
CIESS demonstrates that continuous search spaces offer a superior path to embedding compression compared to discrete alternatives. By tailoring dimensionality to the specific needs of each user and item, CIESS breaks the memory wall without sacrificing the predictive power of the recommender system.
Future research may focus on reducing the overhead of the "selective retraining" phase, where top-performing candidate masks are fine-tuned. Additionally, adapting CIESS for dynamic, streaming environments—where user preferences and item catalogs evolve in real-time—remains a promising frontier for efficient recommendation architecture.
Summary updated