A Shared-Private Representation Model with Coarse-to-Fine Extraction for Target Sentiment Analysis

Peiqin Lin, Meng YangEMNLP 2020

Target Sentiment Analysis (TSA) is a critical task in Natural Language Processing that involves two simultaneous sub-tasks: identifying "opinion targets" (Target Extraction) and determining the sentiment expressed toward them (Target Classification). While deep learning has advanced this field, existing models often struggle with inefficient feature sharing and the "length penalty" problem, where models fail to capture long, multi-word target phrases.

Presented at EMNLP 2020, the Shared-Private Representation Model (SPRM) addresses these gaps through a specialized neural architecture and a novel "coarse-to-fine" extraction algorithm.

The Shared-Private Architecture

A primary challenge in TSA is that while some linguistic features (like syntax) are useful for both extraction and classification, others are task-specific. For instance, part-of-speech tags are vital for extraction, whereas sentiment-laden adjectives are more relevant for classification. Forcing these into a single shared representation can introduce noise.

SPRM utilizes a hybrid encoder to manage this:

  • Shared BERT Layer: A pre-trained BERT model captures universal semantic and syntactic information.
  • Private BiLSTMs: Two separate Bidirectional Long Short-Term Memory (BiLSTM) layers—the TE-LSTM for extraction and the TC-LSTM for classification—capture task-specific nuances.
The SPRM architecture combines a shared BERT encoder with private BiLSTM layers for task-specific feature extraction.

By projecting these outputs into a unified vector space, the model allows final decision layers to leverage both general context and specialized task details.

Solving the "Long Phrase" Struggle

Traditional span-based models often apply a length penalty to avoid over-extracting long phrases. However, this often causes models to miss legitimate multi-word targets like "integrated bluetooth devices." SPRM replaces rigid penalties with a Coarse-to-Fine Extraction Algorithm:

  1. Boundary Prediction: The model predicts the probability of each token being a "start" or "end" boundary.
  2. Coarse Extraction: It matches the nearest predicted start and end indexes to create initial candidate intervals.
  3. Fine Extraction (Extending Strategy): If multiple boundaries are predicted for a single target, the algorithm "extends" the interval to merge them. This allows the model to capture long phrases naturally by looking for logical units rather than adhering to arbitrary word counts.
An illustration of the coarse-to-fine extraction process, showing how boundary predictions are merged into final target phrases.

Performance and Key Insights

The SPRM was evaluated on three standard benchmarks: LAPTOP (SemEval 2014), REST (combined restaurant reviews), and TWITTER. The model achieved State-of-the-Art (SOTA) performance across all three, with F1 scores of 68.72% on LAPTOP and 79.17% on REST.

Ablation studies confirmed the value of the shared-private approach. While the Shared BERT layer provided the most significant performance boost, the inclusion of Private BiLSTMs led to measurable improvements, proving that lightweight task-specific layers help BERT focus on relevant signals. Furthermore, SPRM using BERT-Base outperformed several models using BERT-Large, suggesting that architectural design can be more impactful than raw parameter count.

Conclusion

The SPRM model demonstrates that explicitly separating shared linguistic features from task-specific information, combined with a flexible extraction strategy, significantly improves the accuracy of target sentiment analysis. By moving away from rigid length penalties toward a heuristic "extending" strategy, the model more effectively mimics human entity identification, particularly for complex, multi-word targets.

Summary updated

BibTeX
@inproceedings{lin2020shared,
  author = {Peiqin Lin and Meng Yang},
  title = {{A Shared-Private Representation Model with Coarse-to-Fine Extraction for Target Sentiment Analysis}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.findings-emnlp.382},
}
Figure