{"title":"Evaluating Generative Neural Attention Weights-Based Chatbot on Customer Support Twitter Dataset","authors":"Sinarwati Mohamad Suhaili, Naomie Salim, Mohamad Nazim Jambli","volume":211,"journal":"International Journal of Computer and Systems Engineering","pagesStart":353,"pagesEnd":360,"ISSN":"1307-6892","URL":"https:\/\/publications.waset.org\/pdf\/10013687","abstract":"<p>Sequence-to-sequence (seq2seq) models augmented with attention mechanisms are increasingly important in automated customer service. These models, adept at recognizing complex relationships between input and output sequences, are essential for optimizing chatbot responses. Central to these mechanisms are neural attention weights that determine the model\u2019s focus during sequence generation. Despite their widespread use, there remains a gap in the comparative analysis of different attention weighting functions within seq2seq models, particularly in the context of chatbots utilizing the Customer Support Twitter (CST) dataset. This study addresses this gap by evaluating four distinct attention-scoring functions\u2014dot, multiplicative\/general, additive, and an extended multiplicative function with a tanh activation parameter \u2014 in neural generative seq2seq models. Using the CST dataset, these models were trained and evaluated over 10 epochs with the AdamW optimizer. Evaluation criteria included validation loss and BLEU scores implemented under both greedy and beam search strategies with a beam size of k = 3. Results indicate that the model with the tanh-augmented multiplicative function significantly outperforms its counterparts, achieving the lowest validation loss (1.136484) and the highest BLEU scores (0.438926 under greedy search, 0.443000 under beam search, k = 3). These findings emphasize the crucial influence of selecting an appropriate attention-scoring function to enhance the performance of seq2seq models for chatbots, particularly highlighting the model integrating tanh activation as a promising approach to improving chatbot quality in customer support contexts.<\/p>","references":"[1] I. Sutskever, O. Vinyals, and Q. V. Le, \u201cSequence to sequence learning\r\nwith neural networks,\u201d in Advances in neural information processing\r\nsystems, pp. 3104\u20133112, 2014.\r\n[2] S. Hochreiter and J. Schmidhuber, \u201cLong short-term memory,\u201d Neural\r\ncomputation, vol. 9, no. 8, pp. 1735\u20131780, 1997.\r\n[3] K. Cho, B. van Merrienboer, C\u00b8 . G\u00a8ulc\u00b8ehre, D. Bahdanau, F. Bougares,\r\nH. Schwenk, and Y. Bengio, \u201cLearning phrase representations\r\nusing RNN encoder-decoder for statistical machine translation,\u201d in\r\nProceedings of the 2014 Conference on Empirical Methods in Natural\r\nLanguage Processing, EMNLP 2014, October 25-29, 2014, Doha, Qatar,\r\nA meeting of SIGDAT, a Special Interest Group of the ACL (A. Moschitti,\r\nB. Pang, and W. Daelemans, eds.), pp. 1724\u20131734, ACL, 2014.\r\n[4] M. Hardalov, I. Koychev, and P. Nakov, \u201cTowards automated\r\ncustomer support,\u201d in Artificial Intelligence: Methodology, Systems,\r\nand Applications: 18th International Conference, AIMSA 2018, Varna,\r\nBulgaria, September 12\u201314, 2018, Proceedings 18, pp. 48\u201359, Springer,\r\n2018.\r\n[5] I. V. Serban, A. Sordoni, Y. Bengio, A. Courville, and J. Pineau,\r\n\u201cBuilding end-to-end dialogue systems using generative hierarchical\r\nneural network models,\u201d in Proceedings of the Thirtieth AAAI\r\nConference on Artificial Intelligence, AAAI\u201916, p. 3776\u20133783, AAAI\r\nPress, 2016.\r\n[6] A. Xu, Z. Liu, Y. Guo, V. Sinha, and R. Akkiraju, \u201cA new chatbot\r\nfor customer service on social media,\u201d in Proceedings of the 2017 CHI\r\nConference on Human Factors in Computing Systems, CHI \u201917, (New\r\nYork, NY, USA), p. 3506\u20133510, Association for Computing Machinery,\r\n2017.\r\n[7] D. Bahdanau, K. Cho, and Y. Bengio, \u201cNeural machine translation by\r\njointly learning to align and translate,\u201d arXiv preprint arXiv:1409.0473,\r\n2014.\r\n[8] T. Luong, H. Pham, and C. D. Manning, \u201cEffective approaches to\r\nattention-based neural machine translation,\u201d in Proceedings of the 2015\r\nConference on Empirical Methods in Natural Language Processing,\r\n(Stroudsburg, PA, USA), Association for Computational Linguistics,\r\n2015.\r\n[9] C. Xing, W. Wu, Y. Wu, J. Liu, Y. Huang, M. Zhou, and W.-Y. Ma,\r\n\u201cTopic aware neural response generation.,\u201d in AAAI (S. P. Singh and\r\nS. Markovitch, eds.), pp. 3351\u20133357, AAAI Press, 2017.\r\n[10] Z. Wang, Z. Wang, Y. Long, J. Wang, Z. Xu, and B. Wang, \u201cEnhancing\r\ngenerative conversational service agents with dialog history and external\r\nknowledge,\u201d Comput. Speech Lang., vol. 54, pp. 71\u201385, 2019.\r\n[11] F. Kassawat, D. Chaudhuri, and J. Lehmann, \u201cIncorporating joint\r\nembeddings into goal-oriented dialogues with multi-task learning,\u201d in\r\nEuropean Semantic Web Conference, pp. 225\u2013239, Springer, 2019.\r\n[12] G.-P. Yang and H. Tang, \u201cSupervised attention in sequence-to-sequence\r\nmodels for speech recognition,\u201d in ICASSP 2022 - 2022 IEEE\r\nInternational Conference on Acoustics, Speech and Signal Processing\r\n(ICASSP), pp. 7222\u20137226, 2022.\r\n[13] S. M. Suhaili, N. Salim, and M. N. Jambli, \u201cA comparative analysis of\r\ngenerative neural attention-based service chatbot,\u201d Int. J. Adv. Comput.\r\nSci. Appl., vol. 13, no. 8, 2022.\r\n[14] P. Bojanowski, E. Grave, A. Joulin, and T. Mikolov,\r\n\u201cEnriching word vectors with subword information,\u201d 2016. cite\r\narxiv:1607.04606Comment: Accepted to TACL. The two first authors\r\ncontributed equally.\r\n[15] A. Joulin, E. Grave, P. Bojanowski, M. Douze, H. J\u00b4egou, and\r\nT. Mikolov, \u201cFasttext.zip: Compressing text classification models.,\u201d\r\nCoRR, vol. abs\/1612.03651, 2016.\r\n[16] T. Mikolov, I. Sutskever, K. Chen, G. S. Corrado, and J. Dean,\r\n\u201cDistributed representations of words and phrases and their\r\ncompositionality,\u201d in Advances in neural information processing\r\nsystems, pp. 3111\u20133119, 2013.\r\n[17] I. Loshchilov and F. Hutter, \u201cDecoupled weight decay regularization,\u201d\r\narXiv preprint arXiv:1711.05101, 2017.\r\n[18] C. C. Aggarwal, Neural networks and deep learning: A textbook. Cham,\r\nSwitzerland: Springer International Publishing, 2 ed., 2023.\r\n[19] M. Abadi, P. Barham, J. Chen, Z. Chen, A. Davis, J. Dean, M. Devin,\r\nS. Ghemawat, G. Irving, M. Isard, et al., \u201cTensorflow: A system for\r\nlarge-scale machine learning.,\u201d in OSDI, vol. 16, pp. 265\u2013283, 2016.\r\n[20] L. Mou and Z. Jin, Tree-Based Convolutional Neural Networks:\r\nPrinciples and Applications. Springer Publishing Company,\r\nIncorporated, 1st ed., 2018.\r\n[21] X. Glorot and Y. Bengio, \u201cUnderstanding the difficulty of training\r\ndeep feedforward neural networks.,\u201d in AISTATS (Y. W. Teh and D. M.\r\nTitterington, eds.), vol. 9 of JMLR Proceedings, pp. 249\u2013256, JMLR.org,\r\n2010.","publisher":"World Academy of Science, Engineering and Technology","index":"Open Science Index 211, 2024"}