A single model that spots everything from toxic prompts to RAG hallucinations in LLM interactions.
Granite Guardian introduces risk detection models for LLMs that can identify harmful content, jailbreaks, and RAG-specific hallucination risks with state-of-the-art accuracy.
-----
https://arxiv.org/abs/2412.07724
π Original Problem:
LLMs need robust risk detection to prevent misuse and ensure safe operation. Current solutions lack comprehensive coverage across multiple risk dimensions and transparency in development.
-----
π οΈ Solution in this Paper:
β Granite Guardian offers a family of risk detection models (2B and 8B variants) trained on diverse human annotations and synthetic data.
β It uses a unified safety instruction template to detect risks in both prompts and responses.
β The models cover social risks (bias, profanity, violence), security risks (jailbreaks), and RAG-specific hallucination risks.
β A specialized probability computation method improves risk detection confidence scoring.
-----
π‘ Key Insights:
β Combining human annotations from diverse sources with synthetic data improves model robustness
β A unified risk detection approach works better than separate models for different risks
β RAG-specific risks need specialized detection mechanisms
-----
π Results:
β AUC score of 0.871 on harmful content detection
β AUC score of 0.854 on RAG-hallucination benchmarks
β Outperforms Llama Guard and ShieldGemma across metrics










