The Platonic Defense: Backdoor Defense for Self-Supervised Encoders in the Era of Large Scale Pre-training

Tuo Chen, Minjing Dong, Benlei Cui, Jian Liu, Jie Gui
6/28/2026
cs.CVcs.CR
contrastive-ssl

Official code: jsrdcht/Platonic-Representation-Defense (2 stars, last commit 2026-06-25).

Abstract

Self-supervised learning (SSL) pretrained models have become a dominant paradigm for visual representation learning, but they are vulnerable to backdoor attacks. Existing defenses struggle to defend against such attacks in a fully black-box setting because they often require access to labels, attack patterns, or training data.

Show full abstract

To tackle this issue, we propose a new attack-agnostic, model-agnostic, and modality-agnostic black-box test-time defense paradigm, called \emph{Platonic Representation Defense}. It is inspired by the Platonic Representation Hypothesis, which suggests that large-scale independently trained encoders converge toward compatible projections of the same underlying reality. We formalize this idea as a conditional energy function defined over source representations and a set of reference representations. The energy function is trained for detection through noise-contrastive estimation and for representation purification through denoising score matching. Theoretically, the energy gap between matched and mismatched samples is lower bounded by the mutual information between source and reference representations. We demonstrate the effectiveness of our method on multiple self-supervised encoders and more than 10 attacks. The method can perform both representation detection and purification, and achieves substantial performance gains across multiple attacks. Code is available \href{https://github.com/jsrdcht/Platonic-Representation-Defense}{here}.

View on arXivView PDF

Code Implementations(1)

Official code for 'The Platonic Defense: Backdoor Defense for Self-Supervised Encoders in the Era of Large Scale Pre-training'

20Jun 25, 20265 months ago

Similar Papers

Cite this paper

@article{chen2026platonic,
  title  = {The Platonic Defense: Backdoor Defense for Self-Supervised Encoders in the Era of Large Scale Pre-training},
  author = {Tuo Chen and Minjing Dong and Benlei Cui and Jian Liu and Jie Gui},
  year   = {2026},
  eprint = {2606.29451},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.29451v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.29451.svg)](https://codeofpaper.com/paper/2606.29451)

Discussion