SafetySecurityAccountabilitycs.CL
WalledEval: A Comprehensive Safety Evaluation Toolkit for Large Language Models
Prannaya Gupta, Le Qi Yau, Hao Han Low, I-Shiang Lee, Hugo Maximus Lim, Yu Xin Teoh, Jia Hng Koh, Dar Win Liew, Rishabh Bhardwaj, Rajat Bhardwaj, Soujanya Poria
August 7, 2024
Conference on Empirical Methods in Natural Language Processing
22 citations
2 influential
Key Takeaways
-
Comprehensive safety testing requires multiple benchmarks: WalledEval includes over 35 safety benchmarks covering diverse risk areas including multilingual safety, prompt injections, and cultural contexts, suggesting that no single test is sufficient to evaluate LLM safety—organizations need multi-faceted evaluation approaches.
-
Safety vulnerabilities persist across text variations: The toolkit's custom mutators test how LLMs respond to the same harmful requests presented in different styles (future tense, paraphrasing, etc.), revealing that models may fail safety tests when requests are reformatted, even if they resist direct harmful prompts.
-
"Exaggerated safety" is a measurable problem: WalledEval introduces datasets (SGXSTest and HIXSTest) specifically designed to measure when LLMs are overly cautious or refuse benign requests, indicating that responsible AI requires balancing between preventing harm and maintaining usefulness.
-
Evaluation tools themselves need assessment: The framework supports "judge benchmarking" to evaluate the AI systems used to assess other AI systems, highlighting that safety evaluation chains can introduce their own biases and errors that must be independently verified.
-
Open-source evaluation infrastructure democratizes safety testing: By making WalledEval publicly available and supporting both open-weight and API-based models, the toolkit enables independent researchers and organizations to conduct their own safety evaluations rather than relying solely on vendor-provided assessments.