mlsanityData to 7 Oct 2026

Structured Self-Attention Weights Encode Semantics in Sentiment Analysis

arXiv 2010.04922 ↗First posted 10 Oct 2020cs.CL cs.AIcited by 9

Not on the map. Why?

Abstract (arXiv)

Neural attention, especially the self-attention made popular by the Transformer, has become the workhorse of state-of-the-art natural language processing (NLP) models. Very recent work suggests that the self-attention in the Transformer encodes syntactic information; Here, we show that self-attention scores encode semantics by considering sentiment analysis tasks. In contrast to gradient-based feature attribution methods, we propose a simple and effective Layer-wise Attention Tracing (LAT) method to analyze structured attention weights. We apply our method to Transformer models trained on two tasks that have surface dissimilarities, but share common semantics---sentiment analysis of movie reviews and time-series valence prediction in life story narratives. Across both tasks, words with high aggregated attention weights were rich in emotional semantics, as quantitatively validated by an emotion lexicon labeled by human annotators. Our results show that structured attention weights encode rich semantics in sentiment analysis, and match human interpretations of semantics.

Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). First posted on arXiv 10 Oct 2020.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 2; 2022: 1; 2023: 1; 2024: 0; 2025: 3; 2026: 2.

9 papers.