FrontierSmith: Synthesizing Open-Ended Coding Problems at Scale
Runyuan He, Qiuyang Mang, Shang Zhou, Kaiyuan Liu, Hanchen Li, Huanzhi Mao, Qizheng Zhang, Zerui Li, Bo Peng, Lufeng Cheng, Tianfu Fu, Yichuan Wang, Wenhao Chai, Jingbo Shang, Alex Dimakis, Joseph Gonzalez, Alvin Cheung
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: LLM Agents, Evals & Benchmarks › LLM-Driven Code Synthesis and Verification · Type: new method · Keywords: open-ended coding problems, problem evolution, idea divergence metric, LLM code generation, benchmark evaluation
Areas: Code & Coding Agents › Code Generation and Optimization › Evolutionary Search and Self-Evolution; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Coding Agent Evaluation
Summary
FrontierSmith is an automated system that iteratively evolves open-ended coding problems from closed-ended tasks, yielding large performance gains when used to train LLM coders.
Explained to a 5-year-old
We have a computer program that makes coding problems that are open-ended, meaning there is no single right answer. It takes simple problems and changes them to be more open, so that AI coders can practice solving them. The program picks the best problems by checking if they make the AI think in different ways. Then it creates tests for those problems. Using these new problems, the AI gets better at solving real-world coding tasks.
Explained to a 5-year-old, longer
Many real-world coding tasks are open-ended, which means there isn’t just one perfect solution. Currently, most computer programs that help write code are trained on problems that have a single correct answer. This makes it hard for them to handle situations where they need to think creatively. The paper describes a system that creates new coding problems that are open-ended. It starts with simple problems that already have answers and changes them so they become more open. The system checks each new problem to see if it makes different solvers think in different ways. After picking the best problems, it automatically makes test cases and checkers for them. These new problems are then used to teach computer code writers how to solve more complex tasks. When the code writers practice on these problems, they spend more time thinking and exploring solutions. This leads to better performance on real-world coding challenges. The approach also produces problems that require longer chains of reasoning, similar to what humans do. Overall, the system helps create a richer set of practice problems for improving AI coding abilities.
For a technical reader
FrontierSmith is an automated pipeline that transforms existing closed-ended coding problems into open-ended variants by altering goals, restricting outputs, and generalizing inputs. It employs an idea-divergence metric to filter problems that elicit diverse solution strategies from solvers. Agents then generate test cases and verification code for the selected problems, which are fed back into the evolution loop. Training LLM coders on the synthesized dataset yields significant gains on two benchmarks (e.g., +8.82 on FrontierCS and +306.36 on ALE-bench for a 9-B model). The resulting problems also induce longer-horizon reasoning behavior, making them more comparable to human-curated open-ended tasks.
Problem
Training LLM coders on open-ended coding tasks is challenging because such problems are scarce and expensive to construct. The field lacks scalable methods to generate diverse, open-ended coding problems for model training.
Method
The approach iteratively transforms existing closed-ended competitive programming problems into open-ended variants by altering goals, restricting outputs, and generalizing inputs. It then selects diverse candidates using an idea divergence metric and uses agents to generate test cases and verifiers, feeding them back into the generation loop.
Results
Training on the synthesized data improves Qwen3.5-9B by +8.82 on FrontierCS and +306.36 on ALE-bench, and Qwen3.5-27B by +12.12 and +309.12 respectively. The generated problems also induce longer-horizon code-agent behavior compared to closed-ended tasks.
Contributions
A scalable system for automatically evolving open-ended coding problems from closed-ended tasks and a quantitative divergence metric for selecting diverse problems. The system yields substantial performance gains on LLM coding benchmarks and produces problems that elicit long-horizon reasoning.
Practical relevance
The approach enables training LLM coders on realistic, open-ended problems, potentially improving software development assistance and automated code generation in practical settings.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction