journal article·2021-09-15Open access

Revisiting Text Guide, a Truncation Method for Long Text Classification

Krzysztof Fiok, Waldemar Karwowski, Edgar Gutierrez, Mohammad Reza Davahli, Maciej Wilamowski, Tareq Ahram

Applied Sciences· Volume 11· Issue 18

Abstract

The quality of text classification has greatly improved with the introduction of deep learning, and more recently, models using attention mechanism. However, to address the problem of classifying text instances that are longer than the length limit adopted by most of the best performing transformer models, the most common method is to naively truncate the text so that it meets the model limit. Researchers have proposed other approaches, but they do not appear to be popular, because of their high computational cost and implementation complexity. Recently, another method called Text Guide has been proposed, which allows for text truncation that outperforms the naive approach and simultaneously is less complex and costly than earlier proposed solutions. Our study revisits Text Guide by testing the influence of certain modifications on the method’s performance. We found that some aspects of the method can be altered to further improve performance and confirmed several assumptions regarding the dependence of the method’s quality on certain factors.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Advanced Text Analysis Techniques · Text and Document Classification Technologies · Topic Modeling

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Industrial Engineering and Management Systems, University of Central Florida, Orlando, FL 32816, USA

Center for Latin-American Logistics Innovation, LOGyCA, Bogota 110111, Colombia

Faculty of Economic Sciences, University of Warsaw, 00-927 Warsaw, Poland

Funding

Office of Naval Research

References (33)

Show source-provided references
1. Linguistic inquiry and word count: LIWC 2001
2. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., and Polosukhin, I. (2017). Attention is all you need. arXiv.
3. Kitaev, N., Kaiser, Ł., and Levskaya, A. (2020). Reformer: The efficient transformer. arXiv.
4. Choromanski, K., Likhosherstov, V., Dohan, D., Song, X., Gane, A., Sarlos, T., and Weller, A. (2020). Rethinking attention with performers. arXiv.
5. Zaheer, M., Guruganesh, G., Dubey, A., Ainslie, J., Alberti, C., Ontanon, S., and Ahmed, A. (2020). Big bird: Transformers for longer sequences. arXiv.
6. Beltagy, I., Peters, M.E., and Cohan, A. (2020). Longformer: The long-document transformer. arXiv.
7. Akbik, A., Bergmann, T., Blythe, D., Rasul, K., Schweter, S., and Vollgraf, R. (2019, January 2–7). FLAIR: An easy-to-use framework for state-of-the-art NLP. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics (Demonstrations), Minneapolis, MN, USA.
8. Sun, C., Qiu, X., Xu, Y., and Huang, X. (2019). How to Fine-Tune BERT for Text Classification?. China National Conference on Chinese Computational Linguistics, Springer.10.1007/978-3-030-32381-3_16 ↗
9. Min, S., Zhong, V., Socher, R., and Xiong, C. (2018). Efficient and robust question answering from minimalcontext over documents. arXiv.10.18653/v1/P18-1160 ↗
10. CogLTX: Applying BERT to Long Texts
11. Text Guide: Improving the Quality of Long Text Classification by a Text Selection Method Based on Feature Importance10.1109/ACCESS.2021.3099758 ↗
12. Lundberg, S., and Lee, S.I. (2017). A unified approach to interpreting model predictions. arXiv.
13. (2021, July 29). krzysztoffiok TextGuide. Available online: https://github.com/krzysztoffiok/TextGuide.
14. Pedregosa, F. (2021, September 07). Sklearn. Feature_Extraction. Text. CountVectorizer. Available online: https://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.CountVectorizer.html.
15. Mutual Information10.4249/scholarpedia.1658 ↗
16. Lundberg, S., Erion, G., and Lee, S.I. (2018). Consistent individualized feature attribution for tree ensembles. arXiv.
17. From local explanations to global understanding with explainable AI for trees10.1038/s42256-019-0138-9 ↗
18. Lan, Z., Chen, M., Goodman, S., Gimpel, K., Sharma, P., and Soricut, R. (2019). Albert: A lite bert for self-supervised learning of language representations. arXiv.
19. (2021, September 07). Sood, Gaurav, Parsed DMOZ Data 2016. Available online: https://doi.org/10.7910/DVN/OMV93V.
20. Partalas, I., Kosmopoulos, A., Baskiotis, N., Artieres, T., Paliouras, G., Gaussier, E., and Galinari, P. (2015). Lshtc: A benchmark for large-scale text classification. arXiv.10.1145/2556195.2556208 ↗
21. Web page classification based on a simplified swarm optimization
22. A web page classification system based on a genetic algorithm using tagged-terms as features10.1016/j.eswa.2010.08.126 ↗
23. Maas, A., Daly, R.E., Pham, P.T., Huang, D., Ng, A.Y., and Potts, C. (2011, January 19–24). Learning Word Vectors for Sentiment Analysis. Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, Portland, OR, USA.
24. Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., and Stoyanov, V. (2019). Roberta: A robustly optimized bert pretraining approach. arXiv.
25. Iandola, F.N., Shaw, A.E., Krishna, R., and Keutzer, K.W. (2020). SqueezeBERT: What can computer vision teach NLP about efficient neural networks?. arXiv.10.18653/v1/2020.sustainlp-1.17 ↗
26. Sanh, V., Debut, L., Chaumond, J., and Wolf, T. (2019). DistilBERT, a distilled version of BERT: Smaller, faster, cheaper and lighter. arXiv.
27. Devlin, J., Chang, M.W., Lee, K., and Toutanova, K. (2018). Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv.
28. Wolf, T., Chaumond, J., Debut, L., Sanh, V., Delangue, C., Moi, A., Cistac, P., Funtowicz, M., Davison, J., and Shleifer, S. (2020, January 16–20). Transformers: State-of-the-Art Natural Language Processing. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, Stroudsburg, PA, USA.10.18653/v1/2020.emnlp-demos.6 ↗
29. (2021, May 14). Available online: https://xgboost.readthedocs.io/en/latest/python/python_intro.html.
30. Comparison of the predicted and observed secondary structure of T4 phage lysozyme10.1016/0005-2795(75)90109-9 ↗
31. The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation10.1186/s12864-019-6413-7 ↗
32. Scikit-Learn: Machine Learning in Python
33. (2021, May 14). Available online: https://scikit-learn.org/stable/.