Davide Testuggine, Yuning Mao, Jianfeng Chi, Kartikeya Upasani, Krithika Iyer, Madian Khabsa, Brian Fuller, Hakan Inan, Rashi Rungta, Michael Tontchev, Qing Hu
We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
We introduce Llama Guard, an LLM-based input-output safeguard model geared towards Human-AI conversation use cases. Our model incorporates a safety risk taxonomy, a valuable tool for categorizing a specific set of safety risks found in LLM prompts (i.e., prompt classification). This taxonomy is also instrumental in classifying the responses generated by LLMs to these prompts, a process we refer to as response classification. For the purpose of both prompt and response classification, we have meticulously gathered a dataset of high quality. Llama Guard, a Llama2-7b model that is instruction-tuned on our collected dataset, albeit low in volume, demonstrates strong performance on existing benchmarks such as the OpenAI Moderation Evaluation dataset and ToxicChat, where its performance matches or exceeds that of currently available content moderation tools. Llama Guard functions as a language model, carrying out multi-class classification and generating binary decision scores. Furthermore, the instruction fine-tuning of Llama Guard allows for the customization of tasks and the adaptation of output formats. This feature enhances the model's capabilities, such as enabling the adjustment of taxonomy categories to align with specific use cases, and facilitating zero-shot or few-shot prompting with diverse taxonomies at the input. We are making Llama Guard model weights available and we encourage researchers to further develop and adapt them to meet the evolving needs of the community for AI safety.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2312.06674")
get_code_for_paper("2312.06674")
have("2312.06674")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2312.06674.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2312.06674)
Connect an agent — have() is free.