We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.CL

Change to browse by:

cs

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Computation and Language

Title: Using In-Context Learning to Improve Dialogue Safety

Abstract: While large neural-based conversational models have become increasingly proficient as dialogue agents, recent work has highlighted safety issues with these systems. For example, these systems can be goaded into generating toxic content, which often perpetuates social biases or stereotypes. We investigate a retrieval-based framework for reducing bias and toxicity in responses generated from neural-based chatbots. It uses in-context learning to steer a model towards safer generations. Concretely, to generate a response to an unsafe dialogue context, we retrieve demonstrations of safe model responses to similar dialogue contexts. We find our proposed approach performs competitively with strong baselines which use fine-tuning. For instance, using automatic evaluation, we find our best fine-tuned baseline only generates safe responses to unsafe dialogue contexts from DiaSafety 2.92% more than our approach. Finally, we also propose a straightforward re-ranking procedure which can further improve response safeness.
Subjects: Computation and Language (cs.CL)
Cite as: arXiv:2302.00871 [cs.CL]
  (or arXiv:2302.00871v1 [cs.CL] for this version)

Submission history

From: Nicholas Meade [view email]
[v1] Thu, 2 Feb 2023 04:46:03 GMT (303kb,D)
[v2] Tue, 23 May 2023 16:37:06 GMT (173kb,D)
[v3] Sun, 22 Oct 2023 19:28:24 GMT (528kb,D)

Link back to: arXiv, form interface, contact.