TL;DR
URecJPQ introduces a dual-quantization framework that compresses both user and item ID embeddings for large-scale, multimodal top-$k$ recommendation systems. By replacing massive, unique embedding tables with shared learned sub-embeddings, it slashes trainable parameters by up to 99% and checkpoint sizes by up to 98% with minimal—and sometimes positive—impact on recommendation accuracy.
What Problem Does This Paper Address?
Modern recommendation systems (RS) rely heavily on high-dimensional "ID embeddings" to represent unique users and items in a shared latent space. When scaled to industrial catalogs with tens of millions of users and items, these embedding tables become massive memory bottlenecks. Storing these dense matrices—along with their gradients during backpropagation—frequently exceeds the high-bandwidth memory (HBM) limits of state-of-the-art GPUs.
This problem is compounded in multimodal recommendation, where item representations are enriched with visual (images) and textual (descriptions) features. While multimodality improves recommendation quality, processing these features demands even more computational and memory resources.
While prior literature has explored embedding compression via quantization, existing solutions focus almost exclusively on sequential recommendation (predicting the next item based on a sequence) and only quantize item embeddings. Traditional top-$k$ recommendation, however, requires explicit vector representations for both users and items to compute recommendation scores via dot products. URecJPQ bridges this gap.
Methods
The authors propose URecJPQ (User-centric Recommendation Joint Product Quantization), an end-to-end framework that quantizes both user and item ID embeddings simultaneously.
Instead of learning a full $k$-dimensional embedding for every single user and item, URecJPQ breaks the embedding space down into $m$ distinct sub-spaces, each of a smaller dimension $d = k/m$.
The quantization process works as follows:
- Codebook Creation: Each sub-space contains a fixed number of sub-embeddings (typically a codebook length of $l = 256$, allowing each sub-ID to be stored as a single byte).
- Deconstruction & Reconstruction: Every user and item is assigned a sequence of sub-IDs. The full embedding is approximately reconstructed on the fly by concatenating these shared sub-embeddings.
To assign the discrete sub-IDs before training, the paper evaluates two strategies:
- Random: Sub-IDs are assigned completely at random.
- Truncated SVD: Singular Value Decomposition is performed on the user-item interaction matrix to capture global interaction signals, which are then discretized into quantile bins to preserve semantic consistency.
Because sub-ID assignment happens before training, the backbone model can be trained end-to-end via backpropagation, updating only the small codebook of sub-embeddings. The authors integrate URecJPQ into four backbone models: BPR, VBPR, SLMRec, and MMGCL.
Datasets
The methodology was evaluated on three distinct datasets:
- MovieLens-1M (ML1M): A smaller, dense movie recommendation dataset with pre-processed multimodal data.
- Baby 23 & Sports 23: Large-scale datasets extracted from the Amazon Review 2023 benchmark. The authors applied a core-10 filter and used pre-trained, frozen encoders—MiniLM for text and ViT for images—to generate the multimodal features.
Key Insights and Ideas
- Quantization as a Regularizer: Surprisingly, compressing the embeddings doesn't always degrade performance; in denser datasets, it actually improves it. Reconstructed embeddings are visually more compact and centered around the origin. This bottleneck prevents the model from overfitting to unique IDs, helping it capture broader global interaction signals.
- The Sparsity-Complexity Interaction: The choice of code assignment strategy depends heavily on model complexity. For simpler models (like BPR and VBPR) operating on sparse datasets, random assignment outperforms SVD because it introduces representation diversity. Conversely, complex graph-based models (like SLMRec and MMGCL) are better equipped to leverage structured, SVD-based assignments.
- The Training Time Paradox: While URecJPQ drastically reduces memory footprint and parameter counts, it does not significantly improve wall-clock training time. This is because the full embeddings must still be reconstructed during the forward pass, meaning the mathematical operations in the intermediate layers still run on tensors of the original dimensionality.
Key Results
- Massive Parameter & Checkpoint Shrinkage: Across large-scale scenarios (Baby 23 and Sports 23), URecJPQ reduced the number of trainable parameters by 98% to 99% and model checkpoint sizes by 86% to 98%. For example, the checkpoint size for VBPR on Baby 23 plummeted from 325 MB to just 14 MB.
- Highly Competitive Accuracy: In the worst-case scenarios, the quantized models showed only a marginal performance drop (an average decrease of 8.5% on Recall@20 and 16% on NDCG@20).
- Performance Gains: In several cases, the quantization-induced regularization led to massive performance leaps. On the Baby 23 dataset, applying URecJPQ to standard BPR and VBPR yielded up to an 85% improvement in recommendation metrics over their unquantized counterparts.
Limitations and Future Work
The primary limitation of URecJPQ is that its computational savings are restricted to storage and memory footprint; it does not accelerate training speed due to the overhead of on-the-fly embedding reconstruction.
For future iterations, the authors plan to:
- Extend the framework to complex graph-based architectures (like LATTICE and MMGCN) which require specialized tuning for graph-structure parameters.
- Explore methods to compress the multimodal embeddings themselves, rather than just the ID embeddings.
- Investigate the impact of joint product quantization on beyond-accuracy metrics such as fairness, diversity, and novelty.
Summary updated