[Paper Review] Getting deep recommenders fit: Bloom embeddings for sparse binary input/output networks
This paper proposes Bloom embeddings, a computationally efficient, unsupervised compression technique for sparse high-dimensional binary inputs and outputs in deep recommender systems. By leveraging Bloom filter principles, it reduces model size and training time with minimal accuracy loss—achieving up to 12% accuracy improvement in some cases—while enabling on-the-fly operation and zero memory overhead.
Recommendation algorithms that incorporate techniques from deep learning are becoming increasingly popular. Due to the structure of the data coming from recommendation domains (i.e., one-hot-encoded vectors of item preferences), these algorithms tend to have large input and output dimensionalities that dominate their overall size. This makes them difficult to train, due to the limited memory of graphical processing units, and difficult to deploy on mobile devices with limited hardware. To address these difficulties, we propose Bloom embeddings, a compression technique that can be applied to the input and output of neural network models dealing with sparse high-dimensional binary-coded instances. Bloom embeddings are computationally efficient, and do not seriously compromise the accuracy of the model up to 1/5 compression ratios. In some cases, they even improve over the original accuracy, with relative increases up to 12%. We evaluate Bloom embeddings on 7 data sets and compare it against 4 alternative methods, obtaining favorable results. We also discuss a number of further advantages of Bloom embeddings, such as 'on-the-fly' constant-time operation, zero or marginal space requirements, training time speedups, or the fact that they do not require any change to the core model architecture or training configuration.
Motivation & Objective
- Address the challenge of large model size in deep recommender systems due to high-dimensional sparse binary inputs and outputs.
- Reduce memory and training overhead without compromising model accuracy or requiring architectural changes.
- Enable efficient, constant-time embedding operations that are either cached or computed on-the-fly with negligible space usage.
- Preserve ranking fidelity and enable accurate, reversible mapping back to original items at inference time.
- Improve training speed and model deployability on resource-constrained devices like mobile platforms.
Proposed method
- Apply Bloom filter-based encoding to compress high-dimensional one-hot encoded input and output vectors into lower-dimensional binary embeddings.
- Use a set of k independent hash functions to map each item ID to multiple positions in a fixed-size binary vector (the Bloom filter).
- Enable on-the-fly embedding computation via deterministic hashing, eliminating the need for storing large embedding matrices.
- Support both standard Bloom embeddings (BE) and co-occurrence-aware Bloom embeddings (CBE), which adjust hash functions based on item co-occurrence statistics.
- Maintain compatibility with standard deep learning frameworks by modifying only input/output layer dimensions, not the core model or loss function.
- Ensure reversibility by storing a lookup table mapping embedded vector indices back to original item IDs, enabling accurate prediction mapping.
Experimental results
Research questions
- RQ1Can Bloom filter-based embeddings effectively compress sparse binary inputs and outputs in deep recommender models without sacrificing accuracy?
- RQ2How does the performance of Bloom embeddings compare to existing embedding and compression techniques in terms of accuracy and training speed?
- RQ3To what extent can co-occurrence-aware Bloom embeddings (CBE) improve performance over standard Bloom embeddings (BE) by leveraging item co-occurrence patterns?
- RQ4Does the use of Bloom embeddings lead to measurable improvements in training time and memory efficiency, especially on mobile or low-resource devices?
- RQ5Can Bloom embeddings be applied universally across diverse recommendation tasks without modifying the core model architecture or loss function?
Key findings
- Bloom embeddings achieve up to 12% relative accuracy improvement over baseline models in certain recommendation tasks, such as on the Amazon (AMZ) dataset at a 20% compression ratio.
- On average, co-occurrence-aware Bloom embeddings (CBE) outperform standard Bloom embeddings (BE), with average score increases of +1.7% (k=4) across datasets.
- At compression ratios of m/d = 0.2, CBE achieved a 1.117 score ratio (S_i/S_0) on the AMZ dataset, surpassing even CCA and PMI baselines.
- The method enables on-the-fly computation with zero or marginal memory overhead, eliminating the need for storing large embedding matrices.
- Training time is significantly reduced due to fewer parameters in input/output layers, with no architectural changes required.
- False positive rates remain low, and the approach maintains ranking fidelity critical for recommendation systems, as demonstrated across seven benchmark datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.