{"slug": "crawling-individual-hiring-posts-on-x-linkedin-with-bert-instead-of-an-llm", "title": "Crawling individual hiring posts on X/LinkedIn with BERT instead of an LLM", "summary": "A BERT-based classifier named good_job, published on Hugging Face under the account SpiderHomie, identifies job opportunities in social media posts by sorting them into four classes: ML Job, Job, Other, and Not Job. Evaluated on a held-out test set of 823 posts split by author to prevent account leakage, good_job reached 89.91% accuracy and a 0.874 macro-F1, with recall of 98.12% on Not Job, 89.36% on ML Job, 87.57% on Job, and 84.71% on Other. The model ran CPU inference at roughly 39 posts per second with 6 threads and batch size 32, measured on forward-pass time without quantization.", "body_md": "`good_job` is a BERT-based classifier that identifies job opportunities from social media posts.\n\nThe project is built around a simple problem: social media contains a lot of useful opportunities, but finding them programmatically is difficult. Posts are often repeated, written in different formats, published by job boards, or mixed with completely unrelated content.\n\nBut training a classifier on raw social media data comes with its own problems. Before working on the model, I needed to make sure the dataset was useful, sufficiently varied, and split in a way that wouldn't give misleading evaluation results.\n\nThis project is divided into two main parts: preparing the dataset and training the classifier.\n\nLink to Hugging Face: [https://huggingface.co/SpiderHomie/goodjob](https://huggingface.co/SpiderHomie/goodjob)\n\nThe model predicts the type of a post using four classes.\n\n| Label | Meaning | \n|---|---|\n| `ML Job` | Machine learning and AI-related jobs, including engineering and research roles | \n| `Job` | Software-related paid work, including engineering jobs, freelance work, and software services | \n| `Other` | Paid work that isn't directly software-related, such as data annotation, RLHF, and evaluator work | \n| `Not Job` | Everything else | \n\nThe model uses a BERT encoder with a single four-class classification head.\n\nIt also derives a binary `is_job` prediction from the four-class output, where anything other than `Not Job` is considered a potential opportunity.\n\n```\n             Raw social media posts\n                       |\n                       v\n              Dataset preparation\n                       |\n                       v\n                Text cleaning\n                       |\n                       v\n             Similarity-based cleanup\n                       |\n                       v\n             Author-grouped splitting\n                       |\n                       v\n              Training dataset\n                       |\n                       v\n                BERT encoder\n                       |\n                       v\n           Four-class classification\n                       |\n             +---------+---------+\n             |         |         |\n             v         v         v\n           ML Job     Job      Other\n                       |\n                       v\n                    Not Job\n```\n\nThe dataset preparation stage focuses on removing redundant content, preserving useful examples, preventing author leakage, and handling class imbalance.\n\nThe classifier stage focuses on learning the relationship between post content and opportunity categories.\n\nThe model was evaluated on a held-out test set of 823 posts, with data splits grouped by author to prevent the same account from appearing in multiple splits.\n\n| Metric | Test performance | \n|---|---|\n| Accuracy | 89.91% | \n| Macro-F1 | 0.874 | \n| Test samples | 823 | \n\nThe model achieved 98.12% recall on the `Not Job` class, while maintaining 89.36% recall on `ML Job`, 87.57% on `Job`, and 84.71% on `Other`.\n\nCPU inference was benchmarked at approximately 39 posts/second with 6 threads and batch size 32, measuring model forward-pass time without quantization.\n\nThe implementation and reasoning are explained in two separate documents.\n\nExplains how I turn raw social media posts into a usable training dataset.\n\nIt covers text normalization, why I chose MiniLM and TF-IDF for similarity detection, why I use a graph instead of deleting posts based on a simple threshold, how I decide which posts to keep, and why the dataset is split by author.\n\nIt also explains how I handle class imbalance without artificially changing the validation and test distributions.\n\nExplains the model architecture and how it is trained.\n\nIt covers the BERT encoder, the four-class classification head, training objectives, imbalance handling, optimization, evaluation, and inference.\n\nI didn't want to build a model that performs well only because it has seen the same announcements or authors during training.\n\nA large dataset doesn't necessarily mean a diverse dataset. Repeated posts can make the training set look bigger without providing much additional information.\n\nThat's why dataset preparation is an important part of this project, rather than just a preprocessing step.\n\nThe goal is to train a classifier that learns from useful and varied examples and can make predictions on posts it hasn't seen before.", "url": "https://wpnews.pro/news/crawling-individual-hiring-posts-on-x-linkedin-with-bert-instead-of-an-llm", "canonical_source": "https://github.com/samyak112/Good-Job", "published_at": "2026-11-30 07:28:31+00:00", "updated_at": "2026-11-30 07:45:01.158812+00:00", "lang": "en", "topics": ["machine-learning", "natural-language-processing", "ai-research"], "entities": ["good_job", "BERT", "Hugging Face", "SpiderHomie", "MiniLM", "TF-IDF"], "also_reported_by": [], "takeaway": "A BERT encoder with a four-class head reached 89.91% accuracy and 0.874 macro-F1 on 823 author-grouped test posts while running about 39 posts/second on CPU with 6 threads and batch size 32, suggesting a small classifier can screen social media job posts without an LLM.", "recommendation": {"advice": "Split social media datasets by author, not at random, before evaluating a classifier; this model's author-grouped 823-post test set yielded 89.91% accuracy and 0.874 macro-F1.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/crawling-individual-hiring-posts-on-x-linkedin-with-bert-instead-of-an-llm", "markdown": "https://wpnews.pro/news/crawling-individual-hiring-posts-on-x-linkedin-with-bert-instead-of-an-llm.md", "text": "https://wpnews.pro/news/crawling-individual-hiring-posts-on-x-linkedin-with-bert-instead-of-an-llm.txt", "jsonld": "https://wpnews.pro/news/crawling-individual-hiring-posts-on-x-linkedin-with-bert-instead-of-an-llm.jsonld"}}