Do Transformer Models Show Similar Attention Patterns to Task-Specific Human Gaze?

Stephanie Brandl, Oliver Eberle, Jonas Pilot, Anders Søgaard
4/25/2022
cs.CLcs.LG
transformer-attention

Official code: oeberle/task_gaze_transformers (6 stars, Python, last commit 2023-02-02).

Abstract

Learned self-attention functions in state-of-the-art NLP models often correlate with human attention. We investigate whether self-attention in large-scale pre-trained language models is as predictive of human eye fixation patterns during task-reading as classical cognitive models of human attention.

Show full abstract

We compare attention functions across two task-specific reading datasets for sentiment analysis and relation extraction. We find the predictiveness of large-scale pre-trained self-attention for human attention depends on `what is in the tail', e.g., the syntactic nature of rare contexts. Further, we observe that task-specific fine-tuning does not increase the correlation with human task-specific reading. Through an input reduction experiment we give complementary insights on the sparsity and fidelity trade-off, showing that lower-entropy attention vectors are more faithful.

View on arXivView PDF

Code Implementations(1)

Code for "Do Transformer Models Show Similar Attention Patterns to Task-Specific Human Gaze?" paper (ACL 2022)

60Python, ShellMar 4, 20223 years ago

Similar Papers

Cite this paper

@article{brandl2022transformer,
  title  = {Do Transformer Models Show Similar Attention Patterns to Task-Specific Human Gaze?},
  author = {Stephanie Brandl and Oliver Eberle and Jonas Pilot and Anders Søgaard},
  year   = {2022},
  eprint = {2205.10226},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.10226}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.10226.svg)](https://codeofpaper.com/paper/2205.10226)

Discussion