arXiv · 2406.16925
Analyzing Multi-Head Attention on Trojan BERT Models
Abstract
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.
Explore related subjects
Keep this discovery
Jingwei Wang. 2024-06-12. Analyzing Multi-Head Attention on Trojan BERT Models. https://arxiv.org/abs/2406.16925
Cite the original work for its findings. Save a collection to share your selection of sources.