A Sentiment Analysis Dataset for Trustworthiness Evaluation

Lijie Wang, Hao Liu, Shuyuan Peng, Hongxuan Tang, Xinyan Xiao, Ying Chen, Hua WuarXiv 2021

TL;DR

This paper introduces DuTrust, a novel, manually annotated sentiment analysis dataset designed to evaluate the trustworthiness of deep learning models. It addresses the critical lack of datasets that go beyond simple accuracy to assess a model's robustness and interpretability, offering a more holistic view of AI reliability.

What Problem Does This Paper Address?

Deep learning models have achieved remarkable success, but their "black-box" nature makes them untrustworthy. Understanding why a model makes a prediction is crucial, especially in high-stakes applications. While research has focused on interpretability (explaining decisions) and robustness (resisting adversarial attacks), these aspects are often studied in isolation. Existing datasets primarily evaluate model accuracy, neglecting the evaluation of internal workings and the interplay between robustness and interpretability. This gap hinders the development of truly trustworthy AI systems.

Methods

The authors construct the DuTrust dataset through a multi-stage process:

  1. Instance Collection: They gather 60,000 real-world sentiment analysis instances from an API. These are categorized into three types based on sentiment expression difficulty:
  2. Single-sentiment: Clear emotional words, consistent polarity.
  3. Multiple-sentiment: Multiple sentiment snippets with varying polarities.
  4. Obscure-sentiment: Sentiment expressed implicitly (metaphor, satire), requiring reasoning. To create a challenging distribution, they ensure an equal number of instances for each type, even though obscure and multiple-sentiment instances are less common in real-world data.

  5. Adversarial Instance Creation: For each original instance, human annotators create adversarial versions. Five types of perturbations are defined:

  6. IDR of Dispensable Words: Adding, deleting, or replacing non-essential words.
  7. Negative Description: Replacing positive phrases with negative ones.
  8. Obscure Expression: Shifting from explicit to implicit sentiment expression.
  9. Paraphrase of LF Words: Replacing common sentiment words with low-frequency ones of similar meaning.
  10. Commonsense Knowledge (CSK): Replacing non-sentiment words crucial for reasoning.
  11. Explanation Annotation: Annotators provide token-level explanations for both original and adversarial instances, ensuring these explanations are sufficient, understandable, and compact.

The paper also proposes new evaluation metrics for robustness (accuracy on the dataset) and interpretability (faithfulness and plausibility using F1 scores and a novel precision metric).

Datasets

  • Training Data: The paper mentions models are trained on the ChnSentiCorp dataset.
  • Evaluation Dataset: The core contribution is the DuTrust dataset, a novel, manually annotated sentiment analysis dataset. It contains 1,502 original instances and corresponding adversarial instances, along with token-level explanations. This dataset is designed to evaluate robustness and interpretability simultaneously.

Key Insights and Ideas

  • Interconnectedness of Trustworthiness: The paper strongly suggests that robustness and interpretability are not independent but are correlated factors for trustworthiness, and evaluating them together is crucial.
  • Limitations of Automatic Adversarial Generation: The study highlights that automatically generated adversarial examples (like those from TextFlint) can improve performance on similar distributions but are less effective for evaluating robustness in real-world applications compared to manually created ones.
  • Model Complexity vs. Faithfulness: More complex models (like transformers) tend to be less faithful in their explanations, meaning their internal reasoning might be more sensitive to input perturbations. Simpler models like LSTMs, despite lower accuracy, can exhibit higher faithfulness.
  • Accuracy vs. Plausibility: While there's a positive correlation between model accuracy and explanation plausibility, a significant gap remains, indicating that high accuracy doesn't automatically guarantee understandable explanations.
  • No Single Best Model: The experiments reveal that no single model excels across all trustworthiness metrics (accuracy, robustness, interpretability).

Key Results

  • Robustness Gap: All evaluated models, despite high accuracy on standard test sets (e.g., ChnSentiCorp), show significantly lower performance on the DuTrust evaluation set, especially on adversarial instances.
  • Model Performance: Pre-trained transformer models (ERNIE, SKEP) generally outperform LSTMs in robustness due to better generalization. However, simpler models like LSTMs can achieve higher faithfulness.
  • Interpretability Trade-offs: The paper shows that attention-based methods tend to outperform other interpretation methods in terms of faithfulness. LIME is found to be a robust model-agnostic method for plausibility.
  • Faithfulness and Complexity: LSTM models exhibit higher faithfulness than transformer-based models. SKEP, a sentiment-knowledge-enhanced model, shows improvements in faithfulness for certain interpretation methods.
  • Plausibility and Accuracy: Plausibility is generally positively correlated with model accuracy, particularly for models with similar architectures.

Limitations and Future Work

  • Dataset Size: While 1,502 instances are provided, the authors acknowledge the need for more data for comprehensive evaluation.
  • Model Sensitivity: Larger, more complex models can be overly sensitive to small input changes, impacting faithfulness.
  • Future Directions: The authors suggest extending their work to more NLP tasks, developing better evaluation metrics for interpretability, and exploring causal analysis of NLP models. They also aim to facilitate progress in building more trustworthy AI systems for real-world applications.

Summary updated

BibTeX
@misc{wang2021sentiment,
  author = {Lijie Wang and Hao Liu and Shuyuan Peng and Hongxuan Tang and Xinyan Xiao and Ying Chen and Hua Wu},
  title = {{A Sentiment Analysis Dataset for Trustworthiness Evaluation}},
  year = {2021},
  eprint = {2108.13140},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.13140},
}
Figure