Introduction
Modern recommender systems typically employ a "global model" trained on centralized cloud data. While efficient, this approach often fails to account for the non-iid (non-independent and identically distributed) nature of user behavior. A single model struggles to capture the unique nuances of individual users—for instance, the difference between a "quick-buy" shopper and a long-term browser.
On-device learning offers a path toward "extreme personalization," moving toward the vision of "One Thousand Models for One Thousand Users." However, training complex deep learning models on a single user's sparse local data frequently leads to severe overfitting. This paper introduces CoDA (Collaborative Learning with Data Augmentation), a framework that leverages cloud-scale data to augment local on-device training sets without sacrificing personalization.
The CoDA Framework
The CoDA framework operates through a coordinated cycle between the cloud and the user's device. Instead of the cloud hosting the final model, it serves as a repository for data augmentation.
As shown in the workflow above, the process is divided into two primary stages:
- Cloud-Based Coarse-Grained Matching: The cloud identifies "neighboring" users with similar behavior patterns using a K-Nearest Neighbor (KNN) approach. Relevant samples from these neighbors are then transmitted to the target device.
- On-Device Fine-Grained Filtering: To prevent the introduction of noise or bias from external data, the device trains a small personalized sample classifier. This classifier learns the specific distribution of the user's local data and filters the incoming cloud samples. Only samples that closely match the user's unique behavior profile are retained for the augmented dataset.
Finally, the device trains a personalized recommendation model (e.g., a Deep Interest Network) on this combined dataset. A critical aspect of this training is that validation is performed exclusively on the user's original local data to ensure the model remains faithful to their actual preferences.
System Architecture and Implementation
Implementing CoDA requires a robust infrastructure capable of managing tasks across the cloud-device boundary while respecting hardware constraints.
The architecture includes several key components:
- Cloud (Walle Platform): Manages task versions and releases, handles global model training, and prepares samples via generation and matching.
- Tunnel: Facilitates communication. A "Down Tunnel" (CDN/Web Service) sends resources to devices, while an "Up Tunnel" (Log Report) handles device feedback.
- Device: Features a dedicated Task Execution environment (using MNN for mobile deep learning) and Resource Management for storage and version control.
To ensure feasibility on mobile hardware, the system employs aggressive optimization, such as zlib compression and BASE64 encoding, reducing communication overhead by 90%.
Evaluation and Results
The framework was evaluated on Mobile Taobao, predicting Click-Through Rates (CTR) for icons in the "My Taobao" section. Online A/B testing with 100,000 active users over 23 days revealed:
- Performance Gains: CoDA achieved a 1.1% improvement in CTR over the cloud-based global model and a 1.3% improvement over pure on-device training.
- Efficiency: On an iPhone 8 Plus, execution averaged just 0.7 seconds, with a memory footprint of 120 MB and minimal CPU impact.
- Network Impact: The average download size per trigger was only 19.4 KB, making it practical for standard mobile networks.
Conclusion and Future Directions
CoDA demonstrates that "retrieval as augmentation" is a viable strategy for extreme personalization in industrial recommender systems. By giving the device the final say in data filtering, the system balances the breadth of cloud data with the specificity of local user behavior. Future work may address potential privacy implications of cross-user sample sharing and explore the framework's scalability to more complex recommendation tasks like full-page feeds.
Summary updated