arXiv

Code2Math: Can Your Code Agent Effectively Evolve Math Problems Through Exploration?

Title: Code2Math: Can Code Agents Effectively Evolve Math Problems Through Exploration?

Abstract:

As large language models (LLMs) progressively enhance their mathematical reasoning to approach International Mathematical Olympiad (IMO) standards and research-level complexity, the lack of challenging, high-quality problems has emerged as a critical constraint. This scarcity hinders the training, evaluation, and self-improvement cycles of these models. Concurrently, recent advancements in code agents have showcased advanced capabilities in agentic coding and logical reasoning, indicating that code execution environments can function as scalable platforms for mathematical experimentation.

This study explores the capacity of code agents to autonomously transform existing mathematical problems into more intricate variations. We present a multi-agent framework specifically engineered to evolve problems while rigorously verifying both the solvability and the heightened difficulty of the resulting outputs. Our experimental results show that, provided with adequate test-time exploration, code agents are capable of generating new problems that are not only structurally different from and more difficult than their source material but also remain solvable. These findings offer empirical support for the viability of code-driven agents as an effective method for synthesizing high-difficulty mathematical reasoning tasks within scalable computational settings. The associated code and data can be accessed at https://github.com/TarferSoul/Code2Math.


Source: arXiv Generated at: 2026-06-02 00:00:00 UTC

Related Articles

Law’s Billable Hour Is Being Shredded by AI
Bloomberg

Law’s Billable Hour Is Being Shredded by AI

AI is dismantling the billable hour by automating routine legal tasks. This technological shift threatens the traditiona...

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026
Bloomberg

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026

SoftBank in Early Talks to Back $800 Million Agile Robots Round
Bloomberg

SoftBank in Early Talks to Back $800 Million Agile Robots Round

SoftBank is in early talks to back Agile Robots’ $800 million funding round. The Japanese tech giant is currently in pre...

Amundi Is Diversifying Risk Via Commodity Currencies, Gold
Bloomberg

Amundi Is Diversifying Risk Via Commodity Currencies, Gold

Amundi diversifies risk by investing in commodity-linked currencies and gold. This strategy hedges against market volati...

Reuters

Marvell Technology surges after Nvidia's Huang calls it 'next trillion-dollar company'

Marvell Technology shares surged after Nvidia CEO Jensen Huang labeled the firm the “next trillion-dollar company.”

Russia Says It Found Foreign Spyware on Top Officials’ Phones
Bloomberg

Russia Says It Found Foreign Spyware on Top Officials’ Phones

Russia’s FSB claims to have discovered foreign spyware on senior officials’ phones. Moscow attributes the intrusion to h...