Explainable Job Category Detection Using DistilBERT: A Three-Class Transformer Model for Classifying Real, Fake, and Invalid Online Job Offers
This study presents an explainable, lightweight DistilBERT-based system that improves online job offer screening by classifying postings into Real, Fake, and Invalid categories with 98.74% accuracy, addressing the limitations of traditional binary models through a balanced three-class approach and SHAP-based interpretability.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The digital landscape of job hunting has transformed from a local newspaper classified section into a global, instantaneous marketplace. Platforms like LinkedIn and Indeed allow employers to reach millions of candidates instantly, but this same openness has created a haven for a specific type of cybercrime: online recruitment fraud. Scammers craft deceptive advertisements designed to steal money, harvest personal data for identity theft, or lure victims into illegal schemes. For years, researchers have tried to build computer systems that can spot these fake postings. Early attempts relied on simple rules and basic statistical patterns, which often failed when scammers learned to mimic the language of legitimate companies. More recently, scientists have turned to advanced artificial intelligence models capable of understanding the context and nuance of human language, similar to how a human reader senses when a story feels wrong. However, these powerful models are often too slow for real-time use, and most existing systems are limited to a simple yes-or-no decision: is this job real or fake? This binary approach struggles with the messy reality of the internet, where many postings are not malicious scams but are simply broken, incomplete, or nonsensical.
A team of researchers at the University of Port Harcourt in Nigeria has developed a new approach that addresses these limitations. They created a system that does not just ask if a job offer is real or fake, but adds a third category: invalid. This distinction is crucial because it allows the system to separate dangerous scams from harmless errors, such as a posting that is missing key details or contains gibberish. To build this tool, the researchers combined three different collections of job advertisements. One set contained thousands of verified real and fake postings from previous studies, while another provided examples of text that was clearly broken or malformed. The resulting dataset included over 34,000 records, but the numbers were heavily skewed, with real job offers vastly outnumbering the fake and invalid ones. To teach the computer effectively, the team did not simply copy and paste examples to balance the numbers, a common technique that can create artificial data. Instead, they carefully reduced the number of real examples and created new, varied examples of fake and invalid text by rearranging words and adding noise, ensuring the computer learned from genuine linguistic patterns rather than synthetic duplicates.
The core of their system is a streamlined version of a large language model called DistilBERT. Think of this model as a highly efficient student who has read millions of books and learned the rules of language, but is smaller and faster than its larger counterparts. The researchers trained this model on their balanced dataset of 9,000 job postings, teaching it to recognize the subtle differences between a legitimate offer, a scam, and a broken post. The training process took less than ten minutes on a standard computer, after which the model was tested on a completely new set of 1,350 job offers it had never seen before. The results were remarkably precise. The system correctly identified the category of the job offer in nearly 99 percent of cases. It was particularly good at spotting invalid posts, getting them right every single time in the test group, and it successfully identified fake scams with a success rate of 98 percent. This level of accuracy is significant because it outperforms previous systems that were limited to binary choices, even though this new system had to solve a more difficult three-way classification problem.
Beyond just making a prediction, the researchers wanted to ensure the system was transparent. They integrated a feature that explains why the computer made its decision. When the system flags a job as a scam, it highlights the specific words in the text that triggered the alarm, such as urgent requests for bank details or promises of unrealistic salaries. If a post is marked as invalid, the system points out the broken sentences or random characters that make it nonsensical. This capability builds trust, allowing a human user to see the evidence behind the classification rather than just receiving a black-box verdict. The team also built a working web application that demonstrates this technology in real time. When a user pastes a job description into the interface, the system analyzes the text and returns a classification along with a confidence score in just one to three seconds. This speed proves that sophisticated artificial intelligence can be deployed in practical, everyday tools without requiring massive computing power.
The study also compared their streamlined model against two other types of artificial intelligence architectures, one that processes text sequentially and another that is even simpler. While these alternative models performed well, the streamlined language model remained the most accurate, correctly classifying the job offers with the highest success rate. The researchers acknowledge that their system is not perfect and that real-world fraud tactics are constantly evolving. They note that their training data was limited to English-language postings and that the test set was balanced artificially, which might not reflect the natural rarity of scams in the wild. However, the work demonstrates that a three-class framework is not only possible but highly effective. By distinguishing between real, fake, and invalid content, and by providing clear reasons for its decisions, this system offers a more reliable and user-friendly way to protect job seekers in an increasingly complex digital environment.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.