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

分析特洛伊木马BERT模型中的多头注意力

Analyzing Multi-Head Attention on Trojan BERT Models

Hofstra University(霍夫斯特拉大学)

Jingwei Wang

AI总结:

本研究分析Transformer模型中多头注意力在良性模型与特洛伊木马模型间的行为差异,通过识别特定的“特洛伊”注意力头并分析其功能,揭示了特洛伊攻击对模型注意力机制的影响。

摘要:

本项目研究Transformer模型中多头注意力的行为,特别关注情感分析背景下良性模型与特洛伊木马模型的差异。特洛伊攻击使模型在干净输入上表现正常,但在包含预定义触发器的输入上出现误分类。我们刻画特洛伊木马模型和良性模型中的注意力头功能,识别特定的“特洛伊”头并分析其行为。

英文摘要:

This project investigates the behavior of multi-head attention in Transformer models, specifically focusing on the differences between benign and trojan models in the context of sentiment analysis. Trojan attacks cause models to perform normally on clean inputs but exhibit misclassifications when presented with inputs containing predefined triggers. We characterize attention head functions in trojan and benign models, identifying specific 'trojan' heads and analyzing their behavior.

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

↑