[CVPR2026 & CVPR Compute Gold Star]Protego: User-Centric Pose-Invariant Privacy Protection Against Face Recognition-Induced Digital Footprint Exposure
- [2026.7.12] Inspired by the difficulties met when working on Protego, we've built FRBench, an end-to-end differentiable face-recognition module that ships 45+ pretrained weights, covering 25 backbones, 9 loss functions, and 3 training datasets spanning generations since 2015.
- [2026.6.11] We've released the training code of Protego
- [2026.6.07] Protego has been selected to receive the CVPR Compute Gold Star — one of the most distinguished recognitions in CVPR 2026’s new Compute Reporting Initiative!
- [2026.2.21] Protego got accepted by CVPR2026! See you in Denver, Colorado!
Abstract: Face recognition (FR) technologies are increasingly used to power large-scale image retrieval systems, raising serious privacy concerns. Services like Clearview AI and PimEyes allow anyone to upload a facial photo and retrieve a large amount of online content associated with that person. This not only enables identity inference but also exposes their digital footprint, such as social media activity, private photos, and news reports, often without their consent. In response to this emerging threat, we propose Protego, a user-centric privacy protection method that safeguards facial images from such retrieval-based privacy intrusions. Protego encapsulates a user’s 3D facial signatures into a pose-invariant 2D representation, which is dynamically deformed into a natural-looking 3D mask tailored to the pose and expression of any facial image of the user, and applied prior to online sharing. Motivated by a critical limitation of existing methods, Protego amplifies the sensitivity of FR models so that protected images cannot be matched even among themselves. Experiments show that Protego significantly reduces retrieval accuracy across a wide range of black-box FR models and performs at least 2→ better than existing methods. It also offers unprecedented visual coherence, particularly in video settings where consistency and natural appearance are essential Overall, Protego contributes to the fight against the misuse of FR for mass surveillance and identity tracing.
Example: We extract a frame from an interview video of Bradley Cooper and submit it to two platforms: (i) PimEyes, a well-known face search engine, and (ii) Google Images. The search is performed both with and without applying Protego's protection.
- [Left] Without protection, both platforms successfully identify Bradley Cooper and even retrieve the exact interview video available online.
- [Right] With Protego applied, neither PimEyes nor Google Images is able to find any matches.
The original video and its protected versions using three different methods (Protego: CVPR'26, Chameleon: ECCV'24, OPOM: TPAMI'22) are shown below. Please note that the GIFs may take a moment to load.
- Protego (Ours, CVPR'26)
- Chameleon (ECCV'24)
- OPOM (TPAMI'22)
For more technical details and experimental results, we invite you to check out our paper:
Ziling Wang, Shuya Yang, Jialin Lu, and Ka-Ho Chow, "Protego: User-Centric Pose-Invariant Privacy Protection Against Face Recognition-Induced Digital Footprint Exposure," IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Denver, CO, USA, Jun. 3-7, 2026.
@inproceedings{wang2026protego,
title={Protego: User-Centric Pose-Invariant Privacy Protection Against Face Recognition-Induced Digital Footprint Exposure},
author={Ziling Wang and Shuya Yang and Jialin Lu and Ka-Ho Chow},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
year={2026}
}
This repository contains the full source code for Protego: training a Privacy Protection Texture (PPT) for a user, applying it to images and videos, and evaluating the protection performance via retrieval recall rates before and after protection.
The current version of Protego is not optimized for performance, so there may be OOM issues on low-memory devices. For reference, you need around 8 GB of (GPU) memory. The code has been tested on the following platforms:
- Ubuntu 22.04; Intel Xeon w5-3415 CPU; 1 NVIDIA RTX 5880 Ada GPU (48 GB); 128 GB RAM
- Ubuntu 22.04; AMD EPYC 9354 CPU; 1 NVIDIA RTX 5880 Ada GPU (48 GB); 256 GB RAM
- Ubuntu 22.04; AMD EPYC 9354 CPU; 1 NVIDIA RTX 4090 GPU (24 GB); 256 GB RAM
- Ubuntu 22.04; Intel(R) Xeon(R) Silver 4108 CPU; 1 NVIDIA RTX 3090 GPU (24 GB); 128 GB RAM
- Ubuntu 22.04; Intel(R) Xeon(R) Silver 4108 CPU; 1 NVIDIA RTX 4080 GPU (16 GB); 128 GB RAM
- macOS 15.6.1; Apple M4 Pro; 24 GB Memory
- macOS 15.6.1; Apple M3; 16 GB Memory
Linux + CUDA is the primary, recommended setup. macOS (MPS) is supported but slower and less stable, mostly because of PyTorch and PyTorch3D's immature MPS support — prefer CPU-only or CUDA for stability/performance. Windows users may need to figure out the setup (especially PyTorch3D) themselves; best-effort support only.
-
Clone this repository:
git clone --depth 1 https://github.com/HKU-TASR/Protego.git cd Protego -
Set up the environment and download the essential assets. Run this from the base conda environment; the script branches automatically on platform:
conda activate && bash setup_quick.sh conda activate protegoThe above installation includes downloading the FLAME model. This requires registration. If you do not have an account you can register at https://flame.is.tue.mpg.de/. You will be prompted to log in during the download process.
-
Launch the inference/eval demo notebook
protego.ipynband try out the pretrained PPT for Bradley Cooper. In VS Code, select theprotegokernel; otherwise:conda activate protego conda install jupyter -y jupyter notebook
To train your own PPT for a protectee, whose name is <protectee>, place a folder of their facial images under face_db/<your_dataset_name>/<protectee>/. The final dataset structure should look like this:
face_db/
└── <your_dataset_name>/
├── <protectee_1>/
│ ├── img1.jpg
│ ├── img2.jpg
│ └── ...
├── <protectee_2>/
│ ├── img1.jpg
│ ├── img2.jpg
│ └── ...
└── ...
The more images and the more diverse the poses/expressions, the better. The images can be cropped or uncropped. However, if the images are uncropped, you will need to set need_cropping to True tell the code to detect, crop, and throw out unusable images.
train.py is the single train/eval entry point. It trains a PPT for every protectee found under face_db/<your_dataset_name>/, then runs the cross-protectee retrieval evaluation.
python train.py --exp_name my_experiment --device cuda:0See train.py for more configuration options. Remember to change this line in train.py to point to your own training dataset:
train_data_path = os.path.join(BASE_PATH, 'face_db', '<your_dataset_name>')The trained PPTs will be saved to experiments/my_experiment/<protectee>/univ_mask.npy.
The training script automatically evaluates the trained PPTs on the preprocessed FaceScrub subset. To run the evaluation separately, switch train.py to the eval mode (comment run(cfgs, mode='train', data=data, train=train_protego_mask), uncomment run(cfgs, mode='eval', data=data) and set mask_name to ['my_experiment', 'univ_mask.npy']).
python train.py --exp_name my_eval_experiment --device cuda:0To apply a trained PPT to the images or videos of a protectee named <protectee>, place their images or videos under face_db/imgs/<protectee>/ / face_db/vids/<protectee>/ and run the corresponding script:
python -m tools.protect_imgs # protect a folder of images
python -m tools.protect_vids # protect a videoEdit the configuration block at the top of each script (protectee name, source/destination paths, mask name, epsilon, etc.). Both resolve paths relative to the repository root, so no machine-specific paths are required.
The code and weights in the following folders are adapted from existing open-source projects:




