---
title: "The JDDC Corpus — paper by Chen et al. (2020)"
description: "JDDC records Chinese e-commerce support conversations and tests how well systems retrieve or write replies across multiple turns."
canonical: "https://research.elamur.ai/free/en/papers/chen-2020-jddc-corpus-large-scale-multi/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/chen-2020-jddc-corpus-large-scale-multi/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2020](https://md.research.elamur.ai/free/en/papers/2020/) / The JDDC Corpus: A Large-Scale Multi-Turn Chinese Dialogue Dataset for E-commerce Customer Service

# The JDDC Corpus: A Large-Scale Multi-Turn Chinese Dialogue Dataset for E-commerce Customer Service

Paper · 2020 · Meng Chen, Ruixue Liu, Lei Shen et al.

**Authors:** [Meng Chen](https://md.research.elamur.ai/free/en/authors/meng-chen/), Ruixue Liu, [Lei Shen](https://md.research.elamur.ai/free/en/authors/lei-shen/), [Shaozu Yuan](https://md.research.elamur.ai/free/en/authors/shaozu-yuan/), [Jingyan Zhou](https://md.research.elamur.ai/free/en/authors/jingyan-zhou/), Youzheng Wu, [Xiaodong He](https://md.research.elamur.ai/free/en/authors/xiaodong-he/) and [Bowen Zhou](https://md.research.elamur.ai/free/en/authors/bowen-zhou/) · **Year:** 2020 · **Venue:** Proceedings of the Twelfth Language Resources and Evaluation Conference · **Licence:** [CC BY-NC 4.0 (ELRA, LREC proceedings)](https://creativecommons.org/licenses/by-nc/4.0/)

[Cited by **18** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/chen-2020-jddc-corpus-large-scale-multi/cited-by/) · Proceedings of the Twelfth Language Resources and Evaluation Conference · [licence](https://creativecommons.org/licenses/by-nc/4.0/)

- [Publisher's page](https://aclanthology.org/2020.lrec-1.58/)
- [PDF](https://aclanthology.org/2020.lrec-1.58.pdf)

## Summary

A customer asks to change the delivery address on an order. When the change proves impossible, they ask when a refund would arrive, then return to the address problem to complain. Each message belongs to the same conversation, but each calls for a different kind of reply. The study introduces the Jing Dong Dialogue Corpus, or JDDC, to capture this progression in Chinese e-commerce support. It draws on conversations between customers and staff, where a request to take action, a question about policy and an expression of frustration can all arise within the same exchange. For [dialogue systems](https://md.research.elamur.ai/free/en/topics/dialogue-systems/), the challenge is to recognize what the customer needs at the current turn and identify which parts of the conversation still matter.

The corpus contains 1,024,196 sessions, 20,451,337 utterances and 150,716,172 words after Chinese word segmentation. A session averages 20 turns. The authors attach a predicted intent to each customer query using a classifier that covers 289 after-sales intents. They also release separate human-annotated challenge sets. These ask a system to answer after a recorded conversation, to produce replies as customer questions arrive in sequence, or to continue a recorded conversation and then carry its own replies forward. Each question has several weighted reference answers, since different replies can serve the same purpose.

The baseline experiments use a more compact task. Each system sees the current question and the most recent exchanges, then returns a reply. The paper compares approaches that select a response from earlier conversations with approaches that compose a response. Reranking search results with BERT improves on lexical search across the reported metrics. The strongest overlap scores come from Seq2Seq-Copy, a generator that can reuse words from its input. On the JDDC test set it reaches 14.27 BLEU and 23.62 ROUGE-L, measures that reward overlap with recorded replies. BERT-Retrieval leads on both reported measures of word-sequence diversity.

The examples reveal what these scores leave open. Retrieval can find a response about the right product and still answer the wrong question about it. Generation can produce a familiar service phrase at a point where the customer needs a concrete next step. JDDC makes these failures visible in real conversations and provides separate evaluation settings for studying how they develop when a system has to keep answering.

## Deep dive: The JDDC Corpus: A Large-Scale Multi-Turn Chinese Dialogue Dataset for E-commerce Customer Service

JDDC records Chinese e-commerce support conversations and tests how well systems retrieve or write replies across multiple turns. · about 31 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### A conversation can change jobs midstream

An after-sales conversation has a practical purpose. A customer may need to return a product, learn when a delivery will arrive or change something about an order. Yet the practical purpose of a conversation is broader than the purpose of any message within it. A request to change an order can lead to a question about a store policy, which can in turn lead to a complaint about the options the policy leaves open. An agent writing the next reply has to work out what the customer is doing now as well as what brought them to the conversation.

The paper demonstrates this using an exchange about an address change. The staff member initially says a delivery worker can help if the addresses are within the same city. The customer clarifies that the change would cross city boundaries. The staff member then explains that this kind of change is unavailable and suggests placing a new order. When the customer asks about refunds, the answer depends on how the order was paid for. The next relevant exchange returns to the failed address change, and the customer voices frustration. The staff member responds to that frustration and later closes the conversation after the customer accepts the explanation.

The refund question temporarily changes what the agent has to pay attention to. It connects to the possibility of canceling the order, but answering it calls for payment-specific information. When the customer protests, the relevant part of the history is once again the earlier answer about the address change. Looking only at the preceding refund reply would leave out the decision that prompted the complaint. Equally, reading the whole session as a request about an address would miss that the customer expects an answer about refund timing in the middle of it.

There is also a distinction between information that explains why the customer is asking and information that determines what the staff member can offer. The customer describes travel plans when explaining the need to change the address. Those plans make the urgency intelligible. The restriction itself hinges on the locations being in different cities. An agent may draw on both kinds of information for different parts of its reply. A corpus that preserves the surrounding messages lets researchers see this distinction in the exchange instead of presenting only an isolated request and answer.

The authors use examples like this to explain why they want conversations with continuity, volume and a range of communicative purposes. They describe the next reply as depending on context, intent and, in some cases, information beyond the conversation. They also mention factors such as common sense, emotion and what the participants know about one another. These are reasons a conversation can support several reasonable replies. Even where there is a definite answer to a policy question, the way a staff member explains it, acknowledges a complaint or moves toward closing can vary.

#### Different ways to obtain dialogue data

The paper groups previous corpus construction work by how conversations were obtained. A major source was existing text on social networks and forums. Those sources offered a great deal of language without requiring researchers to organize conversations themselves. The authors point to short exchanges drawn from social posts and to forum resources such as the [Ubuntu Dialogue Corpus](https://md.research.elamur.ai/free/en/papers/lowe-2015-ubuntu-dialogue-corpus-large-dataset/). The issue they emphasize is how messages connect. A reply may respond directly to the opening post, several participants may enter the discussion, and the intervening messages may contribute little to interpreting the particular reply a system is asked to predict.

That distinction matters even when a collection has a large number of utterances. A thread can be long because many people react to the same post. In a support session, length can come from successive steps in working out a customer's problem. A clarification changes the interpretation of an earlier request, an answer rules out an option, and the customer asks about what remains possible. The authors want several turns from the same interaction to be available as evidence for the next reply. They discuss movie subtitle collections as another source of long sequences, while pointing out that some sequences include extended speech by one person. A long run of subtitle lines can therefore provide a different kind of material from the alternating work of a support exchange.

Researchers also arranged conversations around prompts, instructions or pre-defined tasks. The paper describes a knowledge-driven collection in which one participant leads and the conversation has a goal specified in advance. It also cites [PERSONA-CHAT](https://md.research.elamur.ai/free/en/papers/zhang-2018-personalizing-dialogue-agents-i-have/) as an example in which crowd workers converse with persona information. These approaches give the collector a way to shape the exchange while leaving participants room to phrase their own contributions. The choice of what to specify in advance affects which kinds of conversational development the resulting examples represent.

Another approach starts with the structure of the dialogue. In the [Schema-Guided Dialogue Dataset](https://md.research.elamur.ai/free/en/papers/rastogi-2019-towards-scalable-multi-domain-conversational/), a simulator supplies outlines that crowd workers then express in ordinary language. In its discussion of structured resources, the JDDC paper also refers to multi-domain task-oriented datasets such as [MultiWOZ](https://md.research.elamur.ai/free/en/papers/budzianowski-2018-multiwoz-large-scale-multi-domain/). An annotation such as a slot and its value makes a particular piece of task information explicit. The authors characterize datasets with this kind of structure as generally limited in size and oriented toward accomplishing defined tasks. JDDC begins with exchanges that already occurred and adds intent information and answer annotations afterwards.

#### The closest comparison was already about shopping

The most direct predecessor in the paper's account is ECD, another corpus from Chinese e-commerce. Its conversations came from Taobao, and the authors describe its coverage as preserving exchanges from actual service conversations. That makes it a closer comparison than a collection built from posts, subtitle lines or scripted tasks. The work that introduced it is [Modeling Multi-turn Conversation with Deep Utterance Aggregation](https://md.research.elamur.ai/free/en/papers/zhang-2018-modeling-multi-turn-conversation-deep/).

For ECD, the paper reports 1,020,000 dialogues and 7,500,000 utterances, with 7 turns per session. The comparison establishes why raw dialogue count alone mattered less to the authors than what each session preserved. Their aim was to make more of the history available within an exchange. They also identify an evaluation gap in ECD, which they describe as lacking annotated test data. JDDC addresses that gap with dedicated sets that make different parts of the conversation visible and offer several annotated answers to the same question.

The scope of the problem follows from this comparison. An after-sales corpus can support research on task completion without requiring every turn to advance a transaction. It can also support work on [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/) while preserving occasions when the right conversational move is a clarification, an acknowledgment or a response to dissatisfaction. The source of the material matters because the customer and staff member decide when to make those moves during the conversation itself.

### The method, step by step

#### From support logs to a research corpus

The authors begin with conversations between customers and service staff on Jing Dong, the Chinese e-commerce site also called JD. The collection keeps complete sessions as its basic unit. Within each session are individual contributions, which the paper counts as utterances. Once a conversation is used to predict a reply, the distinction becomes important. The session provides the history, while an individual reply can be withheld and used as the target for a benchmark example.

The pipeline combines preparation of the text with additions made for research. After collecting the logs, the authors remove duplicates and anonymize sensitive material. Their examples include replacing numbers with the placeholder `<NUM>` and replacing order identifiers with `<ORDER-ID>`. The resulting text can still signal that a number or order identifier occurred there. These placeholders also change what can be studied with the released wording. A system can see that a message contains an order identifier, for instance, while the original identifier has been removed.

The authors then use Jieba for Chinese [word segmentation](https://md.research.elamur.ai/free/en/concepts/tokenization/). Segmentation determines what counts as a word in the tokenized corpus. That matters when reading the reported totals and averages. A session is an interaction, an utterance is a contribution within that interaction, and a word is a unit produced by the segmentation procedure. Those units describe different aspects of the collection. A corpus can preserve lengthy exchanges in turns even if individual messages contain only a few words.

How the authors build and benchmark JDDC The steps in order.

The authors make the corpus available as JDDC and identify the JingDong Dialogue Challenge as the competition associated with the challenge sets. The paper gives a common source for the full corpus and its evaluation tasks, but the tasks involve different preparation. Intent prediction adds an attribute to the existing queries. Challenge annotation adds acceptable answers to selected evaluation questions. Preparing the baseline data involves extracting a short input and its recorded reply from a session. A researcher can therefore distinguish the material collected from customers and staff from the judgments or targets added for a particular experiment.

#### Label the purpose of each customer query

The intent is the kind of request or goal that the customer is expressing. Asking how soon a parcel will arrive, asking where it is and asking to change its destination concern delivery, but each calls for a different action or answer. An intent label gives the researcher an explicit category for that distinction. The authors apply a classifier with 289 categories to the customer queries across the corpus.

The training examples for that classifier come from professional support staff. The paper reports 578,127 annotated instances in its intent-classification training data. The staff judgments on those instances provide the targets from which the classifier learns. The corpus-wide labels are then the classifier's predictions. This distinction between human [annotation](https://md.research.elamur.ai/free/en/concepts/annotation/) and automatic labeling is important because the two serve different purposes. The human examples define the learning problem, and the predicted labels make the resulting categories available across the much larger collection.

The classifier takes dialogue context into account using a [Hierarchical Attention Network](https://md.research.elamur.ai/free/en/papers/yang-2016-hierarchical-attention-networks-document-classification/). At the level the paper describes, the significance of this choice is that the category can depend on prior turns as well as on what the customer just typed. A short follow-up may inherit its subject from an earlier question. Likewise, a customer who repeats a phrase after an explanation may now be disputing the answer or narrowing the request. The context helps identify which use is more plausible.

The authors report 93% classification accuracy for the intent classifier. That figure concerns its classification task. It is a different measurement from any score for producing a useful reply, and it does not turn each predicted label into a staff annotation. Correctly identifying a customer query as a warranty concern would still leave the problem of answering the particular question. The benchmark inputs described later in the paper contain the dialogue text and current query. The intent labels are a resource supplied with JDDC, and their contribution to the reported reply scores is unmeasured.

#### Vary what a system knows before it answers

The challenge sets change the information available at prediction time. Their starting point is a sequence of customer questions and staff replies. The paper uses q for a question and r for its response, with a subscript giving their position in the exchange. The crucial choice is which responses to reveal. Withholding only the last reply creates a test of reading a recorded conversation. Withholding replies throughout creates a test in which earlier output becomes part of the situation in which later output is generated.

In Challenge Set I, the system gets the recorded exchange up to the final customer question and supplies the last response. Earlier customer and staff turns are available. A system can use an earlier clarification or staff decision without first having to produce that clarification or decision itself. This is the setup most directly concerned with using a longer history to answer one question. The set contains 300 annotated dialogues, with 300 questions to answer.

Challenge Set II presents the customer questions in sequence and masks the corresponding staff responses. The system supplies a reply as the exchange proceeds. Once it has answered a question, the previous output is part of the context it can draw on in later turns. This matters when the customer follows up on a distinction the staff member made in the recorded conversation. If the system's substitute reply omits that distinction or introduces a different one, the follow-up will arrive in a changed context. The set has 15 annotated dialogues and 168 questions to answer.

The second setup exposes a distinction between sequential response prediction and an interactive test with a customer. The benchmark questions come from the recorded conversation, and the visible history changes as the system writes replies. A later question can therefore refer to something the original staff member said, even if the system chose a different response. That arrangement can reveal problems with continuity and with recovering from an earlier reply. It does not let the researcher observe how a customer would adapt their next message to the reply the system actually produced.

Challenge Set III begins with a recorded portion of the conversation and asks the system to supply successive replies near the end. The diagram shows the system taking over for adjacent customer questions. It can draw on earlier human replies, then has to continue with its own output in the history. The authors describe the selected questions as relatively hard and emphasize those in the long tail, meaning cases away from the frequent patterns at the head of a distribution. The set contains 108 annotated dialogues and 500 questions to answer. The diagram explains the form of a continuation, while the reported totals describe the set as a whole.

The sets also vary in the number of acceptable answers provided. The authors annotate 10 candidate answers per question in Challenge Set I and Challenge Set II, and 3 per question in Challenge Set III. The answers have different weights. Multiple references recognize that an appropriate reply can be phrased in several ways or can take more than one acceptable direction. Weights let the evaluation distinguish references rather than treating them as equally informative. The authors mention [BLEU](https://md.research.elamur.ai/free/en/concepts/bleu/) as an example of a score that can use this richer annotation. They describe the role of the weights without presenting a separate formula for combining them.

Together these settings vary who supplies the conversation history and where the system begins answering. In the first, earlier responses come from staff. In the second, the system is responsible for the responses across the sequence. In the third, responsibility passes from the recorded staff exchange to the system partway through. The difference is consequential even if the final question could be presented as the same string in each condition. What the system can assume has already been established changes with the source of the preceding replies.

#### Construct the input–reply pairs for the baselines

The baseline preparation starts by dividing sessions into training, validation and test partitions. The authors filter some sessions they consider too short or too long. They then build input–reply pairs within the partitions. Splitting sessions before constructing examples means that examples drawn from the same session belong to the same partition. The design keeps a conversation's neighboring messages together when the authors decide what will be available for training and what will be held out.

Each baseline input contains the current customer query and the most recent two completed exchanges. A completed exchange contributes a customer query and its recorded staff reply. The response after the current query is the target. In the paper's notation, the example has this structure.

```
{I, R} = {q₁, r₁, q₂, r₂, Q, R}
```

I denotes the input and R denotes the target staff response. The left braces group the example into input and reply, and the right braces show its contents in conversation order. The equals sign equates those representations of the same example. q₁ and r₁ are the earlier customer query and staff response in the history. q₂ and r₂ are the next recorded query and response. Q denotes the current customer query. The subscripts distinguish positions in the retained history, and the commas separate the successive parts.

The input itself can be represented as follows.

```
I = {C, Q}
```

I is the input, C is the dialogue context and Q is the final query supplied to the system. The braces group the context and query, and the equals sign defines the input in terms of those parts. Here C consists of the two earlier query–reply exchanges. The final staff reply R remains outside the input and can be used as the answer to learn or as the reference for evaluating a prediction.

The baseline task thus preserves more than an isolated customer message. It gives the system the chance to resolve a follow-up using a recent answer or to recognize that the customer has moved from a question to a request. It also fixes how much recent context every baseline receives. The authors can compare selection and generation on the same kind of input. The full sessions and the separate challenge sets offer broader histories than this fixed window.

#### Find an earlier reply by searching for a similar situation

The retrieval approach begins with a repository of training pairs. The authors index the pairs in Elasticsearch, keeping the input from each pair associated with its recorded response. A new test input is used as a search query. The first comparison is between the new context and question and the stored context and question. The response attached to a high-scoring stored input becomes a possible reply for the new conversation.

The paper uses BM25 for this search. The score in the paper is written as a sum of term contributions.

```
S(Iₜₑₛₜ, I_dₒc) = ∑ᵢⁿ Wᵢ · S₁(wᵢ, I_dₒc) · S₂(wᵢ, Iₜₑₛₜ)
```

S is the overall relevance score. Iₜₑₛₜ is the test input containing the prior context and current query, and I_dₒc is the input of a stored pair in the search index. The labels ₜₑₛₜ and dₒc distinguish the test input from the indexed document input. The summation sign ∑ adds contributions indexed by i across the n word positions in the test input. wᵢ is the word at position i, and Wᵢ is its weight. The authors give inverse document frequency as an example of this weight, which allows words to differ in how much they contribute to a match. The centered dots multiply the weight and the two relevance factors. S₁ relates the indexed word to the stored input, and S₂ relates that same word to the test input. The subscripts ₁ and ₂ distinguish these two factors. The paper gives this factorization without expanding the individual scoring functions.

BM25 retrieves the top 20 candidate pairs. In the BM25 baseline, the system returns the reply attached to the top 1 result for evaluation. The mechanism is helpful when past customers used similar terms in similar situations. Its premise is that similarity between the descriptions of two situations provides evidence that the old reply is suitable for the new one. A shared product term can drive the search even when the questions concern different properties of the product.

#### Rerank the candidates by scoring the reply itself

BERT-Retrieval retains the initial BM25 search. It then changes the object being compared with the current input. BM25 finds earlier inputs that resemble the test input. The reranker takes each corresponding stored response and estimates how well that response fits the test context and query. This is the role of [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) in the retrieval pipeline.

For training, the authors mark the recorded input–reply pairs as positive examples. They select negative responses at random from the dataset and pair them with inputs. The ratio of positive to negative samples is 1:1. The classification target is whether a response belongs with the input under this construction. A randomly paired response gives the classifier a contrast with the one that actually occurred. In a domain with repeated service language, such labeling describes how a pair was produced. It does not require a human judgment that the randomly chosen response would be impossible in that situation.

The authors fine-tune the pretrained BERT system and add a dense classification layer with softmax. The layer turns the learned representation of the input and candidate response into scores for the response-matching decision. The paper follows the original BERT implementation's hyper-parameter settings. At test time, the reranker scores the candidates returned by search, reorders them and supplies the highest-scoring reply. Any response returned by BERT-Retrieval must therefore have passed through the lexical search stage. Reranking can change which of those candidates wins, while the search stage determines what is available to choose.

#### Compose a reply from the input

The generative baselines take the text of the retained context and current query as a single concatenated input. They learn to produce the recorded response as a sequence of words. The paper uses a sequence-to-sequence architecture, in which an encoder represents the input and a decoder produces the output. The vanilla baseline uses 512-unit, 4-layer bidirectional long short-term memory networks for the encoder and decoder, as the authors describe the implementation. The sequence-to-sequence baseline is associated with their earlier reference on short-text conversation, [Neural Responding Machine](https://md.research.elamur.ai/free/en/papers/shang-2015-neural-responding-machine-short-text/).

The attention variant lets the decoder draw differently on different parts of the input when producing successive words. In a concatenated service exchange, an earlier product mention, a recent staff reply and the final question all appear in the same input. Attention supplies a way for different parts of that text to contribute as the response is generated. The architecture is still trained to predict the recorded reply. The attention mechanism gives it a different way to use the input in doing so. The paper draws this mechanism from [Effective Approaches to Attention-based Neural Machine Translation](https://md.research.elamur.ai/free/en/papers/luong-2015-effective-approaches-attention-based-neural/).

Seq2Seq-Copy adds copying to the attention variant. The authors motivate it with terms that can be rare in the training vocabulary, including the name of JD's IOU service. A word may be useful in the reply even if it is uncommon across the corpus, particularly when it names the product or service under discussion. A copy mechanism gives the decoder a way to reproduce words from the input. It addresses the problem of expressing a term already present in the conversation. Choosing which terms to use and supplying a correct answer about them remain part of response generation. The mechanism comes from [Incorporating Copying Mechanism in Sequence-to-Sequence Learning](https://md.research.elamur.ai/free/en/papers/gu-2016-incorporating-copying-mechanism-sequence-sequence/).

Before training these generators, the authors clean the training pairs to reduce the prevalence of generic replies and replies shorter than 3 Chinese characters. This is an additional preparation step for generation. It is separate from filtering sessions by length and from sampling negatives for BERT. The remaining examples teach the decoder which responses to produce. The authors implement all generative baselines with [OpenNMT](https://md.research.elamur.ai/free/en/papers/klein-2017-opennmt-open-source-toolkit-neural/) and specify a vocabulary size of 100,000, a word embedding dimension of 200, a source length setting of 128 and a target length setting of 40. They use the target setting to curb excessive reply length and leave the other training parameters at their defaults.

### Experiments and results

#### What the corpus contains and what enters the test

JDDC has 1,024,196 sessions, 20,451,337 utterances and 150,716,172 segmented words. The average utterance contains 7.4 words, while sessions average 20 turns and range from 2 to 83 turns. Short messages can therefore form comparatively long exchanges. The authors' length histogram displays sessions shorter than 50 turns. They describe most conversations as falling between 9 to 30 turns, with sessions of 14 turns forming the largest group. These counts establish that there is room for earlier turns to matter. They do not tell a researcher which source message is needed for any particular reply.

The intent statistics characterize what customers use those sessions to discuss. The paper shows the distribution for the 20 leading categories. Warranty and return policy is the most common predicted intent and accounts for 9.2% of the intent labels. Prominent categories also include delivery duration, requests to change order information, inquiries about order status and requests to contact customer service. This is a distribution over labeled queries, and a session can contain several queries serving different purposes. The service categories describe recurring concerns without requiring a conversation to stay within a single category from beginning to end.

For the baseline experiment, the prepared training partition contains 963,358 sessions and 1,522,859 input–reply pairs. The validation partition contains 4,992 sessions and 5,000 pairs. The test partition also contains 4,992 sessions and 5,000 pairs. Session counts describe distinct conversations represented in a partition, while pair counts describe prediction examples. The benchmark table reports the outcomes of predicting the response in this prepared setup, where each example supplies the recorded recent context. The challenge sets with alternative answers and sequential prediction are described separately.

The five systems fall into two families. BM25 and BERT-Retrieval choose stored responses. Vanilla Seq2Seq, Seq2Seq-Attention and Seq2Seq-Copy produce new output sequences. The authors use the same reported response metrics across the families. This puts the returned text on a common footing for comparison even though the systems arrive at it in different ways and receive different training preparation.

#### Compare replies with the recorded answers

BLEU and ROUGE-L measure overlap between the output and a reference response. BLEU rewards matching word sequences. ROUGE-L concerns a common sequence in the same order, with room for intervening words. The result is a measure of how closely a reply resembles the recorded one in wording and structure. A relevant answer that takes a different approach can receive a low score. A recurring support phrase can receive credit if it also occurs in the reference. The baseline test compares against the recorded replies, so those possibilities matter when interpreting the ranking.

BLEU for response baselines on the JDDC test set The copy-augmented generator has the highest overlap score, closely followed by the attention generator.

**The numbers**

| System or setting | BLEU |
| --- | --- |
| BM25 | 9.94 |
| BERT-Retrieval | 10.27 |
| Vanilla Seq2Seq | 9.02 |
| Seq2Seq-Attention | 14.15 |
| Seq2Seq-Copy (this paper) | 14.27 |

BERT-Retrieval reaches 10.27 BLEU and 19.90 ROUGE-L on the JDDC test set, above BM25 at 9.94 BLEU and 19.47 ROUGE-L. The result shows that reordering candidates with a response-matching score can improve reference overlap even when the candidate pool comes from the same lexical search procedure. It remains a result for the combination of search and reranking. A stored reply missing from the candidate list cannot account for the improvement, since the reranker only compares replies on that list.

Vanilla Seq2Seq scores 9.02 BLEU and 17.11 ROUGE-L. Both figures fall below those of the retrieval baselines. The version with attention reaches 14.15 BLEU and 22.17 ROUGE-L. Seq2Seq-Copy records 14.27 BLEU and 23.62 ROUGE-L, the strongest overlap scores reported in the comparison. The ordering suggests that the way a generator uses its input is consequential here. The ability to write a new sequence is shared by all the generators, while the overlap advantage appears for the variants with attention.

The authors offer two explanations for the stronger overlap scores of the better generators. A generator can express a response that does not occur verbatim among the indexed training replies. Also, the recorded responses include generic phrases which the generators frequently produce. Retrieval may supply a reply with a concrete detail that differs markedly from the reference, particularly if it picked up on the wrong feature of a question. These explanations concern different ways an overlap score can rise or fall. The metric does not identify the explanation for a particular match.

#### Measure variation in the resulting replies

The authors report Distinct-1 and Distinct-2 to assess the diversity of the outputs. These are ratios based on unique unigrams and bigrams. A unigram is an individual token and a bigram is a pair of adjacent tokens. Reusing the same service wording across many responses can contribute repeatedly to the output without adding new token types or new adjacent pairs. The measures follow work on a [diversity-promoting objective for conversation](https://md.research.elamur.ai/free/en/papers/li-2016-diversity-promoting-objective-function-neural/).

Distinct-2 for response baselines on the JDDC test set BERT-Retrieval produces the greatest variety of adjacent word pairs, and both retrieval systems lead the generators.

**The numbers**

| System or setting | Distinct-2 % |
| --- | --- |
| BM25 | 28.89% |
| BERT-Retrieval (this paper) | 30.85% |
| Vanilla Seq2Seq | 4.25% |
| Seq2Seq-Attention | 6.31% |
| Seq2Seq-Copy | 6.14% |

On the JDDC test set, BM25 reaches 5.03% Distinct-1 and 28.89% Distinct-2. BERT-Retrieval leads with 5.23% Distinct-1 and 30.85% Distinct-2. The vanilla generator records 1.49% Distinct-1 and 4.25% Distinct-2. Adding attention gives 1.79% Distinct-1 and 6.31% Distinct-2. The copy variant has 1.79% Distinct-1 and 6.14% Distinct-2. The sequence-level diversity scores track a different property of the output from the overlap measures. A choice of retrieved answer can introduce new wording by drawing on a different earlier exchange, even if the additional wording concerns the wrong issue.

The paper also examines diversity at the level of complete replies. By its whole-response measure, the recorded test replies have diversity of 88.74%. The figure is 93.63% for BERT-Retrieval and 28.08% for Seq2Seq-Copy. This comparison asks how frequently the collection contains distinct complete outputs, whereas Distinct-1 and Distinct-2 measure repetition across shorter units. A system can use a familiar vocabulary in many different complete replies. Conversely, a recurring complete sentence can strongly affect how repetitive the set looks even when some other replies contain specialized terms.

To identify a concrete source of repetition, the paper reports the frequency of a general offer of further help. The closing phrase accounts for 3.42% of recorded responses, 0.88% of BERT-Retrieval outputs and 24.48% of Seq2Seq-Copy outputs in this analysis. The phrase belongs to the service domain and appears in genuine staff dialogue. Its frequency in the copy generator's answers gives a reason to ask whether the generator places it at the right moments. The surrounding turns can distinguish an appropriate closing offer from an attempt to close a conversation while the customer is still asking for an action.

### What the ablations show

#### What changes when the search results are reranked

The paper's controlled comparisons vary the retrieval ranking and add components to a shared generative baseline. It also studies output frequencies and examines individual exchanges. The retrieval comparison isolates a practical question about the search pipeline. If the initial candidate list is fixed, can a scorer that reads the proposed reply alongside the test input choose a better answer than the original lexical ranking? BERT-Retrieval improves both reference-overlap measures and both token diversity measures under that setup.

The comparison concerns the effect of the full reranking stage. It includes the pretrained system, its fine-tuning on observed and randomly constructed pairs, and its decision to score a response against the current input. The experiment gives no separate estimate for each of these choices. It also leaves open how often BM25 supplied a genuinely suitable answer anywhere in the candidate list. A reranker can fail because it chose poorly among useful candidates or because its candidates contained no suitable response. The reported scores reflect the combined outcome of those cases.

#### What attention and copying change

The vanilla, attention and copy systems give a staged comparison. The move from vanilla Seq2Seq to Seq2Seq-Attention goes with higher BLEU and ROUGE-L and higher Distinct scores. It is consistent with the idea that a decoder benefits from being able to draw selectively on a concatenation of earlier messages and the current query. The experiment evaluates the change in the architecture as a whole. It does not trace successful responses to particular earlier turns or test whether the same gain would appear with substantially more conversation history.

The next move, from attention to attention with copying, improves BLEU and ROUGE-L again. Distinct-1 stays at 1.79%, and Distinct-2 moves from 6.31% to 6.14% on the JDDC test set. Adding a route for reproducing input terms can improve similarity to reference responses while leaving repeated patterns prevalent in the output. The paper motivates copying by rare words and entities, but it reports the comparison across the test set. It gives no separate result for rare terms, so the amount of the gain attributable specifically to handling those terms remains unknown.

The frequency analysis further clarifies the tradeoff. Seq2Seq-Copy can win on the overlap scores while returning the same general offer of help frequently. A recorded staff response can itself be generic, so some generic generated replies will align with the reference. The analysis makes a narrower observation possible than either praising or dismissing the overlap scores. It shows that a score summarizing similarity over the test set can coexist with a strong preference for a small set of familiar conversational moves.

#### What the case studies reveal about those moves

In the camera example, the customer wants to exchange a device and asks whether the associated account can also be changed. BERT-Retrieval returns a reply about a card and the camera's playback capability. The response uses information related to the product, but the information addresses a different property. Seq2Seq-Copy gives a brief affirmative answer. Its answer follows the surface form of the customer question more closely. The example leaves the practical details of changing the account unresolved.

For the electronic invoice example, the history concerns whether an electronic invoice works for reimbursement. The customer checks with an accountant and then requests that the electronic invoice be issued. BERT-Retrieval asks for the customer's tax number, a concrete next step in the exchange. Seq2Seq-Copy acknowledges the customer and offers more help, effectively treating the request as if it had already been handled. With this history, the timing of the closing phrase is the problem. The customer has reached a decision and is asking the staff member to act on it.

The cases illustrate different ways of being insufficiently responsive. Retrieval can be specific about the wrong aspect of the situation. Generation can be socially plausible while failing to move an unfinished request forward. Which behavior is preferable depends on what the customer needs at that turn. A generic acknowledgment can be adequate after an explanation has been accepted. A concrete response can be helpful only if the detail applies to the actual question. The examples show both patterns without estimating how frequently either occurs across the test set.

The authors suggest retrieval is useful for familiar requests like making changes to an invoice or canceling an order. They relate its failures on more specific questions to the possibility that no close example exists in the repository. Their account of generation emphasizes the safety of broadly applicable wording in some contexts. The case studies supply instances for those interpretations. They leave the rate of factual errors, acceptance of generic replies and success on different kinds of customer requests open for evaluation.

### Limitations

#### What the authors identify as unfinished

The authors judge the tested retrieval and generation approaches inadequate for the full demands of real support dialogue. They describe retrieval as constrained by the examples stored in its repository. A candidate can look relevant because it contains the right entity while still addressing a different question. They characterize the generators as tending to repeat generic replies, even though a better generator can express answers beyond the stored repository. The fact that the two approaches offer different kinds of replies is part of what makes their weaknesses visible in the examples.

The paper also identifies annotation work still to be done. The authors propose adding information about emotions and external knowledge. Those additions would concern different parts of a conversation. Emotion matters in the address example when the customer expresses frustration about a restriction. External knowledge matters when an accurate answer depends on policies or other details beyond the words the participants have already exchanged. The corpus preserves the staff replies in both situations. The additional annotations would make it possible to study more directly which emotion was expressed or which outside information a reply used.

The authors call for further work on using context, controlling response generation, answering questions and applying reinforcement learning. Their experimental contribution is a baseline for part of that agenda. When they present JDDC as a testbed, the claim is that the conversations and their evaluation settings give researchers a way to study these problems. Their strongest reported overlap system is still subject to the repetition and usefulness problems shown in the analysis.

#### What follows from the experimental setup

The strongest evidence about length is descriptive. JDDC preserves sessions with extended histories and includes individual examples in which an earlier decision is needed to understand a later comment. Length is an opportunity for long-range dependency. Establishing how frequently the earlier context is necessary would require a different comparison, such as measuring the effect of giving the same system histories of different lengths on the same questions. The reported baseline comparison holds the recent history format fixed. It therefore leaves unanswered how much extra context improves response quality and which questions benefit from it.

The separation between the baseline test and the challenge sets also limits the interpretation of the scores. Each baseline example includes recent staff replies from the recording. A system that produces a poor reply in one example has no effect on the recorded history it receives in another. Challenge Set II and Challenge Set III were designed to make earlier system output consequential. The paper describes their construction but gives no corresponding baseline scores for those tasks. The overlap and diversity results cannot establish how a system would sustain an exchange when its own past replies were part of the input.

The sequential challenges introduce another qualification. They give a system the recorded customer follow-ups. If an earlier system reply differs from the original staff reply, a later question can become harder to interpret because the customer is following the original conversation. This can be useful for studying continuity under a fixed evaluation sequence. Live customer reactions, changes in phrasing and decisions to abandon or continue a request would require observations beyond those fixed sequences. The challenge annotations add more acceptable answers for each question, but they do not provide alternative customer trajectories in response to each answer.

There is also a gap between the automatic measurements and successful customer service. BLEU and ROUGE-L summarize resemblance to reference wording. Distinct scores and whole-response counts summarize how varied the outputs are. A widely varied set of replies can contain wrong specifics. A reply with high textual overlap can still omit the detail needed to fulfill a customer's request. Multiple weighted references address some of the ambiguity of wording, while correctness about a policy and completion of an action remain separate questions. The reported analysis offers case studies in place of a systematic human assessment of those outcomes.

The results for intent classification have similarly defined scope. The paper gives aggregate accuracy for the classifier and a distribution of its predicted intents. Without performance broken down by class, readers cannot tell whether rare and common categories are labeled equally reliably. The observed distribution can reflect both the frequency of customer goals and how the classifier assigns ambiguous queries. The staff annotation of the classifier's training data supports the labeling procedure. It does not provide a human verification of every intent assigned to the released corpus.

The text preparation and domain further shape what can be inferred. The sessions come from one Chinese e-commerce site and focus on after-sales interactions. The recorded practices reflect what customers and staff did in that setting. Anonymization removes some values that would matter when executing a real transaction. The baseline asks for reply text, including text that refers to an action, and evaluates it against what staff wrote. It does not test whether a system can execute an address change, initiate a refund or verify the status of an invoice. This defines the scope of the benchmark even in cases where a predicted reply sounds like a step in completing the customer's task.

Finally, the reported scores are point estimates for the prepared test set. The comparison displays the ordering of the systems under those conditions. It gives no account of how much the scores would vary across repeated training runs or alternate partitions. This matters particularly for interpreting the small gap in BLEU between the attention and copy variants. The evidence for the copy system includes its stronger ROUGE-L result and the qualitative motivation for copying, while the precision with which either variant's advantage can be estimated remains unspecified.

### What came after

[Recent advances in deep learning based dialogue systems](https://md.research.elamur.ai/free/en/papers/ni-2022-recent-advances-deep-learning-based/) is a systematic survey from 2022 that cites JDDC. Its connection is through a survey of the field, a different kind of contribution from the original corpus construction and benchmark experiments. JDDC contributes an example of how researchers can use recorded service conversations as data for comparing retrieved and generated responses. It gives that comparison a specific setting, Chinese after-sales support, and provides evaluation designs that vary the history available to the system.

The documented connection is the survey's citation of the corpus study. It leaves open whether the survey reanalyzes JDDC's scores, discusses individual challenge sets or uses the corpus as an example within a broader account. The contribution readers can trace directly is the original paper's distinction between the conditions of evaluation. A system can answer from a recorded history, keep answering after its own replies or take over partway through an exchange. Those are different demands, and the original benchmark results measure only the fixed-history reply task.

## Cite

Cite as Meng Chen, Ruixue Liu, Lei Shen, Shaozu Yuan, Jingyan Zhou, Youzheng Wu, Xiaodong He and Bowen Zhou. 2020. The JDDC Corpus: A Large-Scale Multi-Turn Chinese Dialogue Dataset for E-commerce Customer Service. Proceedings of the Twelfth Language Resources and Evaluation Conference.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{chen2020jddc,
  title = {{The JDDC Corpus: A Large-Scale Multi-Turn Chinese Dialogue Dataset for E-commerce Customer Service}},
  author = {Meng Chen, Ruixue Liu, Lei Shen, Shaozu Yuan, Jingyan Zhou, Youzheng Wu, Xiaodong He and Bowen Zhou},
  booktitle = {Proceedings of the Twelfth Language Resources and Evaluation Conference},
  year = {2020},
  url = {https://aclanthology.org/2020.lrec-1.58/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
