On-device recommendation systems are increasingly popular due to their low latency and enhanced privacy. However, these systems face a significant challenge: model decay. As user interests evolve, models must be updated frequently to remain accurate. While cloud-based retraining is straightforward, transmitting entire updated models to edge devices creates a massive communication bottleneck. This paper introduces ODUpdate, a framework designed to keep on-device models fresh using minimal data transfer.
The Challenge of Model Decay
In session-based recommendation, user behavior changes rapidly. A model trained on last week's data may already be obsolete today. The standard approach involves retraining the model in the cloud and redeploying it. However, for resource-constrained devices like smartphones, downloading a full model update—often containing millions of parameters in embedding tables—is impractical over mobile networks.
The ODUpdate Framework
The authors propose three key innovations to achieve communication efficiency:
1. Compositional Coding for Compression
The largest part of a recommendation model is typically the item embedding table. Instead of storing a unique vector for every item, ODUpdate uses compositional coding. Each item is represented by a discrete code that indexes into several small codebooks. The final embedding is the sum of vectors retrieved from these codebooks. This significantly reduces the model's memory footprint from the start.
2. Stack and Queue Update Strategies
To update the model, the server doesn't send all codebook parameters. Instead, it trains and transmits only a small subset. The researchers explored two data-structure-inspired strategies:
- Stack-based (LIFO): New parameters replace the most recent ones. This is effective when user preferences have a stable core but need slight adjustments.
- Queue-based (FIFO): New parameters replace the oldest ones, ensuring the model is progressively refreshed. This typically performs better in dynamic environments like news feeds.
3. Self-Adaptive Update via MMD
Not every update needs to be the same size. ODUpdate uses Maximum Mean Discrepancy (MMD) to calculate the "distribution shift" between the old and new user data. If the shift is large (indicating a major change in behavior), a larger update is sent. If the shift is small, a tiny update suffices, further saving bandwidth.
Experimental Evaluation
The framework was tested on the Gowalla (location-based) and Lastfm (music) datasets using three different architectures: NARM (RNN), SR-GNN (Graph), and SASRec (Transformer).
Key Findings: * Massive Bandwidth Savings: The method achieves updates that are 60x smaller than traditional full-model transfers. * Minimal Accuracy Loss: Even when compressing the update size to just 10% of the already-compressed on-device model, the accuracy loss was kept within 10% compared to a full cloud-side retrain. * Model Agnostic: The approach worked effectively across RNNs, GNNs, and Transformers, proving that the embedding layer is the primary bottleneck for on-device updates.
Conclusion
ODUpdate demonstrates that maintaining high-performance on-device recommendations does not require massive data transfers. By focusing on partial updates of compressed embedding structures and adapting update sizes to actual data shifts, the framework provides a practical path for deploying and maintaining sophisticated AI on edge devices. Future work may extend these strategies beyond embedding layers to the weights of deep neural networks themselves.
Summary updated