Documented Exercise · OBS.EX0032

Llama Guard Input-Output Safety Taxonomy Evaluation

Inan et al. (2023) evaluated Llama Guard, a Llama2-7B safeguard model instruction-tuned on a multi-category safety risk taxonomy for both prompt and response moderation. On OpenAI Moderation and ToxicChat benchmarks, the lightweight open-weight classifier matched or exceeded existing production moderation APIs while supporting zero-shot taxonomy customization. Because guardrail policies evolve per enterprise context, instruction-tuned classifiers enable rapid adaptation without full backbone retraining. However, standalone text classifiers remain vulnerable to adaptive multi-turn and encoding attacks unless layered with system controls.

Exercise dossier metadata

Case ID
OBS.EX0032
Classification
Exercise
Date
Evaluation scope
Llama2-7B Moderation Guardrail · ToxicChat & OpenAI Moderation Benchmarks
Reference URI
https://arxiv.org/abs/2312.06674

Inspect OBS.EX0032 in Interactive Incidents & Cases Hub

Mapped AI security techniques

Mapped defensive controls

Source citation records