LionGuard 2: Building Lightweight, Data-Efficient & Localised Multilingual Content Moderators

Leanne Tan, Gabriel Chua, Ziyu Ge, Roy Ka-Wei Lee2025

Abstract

Content moderation in linguistically diverse regions requires sensitivity to local dialects, slang, and code-mixing. Traditional large language models (LLMs) often struggle with these nuances or are too computationally expensive for real-time deployment. This paper introduces LionGuard 2, a lightweight (0.85M parameter) moderation classifier specifically engineered for Singapore’s unique multilingual landscape. By combining high-quality localized data with pre-trained embeddings, LionGuard 2 outperforms massive commercial models on local benchmarks while remaining efficient enough to run on a single CPU.

1. Introduction

Modern content moderation is a high-stakes challenge. While global safety tools from providers like OpenAI and Meta are powerful, they often stumble when faced with localized dialects and "code-mixing"—the practice of blending multiple languages in a single sentence. Singapore presents a distinct challenge: everyday discourse (Singlish) seamlessly weaves together English, Chinese, Malay, and Tamil.

General-purpose models often fail to recognize toxic content in these contexts, creating "safety gaps" that can be exploited. Furthermore, using LLMs as real-time guardrails is often prohibitively expensive and slow for production-scale applications. LionGuard 2 addresses these issues by being culturally aware, data-efficient, and lightweight enough for seamless deployment.

2. Methodology and Architecture

LionGuard 2 eschews the "bigger is better" trend in favor of a specialized, modular architecture designed for speed and precision.

2.1 Embedding-Based Classification

Rather than fine-tuning a massive decoder model, the system utilizes frozen pre-trained embeddings (text-embedding-3-large) as a semantic foundation. A compact, multi-head neural network is trained on top of these embeddings. This approach allows the model to leverage the vast world knowledge contained in the embeddings while keeping the trainable parameters minimal.

2.2 Multi-Head Ordinal Classifier

To provide more granular feedback than a simple binary "safe/unsafe" flag, LionGuard 2 features six specialized heads:

  • Hateful
  • Sexual
  • Self-Harm
  • Insults
  • Violence
  • Misconduct

Crucially, the model employs ordinal heads to distinguish between severity levels. For example, it can differentiate between "discriminatory" content (Level 1) and explicit "hate speech" (Level 2), allowing for more nuanced policy enforcement.

2.3 Semi-Supervised Labeling

To overcome the scarcity of labeled local data, the researchers utilized a "panel" of high-performing LLMs (Gemini 2.0 Flash, o3-mini, and Claude 3.5 Haiku). These models were statistically aligned with human annotators to label the training set, ensuring high-quality supervision without the prohibitive cost of manual labeling for every instance.

3. Datasets and Evaluation

The training set comprised 26,207 unique texts, including:

  • Local Comments: Scraped from Singaporean forums and subreddits to capture authentic Singlish.
  • Synthetic Queries: Local comments rewritten by GPT-4o-mini into chatbot-style prompts to simulate user interactions.
  • Open-source English Data: Including WildGuardTrain and Reddit Suicide Watch for general safety coverage.

Evaluation was conducted across 17 benchmarks, including newly introduced Singapore-specific sets like RabakBench (Singlish), SGHateCheck, and SGToxicGuard, alongside standard English benchmarks like BeaverTails.

4. Key Insights

  • Localization > Scale: Training on authentic local comments yielded an F1 score of 80.3%, whereas training on a much larger volume of public English data only achieved 45.3%. This underscores that cultural context is the primary driver of performance in localized moderation.
  • The Power of Embeddings: OpenAI’s embeddings outperformed alternatives like Cohere or BGE-M3. Despite lower raw "multilingual alignment" scores in some tests, their higher dimensionality appears to capture the finer semantic cues necessary for nuanced moderation.
  • Cross-Lingual Generalization: The model demonstrated a surprising ability to flag toxic content in Chinese and Malay despite having very few monolingual examples in the training set. This suggests the underlying embedding space is robust enough to transfer safety concepts across languages without explicit translation.

5. Results

LionGuard 2 achieved superior performance across the board:

  • Local Benchmarks: It outperformed commercial and open-source systems on Singlish, Chinese, and Malay benchmarks by margins of 8–25% in F1 score.
  • Generalization: On general English benchmarks, it remained competitive with models 10,000x its size, achieving 100% recall on the SimpleSafetyTests (SST).
  • Robustness: The model is highly tolerant of "noisy" input (typos, casing flips, misspellings), showing only a marginal 1.5% drop in performance when tested against corrupted benchmarks.
  • Efficiency: With only 0.85 million parameters and a disk footprint of 3.2 MB, it achieves a throughput of 300 tokens per second on a single CPU. It can be fully retrained in under two minutes.

6. Conclusion and Future Work

While LionGuard 2 represents a significant leap forward, challenges remain. Performance in Tamil is currently "moderate" compared to other languages due to data scarcity. Additionally, the system’s reliance on proprietary embedding APIs is a dependency the team hopes to mitigate in future iterations.

Currently deployed within the Singapore Government’s "AI Guardian" platform, LionGuard 2 proves that small, specialized models can effectively bridge the safety gaps left by global LLMs in localized linguistic contexts.

Summary updated

BibTeX
@misc{tan2025lionguard,
  author = {Leanne Tan and Gabriel Chua and Ziyu Ge and Roy Ka-Wei Lee},
  title = {{LionGuard 2: Building Lightweight, Data-Efficient \& Localised Multilingual Content Moderators}},
  year = {2025},
  doi = {10.18653/v1/2025.emnlp-demos.20},
}
Figure