A Joint Segmentation and Classification Framework for Sentiment Analysis

Duyu Tang, Furu Wei, Bing Qin, Li Dong, Ting Liu, Ming Zhou

Abstract

Traditional sentiment analysis systems often rely on a pipeline approach where text is first segmented into words or phrases and then classified. This separation leads to error propagation and struggles with "polarity inconsistency," where phrases like "not bad" possess a sentiment different from their individual components. This paper introduces a Joint Segmentation and Classification (JSC) framework that treats segmentation as a latent variable, allowing sentiment signals to directly influence how a sentence is structured. By iteratively optimizing both segmentation and classification, the model achieves state-of-the-art results on Twitter sentiment benchmarks, outperforming traditional pipeline architectures.

Introduction

Most sentiment analysis models follow a rigid sequence: a sentence is split into tokens (words or syntactic chunks), and a classifier predicts sentiment based on these units. This approach has two fundamental weaknesses. First, polarity inconsistency occurs when a "bag-of-words" model misinterprets a positive phrase containing negative words (e.g., "not bad"). Second, error propagation ensures that if an initial segmenter incorrectly splits a sentiment-carrying idiom, the classifier cannot recover.

The authors propose that segmentation should be sentiment-aware. Instead of relying on generic linguistic rules, the model should learn to group words in a way that maximizes classification accuracy.

The JSC Framework

The JSC framework consists of three main components that operate in an iterative feedback loop to refine both the structure and the sentiment prediction of a sentence.

The JSC framework process: Candidate Generation (CG), Segmentation Ranking (SEG), and Sentiment Classification (SC) work together to iteratively update the model.

1. Candidate Generation (CG)

Using a data-driven approach and beam search, the model generates multiple potential segmentations for a given sentence. For example, the sentence "that is not bad" might be segmented as [that] [is] [not bad] or [that] [is] [not] [bad].

2. Segmentation Ranking (SEG)

A log-linear model scores these candidates. A key innovation is the use of a marginal log-likelihood objective, which allows the model to learn which segmentations are optimal based solely on whether they lead to the correct final sentiment label. This eliminates the need for manually annotated segmentation data.

3. Sentiment Classification (SC)

The classifier takes the top-ranked segmentations and predicts polarity. It utilizes phrase embeddings (pre-trained on 100M unlabeled tweets) alongside hand-crafted features such as sentiment lexicons and negation counts to capture the "sentiment energy" of atomic phrasal units.

Experimental Results

The JSC framework was evaluated primarily on the SemEval 2013 Twitter Dataset. The model achieved a Macro-F1 score of 85.51%, surpassing the top-ranked system in the original competition (84.73%) and other advanced methods like Recursive Autoencoders (75.42%).

Comparison of Macro-F1 scores between pipeline models and the Joint framework across different feature sets.

As shown in the performance comparison, the joint version of the model consistently outperformed pipelined versions of the same architecture across various feature configurations (PF: Phrase Features, SF: Sentiment Features, CF: Context Features). This confirms that the iterative feedback loop—where the sentiment signal "reaches back" to correct the sentence structure—is essential for high accuracy.

Key Insights and Conclusion

The JSC framework demonstrates that learning segmentation without explicit labels is not only possible but superior for sentiment tasks. By treating phrases as atomic units, the model preserves specific meanings that are lost in word-level analysis.

While the current work focuses on binary classification in the Twitter domain, the results suggest that joint optimization is a powerful tool for handling the informal language and idioms prevalent in social media. Future work will explore extending this framework to fine-grained sentiment analysis and more formal domains like product or movie reviews.

Summary updated

BibTeX
@inproceedings{tang2014joint,
  author = {Duyu Tang and Furu Wei and Bing Qin and Li Dong and Ting Liu and Ming Zhou},
  title = {{A Joint Segmentation and Classification Framework for Sentiment Analysis}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2014},
  doi = {10.3115/v1/d14-1054},
}
Figure