[Paper Review] Hyperbolic Attention Networks
The paper introduces hyperbolic attention networks by mapping neural activations to hyperbolic space and redefining attention via hyperbolic matching and aggregation, improving performance on translation, graph tasks, and VQA with compact representations.
We introduce hyperbolic attention networks to endow neural networks with enough capacity to match the complexity of data with hierarchical and power-law structure. A few recent approaches have successfully demonstrated the benefits of imposing hyperbolic geometry on the parameters of shallow networks. We extend this line of work by imposing hyperbolic geometry on the activations of neural networks. This allows us to exploit hyperbolic geometry to reason about embeddings produced by deep networks. We achieve this by re-expressing the ubiquitous mechanism of soft attention in terms of operations defined for hyperboloid and Klein models. Our method shows improvements in terms of generalization on neural machine translation, learning on graphs and visual question answering tasks while keeping the neural representations compact.
Motivation & Objective
- Motivate a geometry-aware inductive bias to capture hierarchy and power-law structures in data.
- Propose hyperbolic representations for neural activations to better model complex relational data.
- Develop hyperbolic analogs of attention mechanisms for use in common architectures.
- Demonstrate improvements across tasks like neural machine translation, graph learning, and visual question answering with compact representations.
Proposed method
- Map activations to the hyperboloid model using the pseudo-polar projection to preserve exponential scaling properties.
- Define hyperbolic attention by hyperbolic matching based on hyperbolic distance and hyperbolic aggregation using the Einstein midpoint with Klein coordinates.
- Replace standard attn components in Relation Networks and Transformer with hyperbolic counterparts.
- Allow attention weights to be computed via either softmax or sigmoid on hyperbolic distances.
- Experiment with different coordinate systems (Weierstrass/polar) and attention variants (sigmoid/softmax) to assess performance.
- Evaluate on tasks including scale-free graph prediction, Sort-of-CLEVR, CLEVR, neural machine translation (WMT14 En-De).
Experimental results
Research questions
- RQ1Can hyperbolic geometry applied to activations improve the capacity to model hierarchical and scale-free structures in data?
- RQ2Do hyperbolic attention mechanisms improve generalization and performance across NLP, graph, and vision-language tasks compared to Euclidean attention?
- RQ3What is the impact of hyperbolic attention on model capacity and representation compactness in small vs. large architectures?
- RQ4How do hyperbolic matching and hyperbolic aggregation interact within attention-based architectures like Transformers and Relation Networks?
Key findings
- Hyperbolic attention yields improvements in neural machine translation, graph learning, and visual question answering compared to Euclidean attention.
- Hyperbolic models tend to use larger activation scales on bigger graphs, indicating adaptation to hierarchical structure.
- In low-capacity settings, hyperbolic attention significantly improves relational reasoning performance.
- For WMT14 En-De translation, the best hyperbolic model with sigmoid attention achieved 28.45 BLEU on the big architecture in one setup (comparable to or exceeding the baseline).
- On synthetic scale-free graphs, hyperbolic Recursive Transformers outperform Euclidean counterparts in link prediction and shortest path tasks.
- On CLEVR and Sort-of-CLEVR datasets, hyperbolic attention in Relation Networks improves accuracy, especially in low-capacity regimes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.