Skip to content

Robust text embeddings against word-level adversarial attacksRobust Textual Embedding against Word-level Adversarial Attacks

arXiv· arXiv:2202.13817· Yichen Yang, Xiaosen Wang, Kun He·Indexed by this site · 26 days ago· Originally publishedDefenses
AI summary

The paper attributes the vulnerability of NLP models to similar inputs being converted into dissimilar representations in the embedding space, leading to inconsistent outputs, and proposes a robust training method FTML (Fast Triplet Metric Learning), which introduces triplet metric learning into standard training to pull synonyms of words closer and push non-synonyms farther apart in the embedding space. Experiments show that FTML significantly improves model robustness against multiple advanced adversarial attacks while maintaining competitive classification accuracy, and requires only adjusting the embeddings with very low training overhead.

Read originalarxiv.org