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
Mapped AI security techniques
- LLM Prompt Injection: Direct AML.T0051.000
- LLM Jailbreak AML.T0054
Mapped defensive controls
- Generative AI Guardrails AML.M0020
- Generative AI Guidelines AML.M0021
Source citation records
- Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversations · arXiv (author preprint; peer-review status not inferred) ·