arXiv論文メモ
新着一覧
cs.AI · 査読状況未確認

ポーランド語の安全性分類器で分布外性能を検証

Baszta: Data-Centric Fine-Tuning of a Polish Multi-Label Safety Classifier

Adam Górski, Mateusz Jąkalak, Rafał Jakubowski

この論文をやさしく読む

ひとことで言うと

ポーランド語の有害内容を5種類に分類するモデルを作り、通常と異なるデータでどの指標や較正方法が信頼できるか調べた研究。

何に役立つ?

安全性分類器を比較・運用するとき、偏ったテストデータで高いmicro F1だけを見て判断しないための参考になる。

この研究の面白いところ

犯罪の陽性例が97%を占めるため、全入力を犯罪とする単純な方法でもmicro F1が0.910になる点を示し、見かけ上の優位性や較正の条件を検証した。

どこまで分かった?

結果は対象のポーランド語モデルとGadzi Językでの評価に基づく。バランスを取った再調整では、安全な入力への過剰検出を抑える代わりに敵対的な例の再現率が下がる。

v1のアブストラクトに基づくAI解説。日本語訳とは別に、用途の解釈を含みます。

アブストラクトの日本語訳

本研究は、allegro/herbert-base-cased(1億2400万パラメータ)を、ヘイト、下品な表現、性的内容、犯罪、自傷行為の5分類についてFocal損失とR-Dropの目的関数で微調整し、複数ラベルを付けられるポーランド語の内容安全性分類器を開発する。得られたモデルを、共通の分布外ベンチマークGadzi JęzykでBielik Guard(Sójka)と比較する。両システムとも同じ較正用データで分類別の閾値を調整する。この条件をそろえた評価では、本モデルはmicro F1で小さいながら統計的に有意な優位性を保った。一方、当初見えたmacro F1の優位性は残らず、閾値調整済みモデルと未調整モデルを比較したことによる見かけ上の差だった。 また、micro F1の数値が何を意味するかも検討する。Gadzi Językでは97%が犯罪の陽性例なので、すべての入力を犯罪として検出し、ほかは一切検出しない分類器でも、同じテスト分割でmicro F1が0.910になる。したがってmicro F1では両システムとこの退化した戦略を区別できず、macro F1が重要な指標となる。分類別・評価手順別の数値は論文の第4節で報告する。 分布外で残る性能差は、識別力よりも確率の較正に起因する。順位付けの質は高いままだが、陽性確率が低くなり、分類ごとの温度スケーリングでは失われた性能を回復できた一方、Plattスケーリングと等張回帰ではできなかった。ただし、その回復には較正用データに安全な文章が含まれることが条件となる。Gadzi Językには安全な文章がほとんどないため、そこで合わせた閾値は安全な入力すべてを犯罪として検出する。バランスを取ったデータで再調整すれば運用可能な動作点を得られるが、敵対的な例の再現率を犠牲にする。本研究は都合のよい方だけでなく、両方の動作点を報告する。一般的な二つの変更である分類別のコスト重み付けと平均プーリングは、いずれも分布内のmacro F1を上げる一方、分布外の値を下げた。頑健性は分布内の精度から自動的に得られるのではなく、直接選んで評価する必要があることを示す。

v1の要旨から自動生成。本文の精読・人による確認は未実施。

初稿
2026-09-24(UTC)
最新改訂
2026-09-24 · v1
査読・掲載
査読状況未確認
arXivで読むPDF

更新履歴

取得できた版を表示。版の更新は査読済みを意味しません。過去版の本文差分は未解析です。

原文の要旨

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ójka) on the shared out-of-distribution Gadzi Język 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 Język 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 Język 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.

arXiv ID: 2609.29266 / 要約の誤りについて