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

无法隐藏在API背后:窃取黑盒商业嵌入模型

Can't Hide Behind the API: Stealing Black-Box Commercial Embedding Models

Manveer Singh Tamber, Jasper Xian, Jimmy Lin

AI总结:

本文首次提出通过API获取的文本-嵌入对训练窃取模型,以不到300美元成功复制商业嵌入模型的检索效果,并支持多教师蒸馏及模型压缩,揭示了商业模型窃取风险及防御措施。

摘要:

生成文本稠密向量表示的嵌入模型被广泛使用,并具有巨大的商业价值。诸如OpenAI和Cohere等公司通过付费API提供专有嵌入模型,但尽管这些模型“隐藏”在API背后,它们并未免遭窃取。据我们所知,我们首次尝试通过在从API获取的文本-嵌入对上训练窃取模型,来为检索“窃取”这些模型。我们的实验表明,以不到300美元的成本复制商业嵌入模型的检索效果是可能的。值得注意的是,我们的方法允许将多个教师模型蒸馏为一个鲁棒的学生模型,并允许蒸馏成维度向量更少、但检索效果依然具有竞争力的更小模型。我们的发现为部署商业嵌入模型提出了重要考量,并提出了降低模型窃取风险的措施。

英文摘要:

Embedding models that generate dense vector representations of text are widely used and hold significant commercial value. Companies such as OpenAI and Cohere offer proprietary embedding models via paid APIs, but despite being "hidden" behind APIs, these models are not protected from theft. We present, to our knowledge, the first effort to "steal" these models for retrieval by training thief models on text-embedding pairs obtained from the APIs. Our experiments demonstrate that it is possible to replicate the retrieval effectiveness of commercial embedding models with a cost of under $300. Notably, our methods allow for distilling from multiple teachers into a single robust student model, and for distilling into presumably smaller models with fewer dimension vectors, yet competitive retrieval effectiveness. Our findings raise important considerations for deploying commercial embedding models and suggest measures to mitigate the risk of model theft.

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

↑