Do you have a plan to develop an adversarial defense integration?
@yangheng95 what kind of integration are you proposing? We already support adversarial training with all of the built-in attack methods.
Hi, The initial idea is provide a interface for allowing deploying an adversarial example post-defense service, which can be used for benchmarking text defense methods. I already implement it but it is not ready for merge. I will PR when it is ready.
@yangheng95 great, please feel free to submit a pull request!
@yangheng95's PR never landed, but there's a fresh, closely related proposal open right now at #824 — an out-of-tree textattack-detection-atr companion package for evaluating whether a content-layer defense would have caught a given attack. Worth checking that thread; it's a different angle (detection/defense-evaluation rather than adversarial-training-based defense) but addresses the same underlying need this issue is asking about.
Closing as stale (the PR promised here in 2022 never landed) in favor of the more current, active proposal at #824, which covers the same underlying need (defense/detection evaluation) from a different angle. Reopen if you have a concrete adversarial-training-integration PR ready to submit — the offer to review one still stands.