Abstract
On-device recommendation systems offer significant privacy and latency advantages over cloud-based alternatives but face critical challenges due to user interest and device resource heterogeneity. We present Forward-OFA (Forward Once For All), a novel framework that dynamically adapts both model architecture and parameters for individual users via a single forward pass. By utilizing a structure-aware hypernetwork and a differentiable structure controller, Forward-OFA eliminates the need for expensive on-device training while resolving gradient conflicts between diverse user interests. Experimental results across four public benchmarks demonstrate substantial improvements in recommendation accuracy (up to 30% NDCG) and significant reductions in computational overhead (up to 5x parameter reduction) compared to state-of-the-art baselines.
Introduction: The Challenge of Heterogeneity
Traditional recommender systems primarily reside in the cloud, which often leads to privacy concerns and network bottlenecks. While moving recommendation to the device (e.g., a smartphone) mitigates these issues, it introduces the problem of heterogeneity. Current on-device methods typically focus on parameter adaptation—tuning the weights of a fixed model. However, a "one-size-fits-all" architecture is inherently inefficient; an "intuitive" user with simple preferences may only require a shallow model, whereas a "complex" explorer might need a significantly deeper network.
Furthermore, when a single model is trained to serve millions of diverse users, "gradient conflicts" arise. The optimization updates required for one user's interests may actively degrade performance for another, leading to a sub-optimal global model.
The Forward-OFA Framework
Forward-OFA addresses these challenges through a cloud-coordinated approach that achieves structural and parameterized adaptation without on-device backpropagation. The framework consists of three primary components:
- Structure Controller: This module employs a Gumbel-Softmax reparameterization to make discrete architectural choices—such as skipping or including specific transformer blocks—differentiable. This allows the system to learn the optimal sub-network structure for a user's real-time behavior.
- Structure-guided Mapper (Hypernetwork): Rather than learning static weights, Forward-OFA uses a mapper to generate parameters on the fly. This mapper is "structure-aware," generating weights specifically tailored to the chosen architecture.
- Cloud-Coordinated Inference: To minimize device burden, the cloud performs the heavy lifting of model assembly. The device sends a privacy-preserving latent representation of user interest to the cloud, which then returns a lightweight, custom-tailored sub-model. This process requires only a single forward pass on the device.
Resolving Gradient Conflicts
A core innovation of Forward-OFA is its ability to bypass the "gradient tug-of-war" common in multi-user models. In standard shared-parameter models, different user sequences often produce contradictory gradients for the same blocks. By using a mapper that operates with parallel components for different blocks, Forward-OFA ensures that the optimization of one part of the network does not interfere with another, allowing for more precise personalization.
Experimental Results and Performance
The framework was evaluated on four public benchmarks: MovieLens-1M, MovieLens-10M, Amazon-Game, and Amazon-Food. Forward-OFA consistently outperformed standard models (e.g., SASRec, NextItNet) and specialized on-device methods (e.g., DUET, LitePred).
- Accuracy: For the NextItNet architecture, Forward-OFA improved recommendation accuracy (NDCG) by nearly 20-30% on the MovieLens and Amazon datasets.
- Efficiency: On the Amazon-Food dataset, the framework reduced floating-point operations (FLOPs) by 4.8x and parameter counts by 5x compared to the full model.
- Latency: While traditional on-device fine-tuning can take over 90 seconds, Forward-OFA’s adaptation process is near-instant, taking between 0.001 and 0.005 seconds on a modern smartphone.
Conclusion
Forward-OFA represents a significant advancement in efficient on-device recommendation. By treating network structure as a signal for personalization and eliminating the need for on-device training, it provides a scalable solution to user and resource heterogeneity. Future work will explore more granular Neural Architecture Search (NAS) and methods to reduce cloud dependency for model assembly.
Summary updated