Language models as hierarchy encoders
FOS: Computer and information sciences
Computer Science - Machine Learning
Computer Science - Computation and Language
Computer Science - Artificial Intelligence
cs.LG
cs.CL
02 engineering and technology
cs.AI
Machine Learning (cs.LG)
Artificial Intelligence (cs.AI)
0202 electrical engineering, electronic engineering, information engineering
Computation and Language (cs.CL)
DOI:
10.48550/arxiv.2401.11374
Publication Date:
2024-01-01
AUTHORS (4)
ABSTRACT
Accept at NeurIPS 2024<br/>Interpreting hierarchical structures latent in language is a key limitation of current language models (LMs). While previous research has implicitly leveraged these hierarchies to enhance LMs, approaches for their explicit encoding are yet to be explored. To address this, we introduce a novel approach to re-train transformer encoder-based LMs as Hierarchy Transformer encoders (HiTs), harnessing the expansive nature of hyperbolic space. Our method situates the output embedding space of pre-trained LMs within a Poincaré ball with a curvature that adapts to the embedding dimension, followed by training on hyperbolic clustering and centripetal losses. These losses are designed to effectively cluster related entities (input as texts) and organise them hierarchically. We evaluate HiTs against pre-trained LMs, standard fine-tuned LMs, and several hyperbolic embedding baselines, focusing on their capabilities in simulating transitive inference, predicting subsumptions, and transferring knowledge across hierarchies. The results demonstrate that HiTs consistently outperform all baselines in these tasks, underscoring the effectiveness and transferability of our re-trained hierarchy encoders.<br/>
SUPPLEMENTAL MATERIAL
Coming soon ....
REFERENCES ()
CITATIONS ()
EXTERNAL LINKS
PlumX Metrics
RECOMMENDATIONS
FAIR ASSESSMENT
Coming soon ....
JUPYTER LAB
Coming soon ....