Automatic Detection of Inconsistencies and Hierarchical Topic Classification for Open-Domain Chatbots
Source abstract
Abstract
Current State-of-the-Art (SotA) chatbots are able to produce high-quality sentences, handling different conversation topics and larger interaction times. Unfortunately, the generated responses depend greatly on the data on which they have been trained, the specific dialogue history and current turn used for guiding the response, the internal decoding mechanisms, and ranking strategies, among others. Therefore, it may happen that for semantically similar questions asked by users, the chatbot may provide a different answer, which can be considered as a form of hallucination or producing confusion in long-term interactions. In this research paper, we propose a novel methodology consisting of two main phases: (a) hierarchical automatic detection of topics and subtopics in dialogue interactions using a zero-shot learning approach, and (b) detecting inconsistent answers using k-means and the Silhouette coefficient. To evaluate the efficacy of topic and subtopic detection, we use a subset of the DailyDialog dataset and real dialogue interactions gathered during the Alexa Socialbot Grand Challenge 5 (SGC5). The proposed approach enables the detection of up to 18 different topics and 102 subtopics. For the purpose of detecting inconsistencies, we manually generate multiple paraphrased questions and employ several pre-trained SotA chatbot models to generate responses. Our experimental results demonstrate a weighted F-1 value of 0.34 for topic detection, a weighted F-1 value of 0.78 for subtopic detection in DailyDialog, then 81% and 62% accuracy for topic and subtopic classification in SGC5, respectively. Finally, to predict the number of different responses, we obtained a mean squared error (MSE) of 3.4 when testing smaller generative models and 4.9 in recent large language models.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Topic Modeling · Natural Language Processing Techniques · AI in Service Interactions
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Intelligent Control Group (ICG), Centre for Automation and Robotics (CAR) UPM-CSIC, Universidad Politécnica de Madrid, C. José Gutiérrez Abascal, 2, 28006 Madrid, Spain
Speech Technology and Machine Learning Group (THAU), ETSI de Telecomunicación, Universidad Politécnica de Madrid, Av. Complutense, 30, 28040 Madrid, Spain
Funding
European Commission
References (52)
Show source-provided references
1. Shuster, K., Xu, J., Komeili, M., Ju, D., Smith, E.M., Roller, S., Ung, M., Chen, M., Arora, K., and Lane, J. (2022). BlenderBot 3: A deployed conversational agent that continually learns to responsibly engage. arXiv.
2. Thoppilan, R., Freitas, D.D., Hall, J., Shazeer, N., Kulshreshtha, A., Cheng, H.T., Jin, A., Bos, T., Baker, L., and Du, Y. (2022). LaMDA: Language Models for Dialog Applications. arXiv.
3. OpenAI (2023). GPT-4 Technical Report. arXiv.
4. Rodríguez-Cantelar, M., de la Cal, D., Estecha, M., Gutiérrez, A.G., Martín, D., Milara, N.R.N., Jiménez, R.M., and D’Haro, L.F. (2021). Alexa Prize SocialBot Grand Challenge 4 Proceedings, Available online: https://www.amazon.science/alexa-prize/proceedings/genuine2-an-open-domain-chatbot-based-on-generative-models.
5. Hakkani-Tür, D. (2021). Alexa Prize SocialBot Grand Challenge 4 Proceedings, Available online: https://www.amazon.science/alexa-prize/proceedings/alexa-prize-socialbot-grand-challenge-year-iv.
6. Hu, S., Liu, Y., Gottardi, A., Hedayatnia, B., Khatri, A., Chadha, A., Chen, Q., Rajan, P., Binici, A., and Somani, V. (2021). Alexa Prize SocialBot Grand Challenge 4 Proceedings, Available online: https://www.amazon.science/publications/further-advances-in-open-domain-dialog-systems-in-the-fourth-alexa-prize-socialbot-grand-challenge.
7. Fan, A., Lewis, M., and Dauphin, Y. (2018). Hierarchical Neural Story Generation. arXiv.10.18653/v1/P18-1082 ↗
8. Holtzman, A., Buys, J., Du, L., Forbes, M., and Choi, Y. (2020). The Curious Case of Neural Text Degeneration. arXiv.
9. Maynez, J., Narayan, S., Bohnet, B., and McDonald, R. (2020). On Faithfulness and Factuality in Abstractive Summarization. arXiv.10.18653/v1/2020.acl-main.173 ↗
10. Deep Learning–Based Text Classification: A Comprehensive Review
11. Sun, M., Huang, X., Ji, H., Liu, Z., and Liu, Y. (2019). Proceedings of the Chinese Computational Linguistics, Springer International Publishing.10.1007/978-3-030-32381-3 ↗
12. Guo, Z., Zhu, L., and Han, L. (2021, January 17–19). Research on Short Text Classification Based on RoBERTa-TextRCNN. Proceedings of the 2021 International Conference on Computer Information Science and Artificial Intelligence (CISAI), Kunming, China.10.1109/CISAI54367.2021.00171 ↗
13. Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., Grave, E., Ott, M., Zettlemoyer, L., and Stoyanov, V. (2020, January 5–10). Unsupervised Cross-lingual Representation Learning at Scale. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, Online.10.18653/v1/2020.acl-main.747 ↗
14. Schick, T., and Schütze, H. (2021). Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inference. arXiv.10.18653/v1/2021.eacl-main.20 ↗
15. A Review of Generalized Zero-Shot Learning Methods
16. Tavares, D. (2022, January 10–14). Zero-Shot Generalization of Multimodal Dialogue Agents. Proceedings of the 30th ACM International Conference on Multimedia; Association for Computing Machinery, MM’22, New York, NY, USA.10.1145/3503161.3548759 ↗
17. ChatGPT’s inconsistent moral advice influences users’ judgment10.1038/s41598-023-31341-0 ↗
18. Artificial hallucinations in ChatGPT: Implications in scientific writing
19. Dziri, N., Milton, S., Yu, M., Zaiane, O., and Reddy, S. (2022). On the Origin of Hallucinations in Conversational Models: Is it the Datasets or the Models?. arXiv.10.18653/v1/2022.naacl-main.387 ↗
20. Mehri, S., Choi, J., D’Haro, L.F., Deriu, J., Eskenazi, M., Gasic, M., Georgila, K., Hakkani-Tur, D., Li, Z., and Rieser, V. (2022). Report from the NSF Future Directions Workshop on Automatic Evaluation of Dialog: Research Directions and Challenges. arXiv.
21. Papineni, K., Roukos, S., Ward, T., and Zhu, W.J. (2002, January 7–12). Bleu: A Method for Automatic Evaluation of Machine Translation. Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, Philadelphia, PA, USA.10.3115/1073083.1073135 ↗
22. Liu, C.W., Lowe, R., Serban, I., Noseworthy, M., Charlin, L., and Pineau, J. (2016). Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, Association for Computational Linguistics.
23. Lowe, R., Noseworthy, M., Serban, I.V., Angelard-Gontier, N., Bengio, Y., and Pineau, J. (2017). Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Association for Computational Linguistics.
24. Tao, C., Mou, L., Zhao, D., and Yan, R. (2018). RUBER: An Unsupervised Method for Automatic Evaluation of Open-Domain Dialog Systems. Proc. AAAI Conf. Artif. Intell., 32.10.1609/aaai.v32i1.11321 ↗
25. Ghazarian, S., Wei, J., Galstyan, A., and Peng, N. (2019). Proceedings of the Workshop on Methods for Optimizing and Evaluating Neural Language Generation, Association for Computational Linguistics.
26. Huang, L., Ye, Z., Qin, J., Lin, L., and Liang, X. (2020). GRADE: Automatic Graph-Enhanced Coherence Metric for Evaluating Open-Domain Dialogue Systems. arXiv.10.18653/v1/2020.emnlp-main.742 ↗
27. Dziri, N., Kamalloo, E., Mathewson, K.W., and Zaiane, O. (2020). Evaluating Coherence in Dialogue Systems using Entailment. arXiv.10.18653/v1/N19-1381 ↗
28. Contrastive Learning Reduces Hallucination in Conversations
29. Prats, J.M., Estecha-Garitagoitia, M., Rodríguez-Cantelar, M., and D’Haro, L.F. (2022, January 18–22). Automatic Detection of Inconsistencies in Open-Domain Chatbots. Proceedings of the Proceeding IberSPEECH 2022, Incheon, Republic of Korea.10.21437/IberSPEECH.2022-24 ↗
30. Yin, W., Hay, J., and Roth, D. (2019). Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Association for Computational Linguistics.
31. Latent dirichlet allocation
32. Grootendorst, M. (2022). BERTopic: Neural Topic Modeling with a Class-Based TF-IDF Procedure. arXiv.
33. Reimers, N., and Gurevych, I. (2019). Sentence-BERT: Sentence Embeddings Using Siamese BERT-Networks. arXiv.10.18653/v1/D19-1410 ↗
34. McInnes, L., Healy, J., and Melville, J. (2020). UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction. arXiv.
35. Hierarchical density estimates for data clustering, visualization, and outlier detection10.1145/2733381 ↗
36. Wolf, T., Sanh, V., Chaumond, J., and Delangue, C. (2019). TransferTransfo: A Transfer Learning Approach for Neural Network Based Conversational Agents. arXiv.
37. Anderson, P., Fernando, B., Johnson, M., and Gould, S. (2017). Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, Association for Computational Linguistics.
38. Li, Y., Su, H., Shen, X., Li, W., Cao, Z., and Niu, S. (2017). Proceedings of the Eighth International Joint Conference on Natural Language Processing (Volume 1: Long Papers), Asian Federation of Natural Language Processing.
39. Khatri, C., Hedayatnia, B., Venkatesh, A., Nunn, J., Pan, Y., Liu, Q., Song, H., Gottardi, A., Kwatra, S., and Pancholi, S. (2018). Advancing the State of the Art in Open Domain Dialog Systems through the Alexa Prize. arXiv.
40. He, P., Liu, X., Gao, J., and Chen, W. (2021, January 3–7). Deberta: Decoding-Enhanced Bert with Disentangled Attention. Proceedings of the International Conference on Learning Representations, Virtual Event.
41. Lewis, M., Liu, Y., Goyal, N., Ghazvininejad, M., Mohamed, A., Levy, O., Stoyanov, V., and Zettlemoyer, L. (2019). BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension. arXiv.10.18653/v1/2020.acl-main.703 ↗
42. Sanh, V., Debut, L., Chaumond, J., and Wolf, T. (2020). DistilBERT, a Distilled Version of BERT: Smaller, Faster, Cheaper and Lighter. arXiv.
43. Zhang, Y., Sun, S., Galley, M., Chen, Y.C., Brockett, C., Gao, X., Gao, J., Liu, J., and Dolan, B. (2020). DialoGPT: Large-Scale Generative Pre-training for Conversational Response Generation. arXiv.10.18653/v1/2020.acl-demos.30 ↗
44. Roller, S., Dinan, E., Goyal, N., Ju, D., Williamson, M., Liu, Y., Xu, J., Ott, M., Shuster, K., and Smith, E.M. (2020). Recipes for Building an Open-Domain Chatbot. arXiv.10.18653/v1/2021.eacl-main.24 ↗
45. Xu, J., Szlam, A., and Weston, J. (2021). Beyond Goldfish Memory: Long-Term Open-Domain Conversation. arXiv.10.18653/v1/2022.acl-long.356 ↗
46. Komeili, M., Shuster, K., and Weston, J. (2021). Internet-Augmented Dialogue Generation. arXiv.10.18653/v1/2022.acl-long.579 ↗
47. Shuster, K., Komeili, M., Adolphs, L., Roller, S., Szlam, A., and Weston, J. (2022). Language Models that Seek for Knowledge: Modular Search & Generation for Dialogue and Prompt Completion. arXiv.10.18653/v1/2022.findings-emnlp.27 ↗
48. Zeng, H. (2023). Measuring Massive Multitask Chinese Understanding. arXiv.
49. Du, Z., Qian, Y., Liu, X., Ding, M., Qiu, J., Yang, Z., and Tang, J. (2022). GLM: General Language Model Pretraining with Autoregressive Blank Infilling. arXiv.10.18653/v1/2022.acl-long.26 ↗
50. Keskar, N.S., McCann, B., Varshney, L.R., Xiong, C., and Socher, R. (2019). CTRL: A Conditional Transformer Language Model for Controllable Generation. arXiv.
51. Zhang, C., Sedoc, J., D’Haro, L.F., Banchs, R., and Rudnicky, A. (2021). Automatic Evaluation and Moderation of Open-domain Dialogue Systems. arXiv.
52. MDD-Eval: Self-Training on Augmented Data for Multi-Domain Dialogue Evaluation