Abstract
Language Models as a Service (LMaaS) have become a standard for deploying powerful Natural Language Processing (NLP) capabilities. However, existing privacy-preserving techniques primarily focus on protecting user inputs, leaving the model's output—the "decision"—exposed to service providers. This paper introduces Instance-Obfuscated Inference (IOI), a framework designed to achieve decision privacy. By mixing real user inputs with dummy "obfuscators," IOI ensures that the service provider observes a uniform distribution of results while the end-user can accurately resolve the true inference locally. Evaluations on standard NLU benchmarks demonstrate that IOI maintains high utility with minimal accuracy loss while significantly enhancing privacy.
Introduction
The rise of LMaaS allows developers to access state-of-the-art models via APIs. While this democratizes AI, it introduces severe privacy risks. Even when input text is scrambled using cryptographic or differential privacy techniques, the server still returns a plaintext result (e.g., a medical diagnosis). This lack of decision privacy allows malicious providers or network sniffers to infer sensitive information based on the frequency and type of results associated with specific users.
To address this, the authors propose IOI, a method that protects the output without requiring modifications to the server-side model (maintaining a "black-box" setting) and without incurring the heavy computational overhead of fully homomorphic encryption.
Methodology: Instance-Obfuscated Inference (IOI)
The core mechanism of IOI is to "steer" the model's decision using dummy data and then "un-steer" it locally. The process follows four key steps:
- Instance Obfuscation: The user selects a dummy sentence (an "obfuscator") from a pre-computed pool and sends both the obfuscator alone and a concatenated version (obfuscator + real input) to the server.
- Input Privacy Integration: These strings can be further protected by existing input-privacy tools (like PP-BERT) to prevent the server from reverse-engineering the raw text.
- Obfuscator Balancing: To prevent the server from guessing the truth through statistical analysis, the user sends a "unit group" of requests. For a task with $N$ labels, the user sends requests mixed with obfuscators known to trigger each label, making the server's total output distribution look perfectly uniform.
- Decision Resolution: Upon receiving the probability distributions, the user calculates the divergence between the obfuscator-only result and the mixed-instance result. The label that shows the most significant confidence "boost" is identified as the true result.
Experimental Evaluation
The researchers evaluated IOI on four Natural Language Understanding (NLU) benchmarks: SST-2 and SST-5 (sentiment analysis), MRPC (paraphrase identification), and QNLI (natural language inference). Success was measured using a unified metric ($\Phi$) that balances task performance with "obfuscation strength"—a measure of how close the server's view is to a random guess.
Key Results
IOI demonstrated a superior balance between privacy and utility compared to baselines like PP-BERT and SanText+, which only protect inputs.
- High Accuracy: On the SST-2 dataset, IOI achieved a resolved accuracy ($T_r$) of 91.3%, nearly matching the non-private fine-tuned baseline of 92.4%.
- Blinding the Provider: IOI was the only method that successfully pushed the server's perceived accuracy ($T_o$) toward a random guess (e.g., 0.5 for binary tasks), effectively hiding the true decision from the service provider.
- Cross-Domain Robustness: The method proved stable even when obfuscators were drawn from entirely different datasets (e.g., using QNLI obfuscators for SST-5 tasks), indicating that the "steering" effect is a general property of the models.
Discussion and Future Work
While IOI provides a robust solution for decision privacy in classification tasks, it introduces an "inference tax" in the form of increased communication costs, as multiple requests are required to resolve a single answer. Furthermore, the current framework is tailored for classification and does not yet extend to generative tasks (like long-form summarization or dialogue), where the output space is not fixed. Future research will focus on optimizing the communication overhead and adapting instance obfuscation for sequence-to-sequence generative models.
Summary updated