Lune

NeurIPS2024Top-tier venue

Language Models as Hierarchy Encoders

Yuan He, Moy Yuan, Jiaoyan Chen, Ian Horrocks

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

17 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Probing BERT in Hyperbolic Spaces cites Hyperbolic Neural Networks++
  • The LLM Bottleneck: Why Open-Source Vision LLMs Struggle with Hierarchical Visual Recognition cites Language Model Analysis for Ontology Subsumption Inference
  • The LLM Bottleneck: Why Open-Source Vision LLMs Struggle with Hierarchical Visual Recognition cites The Geometry of Categorical and Hierarchical Concepts in Large Language Models
  • The Geometry of Categorical and Hierarchical Concepts in Large Language Models cites Probing BERT in Hyperbolic Spaces
  • Agent-OM: Leveraging LLM Agents for Ontology Matching cites Language Model Analysis for Ontology Subsumption Inference
  • Taxonomy-Aware Representation Alignment for Hierarchical Visual Recognition with Large Multimodal Models cites The LLM Bottleneck: Why Open-Source Vision LLMs Struggle with Hierarchical Visual Recognition
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers17

  1. Agent-OM: Leveraging LLM Agents for Ontology MatchingZhangcheng Qiang, Weiqing Wang, Kerry TaylorVLDB 2025 · 34 citations
  2. The LLM Bottleneck: Why Open-Source Vision LLMs Struggle with Hierarchical Visual RecognitionYuwen Tan, Yuan Qing, Boqing GongCVPR 2026 · 6 citations
  3. Hierarchical Retrieval: The Geometry and a Pretrain-Finetune RecipeChong You, Rajesh Jayaram, Ananda Theertha Suresh, Robin Nittka et al.NeurIPS 2025 · 4 citations
  4. The Geometry of Categorical and Hierarchical Concepts in Large Language ModelsKiho Park, Yo Joong Choe, Yibo Jiang, Victor VeitchICLR 2025 · 3 citations
  5. Taxonomy-Aware Representation Alignment for Hierarchical Visual Recognition with Large Multimodal ModelsHulingxiao He, Zhi Tan, Yuxin PengCVPR 2026 · 3 citations

Builds on5

  1. SimCSE: Simple Contrastive Learning of Sentence EmbeddingsTianyu Gao, Xingcheng Yao, Danqi ChenEMNLP 2021 · 2,496 citations
  2. Hyperbolic Neural Networks++Ryohei Shimizu, Yusuke Mukuta, Tatsuya HaradaICLR 2021 · 791 citations
  3. Masked Language Model ScoringJulian Salazar, Davis Liang, Toan Q. Nguyen, Katrin KirchhoffACL 2020 · 167 citations
  4. Probing BERT in Hyperbolic SpacesBoli Chen, Yao Fu, Guangwei Xu, Pengjun Xie et al.ICLR 2021 · 19 citations
  5. Language Model Analysis for Ontology Subsumption InferenceYuan He, Jiaoyan Chen, Ernesto Jiménez-Ruiz, Hang Dong et al.ACL Findings 2023 · 12 citations

Related papers

  1. HELM: Hyperbolic Large Language Models via Mixture-of-Curvature ExpertsNeil He, Rishabh Anand, Hiren Madhu, Ali Maatouk et al.NeurIPS 2025 · 27 citations
  2. Hyperbolic Interaction Model for Hierarchical Multi-Label ClassificationBoli Chen, Xin Huang, Lin Xiao, Zixin Cai et al.AAAI 2020 · 78 citations
  3. Learning Visual Hierarchies in Hyperbolic Space for Image RetrievalZiwei Wang, Sameera Ramasinghe, Chenchen Hu, Julien Monteil et al.ICCV 2025 · 4 citations
  4. HIER: Metric Learning Beyond Class Labels via Hierarchical RegularizationSungyeon Kim, Boseung Jeong, Suha KwakCVPR 2023
  5. HyperMiner: Topic Taxonomy Mining with Hyperbolic EmbeddingYishi Xu, Dongsheng Wang, Bo Chen, Ruiying Lu et al.NeurIPS 2022 · 38 citations
Dusk over the sea between two cliffs drawn in fine vertical lines