<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Dialogue response generation with Wasserstein generative adversarial networks</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Centre for Artificial Intelligence Research</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of KwaZulu-Natal</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>This research evaluates the effectiveness of a Generative Adversarial Network (GAN) for open domain dialogue response systems. The research involves developing and evaluating a Conditional Wasserstein GAN (CWGAN) for natural dialogue response generation. We begin by exploring the latest research in GANs for text generation, build a dataset for experimentation, develop our GAN architecture and model and then evaluate the results it produced.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        quence. The discriminator must learn to distinguish between real response sequences
and generated response sequences; while the generator aims to fool the discriminator
into predicting that the generated response sequence is a real response sequence. This
dynamic suggests that training a GAN to generate sequences may not be prone to the
same problems as MLE based models [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ][
        <xref ref-type="bibr" rid="ref2">2</xref>
        ][
        <xref ref-type="bibr" rid="ref8">8</xref>
        ][
        <xref ref-type="bibr" rid="ref16">16</xref>
        ]. The generator’s objective is to
generate responses that fool the discriminator rather than being trained on the ground
truth alone.
      </p>
      <p>
        Training GANs on text is not trivial because discrete data is non-differentiable and an
unstable training objective. To solve this problem many approaches have been taken
in literature. Some of the approaches have used a policy gradient approach such as
SeqGAN [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], REGS [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], RankGAN [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] and StepGAN [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ]. Other approaches look
to modifying the objective function such as MaliGAN [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], Gumbel-softmax [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ],
Soft-argmax [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] and Wasserstein distance [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ][
        <xref ref-type="bibr" rid="ref2">2</xref>
        ][
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>
        The Wasserstein or earth mover distance with gradient penalty has shown to produce
higher quality text language models [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ][
        <xref ref-type="bibr" rid="ref2">2</xref>
        ][
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The Wasserstein distance measures the
work done in moving the generated response distribution towards the real response
distribution. It forces the discrete data to work in a continuous field so that it is
differentiable for back propagation. It makes training easier by providing a softer metric to
compare the distributions [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. We apply this objective function as well as the
conditional GAN structure such that the generated output sequence is conditioned on some
prior input sequence. The GAN functions as an end-to-end text-based dialogue
response system.
      </p>
      <p>
        Recurrent Neural Networks (RNN) are well suited for learning sequences because it
can retain information through training time steps [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ][
        <xref ref-type="bibr" rid="ref2">2</xref>
        ][
        <xref ref-type="bibr" rid="ref3">3</xref>
        ][
        <xref ref-type="bibr" rid="ref9">9</xref>
        ][
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]. Thus, our system
uses RNNs in the generator and discriminator models. To aid the generator in
training, we employ some techniques from literature such as gradually increasing the
length of generated sequences, varying the length during training and conditioning on
shorter ground truth sequences [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>In our work we evaluate the efficacy of a conditional Wasserstein GAN for dialogue
response generation. A large dataset of reddit comments and replies was processed
this data one million comments and replies (input and response) sequences. Smaller
subsets of the dataset are taken and split into training, test and validation sets.
Evaluation of open domain dialogue systems is difficult because there are many
acceptable responses to an input. We have evaluated using the Bilingual evaluation
understudy (BLEU) score which compares n-grams between the generated and target
response. A random example from the test set is given the comment “Droste effect,
Google it.” The target response is “Ok” while the generated response is “Thank you!”.
The BLEU score is poor because there are no matching n-grams while both responses
may be deemed acceptable to human evaluators. The approach is promising and we
expect good results.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Rajeswar</surname>
          </string-name>
          ,
          <string-name>
            <surname>Sai</surname>
          </string-name>
          , et al.
          <article-title>"Adversarial generation of natural language</article-title>
          .
          <source>" arXiv preprint arXiv:1705.10929</source>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2. Press, Ofir, et al.
          <article-title>"Language generation with recurrent generative adversarial networks without pre-training."</article-title>
          <source>arXiv preprint arXiv:1706.01399</source>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Sutskever</surname>
            , Ilya,
            <given-names>Oriol</given-names>
          </string-name>
          <string-name>
            <surname>Vinyals</surname>
          </string-name>
          , and
          <string-name>
            <surname>Quoc</surname>
            <given-names>V.</given-names>
          </string-name>
          <string-name>
            <surname>Le</surname>
          </string-name>
          .
          <article-title>"Sequence to sequence learning with neural networks</article-title>
          .
          <source>" Advances in neural information processing systems</source>
          .
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Goodfellow</surname>
          </string-name>
          ,
          <string-name>
            <surname>Ian</surname>
          </string-name>
          , et al.
          <article-title>"Generative adversarial nets</article-title>
          .
          <source>" Advances in neural information processing systems</source>
          .
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5. Liu,
          <string-name>
            <surname>Chia-Wei</surname>
          </string-name>
          , et al.
          <article-title>"How not to evaluate your dialogue system: An empirical study of unsupervised evaluation metrics for dialogue response generation</article-title>
          .
          <source>" arXiv preprint arXiv:1603.08023</source>
          (
          <year>2016</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Gulrajani</surname>
          </string-name>
          ,
          <string-name>
            <surname>Ishaan</surname>
          </string-name>
          , et al.
          <article-title>"Improved training of wasserstein gans</article-title>
          .
          <source>" Advances in neural information processing systems</source>
          .
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Yu</surname>
          </string-name>
          ,
          <string-name>
            <surname>Lantao</surname>
          </string-name>
          , et al.
          <article-title>"Seqgan: Sequence generative adversarial nets with policy gradient."</article-title>
          <source>Thirty-First AAAI Conference on Artificial Intelligence</source>
          .
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Che</surname>
          </string-name>
          ,
          <string-name>
            <surname>Tong</surname>
          </string-name>
          , et al.
          <article-title>"Maximum-likelihood augmented discrete generative adversarial networks</article-title>
          .
          <source>" arXiv preprint arXiv:1702.07983</source>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <surname>Jiwei</surname>
          </string-name>
          , et al.
          <article-title>"Adversarial learning for neural dialogue generation</article-title>
          .
          <source>" arXiv preprint arXiv:1701.06547</source>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Fedus</surname>
          </string-name>
          , William, Ian Goodfellow, and
          <string-name>
            <surname>Andrew</surname>
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Dai</surname>
          </string-name>
          .
          <article-title>"MaskGAN: better text generation via filling in the_." arXiv preprint arXiv:</article-title>
          <year>1801</year>
          .
          <volume>07736</volume>
          (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Kusner</surname>
          </string-name>
          , Matt J., and
          <string-name>
            <surname>José Miguel</surname>
          </string-name>
          Hernández-Lobato.
          <article-title>"Gans for sequences of discrete elements with the gumbel-softmax distribution</article-title>
          .
          <source>" arXiv preprint arXiv:1611.04051</source>
          (
          <year>2016</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Mirza</surname>
            , Mehdi, and
            <given-names>Simon</given-names>
          </string-name>
          <string-name>
            <surname>Osindero</surname>
          </string-name>
          .
          <article-title>"Conditional generative adversarial nets</article-title>
          .
          <source>" arXiv preprint arXiv:1411.1784</source>
          (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Lin</surname>
          </string-name>
          ,
          <string-name>
            <surname>Kevin</surname>
          </string-name>
          , et al.
          <article-title>"Adversarial ranking for language generation</article-title>
          .
          <source>" Advances in Neural Information Processing Systems</source>
          .
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Mikolov</surname>
          </string-name>
          ,
          <string-name>
            <surname>Tomáš</surname>
          </string-name>
          , et al.
          <article-title>"Recurrent neural network based language model." Eleventh annual conference of the international speech communication association</article-title>
          .
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15. Zhang, Yizhe, Zhe Gan, and
          <string-name>
            <given-names>Lawrence</given-names>
            <surname>Carin</surname>
          </string-name>
          .
          <article-title>"Generating text via adversarial training</article-title>
          .
          <source>" NIPS workshop on Adversarial Training</source>
          . Vol.
          <volume>21</volume>
          .
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Tuan</surname>
          </string-name>
          ,
          <string-name>
            <surname>Yi-Lin</surname>
          </string-name>
          , and
          <string-name>
            <surname>Hung-Yi Lee</surname>
          </string-name>
          .
          <article-title>"Improving conditional sequence generative adversarial networks by stepwise evaluation."</article-title>
          <source>IEEE/ACM Transactions on Audio, Speech, and Language Processing 27.4</source>
          (
          <year>2019</year>
          ):
          <fpage>788</fpage>
          -
          <lpage>798</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Vinyals</surname>
            , Oriol, and
            <given-names>Quoc</given-names>
          </string-name>
          <string-name>
            <surname>Le</surname>
          </string-name>
          .
          <article-title>"A neural conversational model</article-title>
          .
          <source>" arXiv preprint arXiv:1506.05869</source>
          (
          <year>2015</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>