[Submitted on 17 Jan 2026 ( v1 ), last revised 25 Nov 2026 (this version, v2)]
Title: Neural Isomorphic Fields: A Transformer-based Algebraic Numerical Embedding
Abstract: Neural network models often face challenges when processing very small or very large numbers due to issues such as overflow, underflow, and unstable output variations. To mitigate these problems, we propose using embedding vectors for numbers instead of directly using their raw values. These embeddings aim to retain essential algebraic properties while preventing numerical instabilities. We introduce Neural Isomorphic Fields (NIF), a digit-sequence Transformer autoencoder trained with two learned commutative operators and an antisymmetric neural comparator. At zero loss, the embeddings provably form an ordered integral domain isomorphic to the decimal fractions, whose field of fractions is isomorphic to the rationals. For the trained model, we bound errors of operations, chains and algebraic laws by decoding margins, defects and Lipschitz constants. Trained on up to 25 digits, NIF reaches at least 99.9% exact match on closure, identity, associativity and distributivity and 99.8% on ten-step chains and the order relation. With four channels per decimal place, reconstruction and both operations exceed 99.7% exact match on numbers of up to 200 digits whose parts stay within training lengths, so the dimension grows linearly. In a language model, frozen operators raise exact match on 14-20-digit word problems from 12.0% (operators off) to 39.7%.
| Subjects: | Machine Learning (cs.LG) ; Artificial Intelligence (cs.AI); Computation and Language (cs.CL) |
| Cite as: | arXiv:2601.12095 [cs.LG] |