3 weeks ago, we indicated how hard it is to correctly evaluate LLM performance on math problems, and introduced Math-Verify, a better solution to validate models on math (read more in the announcement)!
Today, we’re thrilled to share that we’ve used Math-Verify to thoroughly re-evaluate all 3,751 models ever submitted to the Open LLM Leaderboard, for even fairer and more robust model comparisons! (Related: Breaking: Introducing the Open Arabic LLM Leaderboard...)
The Open LLM Leaderboard is the most used leaderboard on the Hugging Face Hub: it compares open Large Language Models (LLM) performance across various tasks. One of these tasks, called MATH-Hard, is specifically about math problems: it evaluates how well LLMs solve high-school and university-level math problems. It uses 1,324 highest difficulty problems (Level 5) from the Hendrycks MATH dataset spread across 7 topics (precalculus, prealgebra, algebra, intermediate algebra, counting/probability and number theory), using a 5-shot approach (the model is provided with 5 examples in the prompt to showcase how it should answer).
A typical question looks like this:.
In the leaderboard, models would have to end their answers with a very specific string (following the Minerva-Math paper):.
The leaderboard would then try to parse [ANSWER] with SymPy to convert it to a symbolic representation (and simplify the values if needed), before finally comparing it to the gold target.
However, customers reported a number of issues with the above.
To start, a recurring problem was the inability of some models to follow the expected answer format from the examples: they outputted other sentences instead to introduce their answers. Since the format was not followed, answers were marked as wrong even if they were actually correct! (Which is an issue if what you’re interested in is “how good the model is at math” specifically). (Related: Tech Report: Developer builds a ‘Discord kitten’ that’s...)
The next step, converting [ANSWER] to the symbolic representation also presented some concerns, this time linked to the SymPy parsing:.
On the final step, when comparing the extracted answer with the target expression, a number of concerns also occurred:.
All of these issues are now completely fixed with the new Math-Verify parser!
Recent findings suggest that as all these problems tend to accumulate, some models deeply suffered from this, and their performance was strongly underestimated… so we removed the previous evaluator and added Math-Verify, which was as simple as changing only 3 lines of code! (You can try it too on your math evals!).
This therefore meant re-evaluating all submitted models since June… and it completely overhauled the top 20 models on the MATH subset of the leaderboard.
On average, models solved 61 more problems across the board, equating to a 4.66-point increase across the board!
The two subsets that showed the most significant improvement were both algebra-related (Algebra and Prealgebra) with gains of 8.27 and 6.93, respectively. In extreme cases, some models demonstrated improvements of nearly 90 points on these subsets. We believe these subsets saw the greatest improvement because they frequently involve answers presented as sets (due to questions with multiple solutions) and matrices. The Math-Verify has enhanced its handling of both answer types, contributing to these notable gains.
In a recent development, we initially discovered the math evaluation issues when inspecting Qwen models, which had unusually low scores compared to the self-reported performance. After the Math-Verify introduction, the scores more than doubled for these models, showcasing previous severe underestimation of performance.
But Qwen models aren’t alone. Another major family affected is DeepSeek. After switching to Math-Verify, DeepSeek models almost tripled their scores! This is because their answers are typically wrapped in boxed (\boxed{}) notations which the old evaluator couldn’t extract.
Sources indicate that as mentioned at the beginning, the Top 20 rankings have undergone a significant shift, with Nvidia’s AceMath models now dominating the MATH-Hard leaderboard. Other major beneficiaries of this change are the Qwen derivatives, which are now almost exclusively the only models ranking right below AceMath. Following is the complete table comparing the old and upcoming Top 20 leaderboard rankings:.
Finally, we examined how the overall Leaderboard results have evolved. While the top four positions remain unchanged, the rest have undergone significant shifts. Due to the rise of multiple Qwen derivatives in the MATH subset, the presence of Qwen models among the top 20 has grown-derived models grown even further at the Overall results.
It has been revealed that many other models also completely jumped in the rankings, gaining 200 places or more! You can check out the results in more detail at the Open LLM Leaderboard.
It has been revealed that the introduction of Math-Verify has significantly improved the accuracy and fairness of our evaluations on the Open LLM Leaderboard. This has led to a reshuffling of the leaderboard, with many models showing substantial improvements in their scores.
We encourage all developers and researchers to adopt Math-Verify for their own math evaluations. By doing so, you can ensure that your models are evaluated with more reliable results. Additionally, we invite you to explore the updated rankings and see how your favorite models have changed in performance.
Sources indicate that great! I raised this issue with Qwen models a while ago :) https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard/discussions/942.
📻 🎙️ Hey, I made a podcast about this blog post, check it out!
This podcast is generated via ngxson/kokoro-podcast-generator, using DeepSeek-R1 and Kokoro-TTS.
can Math-Verify be integrated into lighteval library ?
Hi @pulkitmehtawork !It already has been, iirc :).
Will this be included in the lm-evaluation-harness?
Open LLM Leaderboard is not an active project anymore :(.