cs.LGJan 17, 2026

Neural Isomorphic Fields: A Transformer-based Algebraic Numerical Embedding

Authors: Hamidreza Sadeghi, Saeedeh Momtazi, Reza Safabakhsh

Organizations: Department of Computer Engineering Amirkabir University of Technology, Tehran, Iran

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%.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Numbers Already Carry Their Own Embeddings

    Jun 12, 2026Suhyun Bae, Donghun LeeRepresentation Learning

  2. CONE: Embeddings for Complex Numerical Data Preserving Unit and Variable Semantics

    Mar 5, 2026Gyanendra Shrestha, Anna Pyayt, Michael GubanovNumerical Reasoning in Language ModelsRepresentation Learning

  3. Numeracy in Large Language Models: Fundamental Limitations and Paths to Improvement

    Aug 13, 2026Aoxin NiNumerical Reasoning in Language ModelsLLM Grounding