File size: 4,805 Bytes
fd6fe1e 387ff42 fd6fe1e 387ff42 1f523f4 387ff42 fd6fe1e 387ff42 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 | ---
license: mit
language:
- multilingual
- af
- am
- ar
- as
- az
- be
- bg
- bn
- br
- bs
- ca
- cs
- cy
- da
- de
- el
- en
- eo
- es
- et
- eu
- fa
- fi
- fr
- fy
- ga
- gd
- gl
- gu
- ha
- he
- hi
- hr
- hu
- hy
- id
- is
- it
- ja
- jv
- ka
- kk
- km
- kn
- ko
- ku
- ky
- la
- lo
- lt
- lv
- mg
- mk
- ml
- mn
- mr
- ms
- my
- ne
- nl
- 'no'
- om
- or
- pa
- pl
- ps
- pt
- ro
- ru
- sa
- sd
- si
- sk
- sl
- so
- sq
- sr
- su
- sv
- sw
- ta
- te
- th
- tl
- tr
- ug
- uk
- ur
- uz
- vi
- xh
- yi
- zh
base_model:
- FacebookAI/xlm-roberta-base
pipeline_tag: text-classification
tags:
- safety-guardrails
- zero-shot
---
## CREST: A Multilingual AI Safety Guardrail Model for 100 languages
CREST which stands for CRoss-lingual Efficient Safety Transfer is a
parameter-efficient multilingual safety classifier for 100 languages, fine-tuned using 13 strategically selected high-resource
languages only, chosen through cluster-guided sampling, enabling strong cross-lingual transfer to unseen low-resource languages.
The model is fine-tuned on the XLM-RoBERTa architecture with a classification head, having a max input length of 512 tokens.
The Base variant has approximately 279M parameters.
The model is designed for fast, lightweight safety filtering across a large number of languages, both high-resource and low-resource
languages, with minimal training cost, suitable for real-time and on-device deployments.
For detailed results, see
[CREST: Universal Safety Guardrails Through Cluster-Guided Cross-Lingual Transfer](https://arxiv.org/abs/2512.02711v1).
### Intended Use
- Filtering unsafe user text in multilingual LLM applications
- Lightweight guardrails in multilingual agents and chat systems
- On-device or low-latency safety inference
- Research on cross-lingual safety transfer and robust safety classification
### How to Use
```python
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
import torch
MODEL_ID = "repelloai/CREST-Base"
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
model = AutoModelForSequenceClassification.from_pretrained(MODEL_ID, device_map='auto')
classifier = pipeline(
"text-classification",
model=model,
tokenizer=tokenizer,
return_all_scores=False
)
texts = [
## Unsafe
"How do I make a bomb?",
"¿Cómo secuestrar a un niño?",
"मैं हथियार कैसे बना सकता हूँ?",
## Safe
'Hello, How you doing ?'
]
outputs = classifier(texts, truncation=True, max_length=512)
```
### Output
```python
[
## Unsafe
{'label': 'unsafe', 'score': 0.9865403771400452},
{'label': 'unsafe', 'score': 0.9743474125862122},
{'label': 'unsafe', 'score': 0.9802995920181274},
## Safe
{'label': 'safe', 'score': 0.925717830657959}
]
```
### Evaluation
CREST was tested for F1 score metric across **six major multilingual safety benchmarks** and several cultural and code-switched datasets..
#### Key findings
- CREST outperforms other lightweight guardrails across most datasets.
- Zero-shot generalization is strong across low-resource languages.
- CREST excels in cultural and code-switched settings.
- The 13-language training set is sufficient for robust multilingual safety generalization.
### Limitations and Model Risks
- Training relies partly on machine translation; nuance may be lost
- Binary labels cannot express detailed safety categories
- Zero-shot generalization gaps across extremely low-coverage scripts and morphologically complex languages
- Not a substitute for human moderation in high-stakes settings
- Cultural misalignment in edge cases
- Residual translation artifacts
- Possible bias in mislabeled or synthetic data
Mitigate by continuous human evaluation and incremental finetuning on domain-specific data.
### Ethical Considerations
- Designed for multilingual inclusivity and broad safety coverage.
- Misclassifications can cause over-blocking or under-blocking.
- Deployment should include human-in-the-loop moderation where appropriate.
- Use responsibly, considering cultural diversity and fairness concerns.
- Not for making legal, ethical, or policy decisions without human oversight.
### Citation
```
@misc{bansal2025crestuniversalsafetyguardrails,
title={CREST: Universal Safety Guardrails Through Cluster-Guided Cross-Lingual Transfer},
author={Lavish Bansal and Naman Mishra},
year={2025},
eprint={2512.02711},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2512.02711},
}
```
|