Adversarial example detectors are usually trained to protect a specific classifier, and replacing that classifier often means retraining the detector from scratch. Different neural networks produce incompatible internal representations, so direct transfer rarely works. The authors of GraphRectify propose a graph-based method that learns a structured representation of intermediate features and adapts a new backbone's representations to match a detector trained on the original model.
In evaluations across multiple datasets, backbone architectures, and adversarial attacks—including adaptive attacks that target both classifier and detector—GraphRectify achieved higher aggregate ROC-AUC than training a detector from scratch on the new backbone. The gains were largest when transferring between different backbone families and when sufficient data were available. Training from scratch remained competitive only in the most data-limited settings, suggesting that adversarial detection knowledge can be reused across heterogeneous architectures rather than relearned each time the protected model changes.