Fractal Language Modelling by Universal Sequence Maps (USM)

Jonas S Almeida, Daniel E Russ, Susana Vinga, Ines Duarte, Lee Mason +4 more
8/8/2025
cs.LGcs.AImath.NA

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Motivation: With the advent of Language Models using Transformers, popularized by ChatGPT, there is a renewed interest in exploring encoding procedures that numerically represent symbolic sequences at multiple scales and embedding dimensions. The challenge that encoding addresses is the need for mechanisms that uniquely retain contextual information about the succession of individual symbols, which can then be modeled by nonlinear formulations such as neural networks. Context: Universal Sequence Maps(USM) are iterated functions that bijectively encode symbolic sequences onto embedded numerical spaces. USM is composed of two Chaos Game Representations (CGR), iterated forwardly and backwardly, that can be projected into the frequency domain (FCGR). The corresponding USM coordinates can be used to compute a Chebyshev distance metric as well as k-mer frequencies, without having to recompute the embedded numeric coordinates, and, paradoxically, allowing for non-integers values of k. Results: This report advances the bijective fractal encoding by Universal Sequence Maps (USM) by resolving seeding biases affecting the iterated process. The resolution had two results, the first expected, the second an intriguing outcome: 1) full reconciliation of numeric positioning with sequence identity; and 2) uncovering the nature of USM as an efficient numeric process converging towards a steady state sequence embedding solution. We illustrate these results for genomic sequences because of the convenience of a planar representation defined by an alphabet with only 4 tokens (the 4 nucleotides). Nevertheless, the application to alphabet of arbitrary cardinality was found to be straightforward.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{almeida2025fractal,
  title  = {Fractal Language Modelling by Universal Sequence Maps (USM)},
  author = {Jonas S Almeida and Daniel E Russ and Susana Vinga and Ines Duarte and Lee Mason and Praphulla Bhawsar and Aaron Ge and Arlindo Oliveira and Jeya Balaji Balasubramanian},
  year   = {2025},
  eprint = {2508.06641},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.06641v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.06641.svg)](https://codeofpaper.com/paper/2508.06641)

Discussion