An Interpretability-Guided Framework for Responsible Synthetic Data Generation in Emotional Text

Paula Joy B. Martinez, Jose Marie Antonio Miñoza, Sebastian C. IbañezAAAI 2025 · DOI

TL;DR

This paper introduces a novel framework for generating synthetic emotional text data using LLMs, guided by interpretability insights (SHAP). This approach matches real data performance for emotion recognition, especially for underrepresented classes, and significantly outperforms naive generation. However, it also highlights a trade-off: synthetic data exhibits reduced linguistic diversity and personal expression compared to authentic posts.

What Problem Does This Paper Address?

The increasing cost and restricted access to social media data APIs (like X, formerly Twitter) make it difficult and expensive to gather sufficient training data for tasks like emotion recognition. This is a critical problem for understanding public sentiment. While LLMs can generate synthetic data, naive generation lacks transparency and quality control, potentially introducing noise that degrades model performance. The paper aims to address this by developing a principled, interpretability-guided method for generating high-quality synthetic emotional text that can augment real data without continuous reliance on expensive APIs.

Methods

The core of the proposed method is an "interpretability-guided augmentation framework." This framework leverages Shapley Additive Explanations (SHAP) to identify emotion-specific keywords that are important for a trained classifier. These keywords, along with real tweet exemplars, are then used to prompt a Large Language Model (LLM) to generate synthetic text.

The process involves:

  1. Training a baseline model: A classifier (XGBoost was found to be most stable) is trained on a small "seed" dataset.
  2. SHAP analysis: SHAP values are computed to understand which words are most influential for predicting specific emotions.
  3. Keyword extraction: TF-IDF scores are used in conjunction with SHAP values to identify keywords that are both frequent and discriminative for each emotion.
  4. LLM prompting: The LLM is prompted with real tweet exemplars and the extracted keywords, with instructions to naturally incorporate positive keywords and avoid negative ones.
  5. Synthetic data generation: The LLM generates synthetic tweets based on these prompts.

This SHAP-guided approach is compared against two baselines: "Real Data Expansion" (using more manually collected real data) and "Naïve LLM Augmentation" (using LLMs with exemplars but without SHAP guidance).

Datasets

The primary dataset used for evaluation is TweetEval. This dataset is a collection of Twitter-specific classification tasks, including emotion recognition. It contains approximately 5,052 tweets distributed across four emotion classes (anger, joy, optimism, sadness) with an imbalanced class distribution. The paper uses a portion of this dataset for training and a holdout set for evaluation, experimenting with different seed data sizes (100, 500, and 1,000 samples).

Key Insights and Ideas

  • Interpretability is key for quality synthetic data: Simply using LLMs to generate data (naïve approach) can introduce noise and degrade model performance. Guiding the generation process with interpretability insights (SHAP) is crucial for producing useful synthetic data.
  • SHAP-guided generation excels for minority classes: The framework significantly improves performance for underrepresented emotion classes (like optimism), helping to address class imbalance issues.
  • A fundamental trade-off exists: While SHAP-guided generation boosts performance by amplifying emotion-discriminative features, it comes at the cost of reduced lexical diversity and fewer personal/temporally complex expressions compared to authentic social media text.
  • Seed data matters: The effectiveness of SHAP-guided augmentation is dependent on having a minimally sufficient amount of seed data to extract meaningful patterns. Below a certain threshold, its advantage diminishes.
  • Exemplars are crucial: While SHAP keywords provide guidance, real tweet exemplars are essential for capturing contextual and stylistic nuances, enabling LLMs to generate more authentic-sounding text.

Key Results

  • Performance Parity: With sufficient seed data (1,000 samples), SHAP-guided synthetic data achieves performance (F1-scores) equivalent to real data expansion across various augmentation increments.
  • Outperforming Naïve Generation: SHAP-guided augmentation consistently and significantly outperforms naïve LLM augmentation, which often leads to performance degradation.
  • Minority Class Improvement: For the minority class "optimism," SHAP-guided augmentation shows a particular advantage, outperforming both real data expansion and naïve generation.
  • Linguistic Differences:
    • Lexical Diversity: Both SHAP-guided and naïve synthetic data exhibit significantly lower Type-Token Ratios (TTR) than real data, indicating reduced vocabulary richness. SHAP-guided data has the lowest TTR due to focused repetition of emotion-discriminative features.
  • Lexical Overlap: SHAP-guided generation shows higher Jaccard similarity (lexical overlap) with real data across most emotions, suggesting better alignment.
  • Syntactic Patterns: SHAP-guided data overproduces descriptive POS bigrams (e.g., ADJ-NOUN, NOUN-VERB) that enhance classification signals but reduces personal framing sequences (e.g., PRON-AUX, PRON-VERB).

Limitations and Future Work

  • Seed Data Dependency: The effectiveness of SHAP-guided generation is contingent on having a minimally sufficient seed dataset. In extremely low-resource scenarios, its advantage over naïve generation is marginal, and it still falls short of real data.
  • Reduced Linguistic Diversity: The generated synthetic text is less lexically diverse and contains fewer personal or temporally complex expressions than authentic posts. This could lead to overfitting to specific constructions and limit generalization to evolving social media language.
  • Future Work:
    • Extend the framework to transformer-based architectures.
  • Investigate cross-platform transferability where linguistic norms differ.
  • Develop automated quality metrics to detect when synthetic data might degrade model fairness.
  • Continue to acquire real data to capture linguistic variety and prevent overfitting to repetitive patterns.

Summary updated

BibTeX
@misc{martinez2025interpretability,
  author = {Paula Joy B. Martinez and Jose Marie Antonio Miñoza and Sebastian C. Ibañez},
  title = {{An Interpretability-Guided Framework for Responsible Synthetic Data Generation in Emotional Text}},
  year = {2025},
  eprint = {2511.16132},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.16132},
}
Figure