Lingke: a Fine-grained Multi-turn Chatbot for Customer Service

Pengfei Zhu, Zhuosheng Zhang, Jiangtong Li, Yafang Huang, Hai Zhao

TL;DR

Lingke is an information retrieval (IR) augmented chatbot designed to provide customer service by extracting answers directly from unstructured product documents. By combining fine-grained Subject-Verb-Object (SVO) extraction with a sophisticated multi-turn dialogue manager, it bypasses the need for massive human-labeled dialogue datasets while outperforming state-of-the-art models in response selection.

What Problem Does This Paper Address?

Building a functional chatbot for e-commerce usually hits two major roadblocks:

  1. Data Scarcity: Supervised machine learning models require enormous amounts of human-to-human dialogue data, which is expensive and time-consuming to collect for every new product.
  2. Contextual Blindness: Most chatbots struggle with "multi-turn" conversations—where the meaning of a current question depends on what was said three sentences ago.

The authors introduce Lingke to bridge this gap. Instead of relying solely on pre-existing chat logs, Lingke "reads" product introduction documents to find answers. It then uses a specialized architecture to maintain the thread of a conversation across multiple exchanges.

Methods

Lingke’s architecture is a multi-stage pipeline designed to distill raw text into precise answers:

  • Document Processing: It uses Stanford CoreNLP for coreference resolution (e.g., changing "It has a 4K screen" to "The ZenBook Pro has a 4K screen") and splits documents into individual sentences.
  • Target Retrieval: Using Apache Lucene, the system identifies the top two sentences most relevant to the user's query.
  • SVO Extraction: To make responses concise, Lingke uses the ReVerb framework to extract Subject-Verb-Object (SVO) triples. This allows the bot to strip away "fluff" and present the core fact (e.g., "ZenBook Pro" [S] "has" [V] "i7 processor" [O]).
  • Dialogue Manager: This is the "brain" of the multi-turn capability. It employs:
  • Self-matching Attention: To filter out redundant information within a single utterance.
  • Sequential Matching: To track how a candidate response fits into the chronological flow of the previous conversation turns.
  • Chit-chat Fallback: If the IR system can't find a high-confidence answer in the product docs, it switches to a Seq2Seq model (built on OpenNMT) to handle general social talk.

Datasets

The researchers evaluated Lingke using a dataset provided by Taobao (China's largest e-commerce platform).

  • Scale: 1 million multi-turn dialogues for training, with 10,000 dialogues each for validation and testing.
  • Content: The data covers five categories: chit-chat, product consultation, discount inquiries, delivery tracking, and after-sales feedback.
  • Comparison: They compared Lingke against several baselines, including standard RNNs, LSTMs, and the Sequential Matching Network (SMN).

Key Insights and Ideas

  • Unstructured to Structured: The most clever part of Lingke is how it treats a product manual like a database. By converting sentences into SVO triples, it creates a "fine-grained" pool of candidate answers that are much more "chatbot-friendly" than long, rambling paragraphs.
  • Context as a Filter: The dialogue manager doesn't just look for the most relevant answer to the last question; it uses self-attention to "distill pivotal information" from the entire conversation history. This helps the bot understand elliptical questions (e.g., if the user asks "And resolution?", the bot knows they are still talking about the "ZenBook Pro" mentioned earlier).
  • Hybrid Robustness: By combining an IR-based engine with a generative chit-chat engine, the bot avoids the "I don't know" loop when a user goes off-topic.

Key Results

Lingke outperformed all baseline models in multi-turn response selection. Using the Recall@k metric (how often the correct answer is in the top k choices):

  • R10@1: Lingke achieved 0.476, beating the previous state-of-the-art SMN (0.453) and significantly outperforming standard LSTMs (0.365).
  • R10@5: Lingke reached 0.893, indicating that the correct response is almost always within its top five candidates.

These results suggest that filtering redundant information via self-attention is a highly effective strategy for improving dialogue quality.

Limitations and Future Work

While Lingke is efficient, the authors note a few hurdles:

  • Complex Queries: If a user asks about two different product features in a single sentence, Lingke may struggle to provide a complete, multi-part answer.
  • Intent Detection: The current system sometimes fails to correctly identify exactly what the customer wants to do.
  • Multi-Object Documents: Future work will focus on handling documents that describe multiple different products simultaneously without getting the specs crossed.

The authors plan to integrate more robust intent detection mechanisms to make the bot even more "human-like" in its understanding of customer goals.

Summary updated

BibTeX
@inproceedings{zhu2018lingke,
  author = {Pengfei Zhu and Zhuosheng Zhang and Jiangtong Li and Yafang Huang and Hai Zhao},
  title = {{Lingke: a Fine-grained Multi-turn Chatbot for Customer Service}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2018},
  url = {https://openreview.net/forum?id=BtWbEcY2cAK},
}
Figure