Downloads · 30 days
14
20% of all-time downloads
mborquez/albert-base-v2-jabd-bias-ner
albert-base-v2-jabd-bias-ner is a token classification model from mborquez. Use it when you need labels on individual words, such as names. The card lists the license as apache-2.0.
This model is a fine-tuned version of albert-base-v2 on the Job Ads Bias Dataset (JABD) for token-level bias detection in job advertisements, framed as a Named Entity Recognition (NER) task using the BIO tagging scheme.
Downloads · 30 days
14
20% of all-time downloads
All-time downloads
70
Public
Parameters
11.1M
45.2 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors44.5 MB · 94%
From the Hugging Face model README
This model is a fine-tuned version of albert-base-v2 on the Job Ads Bias Dataset (JABD) for token-level bias detection in job advertisements, framed as a Named Entity Recognition (NER) task using the BIO tagging scheme.
It is the best-performing model reported in the accompanying paper, "Bias Detection in Job Advertisement using Natural Language Processing".
The model identifies and classifies 12 types of linguistic bias at the token/span level in job advertisements, covering both explicit and implicit biases across six sociodemographic groups: gender, religion, disability, ethnicity, age, and nationality.
albert-base-v2| Category | Type | Group |
|---|---|---|
| Generic She | Explicit | Gender |
| Generic He | Explicit | Gender |
| Explicit Marking of Sex | Explicit | Gender |
| Masculine Coded | Implicit | Gender |
| Feminine Coded | Implicit | Gender |
| Religion Related | Explicit | Religion |
| Disability Related | Explicit | Disability |
| Nationality Related | Explicit | Ethnicity |
| Ethnic Related | Explicit | Ethnicity |
| Age Related | Explicit | Age |
| Old Coded | Implicit | Age |
| Young Coded | Implicit | Age |
Micro-averaged token-level metrics on the JABD test split (averaged across three random seeds):
| Metric | Score |
|---|---|
| F1 | 59.27 ± 0.86 |
| Precision | 65.29 ± 1.79 |
| Recall | 54.27 ± 0.33 |
Performance varies substantially by category. Explicit biases are detected reliably; implicit (coded) biases remain challenging.
| Label | Type | F1 | Precision | Recall |
|---|---|---|---|---|
| Generic She | Explicit | 88.57 | 85.57 | 91.92 |
| Explicit Marking of Sex | Explicit | 81.40 | 78.79 | 84.44 |
| Disability | Explicit | 77.70 | 71.78 | 85.13 |
| Religion | Explicit | 77.49 | 87.53 | 69.74 |
| Generic He | Explicit | 77.28 | 69.54 | 87.56 |
| Nationality Related | Explicit | 72.65 | 74.20 | 71.26 |
| Ethnic Related | Explicit | 72.10 | 64.61 | 82.39 |
| Feminine Coded | Implicit | 55.68 | 47.62 | 67.34 |
| Masculine Coded | Implicit | 51.69 | 41.34 | 68.96 |
| Age Related | Explicit | 41.01 | 29.06 | 72.08 |
| Old Coded | Implicit | 10.15 | 7.15 | 27.89 |
| Young Coded | Implicit | 0.53 | 0.28 | 4.94 |
Note: This checkpoint corresponds to a single random seed from the experiments reported in the paper.
from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline
model_name = "your-username/albert-base-v2-jabd-bias-ner"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForTokenClassification.from_pretrained(model_name)
ner = pipeline(
"token-classification",
model=model,
tokenizer=tokenizer,
aggregation_strategy="simple"
)
text = "We are looking for a young and energetic salesman to join our team."
predictions = ner(text)
for pred in predictions:
print(f"{pred['word']:<20} {pred['entity_group']:<25} {pred['score']:.3f}")
The model was trained on the Job Ads Bias Dataset (JABD), which contains 14,960 sentences with token-level BIO annotations across 12 bias categories. JABD was built on top of the EMSCAD corpus (Vidros et al., 2017) and annotated by 192 trained annotators recruited via Prolific, following a custom taxonomy and a rigorous quality-assurance process.
| Split | Job IDs | Phrases |
|---|---|---|
| Train | 7,195 (80%) | 11,991 (80.15%) |
| Validation | 899 (10%) | 1,517 (10.14%) |
| Test | 899 (10%) | 1,452 (9.71%) |
Splits were stratified by job_id to prevent cross-advertisement leakage.
This model addresses a sensitive topic with potential for misuse. We highlight the following:
For a complete discussion, see Section 5.4 of the accompanying paper.
If you use this model, please cite:
@article{citation_2025,
title={Bias Detection in Job Advertisement using Natural Language Processing},
author={Private for now},
journal={Journal name},
year={2025}
}
The model is built on ALBERT (Lan et al., 2020) and uses the EMSCAD dataset (Vidros et al., 2017) as the source of job advertisements.
For questions about the model or dataset, please contact the authors via the paper or open an issue on the model repository.