Fine Tuning a Language Model to Flag Recruiter Scam Messages
Last updated: November 29, 2026
Quick Overview
Fake recruiters send members messages with job scams (asking for fees or personal data). Design an NLP approach using a fine-tuned language model to classify messages as scams, and explain how you would evaluate and deploy it.
0
0
0 solved
Fake recruiters send members messages with job scams (asking for fees or personal data). Design an NLP approach using a fine-tuned language model to classify messages as scams, and explain how you would evaluate and deploy it.
LinkedIn Trust and Safety fights fake accounts and job scams, and message classifiers must work across languages with very low false positives. The interviewer checks for practical choices: model size versus latency, label strategy, imbalance handling, and adversarial drift.
What the Interviewer Expects
- Defines labels and data sources including member reports
- Chooses a pretrained encoder and justifies size for latency
- Combines text with account and behavior signals
- Handles class imbalance and threshold selection
- Evaluates with precision at high thresholds and per-language slices
- Plans for adversarial drift and retraining
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- How would you use a large LLM if it is too slow to run on every message?
- How do you handle scams that move the conversation to another app?
- How do you collect labels in languages with few reports?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
Scope: first messages and InMails from accounts claiming to recruit. Action on positive: warn the recipient, hide links, or send for review. False positives hurt real recruiters, so we need high preci...
Approach
Fine-tune a multilingual pretrained encoder on labeled messages, combine its score with account features in a lightweight final model, and use a large LLM offline for labeling and hard cases....