arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.00788cs.CL
收藏

面向层次文本分类的文本-标签对齐建模

Modeling Text-Label Alignment for Hierarchical Text Classification

Indian Institute of Technology Roorkee(鲁尔基印度理工学院)

Ashish Kumar, Durga Toshniwal

AI总结:

针对层次文本分类中文本与动态标签层次对齐困难的问题,提出基于对比学习的文本-标签对齐损失及HTLA模型,结合BERT和GPTrans生成层次感知表示,在基准数据集上验证了有效性。

摘要:

层次文本分类(HTC)旨在基于结构化的标签层次对文本数据进行分类,从而使预测得到的标签构成一个子层次树。文本的语义应当与该子层次中的标签语义保持一致。由于每个样本对应的子层次都会发生变化,文本-标签对齐的动态特性给现有方法带来了挑战,因为现有方法通常独立地处理文本和标签。为克服这一局限,我们提出了一种专门用于建模文本与标签之间对齐关系的文本-标签对齐(TLA)损失。对于给定文本及其正标签集合,我们获取一组负标签。通过利用对比学习,TLA损失在嵌入空间中将文本拉近其正标签,同时将其推离负标签。这一过程使文本表示与相关标签对齐,同时使其远离不相关标签。在此框架基础上,我们提出了层次文本-标签对齐(HTLA)模型,该模型利用BERT作为文本编码器、GPTrans作为图编码器,并融合文本-标签嵌入以生成层次感知表示。在基准数据集上的实验结果以及与现有基线的比较证明了HTLA在HTC任务上的有效性。

英文摘要:

Hierarchical Text Classification (HTC) aims to categorize text data based on a structured label hierarchy, resulting in predicted labels forming a sub-hierarchy tree. The semantics of the text should align with the semantics of the labels in this sub-hierarchy. With the sub-hierarchy changing for each sample, the dynamic nature of text-label alignment poses challenges for existing methods, which typically process text and labels independently. To overcome this limitation, we propose a Text-Label Alignment (TLA) loss specifically designed to model the alignment between text and labels. We obtain a set of negative labels for a given text and its positive label set. By leveraging contrastive learning, the TLA loss pulls the text closer to its positive label and pushes it away from its negative label in the embedding space. This process aligns text representations with related labels while distancing them from unrelated ones. Building upon this framework, we introduce the Hierarchical Text-Label Alignment (HTLA) model, which leverages BERT as the text encoder and GPTrans as the graph encoder and integrates text-label embeddings to generate hierarchy-aware representations. Experimental results on benchmark datasets and comparison with existing baselines demonstrate the effectiveness of HTLA for HTC.

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

↑