Hyperbolic Attention Networks
Caglar Gulcehre, Misha Denil, Mateusz Malinowski, Ali Razavi, Razvan Pascanu, Karl Moritz Hermann, Peter Battaglia, Victor Bapst, David Raposo, Adam Santoro, Nando de Freitas
TL;DR
The paper introduces hyperbolic attention networks that map neural activations into hyperbolic space and reframe attention as hyperbolic matching and hyperbolic aggregation. By leveraging the hyperboloid and Klein models, the approach enables hyperbolic versions of attention-based Relational Networks and Transformers. Empirical results across scale-free graphs, relational reasoning benchmarks, and neural machine translation show improved generalization, particularly in low-capacity models, suggesting hyperbolic geometry as a principled inductive bias for hierarchical and power-law structured data. The work highlights the feasibility and benefits of operating directly in hyperbolic space to enhance relational reasoning and compactness of representations.
Abstract
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.
