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

量化污染:动态量化在批次中泄露你的数据

Quantamination: Dynamic Quantization Leaks Your Data Across the Batch

University of Cambridge(剑桥大学);Google DeepMind(谷歌DeepMind)

Hanna Foerster, Ilia Shumailov, Cheng Zhang, Yiren Zhao, Jamie Hayes, Robert Mullins

AI总结:

本文揭示动态量化中存在关键漏洞,攻击者可通过量化策略窃取同一批数据中的敏感信息,主要贡献是发现4种主流框架存在数据泄露风险。

摘要:

动态量化作为一种提高机器学习服务流程利用效率的实用方法,不同于静态量化在离线应用量化,动态量化在运行时对张量进行操作,适应实际输入数据。当前主流机器学习框架经常推荐动态量化作为优化模型服务的初始步骤,因为它能显著减少内存使用和计算负载,从而加快令牌生成并提高模型服务效率,而不影响模型精度。本文揭示了动态量化中的关键漏洞:攻击者可以利用这种量化策略窃取放置在相同批次中的敏感用户数据。我们的分析显示,动态量化在不当实现或配置时,会创建侧信道,暴露同一批中的其他输入信息。我们称这种现象为量化污染,描述来自量化的污染。具体而言,我们展示了至少4种目前最流行的ML框架要么默认使用或可以配置以在批次边界泄漏数据。这种数据泄露理论上允许攻击者部分或完全恢复其他用户的批量输入数据,代表了现有ML服务框架的严重隐私风险。

英文摘要:

Dynamic quantization emerged as a practical approach to increase the utilization and efficiency of the machine learning serving flow. Unlike static quantization, which applies quantization offline, dynamic quantization operates on tensors at run-time, adapting its parameters to the actual input data. Today's mainstream machine learning frameworks, including ML compilers and inference engines, frequently recommend dynamic quantization as an initial step for optimizing model serving. This is because dynamic quantization can significantly reduce memory usage and computational load, leading to faster token generation and improved model serving efficiency without substantial loss in model accuracy. In this paper, we reveal a critical vulnerability in dynamic quantization: an adversary can exploit such quantization strategy to steal sensitive user data placed in the same batch as the adversary's input. Our analysis demonstrates that dynamic quantization, when improperly implemented or configured, can create side channels that expose information about other inputs within the same batch. We call this phenomenon Quantamination, describing contamination from quantization. Specifically, we show that at least 4 of the most popular ML frameworks in use today either default to or can use configurations that leak data across the batch boundary. This data leakage, in theory, allows attackers to partially or even fully recover other users' batched input data, representing a serious privacy risk for existing ML serving frameworks.

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

↑