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

基于LLM优化的分层文本分类

Hierarchical Text Classification with LLM-Refined Taxonomies

Humboldt Universität zu Berlin(柏林洪堡大学);Amazon(亚马逊);Meta;School of Computer Science, University of St Andrews(圣安德鲁大学计算机学院)

Jonas Golde, Nicolaas Jedema, Ravi Krishnan, Phong Le

AI总结:

本文提出TaxMorph框架,利用LLM优化分类体系,提升分层文本分类性能。

摘要:

分层文本分类(HTC)依赖于将标签组织成结构化层次的分类体系。然而,许多现实中的分类体系引入了歧义,例如相似父节点下的相同叶子节点名称,这阻碍了语言模型(LMs)学习清晰的决策边界。在本文中,我们提出了TaxMorph框架,该框架利用大型语言模型(LLMs)通过重命名、合并、拆分和重新排序等操作来转换整个分类体系。与以往工作不同,我们的方法修订整个层次结构以更好地匹配LM编码的语义。在三个HTC基准测试中的实验表明,LLM优化的分类体系在各种设置中始终优于人工整理的分类体系,F1得分提高最高可达+2.9pp。为了更好地理解这些改进,我们比较了LM在将叶子节点分配给父节点和 vice versa 的能力在人工整理和LLM优化的分类体系中的表现。我们发现,人工整理的分类体系在嵌入空间中产生更容易分离的簇。然而,LLM优化的分类体系更紧密地与模型在分类过程中的实际混淆模式一致。换句话说,尽管它们更难分离,但它们更好地反映了模型的归纳偏置。这些发现表明,LLM引导的优化创建了更符合模型学习方式的分类体系,从而提高了HTC性能。

英文摘要:

Hierarchical text classification (HTC) depends on taxonomies that organize labels into structured hierarchies. However, many real-world taxonomies introduce ambiguities, such as identical leaf names under similar parent nodes, which prevent language models (LMs) from learning clear decision boundaries. In this paper, we present TaxMorph, a framework that uses large language models (LLMs) to transform entire taxonomies through operations such as renaming, merging, splitting, and reordering. Unlike prior work, our method revises the full hierarchy to better match the semantics encoded by LMs. Experiments across three HTC benchmarks show that LLM-refined taxonomies consistently outperform human-curated ones in various settings up to +2.9pp. in F1. To better understand these improvements, we compare how well LMs can assign leaf nodes to parent nodes and vice versa across human-curated and LLM-refined taxonomies. We find that human-curated taxonomies lead to more easily separable clusters in embedding space. However, the LLM-refined taxonomies align more closely with the model's actual confusion patterns during classification. In other words, even though they are harder to separate, they better reflect the model's inductive biases. These findings suggest that LLM-guided refinement creates taxonomies that are more compatible with how models learn, improving HTC performance.

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

↑