JobGuard models
Models behind the JobGuard web app (Streamlit), a Deep Learning course project at Vizja University. Code and full method: github.com/BerkeArdaTurk21/jobguard.
Files
| File | What it is |
|---|---|
distilbert/ |
distilbert-base-uncased fine-tuned for two classes (real, fake) |
baseline.joblib |
scikit-learn pipeline: TF-IDF (1-2 grams) + logistic regression |
thresholds.json |
Low-risk and high-risk thresholds for the averaged score |
The app's score is the average of the two models' fake-probabilities. Below the low threshold the posting is "low risk", from the high threshold on it is "high risk", in between "not sure".
Input format
Fields joined in this order, each with a marker; an empty field is written as [EMPTY]:
[TITLE] ... [COMPANY] ... [REQUIREMENTS] ... [BENEFITS] ... [DESCRIPTION] ....
URLs, e-mail addresses and phone numbers are replaced by [URL], [EMAIL], [PHONE].
Use jobguard.data.build_text from the repository to build it the same way.
Training data
Employment Scam Aegean Dataset (EMSCAD): 17,880 English job postings, 866 fake (CC0, Laboratory of Information & Communication Systems Security, University of the Aegean). Exact duplicates were removed and near-duplicates plus postings of the same company were kept in one split, so the split is 70/15/15 by group (10,965 / 2,344 / 2,345 postings).
Training
DistilBERT: 3 epochs, batch 16, AdamW (lr 2e-5, weight decay 0.01), 10% linear warm-up then linear decay, weighted cross-entropy (fake class weight about 11), max 512 tokens, bfloat16, seed 42; the epoch with the best validation PR-AUC was kept. About 8 minutes on an RTX 4060.
Validation results (2,344 postings, 103 fake)
| Scorer | PR-AUC |
|---|---|
| TF-IDF + logistic regression | 0.676 |
| DistilBERT | 0.713 |
| Average (used by the app) | 0.744 |
With the thresholds: 64% of fakes land in "high risk" (precision 0.80), 15 of 103 fakes land in "low risk", 13% of all postings are "not sure".
Test results (2,345 postings, 104 fake; evaluated once)
| Scorer | PR-AUC |
|---|---|
| TF-IDF + logistic regression | 0.595 |
| DistilBERT | 0.604 |
| Average (used by the app) | 0.630 |
With the validation thresholds: 84.6% of fakes above the low-risk threshold, precision 0.75 in the high-risk zone (49% of fakes there), 13.5% of postings "not sure".
cv_index/ holds the CV matching pool: 4,689 validation and test postings with their
all-MiniLM-L6-v2 embeddings and risk scores.
Limitations
- Fake postings with a filled, believable company profile are the hardest case: validation PR-AUC 0.17 on those, 0.90 when the company profile is empty.
- Trained on English postings from 2012-2014; newer scam styles may look different.
- DistilBERT reads the first 512 tokens only; the TF-IDF model reads the whole posting.
- A risk estimate for a person to check, not an automatic decision.
Model tree for 1Mood/jobguard-models
Base model
distilbert/distilbert-base-uncased