19
0

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

Abstract

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,ourmethodsallowfordistillingfrommultipleteachersintoasinglerobuststudentmodel,andfordistillingintopresumablysmallermodelswithfewerdimensionvectors,yetcompetitiveretrievaleffectiveness.Ourfindingsraiseimportantconsiderationsfordeployingcommercialembeddingmodelsandsuggestmeasurestomitigatetheriskofmodeltheft.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.

View on arXiv
@article{tamber2025_2406.09355,
  title={ Can't Hide Behind the API: Stealing Black-Box Commercial Embedding Models },
  author={ Manveer Singh Tamber and Jasper Xian and Jimmy Lin },
  journal={arXiv preprint arXiv:2406.09355},
  year={ 2025 }
}
Comments on this paper