TraceNet: Tracing and Locating the Key Elements in Sentiment Analysis

Qinghua Zhao, Shuai Ma
2/28/2022
cs.CLcs.AI

Official code: lshowway/tracenet (5 stars, Python, last commit 2023-06-23).

Abstract

In this paper, we study sentiment analysis task where the outcomes are mainly contributed by a few key elements of the inputs. Motivated by the two-streams hypothesis, we propose a neural architecture, named TraceNet, to address this type of task.

Show full abstract

It not only learns discriminative representations for the target task via its encoders, but also traces key elements at the same time via its locators. In TraceNet, both encoders and locators are organized in a layer-wise manner, and a smoothness regularization is employed between adjacent encoder-locator combinations. Moreover, a sparsity constraints are enforced on locators for tracing purposes and items are proactively masked according to the item weights output by locators.A major advantage of TraceNet is that the outcomes are easier to understand, since the most responsible parts of inputs are identified. Also, under the guidance of locators, it is more robust to attacks due to its focus on key elements and the proactive masking training strategy. Experimental results show its effectiveness for sentiment classification. Moreover, we provide several case studies to demonstrate its robustness and interpretability.

View on arXivView PDF

Code Implementations(1)

lshowway/tracenetOfficial100%

This is the source code of TraceNet: Tracing and Locating the Key Elements in Sentiment Analysis

51PythonJun 11, 20203 years ago
sentiment-analysis

Similar Papers

Cite this paper

@article{zhao2022tracenet,
  title  = {TraceNet: Tracing and Locating the Key Elements in Sentiment Analysis},
  author = {Qinghua Zhao and Shuai Ma},
  year   = {2022},
  eprint = {2202.13812},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.13812}
}

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/2202.13812.svg)](https://codeofpaper.com/paper/2202.13812)

Discussion