Small Improvements Inspire Resilience: Toward Efficient Prefix Models Robust to LLM Red TeamingTiny Refinements Elicit Resilience: Toward Efficient Prefix-Model Against LLM Red-Teaming
AI summary
Researchers propose an LLM sentinel model as a plug-and-play prefix module that restructures the input prompt with fewer than 30 additional tokens to reduce the toxicity of the target LLM's responses. The method alternately trains a red-team model and a sentinel model via PPO and coordinates the two with a value-head sharing mechanism. Text-to-text and text-to-image experiments show that the approach can also effectively mitigate toxic outputs on Llama-2, GPT-3.5 and Stable-Diffusion.