Leakage-aware calibrated decision-level fusion for mental-health text classification

Wadii Boulila, Giuseppe Varone, Bilel Benjdira, Maha DrissarXiv 2026

TL;DR

Researchers have developed a "leakage-aware" framework for ensembling transformer models to classify mental health text from social media. By accounting for hidden data dependencies (lineage) and implementing a two-stage calibration process, they achieved a macro-F1 of 0.844 while ensuring the model's confidence scores actually reflect its true accuracy.

What Problem Does This Paper Address?

Classifying mental health conditions (like depression or anxiety) from social media posts is notoriously difficult. Most researchers rely on "proxy labels"—assuming a post in r/depression is a ground-truth label for depression. This introduces three major hurdles:

  1. Noisy Labels: A user might post in a subreddit without a clinical diagnosis.
  2. Linguistic Overlap: Different conditions often share similar "affective" language (e.g., "I feel hopeless").
  3. Data Leakage: This is the big one. Social media datasets often contain duplicates or "augmented" versions of the same post. If an original post is in the training set and its slightly tweaked version is in the test set, the model "cheats" by memorizing rather than generalizing.

The authors argue that standard ensembling (fusion) isn't enough; you need a pipeline that is conscious of data lineage, model calibration, and why specific models actually complement each other.

Methods

The authors proposed a three-component pipeline:

  1. Split-Integrity Audit: Beyond just looking for exact duplicates, they used MinHash-LSH to find near-duplicates and a lineage audit to track augmented data. They ensured that an original post and all its derived versions (synonym swaps, etc.) stayed within the same partition (training or testing).
  2. Complementarity Index (CI): Instead of just picking the "best" models, they used the Jaccard distance between the sets of examples each model got right. High CI means two models are "correct" on different subsets of data, making them ideal candidates for fusion.
  3. Two-Stage Calibration: They applied Temperature Scaling to individual models first, then performed a second round of recalibration on the final fused output. This ensures the probability scores (e.g., "90% certain this is anxiety") are statistically reliable.

The final ensemble used a "triad" of three models: MentalBERT, MentalRoBERTa, and RoBERTa-base, fused via uniform probability averaging.

Datasets

The study utilized a massive corpus of 262,276 Reddit entries mapped to four categories:

  • Anxiety
  • Depression
  • Schizophrenia
  • Suicidal Ideation

The data was sourced from five public collections (including Dreaddit and RMHD). Crucially, the authors identified that in a standard random split, 50.2% of test records shared a lineage with the training set. To fix this, they created a lineage-disjoint split, which is much harder for the models but provides a true measure of generalization. They also tested "zero-shot" transfer on an external dataset called SDCNL.

Key Insights and Ideas

  • Lexical filtering is insufficient: Simply removing near-duplicates only caught about 29% of the problematic data. Tracking the "lineage" of augmented posts revealed that half the test set was actually compromised.
  • Calibration isn't transitive: Just because you average the outputs of three perfectly calibrated models doesn't mean the resulting ensemble is calibrated. The authors found that fused models are often systematically under-confident in-domain and over-confident when transferred to new datasets.
  • Explainability as a Diagnostic: Using Integrated Gradients (IG), they found that in "fusion-rescued" cases (where the ensemble was right but individual members were wrong), the models were actually looking at different words. When they intentionally removed the words where the models disagreed, the "rescue" rate plummeted by 58%. This proves the ensemble's strength comes from diverse linguistic "evidence."

Key Results

  • Performance: The diverse triad achieved a macro-F1 of 0.844 and a Matthews Correlation Coefficient (MCC) of 0.779.
  • Calibration: The post-fusion recalibration reduced the Expected Calibration Error (ECE) to 0.0033, a nearly 50% improvement over the uncalibrated ensemble.
  • Fusion Gain: The ensemble improved macro-F1 by 0.021 over the single best individual encoder. While that sounds small, in the context of high-stakes mental health screening, these marginal gains on "confusable" classes (like depression vs. suicidal ideation) are significant.
  • Schizophrenia: Despite being a tiny class (only 75 test posts), it contributed 71% of the overall fusion gain, highlighting how ensembling helps with rare, difficult categories.

Limitations and Future Work

  • Small-Class Noise: The schizophrenia results, while promising, are based on a very small sample size, making the F1 intervals quite wide (±0.08).
  • Metadata Gaps: The audit couldn't account for "leakage" via shared authors or timestamps because that metadata wasn't available in the merged corpus.
  • Proxy Labels: The study still relies on subreddit-based labels. The authors acknowledge that future work must move toward evaluation on clinically validated interview texts.
  • CI Scope: The Complementarity Index was a great predictor for depression and suicidal ideation but was uninformative for anxiety, suggesting that "complementarity" might be task-dependent.

Summary updated

Abstract

Decision-level fusion benefits from complementary errors, calibrated probabilities, and leakage-aware evaluation. We evaluated a heterogeneous transformer fusion framework on 262,276 proxy-labeled Reddit records covering anxiety, depression, schizophrenia, and suicidal ideation. In a stratified random split, MinHash-LSH identified 29.1% of test records as lexical near-duplicates of training data. Augmentation-lineage auditing found 50.2% lineage overlap with training, including 30.0% of records retained after lexical filtering. We therefore used lineage-disjoint partitions. Twelve encoders, comprising three seeds each of Bio-ClinicalBERT, MentalBERT, MentalRoBERTa, and RoBERTa-base, underwent cross-fitted validation for calibration and ensemble selection. A class-specific Complementarity Index (CI), defined as the Jaccard distance between members' correctly classified validation sets, was assessed against independent fusion gain. CI correlated with gain for depression (r=0.50) and suicidal ideation (r=0.68), but not anxiety; results for schizophrenia were mixed. The selected MentalBERT, MentalRoBERTa, and RoBERTa-base triad achieved macro-F1 0.844 [0.823, 0.863], MCC 0.779, and ECE 0.0033 after post-fusion recalibration, improving macro-F1 by 0.021 [0.007, 0.037] over the validation-selected best single encoder. Integrated-Gradients attribution diversity was 2.3 times greater in fusion-rescued cases. Removing divergence-driving words destroyed 58% of rescues, versus 12% under random removal. These findings show that lineage auditing detects dependencies missed by lexical filtering, while class-specific complementarity and post-fusion calibration reveal ensemble behavior obscured by aggregate accuracy.
BibTeX
@misc{boulila2026leakage,
  author = {Wadii Boulila and Giuseppe Varone and Bilel Benjdira and Maha Driss},
  title = {{Leakage-aware calibrated decision-level fusion for mental-health text classification}},
  year = {2026},
  eprint = {2611.19360},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.19360},
}
Figure