LLM for Mobile: An Initial Roadmap

Daihang Chen,Yonghui Liu,Mingyi Zhou,Yanjie Zhao,Haoyu Wang,Shuai Wang,Xiao Chen,Tegawendé F. Bissyandé,Jacques Klein,Li Li
2024-07-09
Abstract:When mobile meets LLMs, mobile app users deserve to have more intelligent usage experiences. For this to happen, we argue that there is a strong need to appl LLMs for the mobile ecosystem. We therefore provide a research roadmap for guiding our fellow researchers to achieve that as a whole. In this roadmap, we sum up six directions that we believe are urgently required for research to enable native intelligence in mobile devices. In each direction, we further summarize the current research progress and the gaps that still need to be filled by our fellow researchers.
Software Engineering
What problem does this paper attempt to address?
The paper aims to address several key issues in applying large language models (LLMs) to the mobile device ecosystem. Specifically, the authors believe that current research has not yet clarified how to effectively integrate LLMs into mobile devices to enhance user experience and application development efficiency. Therefore, the paper proposes a preliminary research roadmap to guide researchers in exploring the following 6 main directions: 1. **Prepare dedicated datasets for fine-tuning**: Including datasets of user interactions, software engineering scenarios, and other multimodal data processing scenarios to better adapt LLMs to the application needs of mobile devices. 2. **Apply LLMs to mobile application development and analysis**: Covering the entire development cycle from requirements engineering to code generation, testing, and debugging, and encompassing various aspects such as static code analysis and dynamic application testing. 3. **Deploy LLMs on mobile devices**: Explore how to overcome challenges on resource-constrained devices and optimize the local performance of LLMs through techniques such as model compression and knowledge distillation. 4. **Defend against security threats to on-device LLMs**: Research how to protect LLMs stored on mobile devices from attackers. 5. **Provide LLM-supported framework APIs**: Design framework interfaces that are convenient for application developers to use, simplifying the development process of intelligent applications. 6. **Provide runtime monitoring capabilities**: Utilize LLMs to achieve highly intelligent runtime monitoring technologies to analyze application behavior and optimize performance. Through research in these 6 directions, the paper hopes to fill the current technical gaps in applying LLMs on mobile devices, thereby promoting progress and development in the field of mobile software engineering.