← Back to research
In preparation · 2026

The CPFE Audit

Cross-platform generalisation failure in mental-health NLP — a five-axis Cross-Platform Fairness Evaluation protocol.

Rajveer Singh Pall, Sameer Yadav · 2026

ProblemMental-health text classifiers that test well on one social platform quietly fail when used on another — and one aggregate accuracy score hides it.
ApproachA five-axis audit trains classifiers on one platform and tests them on another, watching accuracy, calibration, fairness, and reasoning all at once.
ResultMoving platforms alone drops accuracy 30-39% and makes the models attend to almost completely different words.
SignificanceA model that passes its own benchmark can still fail the moment real users behave differently than its training data.

The Discovery in One Figure

Same platform tested
Stable

Accuracy, calibration, and word-level reasoning all hold up.

Cross-platform tested
Collapses

AUC falls 30-39%, calibration error rises 9×, and attribution overlap drops to ≈0.10 — different words entirely.

Same model, same task — only the platform changed

The Paper in Five Minutes

Software that scans social-media posts for signs of depression or anxiety is usually trained and tested on a single platform, where it looks near-perfect. We took such models — AUC above 0.98 — and simply moved them to Reddit and Twitter. Accuracy collapsed by a third. Their confidence scores became badly dishonest. Fairness metrics failed for exactly the classes that matter clinically. And the words the models relied on changed almost completely from platform to platform — the model was never reading what its developers thought it was reading.

The Research Question

Mental-health text classifiers that look strong on one social platform fail systematically when deployed on another — and the failure is hidden: accuracy, calibration, and equity all degrade together, but a single aggregate metric reports none of it. What survives when the same model meets a new platform's language?

How It Works

Five axes audit a family of four transformers (BERT, RoBERTa, Emotion-DistilRoBERTa, GoEmotions) trained on one platform and tested across Reddit and Twitter: discrimination (macro-OvR AUC with DeLong CIs), calibration (ECE), significance (Bonferroni-corrected bootstrap), equity (symmetric disparate impact — the novel axis), and attribution stability (gradient-saliency Jaccard@K).

01
Train in-platformtransformer classifiers, 35,556 posts, five seeds
02
Audit on five axesdiscrimination · calibration · significance · equity · attribution
03
Cross platformssame models, Reddit and Twitter language
04
Attempt repairtemperature scaling fixes calibration only; fine-tuning recovers more

The Results

30–39%AUC degradation
ECE increase
<0.17Minority disparate impact
≈0.10Attribution overlap (Jaccard)

Under platform shift, AUC falls 30–39%, calibration error rises , minority-class disparate impact drops below 0.17, and token attribution overlap collapses to ≈0.10 — the models attend to entirely different words. Temperature scaling repairs calibration but not discrimination; target-domain fine-tuning recovers far more.

Calibration error (ECE) as the platform changes

Home platform0.056–0.060
Reddit0.196–0.229
Twitter0.499–0.542

Bars drawn at the lower bound of each reported range — the conservative reading.

Forest plot of cross-platform AUC with DeLong confidence intervals
Forest plot of cross-platform AUC with DeLong confidence intervals across models and platforms.
Degradation by platform
Degradation by platform: what a near-perfect in-platform model loses on Reddit and Twitter.
Calibration curves in-domain versus cross-platform
Calibration curves in-domain versus cross-platform — confidence becomes dishonest under shift.

Labels are clinical proxies from emotion mappings, not diagnoses.

What This Changes

Fairness itself is shown to be a deployment-shift casualty: every trustworthiness axis can fail while the benchmark number stays excellent. The audit makes a failure that aggregate accuracy hides both visible and measurable.

↗ View on GitHub ↗ Full research page

Citation

Rajveer Singh Pall, Sameer Yadav. "Cross-Platform Generalisation Failure in Mental Health NLP: A Five-Axis Fairness Audit of Transformer Models on Social Media." In preparation, 2026.

Related Research