arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2505.05583cs.CL
收藏

KG-HTC:将知识图谱整合进LLMs以实现有效的零样本层次文本分类

KG-HTC: Integrating Knowledge Graphs into LLMs for Effective Zero-shot Hierarchical Text Classification

Interdisciplinary Centre for Security, Reliability and Trust (SnT)(安全、可靠与信任交叉学科中心)

Qianbo Zang, Christophe Zgrzendek, Igor Tchappi, Afshin Khadangi, Johannes Sedlmeir

AI总结:

本文提出KG-HTC方法,通过整合知识图谱与大语言模型,解决层次文本分类中标注数据不足、标签空间大和长尾分布等问题,实验表明其在零样本设置下表现优异。

摘要:

层次文本分类(HTC)涉及将文档分配到由分类学组织的标签中。大多数先前的HTC研究集中在监督方法上。然而,在现实场景中,使用监督HTC具有挑战性,因为缺乏标注数据。此外,HTC经常面临大规模标签空间和长尾分布的问题。在本文中,我们提出了用于零样本层次文本分类的知识图谱(KG-HTC),旨在通过将知识图谱与大语言模型(LLMs)整合,为分类提供结构化的语义上下文来解决这些挑战。我们的方法使用检索增强生成(RAG)方法从与输入文本相关的知识图谱中检索相关子图。我们的KG-HTC可以增强LLMs以在不同层次上理解标签语义。我们评估了KG-HTC在三个开源HTC数据集上:WoS、DBpedia和Amazon。我们的实验结果表明,KG-HTC在严格零样本设置下显著优于三个基线方法,特别是在层次的更深层次上取得了显著改进。这项评估证明了将结构化知识整合到LLMs中以解决HTC在大规模标签空间和长尾标签分布中的挑战的有效性。我们的代码可在:https://github.com/QianboZang/KG-HTC 上获得。

英文摘要:

Hierarchical Text Classification (HTC) involves assigning documents to labels organized within a taxonomy. Most previous research on HTC has focused on supervised methods. However, in real-world scenarios, employing supervised HTC can be challenging due to a lack of annotated data. Moreover, HTC often faces issues with large label spaces and long-tail distributions. In this work, we present Knowledge Graphs for zero-shot Hierarchical Text Classification (KG-HTC), which aims to address these challenges of HTC in applications by integrating knowledge graphs with Large Language Models (LLMs) to provide structured semantic context during classification. Our method retrieves relevant subgraphs from knowledge graphs related to the input text using a Retrieval-Augmented Generation (RAG) approach. Our KG-HTC can enhance LLMs to understand label semantics at various hierarchy levels. We evaluate KG-HTC on three open-source HTC datasets: WoS, DBpedia, and Amazon. Our experimental results show that KG-HTC significantly outperforms three baselines in the strict zero-shot setting, particularly achieving substantial improvements at deeper levels of the hierarchy. This evaluation demonstrates the effectiveness of incorporating structured knowledge into LLMs to address HTC's challenges in large label spaces and long-tailed label distributions. Our code is available at: https://github.com/QianboZang/KG-HTC.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑