Private and Stable Test-Time Adaptation with Differential Privacy

Li, Zefeng, Tang, Qiaoyue, Lecuyer, Mathias, Shelhamer, Evan

–arXiv.org Artificial Intelligence 

Abstractaccess to the original training set. A representative method, Tent, adapts by minimizing prediction entropy through up-Test-time adaptation (TTA) can reduce error on new and different data by updating the modeldating only a sparse set of parameters (the affine parameters on these inputs during inference. However, of normalization layers) to reduce error and preserve effithese updates raise the issue of privacy w.r.t. Building on this, later methods introduce additional mechanisms to improve robustness andthe testing data, because the model parameters the stability of adaptation in realistic streaming conditions.now To control this privacy risk, we cast multiple popular TTAFor example, EATA reduces catastrophic forgetting and immethods (Tent, EATA, SAR, DeYO, and COME) proves sample efficiency through selective updates and reginto differential privacy (DP) forms that applyularization (Niu et al., 2022). SAR improves robustness for small batch sizes and on mixed shifts by filtering unreliableper-sample gradient clipping and Gaussian noise updates and favoring stable optimization trajectories (Niufor all updates. On ImageNet-C, our DP-TTA methods provide adequate privacy at small costet al., 2023). DeYO argues that entropy can be an unreliable to accuracy, and in the low-privacy regime themeasure of uncertainty and proposes filtering and reweightclipping mechanism of DP can even improveing to mitigate the accumulation of noisy updates (Lee et al., 2024). COME further models uncertainty (via the Dirichletthe accuracy and stability of adaptation in the distribution) to reduce overconfidence (Zhang et al., 2024).continual These improvements to privacy and accuracy come at only modest computational Although TTA methods reduce error, they have overlooked overhead. We highlight for the awareness of the issue, inform the developmentfirst time the issue of privacy. Test data can contain sensiof more private test-time updates, and identifytive information (e.g., medical images, faces, location data), per-sample clipping as an effective techniqueand TTA incorporates this information in parameter updates.