Rethinking Attribute Representation and Injection for Sentiment Classification

08/26/2019
by   Reinald Kim Amplayo, et al.
0

Text attributes, such as user and product information in product reviews, have been used to improve the performance of sentiment classification models. The de facto standard method is to incorporate them as additional biases in the attention mechanism, and more performance gains are achieved by extending the model architecture. In this paper, we show that the above method is the least effective way to represent and inject attributes. To demonstrate this hypothesis, unlike previous models with complicated architectures, we limit our base model to a simple BiLSTM with attention classifier, and instead focus on how and where the attributes should be incorporated in the model. We propose to represent attributes as chunk-wise importance weight matrices and consider four locations in the model (i.e., embedding, encoding, attention, classifier) to inject attributes. Experiments show that our proposed method achieves significant improvements over the standard approach and that attention mechanism is the worst location to inject attributes, contradicting prior work. We also outperform the state-of-the-art despite our use of a simple base model. Finally, we show that these representations transfer well to other tasks. Model implementation and datasets are released here: https://github.com/rktamplayo/CHIM.

READ FULL TEXT

page 6

page 9

research
09/16/2021

Efficient Attribute Injection for Pretrained Language Models

Metadata attributes (e.g., user and product IDs from reviews) can be inc...
research
06/18/2020

A Knowledge-Enhanced Recommendation Model with Attribute-Level Co-Attention

Deep neural networks (DNNs) have been widely employed in recommender sys...
research
01/24/2018

Improving Review Representations with User Attention and Product Attention for Sentiment Classification

Neural network methods have achieved great success in reviews sentiment ...
research
02/25/2023

Fair Attribute Completion on Graph with Missing Attributes

Tackling unfairness in graph learning models is a challenging task, as t...
research
04/17/2018

Delete, Retrieve, Generate: A Simple Approach to Sentiment and Style Transfer

We consider the task of text attribute transfer: transforming a sentence...
research
03/27/2018

Attributes as Operators

We present a new approach to modeling visual attributes. Prior work cast...
research
02/10/2023

Element-Wise Attention Layers: an option for optimization

The use of Attention Layers has become a trend since the popularization ...

Please sign up or login with your details

Forgot password? Click here to reset