arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.20595cs.CRcs.AI
收藏

OptiLeak: 通过强化学习在多租户LLM服务中高效重建提示

OptiLeak: Efficient Prompt Reconstruction via Reinforcement Learning in Multi-tenant LLM Services

City University of Hong Kong(香港城市大学);ByteDance Inc.(字节跳动公司)

Longxiang Wang, Xiang Zheng, Xuhao Zhang, Yao Zhang, Ye Wu, Cong Wang

AI总结:

OptiLeak通过强化学习和两阶段微调,在多租户LLM服务中高效重建提示,减少请求次数达12.48倍,提升隐私保护。

摘要:

多租户LLM服务框架广泛采用共享的键值缓存来提高效率。然而,这会创建侧信道漏洞,允许提示泄露攻击。先前的研究识别了这些攻击面,但侧重于扩展攻击向量而非优化攻击性能,报告了不切实际的高攻击成本,低估了真正的隐私风险。我们提出了OptiLeak,一个增强型强化学习框架,通过两阶段微调最大化提示重建效率。我们的关键见解是,领域特定的“硬token”——难以预测但携带敏感信息的术语——可以通过似然排名自动识别,并用于构建直接偏好优化的偏好对,从而避免手动标注。这使得能够有效实现偏好对齐,同时避免扩展监督微调的过拟合问题。在三个涵盖医疗和金融领域的基准上评估,OptiLeak在基准方法的基础上,平均每个token的请求次数减少了高达12.48倍,从3B到14B参数的模型规模均表现出一致的改进。我们的发现表明,基于缓存的提示泄露威胁比之前报告的更为严重,突显了在生产部署中需要鲁棒的缓存隔离的重要性。

英文摘要:

Multi-tenant LLM serving frameworks widely adopt shared Key-Value caches to enhance efficiency. However, this creates side-channel vulnerabilities enabling prompt leakage attacks. Prior studies identified these attack surfaces yet focused on expanding attack vectors rather than optimizing attack performance, reporting impractically high attack costs that underestimate the true privacy risk. We propose OptiLeak, a reinforcement learning-enhanced framework that maximizes prompt reconstruction efficiency through two-stage fine-tuning. Our key insight is that domain-specific ``hard tokens'' -- terms difficult to predict yet carrying sensitive information -- can be automatically identified via likelihood ranking and used to construct preference pairs for Direct Preference Optimization, eliminating manual annotation. This enables effective preference alignment while avoiding the overfitting issues of extended supervised fine-tuning. Evaluated on three benchmarks spanning medical and financial domains, OptiLeak achieves up to $12.48\times$ reduction in average requests per token compared to baseline approaches, with consistent improvements across model scales from 3B to 14B parameters. Our findings demonstrate that cache-based prompt leakage poses a more severe threat than previously reported, underscoring the need for robust cache isolation in production deployments.

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

↑