← Latest papers
💬 NLP

DEL: Digit Entropy Loss for Numerical Learning of Large Language Models

This paper introduces Digit Entropy Loss (DEL), a novel training objective that reformulates unsupervised entropy optimization into a supervised, distance-free framework to improve large language models' accuracy in predicting both integer and floating-point numbers across mathematical reasoning and code generation tasks.

Original authors: Zhaohui Zheng, Chenhang He, Shihao Wang, Yuxuan Li, Ming-Ming Cheng, Lei Zhang

Published 2026-05-21
📖 4 min read☕ Coffee break read

Original authors: Zhaohui Zheng, Chenhang He, Shihao Wang, Yuxuan Li, Ming-Ming Cheng, Lei Zhang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are teaching a very smart, but slightly confused, robot to do math. The robot is great at writing stories and chatting, but when it comes to numbers, it often gets the digits wrong. It might say "12" when the answer is "13," or it might guess "14" instead of "12."

This paper, from the Visual Computing Lab at Hong Kong Polytechnic University, introduces a new way to teach this robot how to handle numbers better. They call their new method Digit Entropy Loss (DEL).

Here is the story of how they fixed the robot's math skills, using simple analogies:

1. The Problem: The Robot's "Best Guess" Habit

Traditionally, when training these AI robots (called Large Language Models), we use a method called Maximum Likelihood Estimation (MLE).

  • The Analogy: Imagine the robot is taking a multiple-choice test. MLE tells the robot: "Just pick the answer you think is most likely."
  • The Flaw: The robot is too polite. It thinks, "Well, '12' is the best answer, but '13' and '11' are kinda close, so I'll give them a tiny bit of probability too."
  • The Result: The robot becomes indecisive. It hovers between numbers, leading to errors like saying "12.4" when the answer must be a whole number, or just picking the wrong digit because it wasn't confident enough.

2. The Old Fixes: The "Distance" Trap

Researchers tried to fix this by adding a "penalty" system.

  • The Analogy: They told the robot: "If the answer is 5, and you guess 4, that's okay, it's close. But if you guess 9, that's terrible!" They created a map where numbers are arranged in a line, and the robot gets punished based on how far away its guess is from the truth.
  • The Problem: The paper argues that this "distance map" is artificial. In the real world, numbers aren't just points on a line; they are symbols with their own meanings. Sometimes, the robot learns that the number "2" looks more like the letter "Z" than it looks like the number "3." Forcing the robot to follow a strict distance rule confuses it and makes its guesses either too rigid (sharpened) or too vague (flattened).

3. The New Solution: The "Confidence Coach" (DEL)

The authors propose Digit Entropy Loss (DEL). Instead of measuring how far the robot is from the answer, they focus on how certain the robot is.

  • The Analogy: Imagine a coach who doesn't care about the distance between your guess and the target. Instead, the coach says: "I don't care if you are close or far. I just want you to be 100% sure of your answer. If you are 90% sure of '5' and 10% sure of '6', you are being wishy-washy. I want you to be 100% sure of '5' and 0% sure of everything else."
  • How it works:
    1. Supervised Certainty: They teach the robot to treat every digit like a simple "Yes/No" question. "Is this digit a 5? Yes or No?" This forces the robot to make a sharp, clear decision rather than a fuzzy guess.
    2. No Distance Rules: They throw away the "distance map." They let the robot learn the natural relationship between numbers based on the data it has seen, rather than forcing a human-made rule onto it.
    3. Handling Decimals: Previous methods treated whole numbers (like 10) and decimals (like 10.5) differently, causing a "cliff" where the robot would stumble. DEL treats the whole number and the decimal part as one smooth, continuous flow, like a single long number line rather than two separate islands.

4. The Results: Sharper Math

The researchers tested this new "Confidence Coach" on four different types of AI robots (CodeLlama, Mistral, DeepSeek, and Qwen-2.5) using seven different math benchmarks.

  • The Outcome: The robots trained with DEL made fewer mistakes. They didn't just get the right answer more often; when they did get it wrong, the wrong answer was much closer to the right one (e.g., guessing 12 instead of 13, rather than 50).
  • The Visual Proof: In the paper's examples, you can see that older methods often got the logic right but the final number wrong (like calculating the total cost of a shopping trip but getting the final dollar amount wrong). The DEL method got both the logic and the final number correct.

Summary

In short, this paper says: Stop teaching AI robots to guess how "close" a number is. Instead, teach them to be absolutely certain about the exact digit they are predicting. By removing artificial distance rules and focusing on building sharp, confident predictions, the robots became much better at math and code generation.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →