Safety Context Retrieval (SCR): Scalable real-world jailbreak defense for large language modelsScalable Defense against In-the-wild Jailbreaking Attacks with Safety Context Retrieval
AI summary
The research proposes Safety Context Retrieval (SCR), which combines RAG to retrieve safety examples and can scalably defend against real-world jailbreak attacks on large language models. Preliminary research finds that a small number of safety alignment examples targeting a specific jailbreak pattern can significantly improve the model's robustness to that attack pattern. Experiments show that SCR achieves better defense performance against both existing and emerging jailbreak strategies, and the code will be released after the paper is published.