Masked language model as a defense against textual adversarial attacks
AssigneeDell Products L.P.
InventorsIam Palatnik de Sousa, Karen Braga Enes, Karen Stéfany Martins, Pablo Nascimento da Silva
Life of this patent
Estimating the term…
Loading patent…
AssigneeDell Products L.P.
InventorsIam Palatnik de Sousa, Karen Braga Enes, Karen Stéfany Martins, Pablo Nascimento da Silva
Estimating the term…
One example method includes receiving a text string that includes multiple words, tokenizing the text string to create a tokenized text string, substituting each token in the tokenized text string with a mask token to create a masked text string, performing an inference process on the masked text string to obtain a respective probability for each token, determining a respective suspicion level for each probability, modulating the suspicion levels to obtain a respective weighted suspicion score for each token, and comparing each of the weighted suspicion scores with a threshold to determine whether any one or more of the words indicate that the text string includes an attack prompt.
A method, comprising:
A non-transitory storage medium having stored therein instructions that are executable by one or more hardware processors to perform operations comprising:
Dependencies are inferred from the claim text.