Reproduce “Using In-Context Learning to Improve Dialogue Safety” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Nicholas Meade, Spandana Gella, Devamanyu Hazarika, Prakhar Gupta, Di Jin, Siva Reddy, Yang Liu, Dilek Hakkani-Tür

Meade et al. reduce toxic chatbot replies by retrieving safe responses to similar conversations and placing them in the prompt, without fine-tuning the dialogue generator for each case. On DiaSafety, OPT-6.7B with ten dense demonstrations received safe classifications for 77.57% ± 0.57% of responses, versus 79.82% ± 1.15% for Director. These classifier predictions do not establish safety.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.