CoolFace
Modelpublic

SallySims/equibert-relation-extraction

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

EquiBERT — DEI Relation Extraction

Model ID: SallySims/equibert-relation-extraction

Extracts typed relations between DEI entities using entity markers. Input format: [E1] subject [/E1] ... [E2] object [/E2]

Relation Types (12)

RelationDescriptionExample
NO_RELATIONNo meaningful relation
EXCLUDESEntity excludes anotherManager EXCLUDES BIPOC employees
DISCRIMINATESDiscriminatory actPolicy DISCRIMINATES AGAINST disabled staff
ADVANTAGESProvides advantageProgramme ADVANTAGES white candidates
DISADVANTAGESCreates disadvantageProcess DISADVANTAGES women
ACCOUNTABLE_FORHolds accountabilityCHRO ACCOUNTABLE_FOR pay equity
ADDRESSESAddresses an issueTraining ADDRESSES unconscious bias
VIOLATESPolicy violationScreening VIOLATES anti-discrimination policy
BENEFITSProvides benefitERG BENEFITS LGBTQ+ employees
HARMSCauses harmLanguage HARMS neurodiverse candidates
REPRESENTSRepresentation claimBoard REPRESENTS diverse community
REPORTS_ONReporting relationAnnual report REPORTS_ON pay gap

Usage

python
text = "[E1] manager [/E1] excluded [E2] BIPOC employees [/E2] from the workshop."
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=256)
# relation = id2label[model(**inputs).logits.argmax(-1).item()]

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