A New Frontier of AI: On-Device AI Training and Personalization

Ji Joong Moon,Hyun Suk Lee,Jiho Chu,Donghak Park,Seungbaek Hong,Hyungjun Seo,Donghyeon Jeong,Sungsik Kong,MyungJoo Ham
2024-01-05
Abstract:Modern consumer electronic devices have started executing deep learning-based intelligence services on devices, not cloud servers, to keep personal data on devices and to reduce network and cloud costs. We find such a trend as the opportunity to personalize intelligence services by updating neural networks with user data without exposing the data out of devices: on-device training. However, the limited resources of devices incurs significant difficulties. We propose a light-weight on-device training framework, NNTrainer, which provides highly memory-efficient neural network training techniques and proactive swapping based on fine-grained execution order analysis for neural networks. Moreover, its optimizations do not sacrifice accuracy and are transparent to training algorithms; thus, prior algorithmic studies may be implemented on top of NNTrainer. The evaluations show that NNTrainer can reduce memory consumption down to 1/20 (saving 95%!) and effectively personalizes intelligence services on devices. NNTrainer is cross-platform and practical open-source software, which is being deployed to millions of mobile devices.
Machine Learning
What problem does this paper attempt to address?
### What problems does this paper attempt to solve? This paper aims to address the challenges of personalized training (on - device training) of deep - learning models on consumer electronic devices. Specifically, the authors focus on the following key issues: 1. **Protecting user privacy**: The traditional cloud - based training method requires uploading users' personal data to the cloud, which may lead to privacy leakage. By training directly on the device, personal data can be ensured not to leave the device, thus better protecting user privacy. 2. **Reducing network and cloud costs**: With the increase in the number of smart devices, transmitting all devices' data to the cloud for processing will result in huge network bandwidth and cloud - computing resource consumption. Training on the device can significantly reduce these costs. 3. **Improving the degree of service personalization**: General pre - trained models may not be well - adapted to each user's specific needs. By using users' local data to fine - tune or update the model, the accuracy of the model and the user experience can be improved. 4. **Coping with the problem of limited device resources**: Consumer electronic devices (such as smart phones, smart TVs, etc.) usually have limited computing and memory resources, which makes it very difficult to directly train deep - learning models on the device. To this end, the authors propose a lightweight training framework NNTrainer to optimize resource utilization and ensure efficient on - device training without sacrificing accuracy and latency. ### Main contributions of NNTrainer - **Efficient memory management**: Through fine - grained execution order analysis and proactive swapping technology, NNTrainer can significantly reduce memory consumption, enabling complex neural network models to be trained on resource - constrained embedded devices. - **Cross - platform support**: NNTrainer is an open - source, cross - platform framework that has been deployed on millions of mobile devices and is applicable to multiple operating systems (such as Ubuntu, Tizen, Android, and Windows). - **Maintaining accuracy**: The optimization methods of NNTrainer do not sacrifice the accuracy of the model and can be transparently applied to existing training algorithms, allowing previous research results to be directly utilized. Through these improvements, NNTrainer can not only effectively support on - device AI training and personalized services, but also provide new ideas and technical means for future edge - computing and privacy - protection research.