arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2205.08305cs.CRcs.AIcs.LG
收藏

被木马感染的BERT的注意异常研究

A Study of the Attention Abnormality in Trojaned BERTs

Stony Brook University(石溪大学);IBM Research(IBM研究院)

Weimin Lyu, Songzhu Zheng, Tengfei Ma, Chao Chen

摘要:

特洛伊木马攻击引发了严重的安全问题。在本文中,我们研究了木马BERT模型的基本机制。我们观察到木马模型的注意力焦点漂移行为,即,当遇到中毒输入时,触发令牌劫持注意力焦点,而不管上下文。我们提供了一个彻底的定性和定量分析这一现象,揭示了特洛伊机制的见解。基于观察,我们提出了一个基于注意力的木马检测器区分木马模型从干净的。据我们所知,这是第一篇分析木马机制和开发基于Transformer注意力的木马检测器的论文。

英文摘要:

Trojan attacks raise serious security concerns. In this paper, we investigate the underlying mechanism of Trojaned BERT models. We observe the attention focus drifting behavior of Trojaned models, i.e., when encountering an poisoned input, the trigger token hijacks the attention focus regardless of the context. We provide a thorough qualitative and quantitative analysis of this phenomenon, revealing insights into the Trojan mechanism. Based on the observation, we propose an attention-based Trojan detector to distinguish Trojaned models from clean ones. To the best of our knowledge, this is the first paper to analyze the Trojan mechanism and to develop a Trojan detector based on the transformer's attention.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑