arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.18663cs.CRcs.AI
收藏

边缘-云 LLM 系统中提示安全与系统性能的联合优化

Joint Optimization of Prompt Security and System Performance in Edge-Cloud LLM Systems

United International College (UIC)(联合国际学院);Institute of Artificial Intelligence and Future Networks (BNU-Zhuhai)(人工智能与未来网络研究院(北京师范大学珠海校区));Interdisciplinary Intelligence SuperComputer Center of Beijing Normal University (Zhuhai)(北京师范大学(珠海)跨学科智能超级计算中心)

Haiyang Huang, Tianhui Meng, Weijia Jia

AI总结:

本文针对边缘-云LLM系统中的提示攻击问题,提出基于向量数据库的轻量级检测器,并将安全检测、延迟与资源优化建模为多阶段动态贝叶斯博弈,通过贝叶斯更新确定均衡策略,实现安全增强与资源优化。

摘要:

大型语言模型(LLMs)显著便利了人类生活,提示工程提高了这些模型的效率。然而,近年来基于提示工程的攻击有所增加,导致隐私泄露、延迟增加和系统资源浪费等问题。尽管提出了基于安全微调的带有人类反馈强化学习(RLHF)方法来对齐LLMs,但现有安全机制无法应对多变的提示攻击,凸显了对提示进行安全检测的必要性。本文在各种提示攻击下,联合考虑边缘-云LLM(EC-LLM)系统中的提示安全、服务延迟和系统资源优化。为增强提示安全,提出了一种基于向量数据库的轻量级攻击检测器。我们将提示检测、延迟和资源联合优化问题形式化为多阶段动态贝叶斯博弈模型。通过在每阶段预测恶意任务数量并进行贝叶斯更新来更新信念,从而确定均衡策略。所提方案在真实实现的EC-LLM系统上进行了评估,结果表明,与最先进算法相比,该方法提供了增强的安全性,降低了良性用户的服务延迟,并减少了系统资源消耗。

英文摘要:

Large language models (LLMs) have significantly facilitated human life, and prompt engineering has improved the efficiency of these models. However, recent years have witnessed a rise in prompt engineering-empowered attacks, leading to issues such as privacy leaks, increased latency, and system resource wastage. Though safety fine-tuning based methods with Reinforcement Learning from Human Feedback (RLHF) are proposed to align the LLMs, existing security mechanisms fail to cope with fickle prompt attacks, highlighting the necessity of performing security detection on prompts. In this paper, we jointly consider prompt security, service latency, and system resource optimization in Edge-Cloud LLM (EC-LLM) systems under various prompt attacks. To enhance prompt security, a vector-database-enabled lightweight attack detector is proposed. We formalize the problem of joint prompt detection, latency, and resource optimization into a multi-stage dynamic Bayesian game model. The equilibrium strategy is determined by predicting the number of malicious tasks and updating beliefs at each stage through Bayesian updates. The proposed scheme is evaluated on a real implemented EC-LLM system, and the results demonstrate that our approach offers enhanced security, reduces the service latency for benign users, and decreases system resource consumption compared to state-of-the-art algorithms.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑