Pith. sign in

REVIEW 1 cited by

Structured Self-Attention Weights Encode Semantics in Sentiment Analysis

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2010.04922 v1 pith:N5OQJF7G submitted 2020-10-10 cs.CL cs.AI

classification cs.CLcs.AI
keywords attentionsemanticsanalysisself-attentionweightsencodesentimentstructured
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

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.

Discussion (0). Sign in to comment.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. PLEX: Perturbation-free Local Explanations for LLM-Based Text Classification

    cs.CL 2025-07 conditional novelty 6.0 of 10

    PLEX learns a mapping from BERT or RoBERTa token embeddings to word importance scores, reproducing LIME and SHAP style explanations without per-sentence perturbations.

Pith tools