Research map / Large language models / Alignment and preferences
Using In-Context Learning to Improve Dialogue Safety
Nicholas Meade, Spandana Gella, Devamanyu Hazarika, Prakhar Gupta, Di Jin, Siva Reddy, Yang Liu, Dilek Hakkani-Tür
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add ten retrieved dense safety demonstrations | OPT-6.7B · DiaSafety | % safe (Classifier): 57.79 -> 77.57 | Improved |
| increase number of safety demonstrations | OPT models · ProsocialDialog and DiaSafety | % safe (Classifier) | Improved |
| retrieve similar demonstrations (BM25 or dense) instead of random (ablation) | OPT models · ProsocialDialog | % safe (Classifier) | Improved |
| retrieve with BM25 instead of random (ablation) | OPT models · DiaSafety | % safe (Classifier) | No clear effect |
| use ten demonstrations on safe inputs | OPT-6.7B · Commonsense-Dialogues | % safe (Classifier): 83.20 -> 89.86 | Improved |
| use ten demonstrations on safe inputs | OPT-13B · Commonsense-Dialogues | F1: 11.01 -> 11.60 | Improved |
| add dense demonstrations (response quality, human eval) | OPT-30B · ProsocialDialog | prosocial win rate: 8.67 vs 71.11 (win %) | Improved |
| add dense demonstrations | OPT-30B · ProsocialDialog | engaging win rate: 45.78 vs 35.33 (win %) | Mixed |
| add demonstrations | OPT-30B · ProsocialDialog | response diversity (Self-Bleu): 5.55 -> 12.26 | Hurt |
| use in-context learning instead of Director | OPT-6.7B · DiaSafety | % safe (Classifier): 79.82 vs 77.57 | Hurt |
| use in-context learning instead of fine-tuning on safe responses | OPT-6.7B · DiaSafety | Llm-Eval win rate: 41.89 -> 69.14 | Improved |
| change demonstration order (random, top first, top last) (ablation) | OPT with dense retriever · ProsocialDialog and DiaSafety | % safe (Classifier) | No clear effect |
Closest papers by meaning
- The Alignment Waltz: Jointly Training Agents to Collaborate for Safety (ICLR 2026 · similarity 0.87)
- Safety Pretraining: Toward the Next Generation of Safe AI (NeurIPS 2025 · similarity 0.86)
- CASE-Bench: Context-Aware SafEty Benchmark for Large Language Models (ICML 2025 · similarity 0.86)
- Safety Reconstructed: Generative Modeling via Masked Diffusion Builds Strong Safety Guardrails (NeurIPS 2026 · similarity 0.86)
- Safe RLHF-V: Safe Reinforcement Learning from Multi-modal Human Feedback (NeurIPS 2025 · similarity 0.86)
- LLaVAShield: Safeguarding Multimodal Multi-Turn Dialogues in Vision-Language Models (CVPR 2026 · similarity 0.86)
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.
