Ethical challenges faced by data-driven dialogue systemsEthical Challenges in Data-Driven Dialogue Systems
The authors investigate six types of ethical and safety issues in data-driven dialogue systems and use experiments to demonstrate dataset bias, adversarial examples, and privacy leakage.
- Data-driven dialogue systems are increasingly widespread, but the paper argues that their training process may bring ethical issues such as bias, adversarial examples, privacy leakage, safety, RL, and reproducibility, which are rarely discussed in the literature.
- The authors review the literature on six categories of risk and conduct three sets of demonstration experiments: using off-the-shelf detectors to measure bias and offensive content in four dialogue datasets; comparing LSTM language models trained on word embeddings before and after debiasing; and testing character-edit and paraphrase adversarial inputs and secret information extraction from a seq2seq model.
- The authors report that all four datasets contain biased, hateful, or offensive content (e.g., offensive language in Reddit Politics 4.50%); debiasing word vectors brings only about a 1−2.5% overall change; character edits and paraphrases change the semantic similarity of VHRED replies; the seq2seq model can extract secret information accounting for <0.1% of the data by key with near 100% accuracy.
- The authors state that bias detection models misclassify and still have considerable room for extension; adversarial examples in generative dialogue have no formal definition yet; absolute safety guarantees may be unrealistic; the experiments are all small-scale demonstrations, e.g., the privacy experiment uses only 10k dialogue pairs plus 10 keypairs.
- Evaluated models
- HREDVHREDLSTM language models (Zaremba, Sutskever, and Vinyals 2014)seq2seq dialogue model (Vinyals and Le 2015)
- Benchmarks
- TwitterReddit PoliticsCornell Movie Dialogue CorpusUbuntu Dialogue CorpusGoogle one-billion words benchmarkReddit Movies
- Metrics
- Bias scoreVader SentimentFleschKincaid readabilityHate SpeechOffensive Languagekey-pair recovery accuracysemantic similarity (cosine distance; LSTM similarity; CNN similarity)
Data-driven dialogue systems learn dialogue policies from large-scale datasets, and such interactions have been documented to produce biased or even offensive dialogue. This survey reviews potential ethical issues in dialogue system research, including implicit bias in data, the emergence of adversarial examples, possible sources of privacy violation, safety concerns, special considerations for reinforcement learning systems, and reproducibility issues, and proposes directions worthy of further investigation to advance robust, safe and ethical dialogue system research.
Paper analysis
What problem does this paper attempt to solve?
Ethical and safety issues of data-driven dialogue systems are rarely discussed in the literature; the authors systematically review them and conduct demonstration experiments.
Core problem: data-driven dialogue systems carry ethical risks including bias, adversarial examples, privacy, safety, RL, and reproducibility, but these are rarely discussed in the literature and in practice.
- Setting and importance: Dialogue systems (chatbots, virtual assistants) are increasingly widespread and are used in critical settings such as in vehicles; the authors believe that as systems become more widespread and more trusted, ethical and safety issues must be considered.
- Existing gaps: The authors point out that the subjectivity and data-driven components of dialogue systems bring potential dangers, but safety and ethical issues are rarely discussed in the literature and in practice.
- Core observation: Training data mostly come from online chat platforms such as Reddit and Twitter, which are difficult to filter manually and may contain latent bias; models readily learn and imitate subtle biases in the data, an example being the Microsoft Tay chatbot, which was taken offline for posting racially discriminatory content.
- Paper contributions: The authors survey possible concerns in the literature; conduct new experiments examining potential problems in existing datasets, models, and algorithms; give preliminary recommendations based on existing methods; and propose future research directions. Supplementary materials are in a repository provided by the authors.
- Scope note: The paper focuses on ethical considerations relevant to developers of data-driven dialogue systems and briefly mentions social issues of deliberate misuse of systems; the experiments are conducted on non-task-oriented systems, but the authors state that many of the discussions also apply to task-oriented systems.
What related research exists?
The paper organizes related work around six topics: bias, adversarial examples, privacy, security, reinforcement learning, and reproducibility.
Bias and bias detection
- Bolukbasi et al. (2016)—demonstrated that Word2Vec word vectors encode gender bias and proposed a debiasing method; the word vector experiments in this paper are based on their debiased vectors and occupation word list.
- Hutto, Folds, and Appling (2015) and Davidson et al. (2017)—proposed a linguistic bias detection framework and a hate speech/offensive language detection model, respectively; this paper uses them to measure dataset bias.
- Neff and Nagy (2016)—a phenomenological study of the incident in which the Microsoft Tay chatbot posted racially discriminatory content and was taken offline.
Adversarial examples
- Goodfellow, Shlens, and Szegedy (2014)—classic work on adversarial examples in image classification, where perturbations invisible to the human eye cause misclassification.
- Jia and Liang (2017)—constructed adversarial examples in reading comprehension tasks by adding distracting sentences to documents; the authors state that all tested QA models decreased in performance; the paper notes that this accuracy-based definition is difficult to generalize to generative dialogue scenarios that lack an error metric.
Privacy
- Song, Ristenpart, and Shmatikov (2017)—proposed the model-inversion attack, which can compromise the privacy of machine learning models' training data through information leakage.
- Abadi et al. (2016) and Ororbia et al. (2016)—differential privacy and automatic anonymization methods, which the authors suggest could be integrated into dialogue models in the future.
Safety, RL, and reproducibility
- Amodei et al. (2016)—raised the problem of "accidents" in AI safety (unintended harmful behavior caused by poor design); the safety section of this paper adopts their perspective; García and Fernández (2015) survey safe reinforcement learning.
- Li et al. (2016) and Serban et al. (2017b)—applied RL to dialogue generation; Henderson et al. (2017) surveyed the reproducibility of deep RL, and the authors believe similar work should be done for dialogue system research.
Positioning: The authors describe this paper as an initial survey of these issues through literature review plus demonstration experiments, hoping to stimulate discussion and future research on safe, ethical dialogue systems.
How does the paper address this problem?
Using a literature review plus three sets of small-scale demonstration experiments, it examines dataset bias, adversarial examples, and privacy leakage respectively, and gives recommendations.
The paper does not propose a single new method; rather, for each of six topics it conducts a literature review, (for some topics) demonstration experiments, and gives "Recommendations and Future Investigations." The designs of the three sets of experiments are as follows.
Dataset and model bias experiments
- Dataset bias measurement: Using the linguistic bias detection framework of Hutto, Folds, and Appling (2015) and the hate speech/offensive language detection model of Davidson et al. (2017), bias scores, Vader sentiment, FleschKincaid readability, and proportions of hate speech and offensive language are computed on four datasets: Twitter, Reddit Politics, Cornell Movie Dialogue Corpus, and Ubuntu Dialogue Corpus.
- Generative model bias: Two end-to-end dialogue models, HRED and VHRED, are trained on the Twitter dataset, and replies are sampled from validation set contexts (by beam search and random sampling), with the same metrics used to measure the generated content.
- Word vector bias: One LSTM language model each is trained on the Google one-billion words benchmark using Word2Vec and its debiased version (Bolukbasi et al. 2016); using 50 stereotypically male and 50 stereotypically female occupations as trigger words, 1000 sentence completions are sampled per trigger word, and the co-occurrence distribution of gender-specific words among them is counted.
Adversarial example experiments
- Two types of input noise: (1) character edits—deleting, replacing, or inserting one character; (2) paraphrases—sentences with the same meaning but different wording. The motivation is that humans are robust to spelling errors and paraphrases, and models should be too.
- Setup: For each model, 20 base sentences are selected as context, and for each base sentence 1000 character-edit samples and 6 paraphrase samples are generated and fed into the same VHRED retrieval model trained on Reddit Movies and Reddit Politics.
- Metrics: Word vector cosine distance, an LSTM similarity model (Mueller and Thyagarajan 2016), and a CNN similarity model (He, Gimpel, and Lin 2015) are used to measure semantic similarity between adversarial inputs and base sentences, and between generated replies and base replies.
Privacy leakage experiment
- Construction: 10k dialogue pairs are subsampled from the Ubuntu Dialogue Corpus, and 10 input-output pairs representing sensitive information (keypairs, with key and value each 5 words) are added.
- Three types of keypairs: (1) unique strings not present in any vocabulary (UUID); (2) English natural language words (NL); (3) words subsampled from the 10k dialogue pairs.
- Metric: A simple seq2seq dialogue model is trained, and the accuracy of extracting the secret value given the key is measured over training epochs.
Safety, RL, and reproducibility (no experiments)
- The safety section adopts the "accident" perspective of Amodei et al. (2016) and focuses on three risks: learning performance guarantees, objective function specification, and model interpretability; it also discusses three sensitive settings: healthcare, mental health (e.g., Woebot), and in-vehicle dialogue.
- The RL section discusses special considerations for safe RL (modifying optimality criteria, constraining the exploration space) in real-time learning dialogue agents; the reproducibility section emphasizes releasing code, pretrained models, and training details.
What experiments did the paper conduct?
Three sets of demonstration experiments: bias and offensive content were detected in all four datasets; adversarial inputs changed the semantics of replies; secret information could be extracted nearly 100% of the time.
Experimental Setup
- Subjects under test: four dialogue datasets (Twitter, Reddit Politics, Cornell Movie Dialogue Corpus, Ubuntu Dialogue Corpus); HRED and VHRED generative models trained on Twitter; VHRED retrieval models trained on Reddit Movies/Politics; an LSTM language model trained on Google one-billion words; a seq2seq model trained on 10k Ubuntu dialogue pairs.
- Measurement tools: a bias detection framework (Hutto, Folds, and Appling 2015), hate speech/offensive language detection models (Davidson et al. 2017); semantic similarity used cosine distance, an LSTM similarity model, and a CNN similarity model.
- Sample sizes: word embedding experiments sampled 1000 sentences per trigger word; adversarial experiments used 20 base sentences per model, with 1000 character edits and 6 paraphrases per sentence; privacy experiments used 10k dialogue pairs plus 10 keypairs. The paper did not report the number of repetitions.
Main Results
Some metrics for content generated by each dataset and model in Table 1 (hate speech and offensive language are detection counts and proportions):
Swipe horizontally to read the table
Subject Bias score Hate Speech Offensive Language Twitter 0.155 31,122 (0.63%) 179,075 (3.63%) Reddit Politics 0.146 482,876 (2.38%) 912,055 (4.50%) Cornell Movie Dialogue Corpus 0.162 2020 (0.66%) 6,953 (2.28%) Ubuntu Dialogue Corpus 0.068 503* (0.01%) 4,661 (0.13%) HRED Beam Search (Twitter) 0.09 38 (0.01%) 1607 (0.21%) VHRED Beam Search (Twitter) 0.144 466 (0.06%) 3010 (0.48%) HRED Stochastic Sampling (Twitter) 0.20 4889 (0.65%) 30,480 (4.06%) VHRED Stochastic Sampling (Twitter) 0.216 3494 (0.47%) 26,981 (3.60%) According to Table 1. *The Ubuntu hate speech results were manually filtered because the classifier misclassified "killing a process".
- The authors state that none of the four datasets is free of bias, hate speech, or offensive language; in models that do not explicitly prevent such content, these behaviors are encoded into the model.
- Hate speech and offensive language account for higher proportions in randomly sampled generated content than in beam search (Table 1).
- The authors state that the detection models perform reasonably well on the sampled subsets but have misclassifications (such as Ubuntu's "killing a process"), which were corrected by a post-processing script.
Word Embedding Debiasing Experiments
- Results (Table 2): After male-stereotyped occupations were triggered, the distribution of masculine follow-up words decreased slightly from 0.7545 for Word2Vec to 0.7437 for the debiased version; the female stereotype decreased from 0.7151 to 0.6959.
- Case: The authors state that for "the evangelist" (a male-stereotyped occupation), the masculine follow-up distribution was about 83%, and dropped to 71% with debiased vectors.
- Authors' interpretation: The overall average follow-up distribution changed toward balance by only about 1−2.5%, and the authors believe bias is still encoded by language models and that more work is needed in this area.
Adversarial Example Experiments
- Results (Table 3): The similarity between character-edited inputs and base sentences was (cosine .93–.94; LSTM 2.88–2.99; CNN 4.52–4.56), while the similarity between generated replies and base replies was lower (e.g., Movies character edits: cosine .67, LSTM 2.06, CNN 2.75); paraphrase inputs gave similar results.
- Authors' interpretation: The authors state that a single-character spelling error and paraphrasing can cause changes in semantics and output distribution, even though the adversarial input itself is more similar to the original input; preliminary analysis suggests that current neural dialogue generation systems may be susceptible to adversarial examples.
- Qualitative examples: Table 4 gives examples where VHRED (Reddit Movies) replies reverse or change meaning under character-edit and paraphrase inputs.
Privacy Leakage Experiments
- Results (Figure 1): As training epochs increased, the accuracy of the seq2seq model in extracting secret values by key rose to nearly 100%; this held for all three types of keypairs (UUID, English Vocab, Subsampled, all with sequence length 5).
- Exception: The authors point out that when keypair information is subsampled from the corpus, the information is less statistically significant and harder to extract.
- Authors' interpretation: The authors state that models that are insufficiently generalized or improperly filtered in training data can leak privacy through simple extraction, even when sensitive information accounts for <0.1% of the data; and they believe the results can generalize to other datasets and encoder-decoder models.
Other Ablations and Analyses
- The three parts on safety, RL, and reproducibility did not involve experiments and are only literature discussion and recommendations.
What are some points that can be further explored?
The authors give directions for extension in each section: bias detection models, definitions of generative adversarial examples, privacy-preserving training, conditional safety guarantees, etc.
Limitations and future directions noted by the authors
- Bias detection models need extension (Bias section): The authors state that the detection models sometimes misclassify content and are suitable for preliminary characterization of datasets, but these bias evaluation models have considerable room for extension.
- Generative adversarial examples not formalized (Adversarial Examples section): Defining adversarial examples in strictly generative settings (without an accuracy or error metric) remains an open problem, especially in dialogue settings; further formalization is needed, and robustness directions such as incorporating adversarial examples through data augmentation during training should be explored.
- Privacy-preserving training (Privacy section): Future directions include integrating automatic anonymization and differential privacy into dialogue models; the authors state that privacy-aware dialogue models are a prerequisite for deploying generative shared-learning models.
- Safety guarantees (Safety section): The authors consider absolute safety guarantees likely unrealistic or even impossible, but relative to a model that predicts unsafe behavior, providing conditional safety guarantees (an upper bound on the probability of unsafe replies) should be possible; further research is needed on risk identification, performance and safety guarantees, interpretability, interruptibility, and human intervention.
- RL-specific issues (RL section): Dialogue evaluation remains unsolved, safety risk identification involves additional complex mechanisms, and more research is needed on guarantees for RL policies, reward functions, and objective formalization.
- Reproducibility (Reproducibility section): The authors emphasize that code, pretrained models, and training details should be released, and that reproducible, ethical, and fair evaluation methods are needed.
Scope of experiments
- The bias experiments cover 4 datasets and 2 generative models (HRED, VHRED) with beam search and random sampling; the word vector experiments compare only one LSTM language model each for Word2Vec and its debiased version.
- The adversarial experiments use only 1 VHRED retrieval model, 2 datasets (Reddit Movies, Reddit Politics), and 20 base sentences, and do not test generative models or other attack types.
- The privacy experiment has a scale of 10k dialogue pairs plus 10 keypairs and a single seq2seq model; the paper does not report the number of repetitions or variance.
- The safety, RL, and reproducibility sections have no experiments and are discussion only.
- The paper does not report agreement between the bias detection models and human annotation (it only states that a sampled subset was checked).
Summarize the main content of the paper
A preliminary survey on the ethics and safety of data-driven dialogue systems, including three sets of demonstration experiments and recommendations in six areas.
This is a survey paper on the ethics and safety of data-driven dialogue systems; the authors review six topics—bias, adversarial examples, privacy, safety, reinforcement learning, and reproducibility—and supplement them with demonstration experiments.
- Problem: Dialogue systems are increasingly widespread and are entering critical settings such as in vehicles, but the authors point out that their ethical and safety issues are rarely discussed in the literature and in practice; training data come from online platforms and may contain bias that models imitate.
- Method: Literature review plus three sets of small-scale experiments—using off-the-shelf detectors to measure bias and offensive content in four dialogue datasets and two generative models; comparing language models trained on word vectors before and after debiasing; testing character-edit and paraphrase adversarial inputs and secret information extraction by a seq2seq model.
- Bias results: The authors report that all four datasets contain biased, hateful, or offensive content (offensive language in Reddit Politics accounts for 4.50%, Table 1); content generated by HRED/VHRED random sampling also contains such content; debiasing word vectors brings only about a 1−2.5% overall distribution change (Table 2).
- Adversarial and privacy results: The authors state that single-character edits and paraphrases can change the semantics of VHRED replies (Table 3); the seq2seq model can extract secret information accounting for <0.1% of the data by key with near 100% accuracy (Figure 1).
- Authors' conclusions: The authors believe that current methods such as debiasing can only slightly prevent the propagation of bias, generative adversarial examples remain to be formalized, privacy-aware training is a prerequisite for deployment, and absolute safety guarantees may be unrealistic but conditional guarantees should be feasible; the authors hope to stimulate discussion and research on safe, ethical dialogue systems.