This repository provides a minimal, single-file implementation of PuRe (Purified Representation).
- [July 2025] Our paper, "Adversarial Defence without Adversarial Defence: Enhancing Language Model Robustness via Instance-level Principal Component Removal," has been accepted to TACL 2025!