跳到正文
arXiv:cs.LG· Timo Klein, Thomas Lang, Yllka Velaj, Sebastian Tschiatschek·· 9 小时前

hyperbolix:基于 JAX 的双曲深度学习开源库

hyperbolix: Hyperbolic Deep Learning in JAX

AI 导读

hyperbolix 是首个基于 JAX 和 Flax NNX 的通用双曲深度学习开源库,涵盖欧几里得空间、Poincaré 球、双曲面、κ-stereographic 模型、混合曲率乘积空间和 proper velocity 空间共六种流形。

正文

View PDF HTML (experimental)

Abstract:We present hyperbolix, an open-source library for hyperbolic deep learning in JAX, built on Flax NNX. To our knowledge, it is the first comprehensive, general-purpose hyperbolic deep learning library in JAX. It includes six manifolds with a common interface: Euclidean space, the Poincaré ball, the hyperboloid, the $\kappa$-stereographic model, mixed-curvature product spaces, and the proper velocity space. We implement layer families that cover linear layers, convolutions, attention, normalization, positional encoding, regression, and vector quantization. These building blocks span methods ranging from Ganea's original hyperbolic neural networks to recent fully hyperbolic architectures such as Hypformer and Lorentzian ResNet. Additionally, hyperbolix contains Riemannian optimizers implemented as optax transformations, wrapped distributions, and hyperbolic dimensionality-reduction techniques. Its API uses idiomatic JAX: Manifolds are stateless, with curvature being passed at call time, while manifold operations act on single points, with vmap enabling batch operations. The precision of every checked operation is tested against a closed-form NumPy/SciPy transcription from the source paper or a finite difference, for both float32 and float64. On the hyperboloid, standard formulas for two-point operations, such as the distance, lose precision far from the origin, because they subtract two large, nearly equal terms. hyperbolix replaces these subtractions with cancellation-free formulas that stay accurate in float32 at distances where prior implementations return NaN. hyperbolix is available under the MIT license at this https URL .
Subjects: Machine Learning (cs.LG); Mathematical Software (cs.MS)
Cite as: arXiv:2609.28248 [cs.LG]
  (or arXiv:2609.28248v2 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2609.28248

arXiv-issued DOI via DataCite

Submission history

From: Timo Klein [view email]
[v1] Wed, 23 Sep 2026 15:09:09 UTC (188 KB)
[v2] Wed, 14 Oct 2026 11:00:42 UTC (188 KB)

来源:arXiv:cs.LG · arxiv.org