Polar Embedding

Ran Iwamoto, Ryosuke Kohita, Akifumi Wachi

Abstract

Word hierarchies are fundamental to natural language understanding, yet representing them efficiently remains a challenge. While hyperbolic embeddings excel at capturing tree-like structures, they often lack compatibility with standard Euclidean-based neural network architectures. This paper introduces Polar Embedding, a framework that utilizes polar coordinates to decouple a word's generality from its semantic meaning. By employing specialized loss functions and variational gradient descent, Polar Embedding achieves hyperbolic-level performance within a simple Euclidean framework.

Introduction

Language is inherently hierarchical. Concepts like "poodle" are nested within broader categories like "dog" and "mammal." Capturing these "is-a" relationships is essential for downstream tasks such as question answering and causal reasoning. Currently, researchers must choose between easy-to-use Euclidean embeddings (e.g., Word2Vec), which struggle with hierarchies, and mathematically complex hyperbolic embeddings, which are ideal for trees but difficult to integrate into standard machine learning pipelines. Polar Embedding bridges this gap by bringing hierarchical awareness to Euclidean space.

Methodology

The fundamental innovation of Polar Embedding is the transition from Cartesian coordinates $(x, y, z)$ to polar coordinates $(r, \theta, \phi)$. This shift allows for the independent treatment of two critical semantic dimensions:

  1. Radius ($r$) as Generality: Concepts closer to the origin (small $r$) represent general terms (e.g., "mammal"), while those further away (large $r$) represent specific instances (e.g., "bulldog"). The radius can be pre-defined based on the number of descendants a node has in a hierarchy like WordNet.
  2. Angles ($\theta, \phi$) as Similarity: The angular direction of the vector captures semantic meaning. Words with similar angles are conceptually related, regardless of their level of generality.
Hierarchical representation using polar coordinates where radius denotes generality and angle denotes semantic similarity.

Optimization Strategy

Optimizing angles within bounded ranges (e.g., $0$ to $\pi$) presents unique challenges. Standard squared loss functions tend to push negative samples (unrelated words) toward the boundaries, leading to "clumping" at the edges of the coordinate system. To address this, the authors introduced two key techniques:

  • Welsch Loss Function: Unlike standard loss, the gradient of the Welsch loss decreases for very distant points. This prevents the model from over-optimizing the separation of unrelated words into the "corners" of the space.
  • Stein Variational Gradient Descent (SVGD): This technique is used to "uniformize" the distribution of word vectors, ensuring they spread evenly across the angular space rather than huddling together.
The Welsch loss function prevents excessive pushing of unrelated words to the boundaries by decreasing gradients for distant points.

Evaluation and Results

The model was evaluated using WordNet, focusing on the "Mammal Subtree" for visualization and the full "Noun Hierarchy" for a link prediction task. The results demonstrate:

  • Low-Dimensional Efficiency: In 5-dimensional space, Polar Embedding significantly outperformed other Euclidean models like Order or Box Embeddings.
  • Hyperbolic Competitiveness: Remarkably, the model performed on par with or better than Poincaré embeddings, the state-of-the-art hyperbolic model, despite the latter's theoretical geometric advantage.
  • Ablation Insights: The inclusion of SVGD and Welsch loss was critical; removing them resulted in a nearly 13-point drop in F1 score due to vector clumping.

Conclusion and Future Work

Polar Embedding demonstrates that non-Euclidean geometry is not strictly necessary for representing hierarchies if the coordinate system matches the data's topology. While the performance gap narrows in higher dimensions and the model currently benefits from pre-defined radii, it offers a powerful, compatible alternative for hierarchical representation. Future research will explore integrating these polar representations into large-scale Transformer models like BERT or GPT.

Summary updated

BibTeX
@inproceedings{iwamoto2021polar,
  author = {Ran Iwamoto and Ryosuke Kohita and Akifumi Wachi},
  title = {{Polar Embedding}},
  booktitle = {CoNLL},
  year = {2021},
  doi = {10.18653/v1/2021.conll-1.37},
}
Figure