Year: 2023
Type: article
Abstract: Text classification is a common and mature task in natural language processing.However, due to its reliance on machine learning models, we still consider the process of this task as a black box.Whether in commercial or academic situations, it is obvious that we need an appropriate and trustworthy way to explain the process and results of the task.Therefore, it is challenging and worthwhile to explore methods that make use of machine learning to obtain interpretable text classification results in line with human intuition and logic.Decision tree models, known for their high interpretability in the field of machine learning, are of great value in this regard.In this work, we propose a method that generates a kind of symbolic rule for text classification using decision tree models and large language models (LLMs).We obtain the predicate set that meets our task requirements through ChatGPT, which, along with the corresponding text set, forms predicate-text pairs.These text pairs can be substituted into the templates of OpenPrompt to obtain the relationship between the predicate and the text.We encode this relationship and create a relationship matrix for the predicate and text.Finally, the relationship matrix is converted into an interpretable decision tree model using the decision tree algorithm.The structure of this decision tree model abstracts into the interpretable symbolic rule that we need.The symbolic rule clearly indicates how each piece of textual content is classified into its corresponding label.At the same time, each node in the decision tree represents an open and interpretable decision.The experimental results indicate that combining a template with soft tokens in OpenPrompt and the Open Pre-trained Transformer (OPT) model can achieve a relatively good classification accuracy of 61.21%.Compared to a black box Convolutional Neural Network (CNN) in the same environment, CNN has a classification accuracy of 87%.Although the accuracy of this white box model is slightly lower than that of the black box model, the symbolic rules obtained indicate that this method solves the interpretability problem that the black box model cannot solve and has an acceptable classification accuracy.
Authors: 鄒, 彦沢, スウ, ゲンタク, Zou, Yanze
Language: Japanese
Subfield: Artificial Intelligence
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7044762524
