Abstract
Recent years have seen growing interest in conversational agents, such as chatbots, which are a very good fit for automated customer support because the domain in which they need to operate is narrow. This interest was in part inspired by recent advances in neural machine translation, especially the rise of sequence-to-sequence (seq2seq) and attention-based models such as the Transformer. These have been applied to various tasks and have opened new research directions in question answering, chatbots, and conversational systems. Still, in many cases, it might be feasible and even preferable to use simple information retrieval techniques. In this work, we compare three different models: (i) a retrieval model, (ii) a sequence-to-sequence model with attention, and (iii) the Transformer. Our experiments with the Twitter Customer Support Dataset, which contains over two million posts from customer support services of twenty major brands, show that the seq2seq model outperforms the other two in terms of semantics and word overlap.
Introduction
Providing high-quality customer support is expensive and difficult to scale 24/7. As communication shifts from traditional phone calls to social media platforms like Twitter, companies are increasingly overwhelmed by the volume of queries. While general-purpose "chit-chat" chatbots are often too vague for business use, customer support represents a "narrow domain" where the range of topics is limited, making it a prime candidate for automation.
The challenge lies in building a system that can provide helpful, semantically accurate responses to technical questions. Traditional evaluation metrics like BLEU, which focus on exact word-for-word overlap, often fail to capture the quality of a chatbot's response. This research evaluates the effectiveness of different NLP architectures for automating customer support on Twitter, prioritizing semantic meaning over exact phrasing.
Methodology
The study compares three distinct architectural approaches:
- Information Retrieval (IR): A baseline model using ElasticSearch and the BM25 algorithm. It treats the problem as a search task: given a new question, it finds the most similar question in the training set and returns the associated human answer.
- Sequence-to-Sequence (seq2seq): A generative model using a bidirectional LSTM encoder and a unidirectional LSTM decoder. It utilizes an attention mechanism to focus on specific parts of the input query when generating a response.
- Transformer: A state-of-the-art architecture based entirely on self-attention mechanisms, removing the need for recurrent neural networks (RNNs).
Beyond standard metrics like BLEU and ROUGE, the authors employ three semantic measures: Embedding Average, Greedy Matching, and Vector Extrema. These use word embeddings (Word2Vec) to determine if the intent of the bot's response matches the human's "gold" response, even if the specific vocabulary differs.
Dataset and Preprocessing
The study utilizes the Twitter Customer Support Dataset, containing over three million tweets from 20 major brands. To ensure data consistency, the researchers focused their analysis on the Apple Support subset.
Preprocessing involved using a specialized Twitter tokenizer, expanding contractions (e.g., "'ll" to "will"), and anonymizing URLs and user mentions. The final cleaned dataset for Apple Support consisted of nearly 50,000 dialog tuples.
Results and Key Insights
The seq2seq model with attention emerged as the top performer across all five evaluation measures:
- Word Overlap: It achieved a 15.10 BLEU@2 and 26.60 ROUGE-L, significantly higher than both the IR baseline and the Transformer.
- Semantics: In the Embedding Average metric, seq2seq scored 77.11, outperforming IR (76.53) and Transformer (75.35).
- Qualitative Performance: Qualitatively, the seq2seq model was more likely to ask relevant follow-up questions (e.g., requesting a specific iPhone model) rather than making unfounded assumptions.
The Transformer vs. Seq2Seq
Surprisingly, the Transformer ranked second to the seq2seq model. While the Transformer is a powerhouse for general translation, the authors suggest that in this specific, data-constrained narrow domain, it may choose vocabulary or word orders that are penalized by overlap-based metrics.
Generative vs. Retrieval Trade-offs
Generative models like seq2seq excel at synthesizing general answers but struggle with "long-tail" topics. If a specific technical issue appears rarely in the training data, neural models may "hallucinate" off-topic responses. In contrast, IR models provide human-written answers that, while sometimes slightly off-mark, avoid nonsensical generation.
Conclusion
This research demonstrates that narrow domains like customer support are highly amenable to automation, with well-tuned seq2seq models providing strong performance. However, challenges remain regarding data sparsity and the temporal evolution of technical information. Future work should explore ensemble approaches that combine the precision of retrieval-based systems for rare topics with the conversational fluidity of generative models for common queries.
Summary updated