Skip to main content

A highly efficient and accessible implementation of Lorentz Linear layer based on Fast and Geometrically Grounded Lorentz Neural Networks by Robert van der Klis et al.

Project description

Lorentz

Abstract

Hyperbolic space is quickly gaining traction as a promising geometry for hierarchical and robust representation learning. A core open challenge is the development of a mathematical formulation of hyperbolic neural networks that is both efficient and captures the key properties of hyperbolic space. The Lorentz model of hyperbolic space has been shown to enable both fast forward and backward propagation. However, we prove that, with the current formulation of Lorentz linear layers, the hyperbolic norms of the outputs scale logarithmically with the number of gradient descent steps, nullifying the key advantage of hyperbolic geometry. We propose a new Lorentz linear layer grounded in the well-known ``distance-to-hyperplane" formulation. We prove that our formulation results in the usual linear scaling of output hyperbolic norms with respect to the number of gradient descent steps. Our new formulation, together with further algorithmic efficiencies through Lorentzian activation functions and a new caching strategy results in neural networks fully abiding by hyperbolic geometry while simultaneously bridging the computation gap to Euclidean neural networks.

Citation

@article{Van_der_Klis2026-rs,
  title         = "Fast and geometrically grounded Lorentz neural networks",
  author        = "van der Klis, Robert and Torres, Ricardo Ch{\'a}vez and van
                   Spengler, Max and Ding, Yuhui and Hofmann, Thomas and
                   Mettes, Pascal",
  month         =  jan,
  year          =  2026,
  copyright     = "http://creativecommons.org/licenses/by/4.0/",
  archivePrefix = "arXiv",
  primaryClass  = "cs.LG",
  eprint        = "2601.21529"
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lorch-0.0.3.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lorch-0.0.3-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file lorch-0.0.3.tar.gz.

File metadata

  • Download URL: lorch-0.0.3.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for lorch-0.0.3.tar.gz
Algorithm Hash digest
SHA256 73a3c4d5cc2288d8f386a6782964208df1ca95c0721d6a04450bb366a889ede6
MD5 95a7a5b15e647f1090ecbb8e18639254
BLAKE2b-256 f8b887a46c0707159c0b585371f1218641d885f8851110493b865ff97912881a

See more details on using hashes here.

File details

Details for the file lorch-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: lorch-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for lorch-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0b82d19000cb9657da9be163e67f9dacf18ad0f15d8a3ddabd3a7902b10a3704
MD5 2c8e7c02881ed9611ec282470c450198
BLAKE2b-256 702afd7dd24f88de31b7490aed6ce3b9adb88d41519029dad81ddd254fb67f1b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page