Learning Unsupervised Semantic Document Representation for Fine-grained Aspect-based Sentiment Analysis

Hao-Ming Fu, Pu-Jen ChengSIGIR 2019 · DOI

Abstract

Document representation is the core of many NLP tasks on machine understanding. A general representation learned in an unsupervised manner reserves generality and can be used for various applications. In practice, sentiment analysis (SA) has been a challenging task that is regarded to be deeply semantic-related and is often used to assess general representations. Existing methods on unsupervised document representation learning can be separated into two families: sequential ones, which explicitly take the ordering of words into consideration, and non-sequential ones, which do not explicitly do so. However, both of them suffer from their own weaknesses. In this paper, we propose a model that overcomes difficulties encountered by both families of methods. Experiments show that our model outperforms state-of-the-art methods on popular SA datasets and a fine-grained aspect-based SA by a large margin.

Introduction

Representing a whole document as a single vector is a foundational challenge in Natural Language Processing (NLP). Researchers from National Taiwan University have developed a new unsupervised method for document representation that bridges the gap between word-order-aware sequential models and efficient bag-of-words models. Existing unsupervised methods typically fall into two categories: sequential models (e.g., RNNs), which capture word order but suffer from the "curse of length" in long documents, and non-sequential models (e.g., Bag-of-Words), which are efficient but discard semantic nuance. This loss of order makes non-sequential models "blind" to which sentiment applies to which feature—a critical flaw for fine-grained tasks.

This paper proposes a hybrid architecture that treats the sentence as the fundamental unit of meaning. By capturing word order within sentences and using a non-sequential approach to aggregate them, the model maintains scalability while preserving semantic richness.

Methods

The core of the proposed model is learning sentence embeddings that are explicitly optimized to be "averagable." The architecture utilizes two separate CNN-based encoders: a context encoder ($E_{cntx}$) and a candidate encoder ($E_{cdd}$). While they share a word embedding table, their distinct weights allow a sentence to be represented differently based on its role as context or target.

Architecture of the proposed dual-encoder model

Training involves a contextual prediction task where the model predicts a target sentence from its neighbors using negative sampling. A novel "Document Loss" ($L_{doc}$) is introduced, where all sentences in a document serve as context for each other. This forces the model to learn vectors that aggregate effectively via averaging. To prevent "length vanishing" during aggregation, a normalization process scales the averaged vector back to the average length of its components.

Results

The model was evaluated on the IMDB Movie Reviews dataset for binary sentiment analysis and the BeerAdvocate dataset for fine-grained aspect-based sentiment analysis (Appearance, Aroma, Palate, Taste).

Comparison of accuracy on the IMDB dataset against various baselines

As shown in the results, the proposed model significantly outperformed previous state-of-the-art (SOTA) unsupervised methods. On the IMDB benchmark, it achieved 92.78% accuracy, surpassing Doc2VecC (89.52%). In the BeerAdvocate task, the model demonstrated a substantial lead, particularly in the "Taste" aspect, reaching 91.02% accuracy compared to Doc2VecC’s 86.15%. The use of CNNs for encoding ensures the model remains computationally efficient compared to recurrent architectures.

Conclusion

By treating sentences as semantic units and training them for aggregation, this model effectively bridges the gap between word-order-aware and efficient document representations. It demonstrates superior performance in both general and fine-grained sentiment analysis. Future work may explore variable context windows and extending this "learning to aggregate" framework to other hierarchical structures in NLP.

Summary updated

BibTeX
@inproceedings{fu2019learning,
  author = {Hao-Ming Fu and Pu-Jen Cheng},
  title = {{Learning Unsupervised Semantic Document Representation for Fine-grained Aspect-based Sentiment Analysis}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2019},
  doi = {10.1145/3331184.3331320},
}
Figure