SLM-Mod: Small Language Models Surpass LLMs at Content Moderation

Xianyang Zhan, Agam Goyal, Yilun Chen, Eshwar Chandrasekharan, Koustuv SahaNAACL 2025

Abstract

Content moderation is a highly contextual task, where rules vary significantly across online communities. While massive Large Language Models (LLMs) are often used as general-purpose moderators, they frequently fail to capture the nuanced norms of specific sub-communities. This paper introduces SLM-Mod, a framework demonstrating that fine-tuned Small Language Models (SLMs) under 15B parameters—such as Llama-3.1 and Mistral—consistently outperform LLMs like GPT-4o in community-specific moderation. Our findings show that SLMs achieve 11.5% higher accuracy and 25.7% higher recall, offering a cost-effective and precise alternative for digital safety.

Introduction: The Challenge of Hyper-Local Norms

Content moderation is not a "one-size-fits-all" endeavor. A comment acceptable in a gaming subreddit might violate the rigorous standards of an academic community like r/science. Generalist LLMs, while powerful, often struggle with these "unwritten rules" and are computationally expensive for real-time, high-volume moderation.

The core challenge addressed by this research is community-specific moderation: building models that are efficient enough for real-time deployment yet sophisticated enough to understand the unique context and rules of individual online spaces.

Methodology: Specializing the Small

The researchers developed the SLM-Mod framework to evaluate the efficacy of fine-tuning smaller, open-source models against proprietary giants.

Conceptual framework of community-specific moderation using SLMs.

Model Selection and Fine-Tuning

The study compared three SLMs—Llama-3.1-8b, Gemma-2-9b, and Mistral-nemo-instruct—against three state-of-the-art LLMs: GPT-4o, GPT-4o-mini, and Command R+. The SLMs were specialized using LoRA (Low-Rank Adaptation), fine-tuned on community-specific data for a single epoch. This approach allowed for rapid specialization without the prohibitive costs of full parameter updates.

Dataset and Prompting

The evaluation utilized a dataset of 150,000 Reddit comments from 15 diverse subreddits (e.g., r/changemyview, r/AskHistorians, r/politics). For each community, 10,000 comments were sampled (50% moderated, 50% unmoderated). The models were prompted with the target comment, the preceding conversation context, and the official subreddit rules fetched via the PRAW API.

Key Results: The Specialist Advantage

The experimental results indicate a clear performance advantage for specialized SLMs over general-purpose LLMs.

Performance comparison (Accuracy, Recall, Precision) across 15 subreddits.

Superior Accuracy and Recall

Fine-tuned SLMs outperformed zero-shot LLMs by an average of 11.5% in accuracy and 25.7% in recall. Mistral-NeMo-Instruct emerged as the top performer, reaching 91.6% accuracy on r/changemyview.

The Precision-Recall Trade-off

A notable finding is the behavioral difference between model types. SLMs tend to be more "aggressive," resulting in significantly higher recall (catching more violations) but slightly lower precision. Conversely, LLMs act as "cautious generalists," maintaining high precision but missing a substantial portion of actual rule violations.

Robustness in Imbalanced Settings

In real-world scenarios where rule-breaking content is rare (e.g., 1% of total comments), SLMs maintained significantly higher AUC scores (~0.79) compared to LLMs (~0.69). This suggests that fine-tuning provides the necessary sensitivity to detect rare but harmful events that generalist models overlook.

Discussion and Future Directions

The success of SLM-Mod suggests that "bigger is not always better" for specialized tasks like moderation. Fine-tuned SLMs offer a scalable, private, and cost-effective solution for platforms needing to process millions of interactions.

However, several areas for future work remain:

  • Multimodality: Current models are text-only; future iterations must handle images and memes.
  • Dynamic Norms: As community cultures evolve, models will require continual pre-training to stay aligned with shifting rules.
  • Human-in-the-Loop: Given the higher false-positive rate of SLMs, they are currently best utilized for triaging content for human moderators rather than fully autonomous enforcement.

Summary updated

BibTeX
@inproceedings{zhan2025slm,
  author = {Xianyang Zhan and Agam Goyal and Yilun Chen and Eshwar Chandrasekharan and Koustuv Saha},
  title = {{SLM-Mod: Small Language Models Surpass LLMs at Content Moderation}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.441},
}
Figure