Is Mental-Health Pre-Training Measuring Distress or Remembering Reddit?

Language models adapted to mental-health text are usually built by continuing pre-training on posts scraped from forums such as r/depression and r/SuicideWatch. They are then evaluated on classification benchmarks, many of which are also built from posts in those same forums. This proposal asks how much of the reported benefit of such domain pre-training comes from the model having already seen near-copies of the evaluation posts: reposts, lightly edited copypastas, crisis-hotline boilerplate, and the same author writing the same story twice. The alternative is that the model has learned language that tracks psychological distress. We will separate the two by building text fingerprints in the spirit of perceptual hashing. A perceptual hash is a compact code that stays nearly the same when content is changed in harmless ways, the way an image hash survives JPEG compression. Ours is designed to survive harmless textual edits. We use these fingerprints to strip benchmark overlap from the pre-training corpus and then re-run the pre-training.

The validity test comes from psychological assessment rather than forum labels. The question is whether the model's advantage holds up when its output is compared against survey-validated measures of a person's mental state. If domain pre-training mostly memorizes forum text, its gains should shrink on decontaminated Reddit benchmarks and be absent on survey ground truth. If it learns genuine markers of distress, the gains should survive both checks. Either answer changes how the field should read existing mental-health model results.

Core Claim

We hypothesize that part of the gap between mental-health-adapted models and their general-domain parents on Reddit benchmarks is produced by near-duplicate and same-author overlap between the pre-training corpus and the test sets. The same holds for overlap between benchmark train and test splits. Removing this overlap should shrink the in-domain gap. A model pre-trained on the cleaned corpus should lose nothing, and possibly gain, on an out-of-domain test where labels come from validated psychological surveys.

The new element is not a hashing algorithm. It is an audit-and-retrain study of the mental-health pre-training pipeline, measured against psychometric ground truth. Image-side work has shown that this kind of audit can overturn benchmark conclusions. Our one methodological addition is a fingerprint that is sensitive to the content the measured psychological construct depends on. Whether that addition matters is something the experiments test rather than assume.

Why This Gap Is Real

Three findings in prior work motivate the study. MentalBERT continues masked-language pre-training of BERT and RoBERTa on 13.67 million sentences from mental-health subreddits. It reports gains over general and clinical models on eight benchmarks, several of which (Dreaddit, UMD, SWMH, Depression_Reddit) are drawn from overlapping Reddit communities. The paper does not report checking for overlap between its corpus and those benchmarks. Chinese MentalBERT does the same on 3.36 million Weibo posts with masking guided by a depression lexicon, again without near-duplicate filtering.

Improving Mental Health Classifier Generalization with Pre-diagnosis Data shows that classifiers trained on self-reported diagnoses latch onto words like "medication" and "therapist." Those classifiers degrade on SURVEY, a set of 210 students whose labels come from private psychological surveys. That paper establishes that forum-label accuracy and survey validity can diverge. It targets keyword shortcuts, however, not memorized overlap.

The image analogue is Investigating the Quality of DermaMNIST and Fitzpatrick17k. It used embedding-similarity auditing to find that about 13.47% of unique lesions in DermaMNIST cross partitions, and showed that cleaned splits correct inflated results. We borrow the audit logic from that paper and the fingerprinting idea from perceptual hashing work such as Characterizing the Use of Images by State-Sponsored Troll Accounts on Twitter, which clustered 1.8 million altered meme images by perceptual hash.

The psychological-assessment literature constrains what "the same post" should mean. Discovering habits of effective online support group chatrooms found that coping self-efficacy added 11.9% explained variance in stress reduction while sentiment added only 0.2%. Specific construct content, including who acts and whether they believe they can cope, carries the signal. A fingerprint that treats "I can't get through this" and "I can get through this" as duplicates would therefore be wrong for this domain. This is the semantic-granularity problem that image perceptual hashing also faces with fine lesion detail.

Research Program

The first component is a fingerprinting toolkit with four settings of increasing tolerance. The first is exact match after normalization, which strips usernames, URLs, case, and punctuation. The second is a standard shingle-based locality-sensitive hash, a code under which texts sharing most short word sequences collide; this is the textual counterpart of DCT-based perceptual hashing. The third is sentence-embedding similarity, mirroring the image-embedding audit used for DermaMNIST. The fourth is our construct-aware variant: the shingle hash with an appended short code recording negation scope, grammatical person of the subject, and hits from a distress and efficacy lexicon. Two texts count as near-duplicates under this variant only if both the hash and the construct code agree. We will calibrate every setting on about 2,000 human-annotated post pairs. Annotators will judge whether each pair is "the same post" or "meaningfully different in what it says about the writer's state," and we will report precision and recall per setting.

The second component is an audit. We will measure within-benchmark train/test near-duplicate and same-author rates for Dreaddit, UMD, SWMH, T-SID, and Depression_Reddit. We will also measure cross-benchmark overlap, which matters because SWMH and T-SID reappear inside MentraBench. Finally, we will measure overlap between a re-collected corpus from the MentalBERT source subreddits and every benchmark test set. The output is a table of contamination rates per benchmark and per fingerprint setting, written up in prose, together with released cleaned splits.

The third component is controlled re-pre-training. Starting from RoBERTa-base, we will continue pre-training under one fixed token budget, step count, and masking objective in five conditions. The first uses the raw corpus. The second uses exact deduplication only. The third removes near-duplicates of any benchmark test item. The fourth additionally removes all posts by authors who appear in any test set. The fifth is a size-matched random-removal control that deletes the same number of posts as the fourth condition but at random. Comparing the fourth and fifth conditions isolates what the removed overlap contributed from the effect of having less data. Each model is fine-tuned identically on original and cleaned benchmark splits.

Baselines

The naive reference point is general-domain RoBERTa-base fine-tuned directly on each benchmark with no domain pre-training. The Dreaddit paper's own fine-tuned BERT-base reaches F1 80.65 and its logistic regression on domain Word2Vec reaches 79.80 (Dreaddit). We will reproduce the general baseline on both original and cleaned Dreaddit splits so the comparison is like for like.

The strongest existing method is MentalRoBERTa from MentalBERT. It is the canonical published domain-adapted model, and the paper reports it as most effective for stress and depression detection. We found no reported numeric result on Lacuna for MentalRoBERTa on Dreaddit, so we will re-run the public checkpoint ourselves under our fine-tuning protocol: same seeds, same hyperparameter search budget of 20 trials per task, same splits. Our raw-corpus condition is a reproduction of MentalRoBERTa's recipe, so we can check that it lands near the public checkpoint before drawing conclusions.

For survey validity, the reference is Improving Mental Health Classifier Generalization with Pre-diagnosis Data. It reports that a TF-IDF model trained on pre-diagnosis data reaches F1 43.40 on SURVEY, against 41.18 when trained on all data. We will rebuild this pre-diagnosis filter and cross it with decontamination in a two-by-two design.

The key ablation is the size-matched random-removal control described above. A secondary ablation swaps the construct-aware fingerprint for the plain shingle hash and for embedding similarity, holding everything else fixed. We will count decontamination as having changed the conclusion if two things hold together. First, the domain-adapted model's advantage over general RoBERTa on the original splits must fall by at least half on cleaned splits, beyond seed variance across five seeds. Second, the decontaminated model must match or beat the raw-corpus model on SURVEY.

Why not just…?

Why not just run MinHash or embedding deduplication and skip the construct-aware fingerprint? This is a real threat, and we treat it as a hypothesis rather than dismiss it. For removing contamination from a pre-training corpus, over-removal is cheap, so a plain shingle hash may do as well as anything. The construct-aware code matters mainly for benchmark auditing. There, flagging a negation-flipped or person-flipped pair as "leakage" would misstate the contamination rate, and dropping it from training would discard exactly the contrastive examples that matter, as the chatroom efficacy findings suggest. The annotated pair set and the fingerprint ablation settle this. If plain hashing matches our variant on precision against human judgments and on downstream results, we report that, and the contribution becomes the audit and retraining study alone.

Why not just use the pre-diagnosis filtering of Liu et al.? That method removes post-diagnosis keyword shortcuts within a user's timeline. It does not stop a test post, or its repost, from appearing in the pre-training corpus. The two failure modes are distinct and could add together, which is why the design crosses them rather than choosing one.

Why not just evaluate on a temporal or held-out-subreddit split? Time splits do not remove copypastas and crisis boilerplate that recur across years. Subreddit splits change the task distribution and confound contamination with domain shift. We include a temporal split as an extra evaluation and report how much near-duplicate overlap survives it.

Why not just use a large instruction-tuned model instead of an encoder? MentraSuite shows that post-trained LLMs do well on MentraBench. Their training data includes benchmarks we expect to overlap, though, so they inherit the same unmeasured risk. Our cleaned splits can be applied to them as a secondary evaluation. The controlled pre-training question, however, is only answerable at a scale where re-pre-training is affordable.

Decisive Checks

The study rests on three outcomes. The first is the measured contamination rate between the re-collected subreddit corpus and the Reddit benchmark test sets. If it is negligible under every fingerprint setting, the central hypothesis fails early and cheaply, and we report that existing results stand. The second is the in-domain gap on cleaned splits between the fourth condition and the size-matched random-removal control: a shrinking gap means the overlap, not the data volume, was producing the gain. The third is SURVEY F1 across the two-by-two decontamination and pre-diagnosis grid. SURVEY has only 210 users, so we will report bootstrap intervals and treat it as a direction check rather than a leaderboard. If cleaned pre-training lowers Reddit scores without lowering survey validity, the field's benchmarks are overstating what mental-health pre-training contributes to psychological assessment. If survey validity rises, decontamination becomes a recommended default for building these models.