How Much User Context Do We Need? Privacy by Design in Mental Health NLP Applications

Ramit Sawhney, Atula Tejaswi Neerkaje, Ivan Habernal, Lucie Flek

TL;DR

This paper investigates the trade-off between user data privacy and model performance in mental health NLP applications, specifically for suicide risk assessment. They propose that by leveraging more user context and applying differential privacy, it's possible to achieve both strong privacy guarantees and maintain high utility, challenging the conventional wisdom of data minimization.

What Problem Does This Paper Address?

Mental health NLP applications, like those that detect suicide risk from text, face a critical challenge: balancing the need for accurate predictions with the absolute necessity of protecting user privacy. Existing regulations like GDPR often advocate for data minimization, suggesting using only the "necessary" data. However, this paper argues that simply reducing data might not enhance privacy and could even degrade model performance, leading to less robust classifiers. The core problem is to determine how much user context is truly needed and how to protect it effectively using privacy-preserving techniques without sacrificing predictive power, especially in sensitive domains like mental health where privacy breaches can have severe consequences.

Methods

The authors introduce HistLSTM, a sequential model that leverages user history for mental health NLP tasks. This model first encodes individual posts using BERT and then uses an LSTM to model the temporal sequence of these historical posts, creating a user context representation. For post-level tasks, this context is concatenated with the current post's representation before classification.

To address privacy concerns, they employ Differentially Private Stochastic Gradient Descent (DP-SGD), a widely adopted technique. DP-SGD works by clipping the norm of per-batch gradients and adding Gaussian noise to the aggregated gradients. This process ensures that the model's output is largely insensitive to the inclusion or exclusion of any single data point. They use a differentially private Adam optimizer and track privacy budgets using Rényi differential privacy.

To handle class imbalance, common in mental health datasets, they utilize a Class-Balanced loss function.

Datasets

The paper uses two publicly available datasets for suicide risk assessment:

  • Suicide Ideation (SI) Dataset: A Twitter dataset comprising timelines from 32,558 users, with 2.3 million unlabeled tweets. This dataset is identified using a lexicon of suicidal phrases and contains 34,306 labeled tweets, exhibiting a significant class imbalance (9:11).
  • Suicide Risk (SR) Dataset: A Reddit dataset with 9,127 posts from 500 users, labeled with five increasing levels of suicide risk severity.

Key Insights and Ideas

  • Data Minimization Isn't Always Best for Privacy: The paper challenges the assumption that reducing data automatically increases privacy. They argue that in some cases, more data, when properly protected, can lead to better outcomes for both users and model performance.
  • User Context is Key for Utility: Incorporating historical user data significantly improves the performance of NLP models for suicide risk detection, outperforming single-post models.
  • Differential Privacy Can Compensate for Context: Even with strict differential privacy budgets (low ε), models that leverage user history can still achieve competitive performance, sometimes even surpassing non-private, non-contextual models.
  • Privacy-Utility Trade-off is Nuanced: The relationship between privacy budget (ε), historical data volume, and performance is not linear. There appear to be optimal balances where strong privacy can be maintained without a drastic loss in utility, especially when sufficient user history is available.
  • Disparate Impact of DP: While DP generally reduces privacy leakage, its impact can be disproportionate across different classes, particularly affecting minority classes (e.g., higher suicide risk) more severely, leading to greater performance degradation.

Key Results

  • Performance Improvement with History: Adding user history consistently improved performance for both suicide ideation and suicide risk tasks, with longer histories showing further gains.
  • DP Models Outperform Non-Private Single-Post Models: Even with strict privacy budgets (ε ≈ 0.6), HistLSTM with DP performed comparably to or better than non-private, single-post models.
  • Context Mitigates DP Performance Loss: For DP models, increasing the historical volume of user data helped compensate for performance degradation, especially with moderate privacy budgets.
  • Privacy Leakage Reduction: Black-box membership inference attacks showed that DP significantly reduces privacy leakage, with stricter privacy budgets leading to lower leakage. The non-private single-post model exhibited significant privacy leakage.
  • Class Imbalance Amplifies DP Issues: Increasing class imbalance led to a decrease in Macro F1 scores for DP models. Recall for the minority class dropped more rapidly with increasing privacy guarantees, especially for strict budgets.

Limitations and Future Work

  • Disparate Impact: The paper acknowledges that increasing class imbalance negatively impacts DP model utility, particularly for minority classes. This disparate degradation needs to be considered in design decisions.
  • Qualitative Analysis: While qualitative analysis provided insights into how DP affects model behavior (e.g., reduced importance of named entities), further exploration is needed.
  • Optimal Balance: The paper suggests that optimal balances between privacy and utility exist, but finding these precise thresholds requires further investigation.
  • Broader Ethical Considerations: The authors emphasize the sensitive nature of the work and the need for careful ethical considerations, including data anonymization, informed consent, and avoiding stigma. They also note the limitations of binary distinctions for suicidality and the potential for misrepresentation when analyzing social media data.
  • Future Work: The paper implicitly suggests further research into optimizing the privacy-utility trade-off, understanding and mitigating the disparate impact of DP, and developing more robust methods for privacy preservation in sensitive NLP applications.

Summary updated

BibTeX
@inproceedings{sawhney2023how,
  author = {Ramit Sawhney and Atula Tejaswi Neerkaje and Ivan Habernal and Lucie Flek},
  title = {{How Much User Context Do We Need? Privacy by Design in Mental Health NLP Applications}},
  booktitle = {ICWSM},
  year = {2023},
  url = {https://openreview.net/forum?id=-ALo_4m6RHH},
}
Figure