Hypformer: Exploring Efficient Transformer Fully in Hyperbolic Space

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Yang, Menglin, Verma, Harshit, Zhang, Delvin Ce, Liu, Jiahong, King, Irwin, Ying, Rex
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915458284781568
author Yang, Menglin
Verma, Harshit
Zhang, Delvin Ce
Liu, Jiahong
King, Irwin
Ying, Rex
author_facet Yang, Menglin
Verma, Harshit
Zhang, Delvin Ce
Liu, Jiahong
King, Irwin
Ying, Rex
contents Hyperbolic geometry have shown significant potential in modeling complex structured data, particularly those with underlying tree-like and hierarchical structures. Despite the impressive performance of various hyperbolic neural networks across numerous domains, research on adapting the Transformer to hyperbolic space remains limited. Previous attempts have mainly focused on modifying self-attention modules in the Transformer. However, these efforts have fallen short of developing a complete hyperbolic Transformer. This stems primarily from: (i) the absence of well-defined modules in hyperbolic space, including linear transformation layers, LayerNorm layers, activation functions, dropout operations, etc. (ii) the quadratic time complexity of the existing hyperbolic self-attention module w.r.t the number of input tokens, which hinders its scalability. To address these challenges, we propose, Hypformer, a novel hyperbolic Transformer based on the Lorentz model of hyperbolic geometry. In Hypformer, we introduce two foundational blocks that define the essential modules of the Transformer in hyperbolic space. Furthermore, we develop a linear self-attention mechanism in hyperbolic space, enabling hyperbolic Transformer to process billion-scale graph data and long-sequence inputs for the first time. Our experimental results confirm the effectiveness and efficiency of Hypformer across various datasets, demonstrating its potential as an effective and scalable solution for large-scale data representation and large models.
format Preprint
id arxiv_https___arxiv_org_abs_2407_01290
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Hypformer: Exploring Efficient Transformer Fully in Hyperbolic Space
Yang, Menglin
Verma, Harshit
Zhang, Delvin Ce
Liu, Jiahong
King, Irwin
Ying, Rex
Machine Learning
Artificial Intelligence
Hyperbolic geometry have shown significant potential in modeling complex structured data, particularly those with underlying tree-like and hierarchical structures. Despite the impressive performance of various hyperbolic neural networks across numerous domains, research on adapting the Transformer to hyperbolic space remains limited. Previous attempts have mainly focused on modifying self-attention modules in the Transformer. However, these efforts have fallen short of developing a complete hyperbolic Transformer. This stems primarily from: (i) the absence of well-defined modules in hyperbolic space, including linear transformation layers, LayerNorm layers, activation functions, dropout operations, etc. (ii) the quadratic time complexity of the existing hyperbolic self-attention module w.r.t the number of input tokens, which hinders its scalability. To address these challenges, we propose, Hypformer, a novel hyperbolic Transformer based on the Lorentz model of hyperbolic geometry. In Hypformer, we introduce two foundational blocks that define the essential modules of the Transformer in hyperbolic space. Furthermore, we develop a linear self-attention mechanism in hyperbolic space, enabling hyperbolic Transformer to process billion-scale graph data and long-sequence inputs for the first time. Our experimental results confirm the effectiveness and efficiency of Hypformer across various datasets, demonstrating its potential as an effective and scalable solution for large-scale data representation and large models.
title Hypformer: Exploring Efficient Transformer Fully in Hyperbolic Space
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2407.01290