Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

OMNIGUARD: An Efficient Approach for AI Safety Moderation Across Languages and Modalities

About

The emerging capabilities of large language models (LLMs) have sparked concerns about their immediate potential for harmful misuse. The core approach to mitigate these concerns is the detection of harmful queries to the model. Current detection approaches are fallible, and are particularly susceptible to attacks that exploit mismatched generalization of model capabilities (e.g., prompts in low-resource languages or prompts provided in non-text modalities such as image and audio). To tackle this challenge, we propose Omniguard, an approach for detecting harmful prompts across languages and modalities. Our approach (i) identifies internal representations of an LLM/MLLM that are aligned across languages or modalities and then (ii) uses them to build a language-agnostic or modality-agnostic classifier for detecting harmful prompts. Omniguard improves harmful prompt classification accuracy by 11.57\% over the strongest baseline in a multilingual setting, by 20.44\% for image-based prompts, and sets a new SOTA for audio-based prompts. By repurposing embeddings computed during generation, Omniguard is also very efficient ($\approx\!120 \times$ faster than the next fastest baseline). Code and data are available at: https://github.com/vsahil/OmniGuard.

Sahil Verma, Keegan Hines, Jeff Bilmes, Charlotte Siska, Luke Zettlemoyer, Hila Gonen, Chandan Singh• 2025

Related benchmarks

TaskDatasetResultRank
Safety EvaluationHarmBench
Harmbench Score83.2
76
Safety EvaluationBeaverTails Text
Overall Score94.8
16
Safety EvaluationBeaverTails Audio 1K
RSR98.95
12
Safety EvaluationHB Text
RSR99.33
12
Safety EvaluationHBAudio
RSR90
12
Safety EvaluationOmniSafety (T+I+A)
RSR75.27
12
Safety EvaluationOmniBench
Accuracy38.58
12
Safety EvaluationMMSafety Text+Image
RSR90.77
12
Safety EvaluationVideoSafety Text+Video
RSR89.61
12
Safety EvaluationOmniSafety (T+V+A)
RSR70.27
12
Showing 10 of 18 rows

Other info

Follow for update