Large Language Models (LLMs) are notoriously inefficient at mathematics. To solve simple arithmetic, they often require thousands of "reasoning tokens." A new paper introduces BitTokens, a novel encoding strategy that represents numbers as single tokens using their IEEE 754 binary floating-point representation. This approach enables even small models to perform high-precision calculations with near-perfect accuracy and massive token efficiency.
The Problem: Tokenization and the "Reasoning Tax"
When a frontier LLM is asked to multiply two large numbers, it typically succeeds only by "thinking out loud" via Chain-of-Thought (CoT) reasoning. This "reasoning tax" is computationally expensive; a single calculation can consume between 5,000 and 30,000 tokens.
The root of this inefficiency lies in tokenization. Most LLMs split numbers into arbitrary subword chunks (e.g., "4314.97" might become "43", "14", ".", "97"). This fragmentation makes it nearly impossible for the model to intuitively grasp the number's magnitude or perform standard carry-over logic. While previous research has proposed single-token numbers (such as xVal or FoNE), these methods often struggle with scale invariance or the mathematical complexity required for operations like multiplication.
The Solution: BitTokens
To address these shortcomings, the authors propose BitTokens, a deterministic encoding based on how computers natively handle numbers: the IEEE 754 floating-point standard.
The BitToken methodology involves four key steps:
- Binary Mapping: Every number is converted into its 64-bit representation (1 sign bit, 11 exponent bits, and 52 significand bits).
- Embedding Integration: These 64 bits are mapped to specific dimensions of a dedicated
[NUM]token's embedding vector. - Reciprocal Appending: To assist the model in learning division, the binary representation of the number’s reciprocal ($1/x$) is concatenated to the embedding.
- Bit-wise Loss: Instead of predicting a number via standard regression, the model predicts the bits using a bit-wise Binary Cross Entropy (BCE) loss.
This approach satisfies nine essential "desiderata" defined by the authors, including uniqueness, scale invariance, and numerical stability. Crucially, because bits are represented independently, the model can learn to implement arithmetic as bit-wise Boolean gates, essentially mimicking hardware-level logic within the neural network.
Experimental Setup
The researchers evaluated the BitTokens method across several datasets and benchmarks:
- Frontier LLM Benchmark: A custom dataset comprising 9 tasks (Min/Max, Interval, Sorting, Addition, Multiplication, Division, Exponentiation, Mean, and Standard Deviation). They tested 8 top-tier models, including GPT-5, Gemini 2.5, and DeepSeek v3.1.
- Training Data: For their own custom models (nanoGPT-2), they generated 30 million unique training samples per task.
- FineWeb 10B: Used to verify that integrating BitTokens does not degrade the model's ability to understand and generate natural language.
Key Insights and Results
The implementation of BitTokens yielded several significant breakthroughs in model efficiency and mathematical capability:
- Overcoming the "Multiplication Wall": The paper mathematically proves that previous sinusoidal encodings (like FoNE) make multiplication "non-local." To multiply in Fourier space, a model must decode the number, calculate, and re-encode—a process too complex for a single forward pass. BitTokens bypass this entirely by providing the raw bits.
- Hardware-Level Learning: By processing raw bits, the model learns algorithms that resemble binary addition and multiplication (such as Wallace trees or Booth’s algorithm). This proves far more efficient than attempting to learn "decimal" math.
- Near-Perfect Accuracy: BitTokens achieved near-perfect performance on single-step arithmetic (Addition, Multiplication, Division) in a multi-task setting, significantly outperforming subword tokenizers, xVal, and FoNE.
- Massive Efficiency Gains: BitTokens use exactly one token per number. Compared to single-digit tokenizers, this represents a massive reduction in sequence length. For example, solving a "Sorting" task required approximately 11 tokens for BitTokens versus roughly 60 for single-digit models.
- Language Preservation: The models maintained low perplexity on the FineWeb dataset, demonstrating that specialized numerical encodings can seamlessly coexist with natural language processing.
Limitations and Future Work
The primary limitation of BitTokens is the "single forward pass" constraint. Because BitTokens generate the entire answer in one step, they are limited by the parallel circuit depth of the model. Traditional LLMs "cheat" by using multiple tokens to refine their answer digit-by-digit. The authors found that while BitTokens excel at single-step math, they struggle with multi-step operations like calculating the Mean or Standard Deviation in a single forward pass.
Future work will explore intermediate auxiliary steps—essentially a "latent scratchpad"—where BitTokens could be used to perform high-precision intermediate calculations before arriving at a final result. Additionally, robust "number parsers" will need to be developed to identify exactly when to trigger the BitToken encoding in production environments.
Summary updated