Skip to main content
QUICK REVIEW

[論文レビュー] Domain-specific Continued Pretraining of Language Models for Capturing Long Context in Mental Health

Shaoxiong Ji, Tianlin Zhang|arXiv (Cornell University)|Apr 20, 2023
Mental Health via Writing被引用数 16
ひとこと要約

この論文は Reddit データで domain-specific long-context 言語モデル MentalXLNet と MentalLongformer を学習させ、精神健康分類と長距離テキスト理解の有効性を評価する。MentalLongformer は長い文書で概して優れる。

ABSTRACT

Pretrained language models have been used in various natural language processing applications. In the mental health domain, domain-specific language models are pretrained and released, which facilitates the early detection of mental health conditions. Social posts, e.g., on Reddit, are usually long documents. However, there are no domain-specific pretrained models for long-sequence modeling in the mental health domain. This paper conducts domain-specific continued pretraining to capture the long context for mental health. Specifically, we train and release MentalXLNet and MentalLongformer based on XLNet and Longformer. We evaluate the mental health classification performance and the long-range ability of these two domain-specific pretrained models. Our models are released in HuggingFace.

研究の動機と目的

  • Improve mental health classification performance through domain-specific continued pretraining.
  • Enable effective modeling of long documents common in mental health data (e.g., Reddit posts).
  • Compare long-context models (Longformer, XLNet) with domain-specific baselines on multiple datasets.
  • Provide guidance on model choice for short vs. long text in mental health tasks.

提案手法

  • Continue pretraining XLNet and Longformer in a mental-health domain using Reddit-based corpus from relevant subreddits.
  • Evaluate on multiple mental health classification datasets with both short and long texts.
  • Fine-tune with pooled last-layer representations and an MLP classifier.
  • Compare against vanilla pretrained models, domain-specific baselines, and zero-shot ChatGPT baselines.
  • Analyze long-range capabilities by varying input sequence lengths and observing performance trends.
Figure 1: Median number of tokens in the datasets
Figure 1: Median number of tokens in the datasets

実験結果

リサーチクエスチョン

  • RQ1Can domain-specific continued pretraining improve mental health classification across diverse datasets?
  • RQ2How do long-context models compare to standard and domain-specific baselines on short vs. long texts?
  • RQ3What is the effect of increasing input sequence length on long-range modeling for mental health tasks?
  • RQ4Which model is preferable for long documents (e.g., CLPsych15) versus shorter posts (e.g., Dreaddit, SAD dataset)?

主な発見

ModelDR RecDR F1CLPsych15 RecCLPsych15 F1Dreaddit RecDreaddit F1T-SID RecT-SID F1SAD RecSAD F1CAMS RecCAMS F1
BERT91.1390.9064.6762.7578.4678.2688.4488.5162.7762.7240.2634.92
RoBERTa95.0795.1167.6766.0780.5680.5688.7588.7666.8667.5341.1836.54
XLNet90.8990.4469.8369.1278.8878.8486.0486.1867.3067.3050.6449.16
Longformer95.8195.7475.6775.4781.5481.4589.5889.6369.2069.0149.5249.42
MentalBERT94.5894.6264.6762.6380.2880.0488.6588.6167.4567.3445.6939.73
MentalRoBERTa94.3394.2370.3369.7181.8281.7688.9689.0168.6168.4450.4847.62
MentalXLNet95.3295.2471.6771.4980.4280.4189.1789.1269.2068.7650.8050.08
MentalLongformer96.5596.5377.0076.3281.1281.0589.9089.8968.7668.4449.2048.74
  • MentalXLNet and MentalLongformer outperform most baselines on classification tasks, especially for longer sequences like CLPsych15.
  • MentalLongformer shows strong performance on long texts and often matches or exceeds Longformer when domain-specific pretraining is applied.
  • MentalRoBERTa performs best on shorter, 512-token datasets (Dreaddit), while MentalLongformer is advantageous for longer inputs.
  • For long-range analysis, increasing sequence length generally improves recall and F1 in many cases, though fluctuations occur.
  • Domain-specific continued pretraining yields consistent gains over non-domain-specific Longformer/XLNet baselines in several datasets.

より良い研究を、今すぐ始めましょう

論文設計から論文執筆まで、研究時間を劇的に削減しましょう。

クレジットカード登録不要

このレビューはAIが作成し、人間の編集者が確認しました。