atlas

Research map / Large language models / Language, safety and interpretability

LLMGuard: Guarding against Unsafe LLM Behavior

AAAI 2024 · Large language models › Language, safety and interpretability · approach: Safety alignment of LLMs · 14 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Presents LLMGuard, a post-processing tool that screens user prompts and LLM responses with an ensemble of five detectors (racial bias, violence, blacklisted topics, PII, toxicity) and blocks flagged content, demoed on FLAN-T5 and GPT-2.

Problem

LLMs in enterprise settings can generate inappropriate, biased, toxic, or privacy-leaking content, and retraining-based alignment is costly, so post-hoc guardrails on inputs and outputs are needed.

Approach

A modular library of independent specialized detectors wraps any LLM, passing every user prompt and LLM response through the ensemble and blocking the transaction if any detector flags unsafe content; blacklisted topics are configurable per-topic classifiers.

Key results

Limitations

Experimental setup

Datasets: Twitter Texts Dataset Jigsaw Toxicity Dataset 2021 20-NewsGroup Dataset Wikipedia Comments Dataset Toxic Comment Classification Challenge 2018

Benchmarks: Twitter Texts Dataset Jigsaw Toxicity Dataset 2021 20-NewsGroup Dataset Toxic Comment Classification Challenge 2018

Metrics: accuracy F1 AUC NER F1

Builds on: Detoxify BERT LSTM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy