CoolFace
Modelpublic

SallySims/equibert-bias-classifier

sourceHugging Faceapache-2.0updated 4mo agoView on Hugging Face
0likes11downloads
Model Card

EquiBERT — Bias Classifier

Model ID: SallySims/equibert-bias-classifier

Multi-label classifier that detects seven types of bias in organisational text — job descriptions, HR communications, policies, and workplace language.

Labels

IDLabelDescription
0gender_biasGendered language, role assumptions, masculine-coded words
1racial_biasRacial coding, cultural fit language, tokenism
2age_biasDigital native language, overqualified framing, generational stereotypes
3ability_biasAbleist language, physical requirements, disability framing
4socioeconomic_biasClass-coded language, credential gatekeeping
5cultural_biasCultural exclusion, religious insensitivity
6intersectionalCompounding bias across multiple identity dimensions

Usage

python
from transformers import AutoTokenizer
import torch

tokenizer = AutoTokenizer.from_pretrained("SallySims/equibert-bias-classifier")

text = "We need a rock star developer who can dominate the roadmap."
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=128)

# Load model weights and run inference
# (use with the EquiBERT modeling code from the repository)

Task Head Architecture

CLS token → Dropout(0.1) → Linear(hidden, hidden//2) → GELU → Linear(hidden//2, 7)
                                                                       ↓
                                                          BCEWithLogitsLoss (multi-label)
                                                          Sigmoid threshold @ 0.5

Performance (synthetic data, seed=42)

MetricScore
Macro F10.72
Micro F10.76
AUC0.81

Model Description

EquiBERT is a multi-task DEI (Diversity, Equity and Inclusion) transformer built on a dual-encoder backbone that fuses RoBERTa-base and DeBERTa-v3-base via a learned weighted sum (α parameter). The fused representation is fed into task-specific heads covering 17 distinct DEI analysis tasks.

Organisation: SallySims Framework: PyTorch + HuggingFace Transformers Backbone: RoBERTa-base + DeBERTa-v3-base (dual encoder, fused) Language: English Domain: Organisational DEI text — HR communications, policies, job descriptions, performance reviews, leadership statements, reports

Architecture

Input Text
    │
    ├──▶ RoBERTa-base encoder ──▶ Linear projection
    │                                     │
    └──▶ DeBERTa-v3-base encoder ──▶ Linear projection
                                          │
                              Weighted fusion (learned α)
                                          │
                                   Layer Norm + Dropout
                                          │
                              Task-specific head (see below)

Training Data

Trained on synthetic DEI organisational text generated by the EquiBERT synthetic data pipeline, covering 20 DEI categories across HR, policy, leadership, and workforce analytics domains. For production use, fine-tune on real labelled DEI data.

Limitations

  • —Trained on synthetic data — predictions should be validated before use in real HR or policy decisions.
  • —English-only.
  • —Not a substitute for qualified DEI practitioners or legal advice.
  • —May reflect biases present in the training corpus.

Citation

If you use EquiBERT in your research, please cite:

bibtex
@misc{equibert2024,
  author    = {SallySims},
  title     = {EquiBERT: A Multi-Task DEI Transformer},
  year      = {2024},
  publisher = {HuggingFace},
  url       = {https://huggingface.co/SallySims}
}

All EquiBERT Models

ModelTaskPrimary Metric
equibert-bias-classifierBias DetectionMacro F1
equibert-microaggressionMicroaggression DetectionMacro F1
equibert-category-taggerDEI Category TaggingMacro F1
equibert-event-exclusionEvent Exclusion ClassificationMacro F1
equibert-inclusive-languageInclusive Language ScoringSpan F1
equibert-review-auditorPerformance Review AuditingSpan F1
equibert-washing-detectorDEI Washing DetectionMAE
equibert-framing-scorerReport Framing ScoringMAE
equibert-awareness-scorerDEI Awareness ScoringMAE
equibert-similaritySemantic SimilarityAccuracy
equibert-nerDEI Entity RecognitionSpan F1
equibert-relation-extractionRelation ExtractionMacro F1
equibert-qaExtractive QASpan EM
equibert-searchSemantic SearchMRR@10
equibert-nliNLI / Textual EntailmentMacro F1
equibert-generatorDEI Text GenerationROUGE-L