CodeTaxo: Enhancing Taxonomy Expansion with Limited Examples via Code Language Prompts

Qingkai Zeng, Yuyang Bai, Zhaoxuan Tan, Zhenyu Wu, Shangbin Feng +1 more
8/17/2024
cs.CLcs.IR

No official code found. Best implementation: QingkaiZeng/CodeTaxo-Privite (4 stars, last commit 2025-01-25).

Abstract

Taxonomies play a crucial role in various applications by providing a structural representation of knowledge. The task of taxonomy expansion involves integrating emerging concepts into existing taxonomies by identifying appropriate parent concepts for these new query concepts. Previous approaches typically relied on self-supervised methods that generate annotation data from existing taxonomies. However, these methods are less effective when the existing taxonomy is small (fewer than 100 entities). In this work, we introduce CodeTaxo, a novel approach that leverages large language models through code language prompts to capture the taxonomic structure. Extensive experiments on five real-world benchmarks from different domains demonstrate that CodeTaxo consistently achieves superior performance across all evaluation metrics, significantly outperforming previous state-of-the-art methods. The code and data are available at https://github.com/QingkaiZeng/CodeTaxo-Pub.

View on arXivView PDF

Code Implementations(1)

Code and Data for CodeTaxo

40PythonAug 15, 20241 years ago

Similar Papers

Cite this paper

@article{zeng2024codetaxo,
  title  = {CodeTaxo: Enhancing Taxonomy Expansion with Limited Examples via Code Language Prompts},
  author = {Qingkai Zeng and Yuyang Bai and Zhaoxuan Tan and Zhenyu Wu and Shangbin Feng and Meng Jiang},
  year   = {2024},
  eprint = {2408.09070},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.09070v2}
}

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/2408.09070.svg)](https://codeofpaper.com/paper/2408.09070)

Discussion