一种针对大语言模型键值缓存的安全性检测方法及系统

By constructing a token tree and combining iterative generation of the shadow large language model with evaluation of the first character generation delay, the problems of detection accuracy and robustness in the shared key-value cache environment of large language models are solved, achieving more efficient privacy protection and system stability.

CN122153968BActive Publication Date: 2026-07-17SHANDONG UNIV

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHANDONG UNIV
Filing Date
2026-04-30
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

In multi-tenant environments with large language models, existing technologies struggle to effectively detect side-channel risks introduced by key-value cache sharing mechanisms, especially in long sequences and complex network environments. This results in low detection accuracy and poor robustness, hindering improvements in privacy protection and system robustness.

Method used

By constructing an initial token tree and iteratively generating it using the shadow large language model and the target large language model, and combining the prediction confidence of candidate tokens and the initial character generation delay to assess security, a security assessment mechanism for multiple candidate paths is formed. This reduces the dependence on the temporal characteristics of network traffic and selects the path with the highest security score for matching degree assessment.

Benefits of technology

It significantly improves the accuracy and robustness of key-value cache security detection in long text and complex network environments, enhances privacy protection in multi-tenant shared environments, and reduces sensitivity to network noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122153968B_ABST
    Figure CN122153968B_ABST
Patent Text Reader

Abstract

本发明提供了一种针对大语言模型键值缓存的安全性检测方法及系统,涉及人工智能信息安全领域,包括:获取用户输入的原始请求文本,从原始请求文本中截取前缀,将其作为根节点的Token,构建初始的Token树;借助待检测的目标大语言模型和本地部署的影子大语言模型,对初始的Token树进行向下的迭代生成,直到满足停止的条件,得到完整的Token树;选择Token树中安全性得分最高的路径,通过与原始请求文本的匹配度对比,量化评估大语言模型键值缓存的隐私防护强度;本发明借助影子大语言模型生成的候选Token和目标大语言模型探测的首字生成延迟,评估在多租户共享环境下大语言模型键值缓存的安全性防御能力。
Need to check novelty before this filing date? Find Prior Art