Japanese X Ragebait - LINE DistilBERT Base

This is the LINE DistilBERT component of the three-model ragebait detector from โ€œFrom Detection to Characterization: A Large-Scale Study of Ragebait on Japanese Xโ€ (WI-IAT 2026). It is a binary Japanese text classifier fine-tuned from line-corporation/line-distilbert-base-japanese.

Labels

  • NO (0): non-ragebait
  • YES (1): ragebait

The labels are research annotations and should not be treated as facts about a post or its author.

Training

  • Labeled split: 16,558 posts, balanced between YES and NO
  • Train/validation partition: 14,902 / 1,656
  • Held-out test split: 2,000 posts, balanced between YES and NO
  • Epochs: 3
  • Learning rate: 2e-5
  • Batch size: 32
  • Maximum sequence length: 256
  • Warmup ratio: 0.1
  • Weight decay: 0.01
  • Seed: 42
  • Best checkpoint criterion: validation Macro-F1

The public dataset repository contains only Post IDs and labels, not redistributed post text: ZhiyangQi/japanese-x-ragebait.

Test results

Metric Value
Accuracy 82.65%
Precision (YES) 81.79%
Recall (YES) 84.00%
Macro-F1 82.65%

The confusion matrix is [[813, 187], [160, 840]], ordered as NO, YES. Full training history and unrounded values are in training_results.json.

Usage

import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer

model_id = "ZhiyangQi97/japanese-x-ragebait-line-distilbert-base"
tokenizer = AutoTokenizer.from_pretrained(
    model_id,
    use_fast=False,
    trust_remote_code=True,
)
model = AutoModelForSequenceClassification.from_pretrained(model_id)

text = "ๅˆ†้กžใ—ใŸใ„ๆ—ฅๆœฌ่ชžใƒ†ใ‚ญใ‚นใƒˆ"
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=256)
with torch.inference_mode():
    prediction = model(**inputs).logits.argmax(dim=-1).item()

print(model.config.id2label[prediction])

Install transformers, torch, sentencepiece, fugashi, and unidic-lite before loading the tokenizer. Review the included custom tokenizer code before enabling trust_remote_code=True.

Limitations and intended use

This model is intended for non-commercial academic research on Japanese ragebait. The training labels were created with an LLM-assisted pipeline and may contain errors. Ragebait is contextual and intent-based; performance may degrade on other periods, platforms, languages, or domains. Do not use this model to profile, rank, target, identify, harass, moderate, or make consequential decisions about individual users.

License

The base model is distributed under the Apache License 2.0. See the base model card for its terms and documentation.

Citation

@inproceedings{qi2026ragebait,
  title = {From Detection to Characterization: A Large-Scale Study of Ragebait on Japanese X},
  author = {Qi, Zhiyang and Ito, Kazuhiro and Chen, Jinghui and Nakamura, Hibiki and Chen, Zhangxuan and Murata, Erina and Chujyo, Masaki and Toriumi, Fujio},
  booktitle = {WI-IAT 2026},
  year = {2026}
}
Downloads last month
10
Safetensors
Model size
68.7M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for ZhiyangQi97/japanese-x-ragebait-line-distilbert-base

Finetuned
(22)
this model

Evaluation results