Baszta: Data-Centric Fine-Tuning of a Polish Multi-Label Safety Classifier
Not on the map. Why?
Abstract (arXiv)
We develop a multi-label Polish content-safety classifier by fine-tuning allegro/herbert-base-cased (124M) across five categories (hate, vulgarity, sexual content, crime, self-harm) using a Focal + R-Drop objective, and evaluate the resulting model against Bielik Guard (S'ojka) on the shared out-of-distribution Gadzi Jkezyk benchmark. Both systems are given per-category threshold tuning on the same calibration split. Under that matched protocol our model holds a small but statistically significant lead in micro F1, while an apparent macro-F1 lead does not survive: it was an artifact of comparing a tuned model against an untuned one. We also report what that micro figure is worth. Because Gadzi Jkezyk is 97% crime-positive, a classifier that flags crime on every input and nothing else already scores 0.910 micro F1 on the same test split, so micro separates neither system from a degenerate strategy and macro is the column that does. Per-category and per-protocol figures are reported in Section 4. The residual out-of-distribution gap is one of calibration rather than discrimination. Ranking quality stays high while positive probabilities collapse, and per-category temperature scaling recovers the loss where Platt scaling and isotonic regression do not. That recovery turns out to be conditional on the calibration set containing safe text. Gadzi Jkezyk contains almost none, so thresholds fitted on it flag crime on every safe input, and a balanced refit buys a deployable operating point at the cost of adversarial recall. We report both operating points rather than only the flattering one. Two changes that are standard practice, per-class cost-sensitive weighting and mean pooling, each raise in-distribution macro F1 while lowering the out-of-distribution figure, which indicates that robustness has to be selected for directly rather than inherited from in-distribution accuracy.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 19 of its 31 references that are in the map. First posted on arXiv 24 Sep 2026.
Builds on
19 of 31 references.
References · 19
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2017On Calibration of Modern Neural Networkscited by 4,960
- 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,926
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2020Calibrating Deep Neural Networks using Focal Losscited by 357
- 2021R-Drop: Regularized Dropout for Neural Networkscited by 202
- 2025Qwen3Guard Technical Reportcited by 155
- 2025PolyGuard: A Multilingual Safety Moderation Tool for 17 Languagescited by 59
- 2020KLEJ: Comprehensive Benchmark for Polish Language Understandingcited by 51
- 2021HerBERT: Efficiently Pretrained Transformer-based Language Model for Polishcited by 51
- 2022Multilingual HateCheck: Functional Tests for Multilingual Hate Speech Detection Modelscited by 51
- 2024PIRB: A Comprehensive Benchmark of Polish Dense and Hybrid Text Retrieval Methodscited by 14
7 more
- 2022Aggretriever: A Simple Approach to Aggregate Textual Representations for Robust Dense Passage Retrievalcited by 12
- 2023BAN-PL: a Novel Polish Dataset of Banned Harmful and Offensive Content from Wykop.pl web servicecited by 6
- 2025PL-Guard: Benchmarking Language Model Safety for Polishcited by 2
- 2026Bielik Guard: Efficient Polish Language Safety Classifiers for LLM Content Moderationcited by 2
- 2026Multilingual Refusal Alignment for Safer Large Language Modelscited by 2
- 2021Detection of Criminal Texts for the Polish State Border Guardcited by 1
- 2024Behind Closed Words: Creating and Investigating the forePLay Annotated Dataset for Polish Erotic Discoursecited by 1
Built on by
Not cited yet.