TL;DR
FrontierSmith is an automated pipeline that synthesizes complex, open-ended coding problems at scale by mutating existing closed-ended competitive programming tasks. By filtering candidates using a novel "idea divergence" metric, it ensures the generated problems elicit diverse algorithmic strategies rather than a single dominant solution. Training LLMs on this synthetic data yields massive performance gains on open-ended benchmarks, matching or exceeding the efficacy of scarce human-curated data.
What Problem Does This Paper Address?
While Large Language Models (LLMs) have become remarkably adept at solving closed-ended coding tasks—such as LeetCode problems or bug fixes where correctness is binary and easily verified—they struggle with open-ended problems. Real-world software engineering and algorithm design often involve tasks with no known optimal solution, such as cloud cluster scheduling or heuristic optimization. In these scenarios, solutions are judged on a continuous scale of quality (e.g., minimizing latency or energy use).
Progress in training LLMs for open-ended coding is severely bottlenecked by data scarcity. Human-curated open-ended benchmarks are small, rare, and incredibly expensive to design because they require complex continuous scoring verifiers and expert judgment to ensure the problem cannot be easily bypassed by a single dominant strategy. FrontierSmith addresses this bottleneck by automating the generation of high-quality, open-ended coding problems at scale.
Methods
The FrontierSmith pipeline converts closed-ended seed problems into open-ended ones through a multi-stage process of mutation, filtering, and environment construction.
- Mutation: Starting with a corpus of competitive programming problems, the system applies three types of targeted mutations to remove known polynomial-time optima while keeping the problem meaningful:
- Changing goals: Turning a decision or exact-answer problem into an optimization problem (e.g., converting 2-SAT to Min-True 2-SAT).
- Restricting outputs: Adding constraints that make exact solutions computationally intractable (e.g., adding degree constraints to a Minimum Spanning Tree problem).
- Generalizing inputs: Relaxing structural assumptions on the input domain (e.g., moving a problem from bipartite graphs to arbitrary graphs).
- Filtering via Idea Divergence: To ensure a mutated problem is genuinely open-ended, FrontierSmith introduces a quantitative idea divergence metric. This measures the probability that two independent LLM solvers will use fundamentally different core algorithms to solve the problem.
The metric is estimated in two stages:
- LLM-based estimate: An LLM judge evaluates pairs of generated solutions to see if they use different semantic strategies (e.g., greedy vs. dynamic programming).
- Execution-based estimate: Solutions are executed against generated test cases, and the pairwise distance between their continuous score vectors is calculated. Problems with low divergence (where one strategy dominates) are discarded.
- Automated Environment Building: Separate agent systems generate robust test cases (including adversarial inputs designed to break specific strategies) and verifiers that output a normalized continuous score in $[0, 1]$. These agents cross-validate each other to eliminate bugs and execution errors.
Datasets
- Seed Pool: 47,136 closed-ended competitive programming problems from the HardTests dataset.
- Evaluation Benchmarks:
- FrontierCS: An open-ended benchmark; the authors evaluated on the 172-problem algorithmic track.
- ALE-bench: A benchmark derived from AtCoder Heuristic Contests; the authors evaluated on the 10-task "ALE-bench-lite" subset.
Key Insights and Ideas
- Closed-ended seeds are excellent foundations: You don't need to invent open-ended problems from scratch. Intentionally breaking the tractability of well-defined problems is a scalable, reliable recipe for generating complex optimization tasks.
- Diversity is a proxy for open-endedness: A problem isn't truly open-ended if every model converges on the exact same heuristic. Quantifying "idea divergence" serves as an effective unsupervised quality filter for synthetic tasks.
- Eliciting long-horizon behavior: When evaluated using multi-agent frameworks, the synthetic problems generated by FrontierSmith naturally forced code agents to use significantly more turns and tokens—matching the long-horizon behavioral patterns previously only seen in expensive, human-curated benchmarks.
Key Results
The authors fine-tuned Qwen3.5 models on 200 synthesized problems using Generalized Policy Optimization (GRPO) and found substantial improvements over base models and closed-ended baselines:
- Qwen3.5-9B: Improved by +8.82 points on FrontierCS and +306.36 (Elo-rating-based performance) on ALE-bench compared to the base model. It nearly matched the performance of models trained on human-curated data.
- Qwen3.5-27B: Outperformed the human-curated baseline on both benchmarks, achieving a +12.12 boost on FrontierCS and +309.12 on ALE-bench over the base model.
- Filter Necessity: Ablation studies showed that skipping the idea-divergence filtering stage caused a drop of 2.05 points on FrontierCS, proving that filtering for strategic diversity is critical to generating effective training signals.
Limitations and Future Work
- Algorithmic Isolation: The current pipeline is restricted to self-contained algorithmic environments (text input in, program output out). It cannot yet synthesize repository-level open-ended tasks that require complex multi-file software engineering, GPU kernel tuning, or cloud infrastructure setups.
- Single-Turn RL Constraints: Due to compute budgets, the reinforcement learning training was limited to 100 steps of single-turn GRPO. The authors note that exploring multi-turn, agentic RL is a crucial next step to fully exploit the long-horizon nature of these synthesized problems.
Summary updated