ChatGraph: Interpretable Text Classification by Converting ChatGPT Knowledge to Graphs

Yucheng Shi, Hehuan Ma, Wenliang Zhong, Qiaoyu Tan, Gengchen Mai +3 more
5/3/2023
cs.CLcs.AIcs.LG

No official code found. Best implementation: sycny/ChatGraph (6 stars, Apache-2.0, last commit 2024-01-29).

Abstract

ChatGPT, as a recently launched large language model (LLM), has shown superior performance in various natural language processing (NLP) tasks. However, two major limitations hinder its potential applications: (1) the inflexibility of finetuning on downstream tasks and (2) the lack of interpretability in the decision-making process. To tackle these limitations, we propose a novel framework that leverages the power of ChatGPT for specific tasks, such as text classification, while improving its interpretability. The proposed framework conducts a knowledge graph extraction task to extract refined and structural knowledge from the raw data using ChatGPT. The rich knowledge is then converted into a graph, which is further used to train an interpretable linear classifier to make predictions. To evaluate the effectiveness of our proposed method, we conduct experiments on four datasets. The result shows that our method can significantly improve the performance compared to directly utilizing ChatGPT for text classification tasks. And our method provides a more transparent decision-making process compared with previous text classification methods.

View on arXivView PDF

Code Implementations(1)

sycny/ChatGraphCommunity100%
Apache-2.0

[ICDMW] ChatGraph: Interpretable Text Classification by Converting ChatGPT Knowledge to Graphs

61Shell, PythonJun 16, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{shi2023chatgraph,
  title  = {ChatGraph: Interpretable Text Classification by Converting ChatGPT Knowledge to Graphs},
  author = {Yucheng Shi and Hehuan Ma and Wenliang Zhong and Qiaoyu Tan and Gengchen Mai and Xiang Li and Tianming Liu and Junzhou Huang},
  year   = {2023},
  eprint = {2305.03513},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.03513v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.03513.svg)](https://codeofpaper.com/paper/2305.03513)

Discussion