Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
41 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Multi-Head Self-Attention with Role-Guided Masks (2012.12366v1)

Published 22 Dec 2020 in cs.CL

Abstract: The state of the art in learning meaningful semantic representations of words is the Transformer model and its attention mechanisms. Simply put, the attention mechanisms learn to attend to specific parts of the input dispensing recurrence and convolutions. While some of the learned attention heads have been found to play linguistically interpretable roles, they can be redundant or prone to errors. We propose a method to guide the attention heads towards roles identified in prior work as important. We do this by defining role-specific masks to constrain the heads to attend to specific parts of the input, such that different heads are designed to play different roles. Experiments on text classification and machine translation using 7 different datasets show that our method outperforms competitive attention-based, CNN, and RNN baselines.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (7)
  1. Dongsheng Wang (47 papers)
  2. Casper Hansen (22 papers)
  3. Lucas Chaves Lima (8 papers)
  4. Christian Hansen (51 papers)
  5. Maria Maistro (24 papers)
  6. Jakob Grue Simonsen (43 papers)
  7. Christina Lioma (66 papers)
Citations (1)