TextGuard: A provable defense against backdoor attacks in text classificationTextGuard: Provable Defense against Backdoor Attacks on Text Classification
The researchers propose TextGuard to defend against backdoor attacks in text classification, and the authors state this is the first provable defense in this setting. The paper points out that existing empirical defenses lack formal security guarantees and can be bypassed by strong adaptive attacks in its evaluation. TextGuard splits each training sentence into clauses to form multiple sub-training sets, so that most sub-training sets do not contain the backdoor trigger word, then trains base classifiers separately and uses the ensemble result as the final prediction; theoretically, when the trigger word length does not exceed a certain threshold, the prediction can be unaffected by the trigger word in training and test inputs. On three benchmark text classification tasks, its certified accuracy exceeds existing certified defenses against backdoor attacks; the authors also propose strategies to improve empirical performance, and comparisons with state-of-the-art empirical defenses show its advantages against multiple backdoor attacks. Code and data are open-sourced at https://github.com/AI-secure/TextGuard。