# A Neural Conversational Model

Sequence-to-sequence networks can hold open-ended conversations after training on text alone

Oriol Vinyals, Quoc Le · arXiv · 2015-6-19

- **Problem** Conversational agents have usually been built as multi-stage pipelines with heavy hand-crafted rules, which ties each one to a narrow domain. Those pipelines do not carry over to new domains without rebuilding them.
- **Method** The authors train a sequence-to-sequence LSTM to predict the next reply from the preceding turns. At run time it generates each reply one token at a time, feeding each predicted token back in as the next input.
- **Results** The model converses on an IT helpdesk dataset and a movie subtitle dataset without hand-crafted rules. On 200 questions, judges preferred it over CleverBot on 97 questions against 60.

## Why dialogue resists hand-built pipelines

Conversational agents have usually been assembled as multi-stage processing pipelines, and each one is tied to a narrow domain. Neural sequence-to-sequence models had already been applied to tasks such as machine translation, parsing and image captioning, and they were reported to need little feature engineering.

The study asks whether one end-to-end model, trained only on pairs of consecutive conversation turns, can produce useful replies in a narrow technical domain. It also asks whether the same kind of model, trained on large and noisy movie subtitles, can hold a natural exchange and answer simple common-sense questions.

## Casting replies as sequence prediction

For conversation, the input is the concatenation of the turns exchanged so far, and the output is the next reply. In the two-turn example, the network is trained to map the first utterance to the reply, and the hidden state at the end-of-sequence symbol holds what the first utterance says, which the paper calls a thought vector.

Because the same architecture covers translation and question answering, the conversational use requires no change to the network itself. The authors point out that this objective does not match the goal of human dialogue, which is longer term and based on exchanging information rather than predicting the next step.

## Greedy decoding at run time

At inference the true reply is unavailable, so each predicted token is fed back in as the next input. This greedy procedure is the decoding used throughout the experiments.

Beam search would keep several candidate outputs at each step and select a final sequence by its probability, but the paper mentions it only as a less greedy option and does not use it. The trained parameters stay fixed during generation, and the only run-time input is the conversation context.

## Two training corpora with different structure

The IT helpdesk corpus holds chat sessions in which a specialist guides a customer through fixing a computer problem.

The OpenSubtitles corpus is movie dialogue in XML. The tags and non-conversational text were removed, and because turn taking is not marked, consecutive sentences were treated as coming from different speakers. Each sentence serves both as context for one pair and as the target of another, which doubles the number of pairs. The training split has 62M sentences (923M tokens) and the validation split has 26M sentences (395M tokens).

Each sentence pair falls entirely in either the training or the test side.

OpenSubtitles is much larger and noisier than the helpdesk data, because consecutive sentences may come from the same character. Its broad topical scope makes it an open-domain dataset, in contrast with the technical helpdesk data.

## Helpdesk troubleshooting results

The helpdesk model is a single-layer LSTM with 1024 memory cells, trained with stochastic gradient descent and gradient clipping. Its vocabulary is the 20K most common words, plus special tokens that mark turn taking and the actor.

The three simulated sessions cover remote access, software crashes and password issues. In the VPN session the model asks about the operating system, the network connect version and whether the user is at home or at work, then suggests a login step that the user confirms works. In the browser session it asks for terminal commands to run and then asks the user to sign out and log back in.

The authors state that the model can sometimes track the problem and give a useful answer, and the three sessions are the qualitative evidence for that statement.

## Perplexity on OpenSubtitles against the n-gram baseline

The OpenSubtitles model is a two-layer LSTM with 4096 memory cells per layer, trained with AdaGrad and gradient clipping. Its vocabulary is the 100K most frequent words, and the memory cells are projected to 2048 linear units before the classifier to speed up the softmax.

On the validation set the recurrent model reaches a perplexity of 17, and a smoothed 5-gram model reaches 28. Perplexity is the measure used for both systems, and the lower value here belongs to the recurrent model.

Adding the soft attention mechanism of Bahdanau et al. (2014) gave no clear perplexity gain on either the training or the validation sets. Only this one attention variant was tested, so the result says nothing about other attention designs.

## Generalization in sample dialogues

The samples cover basic chat, simple question answering over a stated name or role, general knowledge, morality and opinions. The model answers a question about the number of legs of a spider with three, and a question about the number of legs of a centipede with eight.

The authors note that most of these questions do not appear in the training set, so the answers are not simple lookups of matching training pairs. The authors read this as the model answering from the parameters in the word vectors, without any explicit knowledge representation.

The samples also show errors, such as answering ten minus two with seventy - two and giving a non-numeric answer to a question about the colour of water.

## Preference judgments against CleverBot

The comparison uses 200 questions, and four human judges choose the better of two replies or declare a tie. A preference is recorded only when three of the four judges agree.

The model was preferred on 97 of the 200 questions and CleverBot on 60. There were 20 ties, and on 23 questions the judges disagreed.

CleverBot's outputs are non-deterministic, so its answers may differ across trials. The questions and answers are provided in an external file, and the authors note that designing a good metric for conversational quality is still open.

## Limitations

The basic model often gives simple, short answers, and some answers are unsatisfying.

The model does not keep a consistent personality. In the job conversation it says it is a lawyer and then that it is a doctor. The authors attribute the inconsistency to the simplicity of the model and of the dataset.

The objective does not reward longer-term exchange, and a purely unsupervised model has no mechanism for consistency or general world knowledge. The authors say the lack of a coherent personality makes passing the Turing test difficult.

Only one attention variant and only three helpdesk sessions were examined.

## Paper info

- **Authors**: Oriol Vinyals, Quoc Le
- **Venue**: arXiv · Preprint
- **First published**: 2015-6-19
- **Added**: 2026-11-12
- **Updated**: 2015-7-22
- **Version**: v3
- **arXiv**: 1506.05869
- **Category**: cs.CL
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1506.05869v3) · [PDF ↗](https://arxiv.org/pdf/1506.05869v3)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Oriol Vinyals, Quoc Le (2015). A Neural Conversational Model. arXiv:1506.05869v3. https://arxiv.org/abs/1506.05869v3

**BibTeX**

```
@misc{vinyals2015neural,
  title = {{A Neural Conversational Model}},
  author = {Oriol Vinyals and Quoc Le},
  year = {2015},
  eprint = {1506.05869},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1506.05869v3}
}
```

## Other paper commentary

- [OpenNMT: Open-Source Toolkit for Neural Machine Translation](https://refivu.com/en/papers/d158ab7b-d0c6-4ffd-a069-53d34c28b7eb-opennmt-open-source-toolkit-for-neural-machine-translation.md)
- [FEVER: a large-scale dataset for Fact Extraction and VERification](https://refivu.com/en/papers/59763d9c-0c11-477a-89ee-abea10ff28a0-fever-a-large-scale-dataset-for-fact-extraction.md)
- [Google's Multilingual Neural Machine Translation System: Enabling Zero-Shot Translation](https://refivu.com/en/papers/0924ecf7-d413-4972-9e1d-36ae4961169c-google-s-multilingual-neural-machine-translation-system.md)
- [Text Summarization with Pretrained Encoders](https://refivu.com/en/papers/7b8e7251-bfcc-4cab-9359-040ecd948516-text-summarization-with-pretrained-encoders.md)
- [SpanBERT: Improving Pre-training by Representing and Predicting Spans](https://refivu.com/en/papers/11f04ed9-a517-4d5d-a835-58a3e13f7118-spanbert-improving-pre-training-by-representing-and.md)
- [Named Entity Recognition with Bidirectional LSTM-CNNs](https://refivu.com/en/papers/454922d0-d836-4e69-a3cd-d40cf940d456-named-entity-recognition-with-bidirectional-lstm-cnns.md)
- [Super-Convergence: Very Fast Training of Neural Networks Using Large Learning Rates](https://refivu.com/en/papers/6770e9ca-a3e2-40e5-bf7e-fd1daf28cf68-super-convergence-very-fast-training-of-neural-networks.md)
- [BloombergGPT: A Large Language Model for Finance](https://refivu.com/en/papers/2dae70a1-3c88-432c-b934-14abfe8cc431-bloomberggpt-a-large-language-model-for-finance.md)
- [Exploiting Unintended Feature Leakage in Collaborative Learning](https://refivu.com/en/papers/422f8c4a-b03f-4b77-a90a-48be0d614527-exploiting-unintended-feature-leakage-in-collaborative.md)
- [Learning from Simulated and Unsupervised Images through Adversarial Training](https://refivu.com/en/papers/932cb1b6-f4a0-43ce-8dda-320fa18f82a5-learning-from-simulated-and-unsupervised-images-through.md)
- [Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection](https://refivu.com/en/papers/8c7ef054-dbb9-4dbc-aa5f-7f764d2b0d6b-not-what-you-ve-signed-up-for-compromising.md)
- [Making Pre-trained Language Models Better Few-shot Learners](https://refivu.com/en/papers/58cbc07a-35f5-4401-ada0-4d09082241d1-making-pre-trained-language-models-better-few-shot.md)

## Terms in this paper

- [LSTM](https://refivu.com/en/terms/ba10547646d9-lstm)
- [perplexity](https://refivu.com/en/terms/2b204e513801-perplexity)
- [beam search](https://refivu.com/en/terms/3e449f8f713b-beam-search)
- [Adagrad](https://refivu.com/en/terms/d6141e5e2b98-adagrad)
- [greedy decoding](https://refivu.com/en/terms/668f299cabe4-greedy-decoding)
- [gradient clipping](https://refivu.com/en/terms/6fc07396f3f7-gradient-clipping)
- [SEQ2SEQ](https://refivu.com/en/terms/6f6133892227-seq2seq)
- [Token](https://refivu.com/en/terms/130ef85207eb-token)
- [cross entropy](https://refivu.com/en/terms/f914876d14b2-cross-entropy)
- [OpenSubtitles dataset](https://refivu.com/en/terms/c37c27ed8922-opensubtitles-dataset)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/2838569c-2f3a-45e5-86e6-549de8737d24-a-neural-conversational-model)
