dao-moderation-classifier (dataset)
Synthetic chat messages from the public channel of a DAO on the Internet Computer, each
labeled with 6 moderation facts. It trains
onicai/dao-moderation-classifier,
the worked example of llama_cpp_canister'srun_classify endpoint.
train.jsonl: 3,381 messages.test.jsonl: 200 held-out messages, written separately and never trained on.GUIDELINES.md: the label definitions and the moderation policy the labels follow.
All messages are synthetic. No real message, user, project or link: projects and
people are invented ("Zorbit", "@mod_kira"), and every link uses a .example domain.
Format
{"text": "Hi, I'm from the team support desk. DM me your issue and I'll fix your stuck stake directly 🙏", "kind": "spam", "toxicity": 0, "scam": true, "misleading": true, "respectful": false, "action": "block"}
| Field | Values |
|---|---|
kind |
question, discussion, support, troll, spam |
toxicity |
0 civil, 1 rude, 2 abusive |
scam |
true / false |
misleading |
true / false |
respectful |
true / false |
action |
none, warn, delete, block |
The test set also has an id per message.
How it was made
- Generation. LLM writers wrote 3,600 messages with their labels: three sets of 800
from three angles (newcomers and support; governance and market debate; trolls, spam
and scams with look-alike contrast messages), and two targeted sets of 600 (messages
that deserve a warn or a delete, and the boundaries between kinds). About a quarter
are hard cases: sharp but fair criticism, FUD phrased as a question, polite scams,
warnings about a scam, civil mockery. - Blind relabeling. Other LLM labelers labeled every text again, seeing only the
text, the definitions and the written policy (GUIDELINES.md). - Agreement. A message is kept when both passes agree on its kind, scam and
misleading, and on toxicity within one level. It keeps the second pass's labels, so
respectful and action follow the policy everywhere. 3,381 of 3,584 unique messages
were kept. - Test set. 200 messages written separately in two sets of 100, each labeled twice;
the 8 disagreements were settled by hand under the policy. Training texts that are
also in the test set are removed.
An earlier version had a sixth kind, feedback; it was merged into discussion, because
labelers and the model could not tell them apart reliably.
The scripts are in
examples/classifier
of llama_cpp_canister.
Label counts (train)
| kind | toxicity | scam | misleading | respectful | action |
|---|---|---|---|---|---|
| question 557, discussion 939, support 323, troll 1039, spam 523 | 0: 2671, 1: 515, 2: 195 | true 307 | true 779 | true 1820 | none 1788, warn 581, delete 474, block 538 |
Limits
LLM-written messages are cleaner and more uniform than a real channel, and the labels
follow one policy. Use it to learn the method and as a starting point; for a real
channel, add and label messages from that channel.