TextAttack icon indicating copy to clipboard operation
TextAttack copied to clipboard

Do you have a plan to develop an adversarial defense integration?

Open yangheng95 opened this issue 4 years ago • 5 comments

yangheng95 avatar Aug 20 '22 10:08 yangheng95

@yangheng95 what kind of integration are you proposing? We already support adversarial training with all of the built-in attack methods.

jxmorris12 avatar Aug 26 '22 19:08 jxmorris12

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 avatar Sep 06 '22 10:09 yangheng95

@yangheng95 great, please feel free to submit a pull request!

jxmorris12 avatar Sep 06 '22 18:09 jxmorris12

@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.

qiyanjun avatar Aug 13 '26 12:08 qiyanjun

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.

qiyanjun avatar Aug 13 '26 17:08 qiyanjun