Lune

ICML2025Top-tier venue

Regress, Don't Guess: A Regression-like Loss on Number Tokens for Language Models

Jonas Zausinger, Lars Pennig, Anamarija Kozina, Sean Sdahl, Julian Sikora, Adrian Dendorfer, Timofey Kuznetsov, Mohamad Hagog, Nina Wiedemann, Kacper Chlodny, Vincent Limbach, Anna Ketteler

Abstract

While language models have exceptional capabilities at text generation, they lack a natural inductive bias for emitting numbers and thus struggle in tasks involving quantitative reasoning, especially arithmetic. One fundamental limitation is the nature of the cross-entropy (CE) loss, which assumes a nominal scale and thus cannot convey proximity between generated number tokens. In response, we here present a regression-like loss that operates purely on token level. Our proposed Number Token Loss (NTL) comes in two flavors and minimizes either the L p norm or the Wasserstein distance between the numerical values of the real and predicted number tokens. NTL can easily be added to any language model and extend the CE objective during training without runtime overhead. We evaluate the proposed scheme on various mathematical datasets and find that it consistently improves performance in math-related tasks. In a direct comparison on a regression task, we find that NTL can match the performance of a regression head, despite operating on token level. Finally, we scale NTL up to 3B parameter models and observe improved performance, demonstrating its potential for seamless integration into LLMs. We hope to inspire LLM developers to improve their pretraining objectives and distribute NTL as a minimalistic and lightweight PyPI package ntloss: https://github.com/ai4sd/number- token-loss. Development code for full paper reproduction is available separately.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • CONE: Embeddings for Complex Numerical Data Preserving Unit and Variable Semantics cites FoNE: Precise Single-Token Number Embeddings via Fourier Features
  • PAL: Program-aided Language Models cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Enhancing Numerical Prediction in LLMs via Smooth MMD Alignment cites PAL: Program-aided Language Models
  • Enhancing Numerical Prediction in LLMs via Smooth MMD Alignment cites FoNE: Precise Single-Token Number Embeddings via Fourier Features
  • Enhancing Numerical Prediction in LLMs via Smooth MMD Alignment cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • FoNE: Precise Single-Token Number Embeddings via Fourier Features cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • FoNE: Precise Single-Token Number Embeddings via Fourier Features cites Faith and Fate: Limits of Transformers on Compositionality
  • The Pitfalls of Next-Token Prediction cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • The Pitfalls of Next-Token Prediction cites Faith and Fate: Limits of Transformers on Compositionality
  • LLM2Fx-Tools: Tool Calling for Music Post-Production cites PAL: Program-aided Language Models
  • LLM2Fx-Tools: Tool Calling for Music Post-Production cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Faith and Fate: Limits of Transformers on Compositionality cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. FoNE: Precise Single-Token Number Embeddings via Fourier FeaturesTianyi Zhou, Deqing Fu, Mahdi Soltanolkotabi, Robin Jia et al.ICLR 2026 · 24 citations
  2. LLM2Fx-Tools: Tool Calling for Music Post-ProductionSeungHeon Doh, Junghyun Koo, Marco A. Martínez-Ramírez, Woosung Choi et al.ICLR 2026 · 10 citations
  3. Beyond Token-level Supervision: Unlocking the Potential of Decoding-based Regression via Reinforcement LearningMing Chen, Sheng Tang, Rong-Xi Tan, Ziniu Li et al.ICML 2026 · 2 citations
  4. CONE: Embeddings for Complex Numerical Data Preserving Unit and Variable SemanticsGyanendra Shrestha, Anna Pyayt, Michael N. GubanovSIGMOD 2026
  5. Enhancing Numerical Prediction in LLMs via Smooth MMD AlignmentZhuo Zuo, Li Yue, Wenhao Zheng, Chenpeng Wang et al.ICML 2026

Builds on16

  1. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
  2. On Layer Normalization in the Transformer ArchitectureRuibin Xiong, Yunchang Yang, Di He, Kai Zheng et al.ICML 2020 · 1,388 citations
  3. Faith and Fate: Limits of Transformers on CompositionalityNouha Dziri, Ximing Lu, Melanie Sclar, Xiang Lorraine Li et al.NeurIPS 2023 · 728 citations
  4. PAL: Program-aided Language ModelsLuyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon et al.ICML 2023 · 700 citations
  5. The Pitfalls of Next-Token PredictionGregor Bachmann, Vaishnavh NagarajanICML 2024 · 163 citations

Related papers

  1. Enhancing Numerical Prediction of MLLMS With Soft LabelingPei Wang, Zhaowei Cai, Hao Yang, Davide Modolo et al.ICCV 2025 · 1 citation
  2. Do Language Models Understand Measurements?Sungjin Park, Seungwoo Ryu, Edward ChoiEMNLP Findings 2022 · 5 citations
  3. GeoNum: Bridging Numerical Continuity and Language Semantics via Geometric EmbeddingShengkai Jin, Tianyu Chen, Chonghan Gao, Jun HanAAAI 2026
  4. Revisiting the Scaling Properties of Downstream Metrics in Large Language Model TrainingJakub Krajewski, Amitis Shidani, Dan Busbridge, Sam Wiseman et al.ICLR 2026 · 8 citations
  5. Efficient numeracy in language models through single-token number embeddingsLinus Kreitner, Paul Hager, Jonathan Mengedoht, Georgios Kaissis et al.ICML 2026 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines