Dual Training and Dual Prediction for Polarity Classification

Rui Xia, Tao Wang, Xuelei Hu, Shoushan Li, Chengqing ZongACL 2013

Abstract

Bag-of-words (BOW) is now the most popular way to model text in machine learning based sentiment classification. However, the performance of such approach sometimes remains rather limited due to some fundamental deficiencies of the BOW model. In this paper, we focus on the polarity shift problem, and propose a novel approach, called dual training and dual prediction (DTDP), to address it. The basic idea of DTDP is to first generate artificial samples that are polarity-opposite to the original samples by polarity reversion, and then leverage both the original and opposite samples for (dual) training and (dual) prediction. Experimental results on four datasets demonstrate the effectiveness of the proposed approach for polarity classification.

The Polarity Shift Problem

Most sentiment classification systems rely on the Bag-of-Words (BOW) model, which treats a document as an unordered collection of words. While simple and effective for topic classification, BOW fails significantly at handling polarity shift.

Polarity shift occurs when linguistic markers change the sentiment orientation of a sentence. The most common culprit is negation. For example, "I like this movie" (Positive) and "I don't like this movie" (Negative) share almost the same word counts. To a standard BOW classifier, these look nearly identical, often leading to misclassification. While previous researchers have tried "tagging" negated words (e.g., changing "like" to "like_NOT"), these methods often yield only marginal improvements.

The DTDP Framework

The proposed DTDP framework addresses this by creating "mirror-image" samples to help the model learn more robust sentiment features. The process involves three main stages:

1. Generating Artificial Polarity-Opposite Samples

Using an antonym dictionary (like WordNet), the system creates a "mirror" version of every training and test sample based on three rules:

  • Sentiment Reversion: Change sentiment words to their antonyms (e.g., "boring" becomes "interesting").
  • Negation Handling: If a negation word (like "not") is found, remove it and keep the associated sentiment word as-is (e.g., "don't like" becomes "like").
  • Label Reversion: Flip the class label (Positive becomes Negative and vice versa).

2. Dual Training

The model is trained on a dataset that is effectively doubled in size, containing both the original samples and their artificial opposites. This helps the model learn that a word like "like" is a strong positive indicator, even if it originally appeared in a negative "don't like" context, by decoupling the sentiment word from the negation.

3. Dual Prediction

When classifying a new text, the system predicts the label for both the original text and its generated opposite. It then combines these scores. If the original text is predicted as highly positive and its opposite is predicted as highly negative, the model is very confident. A confidence threshold ($t$) is used to decide whether to use the dual result or fall back to the original prediction.

Experimental Results

The study evaluated DTDP using the Multi-Domain Sentiment Datasets, consisting of product reviews from four domains: Book, DVD, Electronics, and Kitchen. Each domain contains 1,000 positive and 1,000 negative reviews.

Accuracy comparison using unigram features across different models and datasets.

As shown in the unigram results above, the DTDP approach consistently outperformed the baseline BOW model and previous state-of-the-art methods (like Das-2001 and Li-2010) across all four domains. Using SVM with unigram features, DTDP improved average accuracy from 78.2% (Baseline) to 82.5%.

Accuracy comparison using bigram features, demonstrating DTDP's effectiveness even with higher-order features.

Even when using bigrams—which naturally capture some negation (e.g., "not_good")—DTDP still provided a significant boost. As seen in the table above, the average SVM accuracy moved from 80.8% to 84.3%, outperforming the previous best method (Li-2010) by approximately 1.6% to 2.2% on average depending on the feature set.

Conclusion and Future Work

DTDP provides a structured way to perform data augmentation in NLP, effectively acting as a "sanity check" for sentiment models. While highly effective, the method currently relies on the quality of external antonym dictionaries and simple negation rules. Future work may explore more complex linguistic structures, such as sarcasm or multi-word negation patterns, to further refine the polarity reversion process.

Summary updated

BibTeX
@inproceedings{xia2013dual,
  author = {Rui Xia and Tao Wang and Xuelei Hu and Shoushan Li and Chengqing Zong},
  title = {{Dual Training and Dual Prediction for Polarity Classification}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2013},
  url = {https://openreview.net/forum?id=HJb1r3x_-H},
}
Figure