On the Use of Transformer-Based Models for Intent Detection Using Clustering Algorithms
Source abstract
Abstract
Chatbots are becoming increasingly popular and require the ability to interpret natural language to provide clear communication with humans. To achieve this, intent detection is crucial. However, current applications typically need a significant amount of annotated data, which is time-consuming and expensive to acquire. This article assesses the effectiveness of different text representations for annotating unlabeled dialog data through a pipeline that examines both classical approaches and pre-trained transformer models for word embedding. The resulting embeddings were then used to create sentence embeddings through pooling, followed by dimensionality reduction, before being fed into a clustering algorithm to determine the user’s intents. Therefore, various pooling, dimension reduction, and clustering algorithms were evaluated to determine the most appropriate approach. The evaluation dataset contains a variety of user intents across different domains, with varying intent taxonomies within the same domain. Results demonstrate that transformer-based models perform better text representation than classical approaches. However, combining several clustering algorithms and embeddings from dissimilar origins through ensemble clustering considerably improves the final clustering solution. Additionally, applying the uniform manifold approximation and projection algorithm for dimension reduction can substantially improve performance (up to 20%) while using a much smaller representation.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Topic Modeling · Natural Language Processing Techniques · Sentiment Analysis and Opinion Mining
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
University of Madeira, 9000-082 Funchal, Portugal
Cognitiva Lda., 4450-043 Matosinhos, Portugal
ITI/Larsys/ARDITI, 9020-105 Funchal, Portugal
Funding
LARSyS · Portuguese Foundation for Science and Technology (FCT) · ARDITI · European Social Fund
References (47)
Show source-provided references
1. (2023, March 25). Consumers See Great Value in Chatbots but Want Human Interaction. Available online: https://www.surveymonkey.com/curiosity/consumers-see-great-value-in-chatbots/.
2. (2023, March 25). Why 96% of Enterprises Face AI Training Data Issues-Dataconomy. Available online: http://webcache.googleusercontent.com/search?q=cache:xnKKDDYbuk8J:https://dataconomy.com/2019/07/why-96-of-enterprises-face-ai-training-data-issues/&client=firefox-b-d&hl=pt-PT&gl=pt&strip=1&vwsrc=0.
3. Chen, Z., Liu, B., Hsu, M., Castellanos, M., and Ghosh, R. (2013, January 9–14). Identifying Intention Posts in Discussion Forums. Proceedings of the Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Atlanta, Georgia.
4. Coucke, A., Saade, A., Ball, A., Bluche, T., Caulier, A., Leroy, D., Doumouro, C., Gisselbrecht, T., Caltagirone, F., and Lavril, T. (2018). Snips Voice Platform: An Embedded Spoken Language Understanding System for Private-by-Design Voice Interfaces. arXiv.
5. Goo, C.-W., Gao, G., Hsu, Y.-K., Huo, C.-L., Chen, T.-C., Hsu, K.-W., and Chen, Y.-N. (2018, January 1–6). Slot-Gated Modeling for Joint Slot Filling and Intent Prediction. Proceedings of the Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, New Orleans, LA, USA.10.18653/v1/N18-2118 ↗
6. Transformer-Capsule Model for Intent Detection (Student Abstract)10.1609/aaai.v34i10.7215 ↗
7. Higashinaka, R., Kawamae, N., Sadamitsu, K., Minami, Y., Meguro, T., Dohsaka, K., and Inagaki, H. (2011, January 27). Unsupervised Clustering of Utterances Using Non-Parametric Bayesian Methods. Proceedings of the Interspeech 2011, Florence, Italy.10.21437/Interspeech.2011-546 ↗
8. Ezen-Can, A., Grafsgaard, J.F., Lester, J.C., and Boyer, K.E. (2015, January 16). Classifying Student Dialogue Acts with Multimodal Learning Analytics. Proceedings of the 5th International Conference on Learning Analytics and Knowledge, New York, NY, USA.10.1145/2723576.2723588 ↗
9. Ribeiro, L.C.F., and Papa, J.P. (November, January 29). Unsupervised Dialogue Act Classification with Optimum-Path Forest. Proceedings of the 31st SIBGRAPI Conference on Graphics, Patterns and Images (SIBGRAPI), Paraná, Brazil.
10. Brychcín, T., and Král, P. (2017, January 3–7). Unsupervised Dialogue Act Induction Using Gaussian Mixtures. Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Short Papers, Valencia, Spain.10.18653/v1/E17-2078 ↗
11. Shi, C., Chen, Q., Sha, L., Li, S., Sun, X., Wang, H., and Zhang, L. (November, January 31). Auto-Dialabel: Labeling Dialogue Data with Unsupervised Learning. Proceedings of the Conference on Empirical Methods in Natural Language Processing, Brussels, Belgium.
12. Padmasundari, A., and Bangalore, S. (2018, January 2). Intent Discovery Through Unsupervised Semantic Text Clustering. Proceedings of the Interspeech 2018, Hyderabad, India.10.21437/Interspeech.2018-2436 ↗
13. Chatterjee, A., and Sengupta, S. (2020, January 8–13). Intent Mining from Past Conversations for Conversational Agent. Proceedings of the 28th International Conference on Computational Linguistics, Virtual.10.18653/v1/2020.coling-main.366 ↗
14. Discovering New Intents via Constrained Deep Adaptive Clustering with Cluster Refinement10.1609/aaai.v34i05.6353 ↗
15. Yang, X., Liu, J., Chen, Z., and Wu, W. (2014, January 7–9). Semi-Supervised Learning of Dialogue Acts Using Sentence Similarity Based on Word Embeddings. Proceedings of the International Conference on Audio, Language and Image Processing, Shanghai, China.10.1109/ICALIP.2014.7009921 ↗
16. Lin, T.-E., and Xu, H. (August, January 28). Deep Unknown Intent Detection with Margin Loss. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Florence, Italy.
17. Bickel, S., and Scheffer, T. (2004, January 1–4). Multi-View Clustering. Proceedings of the 4th IEEE International Conference on Data Mining (ICDM’04), Brighton, UK.
18. Perkins, H., and Yang, Y. (2019, January 3–7). Dialog Intent Induction with Deep Multi-View Clustering. Proceedings of the Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Hong Kong, China.10.18653/v1/D19-1413 ↗
19. Rastogi, A., Zang, X., Sunkara, S., Gupta, R., and Khaitan, P. (2020). Schema-Guided Dialogue State Tracking Task at DSTC8. arXiv, arXiv.2002.01359.
20. Mikolov, T., Chen, K., Corrado, G., and Dean, J. (2013, January 2–4). Efficient Estimation of Word Representations in Vector Space. Proceedings of the 1st International Conference on Learning Representations, ICLR 2013, Scottsdale, AZ, USA.
21. Mikolov, T., Sutskever, I., Chen, K., Corrado, G.S., and Dean, J. (2013, January 5–8). Distributed Representations of Words and Phrases and Their Compositionality. Proceedings of the Advances in Neural Information Processing Systems, Lake Tahoe, NV, USA.
22. Reimers, N., and Gurevych, I. (2019, January 3–7). Sentence-BERT: Sentence Embeddings Using Siamese BERT-Networks. Proceedings of the Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, Hong Kong, China.10.18653/v1/D19-1410 ↗
23. Yin, X., Zhang, W., Zhu, W., Liu, S., and Yao, T. (2020). Improving Sentence Representations via Component Focusing. Appl. Sci., 10.10.3390/app10030958 ↗
24. Peters, M.E., Neumann, M., Iyyer, M., Gardner, M., Clark, C., Lee, K., and Zettlemoyer, L. (2018, January 1–6). Deep Contextualized Word Representations. Proceedings of the Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, New Orleans, LA, USA.10.18653/v1/N18-1202 ↗
25. Howard, J., and Ruder, S. (2018, January 15–20). Universal Language Model Fine-Tuning for Text Classification. Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics, Melbourne, Australia.10.18653/v1/P18-1031 ↗
26. Conneau, A., Kiela, D., Schwenk, H., Barrault, L., and Bordes, A. (2017, January 7–11). Supervised Learning of Universal Sentence Representations from Natural Language Inference Data. Proceedings of the Conference on Empirical Methods in Natural Language Processing, Copenhagen, Denmark.10.18653/v1/D17-1070 ↗
27. Devlin, J., Chang, M.-W., Lee, K., and Toutanova, K. (2018). BERT: Pre-Training of Deep Bidirectional Transformers for Language Understanding. arXiv.
28. Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., and Stoyanov, V. (2019). RoBERTa: A Robustly Optimized BERT Pretraining Approach. arXiv.
29. Radford, A., and Narasimhan, K. (2023, March 27). Improving Language Understanding by Generative Pre-Training. Available online: https://s3-us-west-2.amazonaws.com/openai-assets/research-covers/language-unsupervised/language_understanding_paper.pdf.
30. Lan, Z., Chen, M., Goodman, S., Gimpel, K., Sharma, P., and Soricut, R. (2020, January 26–30). ALBERT: A Lite BERT for Self-Supervised Learning of Language Representations. Proceedings of the 8th International Conference on Learning Representations, Addis Ababa, Ethiopia.
31. Yang, Z., Dai, Z., Yang, Y., Carbonell, J., Salakhutdinov, R.R., and Le, Q.V. (2019). XLNet: Generalized Autoregressive Pretraining for Language Understanding. Adv. Neural Inf. Process. Syst., 32.
32. Clark, K., Luong, M.-T., Le, Q.V., and Manning, C.D. (2020, January 26). ELECTRA: Pre-Training Text Encoders as Discriminators Rather Than Generators. Proceedings of the 8th International Conference on Learning Representations, Addis Ababa, Ethiopia.
33. Orăsan, C. (2018, January 25). Aggressive Language Identification Using Word Embeddings and Sentiment Features. Proceedings of the First Workshop on Trolling, Aggression and Cyberbullying, Santa Fe, NM, USA.
34. Ettinger, A., Elgohary, A., Phillips, C., and Resnik, P. (2018, January 20–26). Assessing Composition in Sentence Vector Representations. Proceedings of the 27th International Conference on Computational Linguistics, Santa Fe, NM, USA.
35. Joshi, A., Karimi, S., Sparks, R., Paris, C., and MacIntyre, C.R. (2019, January 1). A Comparison of Word-Based and Context-Based Representations for Classification Problems in Health Informatics. Proceedings of the 18th BioNLP Workshop and Shared Task, Florence, Italy.10.18653/v1/W19-5015 ↗
36. Gated Recurrent Unit with Multilingual Universal Sentence Encoder for Arabic Aspect-Based Sentiment Analysis10.1016/j.knosys.2021.107540 ↗
37. Principal Components Analysis (PCA)10.1016/0098-3004(93)90090-R ↗
38. Visualizing Data Using T-SNE
39. UMAP: Uniform Manifold Approximation and Projection10.21105/joss.00861 ↗
40. MacQueen, J. (1967). Proceedings of the 5th Berkeley Symposium on Mathematical Statistics and Probability, University of California Press.
41. Agglomerative Clustering Using the Concept of Mutual Nearest Neighbourhood10.1016/0031-3203(78)90018-3 ↗
42. Rosenberg, A., and Hirschberg, J. (2007, January 28–30). V-Measure: A Conditional Entropy-Based External Cluster Evaluation Measure. Proceedings of the 2007 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning, Prague, Czech Republic.
43. Michel, P., Levy, O., and Neubig, G. (2019, January 8–14). Are Sixteen Heads Really Better than One?. Proceedings of the Advances in Neural Information Processing Systems, Vancouver, BC, Canada.
44. BioBERT: A Pre-Trained Biomedical Language Representation Model for Biomedical Text Mining10.1093/bioinformatics/btz682 ↗
45. Enhancing Clinical Concept Extraction with Contextual Embeddings10.1093/jamia/ocz096 ↗
46. Wan, M., and McAuley, J. (2016, January 12). Modeling Ambiguity, Subjectivity, and Diverging Viewpoints in Opinion Question Answering Systems. Proceedings of the 16th International Conference on Data Mining (ICDM), Barcelona, Spain.10.1109/ICDM.2016.0060 ↗
47. McAuley, J., and Yang, A. (2016, January 11). Addressing Complex and Subjective Product-Related Queries with Customer Reviews. Proceedings of the 25th International Conference on World Wide Web, Montreal, QC, Canada.10.1145/2872427.2883044 ↗