Introduction
Taxonomies serve as the backbone of structured knowledge, organizing concepts through hierarchical "is-a" relationships. In rapidly evolving fields like Computer Science or Medicine, new concepts emerge daily, making manual updates to these hierarchies an impossible task. While "Taxonomy Expansion"—the process of adding new concepts as leaf nodes—has seen significant research, the more complex problem of Taxonomy Completion remains a challenge.
The Taxonomy Completion Challenge
Taxonomy completion involves placing a new concept (query) into an existing hierarchy, potentially as an internal node between a parent and a child. This is significantly harder than expansion because it requires identifying a specific position within a branch rather than just a leaf attachment.
Existing automated methods often suffer from two primary drawbacks:
- Leaf-Only Bias: Training data typically favors leaf additions, leading models to overfit and fail at internal node placement.
- Disconnected Subtasks: Traditional models treat parent-finding and child-finding as isolated tasks, missing the synergistic information that could inform the final placement.
The TacoPrompt Framework
To address these issues, the authors propose TacoPrompt, a self-supervised framework that treats taxonomy completion as a triplet semantic matching problem using a Pre-trained Language Model (PLM).
Prompt Learning with MLM Heads
Instead of adding a standard classification layer—which often leads to overfitting on small datasets—TacoPrompt utilizes the pre-trained Masked Language Modeling (MLM) head of a Language Model. By framing the problem as a "fill-in-the-blank" task (e.g., predicting if a triplet matches), the model leverages the rich semantic knowledge already present in the PLM, enhancing generalization and resisting the leaf-only bias.
Collaborative Multi-Task Learning
TacoPrompt introduces two variants to bridge the gap between subtasks:
- TacoPrompt-Chain: This variant uses a "Chain-of-Thought" style approach. It first performs parent-matching and child-matching subtasks, then feeds the explicit "Yes/No" results back into the prompt as textual context for the final decision.
- TacoPrompt-Hidden: This version uses soft prompts (learnable hidden vectors) to pass information between tasks within the transformer layers, allowing for a more fluid exchange of information.
Efficiency: TacoPrompt++
To overcome the computational cost of cross-encoders, the authors developed TacoPrompt++. This two-stage pipeline uses a lightweight retriever to identify the top 50 candidates, which TacoPrompt then re-ranks. This optimization improves inference speed by up to 1,000x without sacrificing accuracy.
Experimental Evaluation
TacoPrompt was benchmarked against state-of-the-art models on three diverse datasets: SemEval-Food, MeSH (Medical Subject Headings), and WordNet-Verb. These datasets were specifically curated to include non-leaf attachment scenarios.
Key Results
- Superior Accuracy: TacoPrompt consistently outperformed all baselines. On the SemEval-Food dataset, it achieved a 71.7% Mean Reciprocal Rank (MRR), a substantial improvement over the previous best (57.9%).
- Non-Leaf Performance: In the most difficult scenarios—inserting nodes into the middle of a tree—TacoPrompt-Chain improved Hit@1 by an average of 16.6% across all datasets.
- Comparison with LLMs: Interestingly, task-tuned TacoPrompt outperformed much larger models like Llama-2-7B in few-shot settings, highlighting the importance of structural awareness in taxonomy tasks.
Conclusion
TacoPrompt represents a significant step forward in automated knowledge organization. By combining the power of prompt learning with a collaborative multi-task architecture, it effectively mitigates the leaf-only bias and provides a robust solution for the complex task of taxonomy completion. Future work may explore incorporating sibling node information to further refine the vertical placement of new concepts.
Summary updated