Open-ended coding training data may no longer be the bottleneck: AI can scale open-ended tasks—and…
@MangQiuyang2.2K followers
123,068 views
29 Comments
Comments from the original post on X (Twitter)

@AlexDGoldie
Nice work! Our paper from earlier this year might be relevant to you - DiscoGen already supports generation of ~100 billion open ended coding problems using PCG, and performance scales as you optimise over more tasks!
5 likes

@MangQiuyang
Thanks so much for sharing! This is really exciting and feels very complementary to our work. FrontierSmith focuses more on how to generate novel open-ended problem formulations from existing seeds.
1 like

@AlexDGoldie
Would be cool to see if there’s potential to combine these complementary axes!!
1 like

@MangQiuyang
Code agents are getting very good at repetitive software work. Across research labs and startups, the next important question is increasingly about whether AI can solve open-ended optimization problems that matter in the real world: chip placement and routing, logistics, power-grid scheduling, database tuning, kernel optimization, and many others. But our previous FrontierCS on Harbor blog ( showed a clear weakness. Today's code agents are much less reliable in long-horizon, open-ended optimization than they are on traditional contest or math-style tasks.
4 likes

@MangQiuyang
We think a major reason is data. Classic RLVR settings have huge amounts of high-quality training data. Competitive programming alone has more than 100,000 public problems, and the broader coding-data industry is continuously producing more. By contrast, if we add together open-ended optimization benchmarks such as FrontierCS, ALE-bench, KernelBench, and the recent MLS-Bench, we still only get hundreds of tasks. That gap is the bottleneck FrontierSmith targets. Frontier labs may already understand the value of open-ended optimization, but without enough scalable training tasks, it is hard to run the kind of training that made closed-ended coding models so strong.
6 likes

@MangQiuyang
The core idea of FrontierSmith is simple: do not ask an LLM to invent high-quality open-ended problems from scratch. Start from closed-ended problems instead. Closed-ended coding tasks are already abundant. Given a LeetCode-style or competitive-programming-style problem, FrontierSmith applies principled mutations that turn it into a high-quality open-ended optimization problem.
4 likes

@MangQiuyang
Mutation creates many candidates, but not every candidate is useful. Some are still effectively closed-ended. Some are open-ended in wording but dominated by one obvious strategy. Our key filtering signal is idea divergence. We cannot ask an LLM to prove whether a problem is P or NP-hard, or whether an optimum is reachable under a fixed compute budget. We can, however, sample solutions from different solvers and ask whether they explore meaningfully different algorithmic ideas. Open-ended problems tend to produce diverse solution strategies. Closed-ended problems are often dominated by a single "gold idea."
5 likes

@MangQiuyang
The surviving ideas are converted into clean, runnable training environments. We reuse the FrontierCS judge sandbox and generate two pieces for each task. We evaluate on two open-ended coding benchmarks:FrontierCS, using the 172 algorithmic open-ended tasks. ALE-bench-lite, derived from AtCoder Heuristic Contest-style optimization tasks. For training, we synthesize 200 FrontierSmith problems and run GRPO on Qwen3.5-9B and Qwen3.5-27B. We compare against several controls: training on human-curated FrontierCS problems, training on ALE-bench, training directly on 200 closed-ended HardTests problems, and training on FrontierCS with random rewards. The results are direct. FrontierSmith-generated data is strong enough to match or exceed human-curated open-ended training data.
3 likes

@MangQiuyang
Huge thanks to all collaborators: @RunyuanHe @Zhoushang @KaiyuanLiu04 @lihanc02 @HuanzhiMao @qizhengz_alex Zerui Li @Builtin_Pb Lufeng Cheng @YichuanM @shangjingbo @AlexGDimakis @profjoeyg @alvinkcheung
8 likes

@kexun_zhang
lol thanks for featuring hardtests in your video haha
4 likes

@MangQiuyang
yes! Everyone should check out Hardtests if their research wants to benefit from large-scale high quality competitive programming data

@ChainZenit
@StanfordAILab oh nice, didn't know they were working on this
1 like

@AiDevCraft
The "outperforms human curation" framing buries the lede — once tasks ship with runnable verifiers, humans lose because they can't iterate on the reward channel, not because synthesis is smarter. Real metric: closed-loop iterations per problem, not problems per hour.
1 like

@MangQiuyang
I love the insights! Another aspect is the per-hour cost, human experts is very expensive in terms of curating open-ended challenges. ASFAK, for those open-ended problems in ICPC world challenges, it's about $1000 per problem-setter per hour

@AiDevCraft
The $1000/hr number is actually the upper bound that synthesis breaks — but the deeper unlock is that synthetic pipelines pay once for the verifier and amortize across millions of variants, while ICPC setters re-pay the full rate per fresh problem. The cost curve flips from linear to fixed.
1 like

@ChainZenit
@ClementDelangue oh nice, didn't know they were working on this
1 like

@web3nomad
interesting. in AI persona experiments at atypica we’re finding the opposite pattern. human-curated personality traits produce more authentic-feeling personas than AI-optimized ones. the AI version is more consistent but less believable. "outperforming curation" might depend heavily on what you’re curating for.
1 like

@lihanc02
This paper is partially supported by Sky Lab funding and shout out to @modal for providing generous GPU resources alongside and @LaudeInstitute for the Slingshot funding!

@auOzAI
Love this, exciting stuff! Good on ya to the FrontierCS team for making heaps of interesting coding challenges. Keen to try a few. Any public samples we can play with?

@victor_colo
This matches what I keep seeing building synthetic training data: generation stopped being the bottleneck a while ago. Curation is the whole game now. The interesting claim here isn’t “AI can synthesize tasks”. It’s that synthesized + filtered beats human-curated. In my own pipeline only about a quarter of generated pairs survive filtering, and the filtered set trains a better model than 4x the volume unfiltered. Human curation doesn’t lose because humans are worse. It loses because humans can’t curate at the volume where the filter starts to matter.


