arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.14114cs.CR
收藏

Dye4AI:为生成式AI服务保障数据边界

Dye4AI: Assuring Data Boundary on Generative AI Services

Shu Wang, Kun Sun, Yan Zhai

AI总结:

针对生成式AI服务的数据边界安全问题,本文提出Dye4AI染色测试系统,通过三阶段流程检测供应商是否滥用用户数据微调模型,在6个LLM上验证了有效性,并分析了提示选择的优化方向。

摘要:

生成式人工智能(AI)可广泛应用于各类场景,但第三方AI供应商带来的安全与隐私问题阻碍了其在敏感场景中的更广泛部署。因此,用户亟需验证AI的可信度并确保数据边界的安全性。本文提出了一种名为Dye4AI的染色测试系统,该系统将特制的触发数据注入人机对话中,通过观察AI对特定提示的响应来诊断AI模型演进过程中的数据流。我们的染色测试流程包含三个阶段:触发生成、触发插入和触发检索。首先,为同时兼顾唯一性与隐蔽性,我们设计了一种新型触发器,可将伪随机数转换为可理解的格式。其次,通过定制化的三步对话策略,我们将每个触发项插入对话中,并确认模型在当前会话中记住了新的触发知识。最后,我们会在新会话中定期尝试通过特定提示恢复触发器,因为只有当AI供应商利用用户数据进行模型微调时,触发器才会出现在新会话中。我们在6个大语言模型(LLM)上开展了大量实验,结果表明该染色测试方案可有效保障数据边界,即便对于不同架构和参数规模的模型同样适用。此外,规模更大、性能更优的模型往往更适配Dye4AI,例如在OpenLLaMa-13B模型中,即使每个触发项仅插入2次,也能成功检索到触发器。我们还分析了染色测试中的提示选择问题,为未来生成式AI服务的测试系统提供了思路。

英文摘要:

Generative artificial intelligence (AI) is versatile for various applications, but security and privacy concerns with third-party AI vendors hinder its broader adoption in sensitive scenarios. Hence, it is essential for users to validate the AI trustworthiness and ensure the security of data boundaries. In this paper, we present a dye testing system named Dye4AI, which injects crafted trigger data into human-AI dialogue and observes AI responses towards specific prompts to diagnose data flow in AI model evolution. Our dye testing procedure contains 3 stages: trigger generation, trigger insertion, and trigger retrieval. First, to retain both uniqueness and stealthiness, we design a new trigger that transforms a pseudo-random number to a intelligible format. Second, with a custom-designed three-step conversation strategy, we insert each trigger item into dialogue and confirm the model memorizes the new trigger knowledge in the current session. Finally, we routinely try to recover triggers with specific prompts in new sessions, as triggers can present in new sessions only if AI vendors leverage user data for model fine-tuning. Extensive experiments on six LLMs demonstrate our dye testing scheme is effective in ensuring the data boundary, even for models with various architectures and parameter sizes. Also, larger and premier models tend to be more suitable for Dye4AI, e.g., trigger can be retrieved in OpenLLaMa-13B even with only 2 insertions per trigger item. Moreover, we analyze the prompt selection in dye testing, providing insights for future testing systems on generative AI services.

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

↑