Abstract
The improved semantic understanding of vision-language pretrained (VLP) models has made it increasingly difficult to protect publicly posted images from being exploited by search engines and other similar tools. In this context, this paper seeks to protect users' privacy by implementing defenses at the image compression stage to prevent exploitation. Specifically, we propose a flexible coding method, termed Privacy-Shielded Image Compression (PSIC), that can produce bitstreams with multiple decoding options. By default, the bitstream is decoded to preserve satisfactory perceptual quality while preventing interpretation by VLP models. Our method also retains the original image compression functionality. With a customizable input condition, the proposed scheme can reconstruct the image that preserves its full semantic information. A Conditional Latent Trigger Generation (CLTG) module is proposed to produce bias information based on customizable conditions to guide the decoding process into different reconstructed versions, and an Uncertainty-Aware Encryption-Oriented (UAEO) optimization function is designed to leverage the soft labels inferred from the target VLP model's uncertainty on the training data. This paper further incorporates an adaptive multi-objective optimization strategy to obtain improved encrypting performance and perceptual quality simultaneously within a unified training process. The proposed scheme is plug-and-play and can be seamlessly integrated into most existing Learned Image Compression (LIC) models. Extensive experiments across multiple downstream tasks have demonstrated the effectiveness of our design.
Introduction
As large-scale Vision-Language Pretrained (VLP) models like CLIP and BLIP continue to advance, they have become exceptionally proficient at "understanding" visual content. While these models power sophisticated search engines and accessibility tools, they also present a significant privacy risk. Images uploaded to social media or public repositories can be automatically indexed, categorized, and exploited by data-scraping entities without user consent.
Existing defensive measures, such as adversarial perturbations or backdoor triggers, often face a fundamental trade-off: they either require a separate encoding pass for protected versus unprotected versions—reducing compression efficiency—or they are irreversible. In the latter case, once an image is "poisoned" to deceive an AI, the original high-fidelity semantic data is lost forever. To address this, we introduce Privacy-Shielded Image Compression (PSIC), a "plug-and-play" framework that integrates privacy protection directly into the image compression pipeline, allowing users to control who (or what) can interpret their data without sacrificing image quality.
Methodology
PSIC builds upon existing Learned Image Compression (LIC) architectures but introduces a novel dual-decoding mechanism. The core innovation lies in the handling of the bitstream during the reconstruction phase.
Conditional Latent Trigger Generation (CLTG)
Rather than modifying the image pixels before compression, PSIC injects "triggers" into the latent representation during the decoding stage. A mode indicator (acting as a simple key or condition) determines how the decoder processes the bitstream. Depending on this input, the decoder produces one of two versions:
- The Encrypted Version: The default output, which maintains satisfactory perceptual quality for human viewers but contains latent triggers that confuse VLP models.
- The Full Version: A reconstruction that restores complete semantic information for authorized users who possess the correct condition.
Uncertainty-Aware Encryption-Oriented (UAEO) Optimization
To ensure the encryption effectively deceives models like CLIP, we utilize Dempster-Shafer Theory (DST) to identify image-text pairs where the VLP model already exhibits high uncertainty. The UAEO loss function leverages these "soft labels," forcing the encrypted image's features toward these uncertain, incorrect classifications. This approach makes the defense significantly more robust than simple noise injection, as it exploits the inherent weaknesses and "shaky" decision boundaries of the target AI.
Adaptive Multi-Objective Optimization
Balancing compression efficiency (Rate-Distortion) with encryption effectiveness is a complex optimization problem. PSIC employs a two-stage training strategy: the first stage establishes a baseline for compactness, while the second stage fine-tunes the decoder to handle the divergent requirements of the dual decoding modes simultaneously.
Experimental Results
We evaluated PSIC using a subset of the CC3M dataset for training and several benchmark datasets (Kodak, ImageNet-1k, CelebA, Flickr8k) for testing across various downstream tasks.
- Encryption Effectiveness: Against the CLIP model, the encrypted version achieved an average Attack Success Rate (ASR) of 80.8% for text-to-image retrieval and 72.3% for image-to-text retrieval.
- Comparative Performance: PSIC outperformed the state-of-the-art backdoor attack (BAvAFT) by an average of 12.9% across multiple tasks, including image classification and facial attribute analysis.
- Perceptual Quality: The "full" version maintained rate-distortion performance identical to standard LIC models (such as AE-Hyperprior). Crucially, there is no "privacy tax" for authorized users; the encrypted version remains visually acceptable to humans even while appearing as semantic gibberish to the AI.
- Generalization: The defense proved robust even when tested against BLIP-2, a model not seen during the training phase, validating the effectiveness of the uncertainty-aware approach.
Conclusion
PSIC represents a significant step forward in privacy-preserving technology. By moving the defense mechanism into the compression latent space, we provide a flexible, efficient, and reversible solution to AI exploitation. While the current implementation is optimized for the CLIP architecture, the success of the UAEO module suggests a path toward more model-agnostic, universal triggers. As AI-driven data scraping becomes more prevalent, integrated solutions like PSIC will be essential for maintaining user agency over digital content.
Summary updated