cs.LGMar 3, 2026

Torus embeddings

Authors: Dan Stowell

Organizations: Tilburg University, Tilburg, The Netherlands · Naturalis Biodiversity Centre, Leiden, The Netherlands

Abstract

Many data representations are vectors of continuous values. In particular, deep learning embeddings are data-driven representations, typically either unconstrained in Euclidean space, or constrained to a hypersphere. These may also be translated into integer representations (quantised) for efficient large-scale use. However, the fundamental (and most efficient) numeric representation in the overwhelming majority of existing computers is integers with overflow -- and vectors of these integers do not correspond to either of these spaces, but instead to the topology of a (hyper)torus. This mismatch can lead to wasted representation capacity. Here we show that common deep learning frameworks can be adapted, quite simply, to create representations with inherent toroidal topology. We investigate two alternative strategies, demonstrating that a normalisation-based strategy leads to training with desirable stability and performance properties, comparable to a standard hyperspherical L2 normalisation. We also demonstrate that a torus embedding maintains desirable quantisation properties. The torus embedding does not outperform hypersphere embeddings in general, but is comparable, and opens the possibility to train deep embeddings which have an extremely simple pathway to efficient `TinyML' embedded implementation.

Figures & tables

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Hyperbolic Graph Representation Learning: Embed in One Metric, Optimize with Another

    Oct 5, 2026Federico Larroca, Paola Bermolen, Marcelo Fiori +1Riemannian OptimizationHierarchical Representation Learning

  2. No Triangulation Without Representation: Generalization in Topological Deep Learning

    May 7, 2026Johannes S. Schmidt, Martin Carrasco, Ernst Röell +3Neural Network GeneralizationGraph Neural Networks

  3. TopoEmbedX: A General Framework for Representation Learning on Topological Domains

    Sep 29, 2026Florian Frantzen, Ibrahem AlJabea, Ines Henriques-Cadby +3Topological Representation LearningGraph Embedding