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.2.tar.gz (9.3 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.2-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lorch-0.0.2.tar.gz
  • Upload date:
  • Size: 9.3 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.2.tar.gz
Algorithm Hash digest
SHA256 a75009b2c7a4dda03cd1f902433690e97a52b43ba5112625456923eb8e68c04a
MD5 34cf030ce443059bbe9cb201f9e6aa15
BLAKE2b-256 2141d354b927feea06d3152e4c893c64a3c99971b40e5cede244e4964f436fa3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lorch-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b772171e37f8c79451e135bef40d73c78145788a3dde23bdc61ebf541568be85
MD5 144170183c1c54bd306e0684c0fcfee4
BLAKE2b-256 d001747da682e90d46118a5fbc6c96fa9200c8c7e20facf772e9e3d7d40a48da

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