CodeTaxo: Enhancing Taxonomy Expansion with Limited Examples via Code Language Prompts
Taxonomies provide structural representations of knowledge and are crucial in various applications.The task of taxonomy expansion involves integrating emerging entities into existing taxonomies by identifying appropriate parent entities for these new query entities.Previous methods rely on self-supervised techniques that generate annotation data from existing taxonomies but are less effective with small taxonomies (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 stateof-the-art methods.The code and data are available at https://github.com/QingkaiZeng/ CodeTaxo-official.
Authors
- Qingkai Zeng (ORCID: https://orcid.org/0000-0002-0610-1553)
- Shangbin Feng (ORCID: https://orcid.org/0000-0002-4133-1987)
- Zhaoxuan Tan (ORCID: https://orcid.org/0000-0001-8230-6238)
- Yuyang Bai (ORCID: https://orcid.org/0009-0005-4363-5350)
- Zhenyu Wu (ORCID: https://orcid.org/0000-0003-0981-5567)
- Meng Jiang
Publication Details
- Published
- 2025-01-01
- DOI
- https://doi.org/10.18653/v1/2025.findings-acl.214
- Primary Topic
- Semantic Web and Ontologies
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Science Foundation
- Office of Naval Research