atlas

Research map / Large language models / Language, safety and interpretability

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

ICML 2025 · Large language models › Language, safety and interpretability · approach: Controlled text generation · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Number Token Loss (NTL), a regression-like loss on number-token probabilities (NTL-MSE/Lp and NTL-WAS Wasserstein) added to cross-entropy, improving arithmetic and regression performance for LMs without runtime overhead.

Problem

Cross-entropy loss treats number tokens as nominal classes, so language models fail to convey numerical proximity between generated numbers, hurting arithmetic and quantitative reasoning.

Approach

Compute a regression-style loss directly on the token distribution over number tokens: either an Lp loss between the probability-weighted numeric value and the label's value (NTL-MSE/MAE), or a Wasserstein-1 distance over number tokens with Euclidean cost (NTL-WAS), added to CE with weight lambda; it is zero for non-number tokens and needs only a token-to-value map.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add NTL-WAS to CET5-Base · Mathematics Dataset interpolated testAccuracy: 0.64 -> 0.75Helped
Add NTL-WAS to CET5-Base · Mathematics Dataset extrapolated testAccuracy: 0.367 -> 0.432Helped
Add NTL-WAS to CET5-3B · GSM8KAccuracy: 13.5\% -> 17.7\%Helped
Add NTL-WAS to CEGPT-2 Small (125M) · Multiplication interpolationMAPE: 0.55 -> 0.49Helped
Add NTL to CEGPT-2 Medium (350M) · Multiplication extrapolationMAPE: 0.82 -> 0.82No clear effect
Add NTL-WAS to CET5 · rJokes testRMSE: 2.01_{\pm 0.01} -> 1.81_{\pm 0.01}Helped
Add NTL-WAS to CET5 · MultiRC validationBLEU: 0.13$_{\pm 0.00}$ -> ${0.13}_{\pm 0.00}$No clear effect
Use NTL-MAE instead of CE (ablation)T5-Small · Arithmetic Q&A interpolated testAccuracy: $0.34_{\pm 0.01}$ -> $\textbf{0.45}_{\pm 0.02}$Helped
Use NTL-MSE with λ=2.0 instead of λ=0.15 (ablation)T5-Small · Arithmetic Q&A interpolated testAccuracy: $0.44 _{\pm 0.02}$ -> $0.33_{\pm 0.01}$Hurt
Use NTL-WAS with λ=0.3 instead of λ=2.0 (ablation)T5-Small · Arithmetic Q&A extrapolated testAccuracy: $ \textbf{0.10}_{\pm 0.01}$ -> $\textbf{0.10}_{\pm 0.01}$No clear effect
Combine GCE σ=0.5 with NTL-WAS (ablation)T5-Small · Arithmetic Q&A interpolated testAccuracy: $0.43$ -> $\mathbf{0.48}$Helped
Combine GCE σ=0.5 with NTL-WAS (ablation)T5-Small · Arithmetic Q&A extrapolated testMAE: $58.18$ -> $66.97$Hurt

Surprising findings

Limitations

Experimental setup

Datasets: DeepMind mathematics dataset rJokes MultiRC GSM8K integer multiplication dataset

Benchmarks: DeepMind mathematics dataset (interpolation and extrapolation) rJokes MultiRC GSM8K 3-digit multiplication

Metrics: accuracy MAE R2 MAPE RMSE Pearson Spearman BLEU ROUGE-1 token accuracy

Baselines: Regression Transformer xVal Gaussian Cross Entropy regression head (MSE) BERT RoBERTa XLNet LLaMA-2 7B Gemma-2B

Builds on: cross-entropy Gaussian label smoothing Regression Transformer xVal T5

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy