Tencent Xuanwu Lab proposes an on-device prompt privacy protection scheme and open-sources Chinese weights
一种大模型端侧隐私保护方案
Tencent Security Xuanwu Lab proposes a prompt privacy protection scheme deployable on-device, inserting two on-device steps into the process of calling cloud LLMs: first replacing privacy entities in parallel for desensitization, then restoring privacy entities in the cloud output. The scheme trains a small model with weights of about 500MB on annotated parallel corpora, based on the open-source model Bloom, and completes deployment experiments on phones and laptops; using only CPU, the MacBook M2 achieves inference speeds of 180-200 tokens/s, the MacBook M1 achieves 110-130 tokens/s, and the Pixel 8 Pro achieves 20-30 tokens/s. It natively supports polishing, summarization, translation, reading comprehension, and text classification, and supports zero-shot custom extension tasks.