Abstract
Prototype network-based methods have made substantial progress in few-shot relation extraction (FSRE) by enhancing relation prototypes with relation descriptions. However, the distribution of relations and instances in distinct representation spaces isolates the constraints of relations on instances, making relation prototypes biased. In this paper, we propose an end-to-end partial order-centered hyperbolic representation learning (PO-HRL) framework, which imposes the constraints of relations on instances by modeling partial order in hyperbolic space, so as to effectively learn the distribution of instance representations. Specifically, we develop the hyperbolic supervised contrastive learning based on Lorentzian cosine similarity to align representations of relations and instances, and model the partial order by constraining instances to reside within the Lorentzian entailment cone of their respective relation. Experiments on three benchmark datasets show that PO-HRL outperforms the strong baselines, especially in 1-shot settings lacking relation descriptions.
Introduction
Relation Extraction (RE) is a fundamental task in natural language processing that involves identifying semantic relationships between entities in text. In Few-Shot Relation Extraction (FSRE), models must generalize to new relations using only a handful of labeled examples.
Traditional prototype-based methods often treat relations and instances as separate points in a flat Euclidean space. However, this ignores the inherent hierarchy of the data: a relation is a generalized concept, while an instance is a specific manifestation. This "partial order" implies that a relation should "contain" its instances. Euclidean space struggles to represent such hierarchical structures efficiently, often leading to biased prototypes that fail to distinguish between closely related concepts when data is scarce.
Methodology
To address these limitations, we propose PO-HRL (Partial Order-centered Hyperbolic Representation Learning). This framework shifts the embedding space from Euclidean to Hyperbolic geometry, specifically utilizing the Lorentz model. Hyperbolic space is uniquely suited for hierarchical data because its volume grows exponentially with the radius, naturally accommodating tree-like structures.
Technical Innovations
- Lorentzian Cosine Similarity: We derive a new similarity metric for the Lorentz model that captures directional information, which is essential for aligning relations and instances within the same manifold.
- Lorentzian Entailment Cones: To model the partial order, we utilize "cones" in the hyperbolic space. By treating a relation as the apex of a cone, we constrain all valid instances of that relation to reside within its boundaries. This geometric constraint acts as a powerful regularizer, forcing the model to respect the general-to-specific hierarchy.
- Hyperbolic Supervised Contrastive Learning: This component aligns relation and instance representations, ensuring that instances of the same relation cluster together within their respective entailment cones while pushing different relations apart.
Experimental Evaluation
We evaluated PO-HRL on three major benchmarks: FewRel 1.0, FewRel 2.0 (biomedical domain), and Semeval (2010 Task 8).
Key Results
PO-HRL achieved state-of-the-art (SOTA) performance across all datasets, with particularly strong gains in extreme 1-shot scenarios:
- FewRel 2.0: In the 5-way 1-shot setting, PO-HRL reached 80.34% accuracy, outperforming previous strong baselines like HND by nearly 2 percentage points.
- Semeval: On 5-way 1-shot, it achieved 59.97%, a significant improvement over the 51.48% of previous top models.
- Ablation Study: Removing the "Partial Order Modeling" (the cones) led to a sharp drop in performance (e.g., 2.44 points on FewRel 2.0 10-way 1-shot), confirming that the hierarchical constraint is the primary driver of success.
Conclusion
PO-HRL demonstrates that the geometric structure of the embedding space can significantly enhance few-shot learning. By modeling the partial order between relations and instances in hyperbolic space, we create more robust and less biased representations. While operations in the Lorentz model are computationally more complex than Euclidean math, the gains in accuracy—especially when relation descriptions are missing—suggest that partial-order modeling is a vital direction for future FSRE research.
Summary updated