训练人工智能用代码作画
Training AI to Paint with Code

原始链接: https://surya.website/rling-qwen-to-paint-with-code

生成式模型的初始训练准则因奖励信号冗余且权重设置不当而失效,导致模型陷入输出重复、质量低下的瓶颈。多个质量评估指标出现了重叠,而代码长度的奖励机制也过早饱和。 解决方案是将绝对数值评分转变为与精选的高质量人工标注参考图库进行成对比较。通过简化准则,优先考虑 HPSv3 分数和相对比较,奖励信号获得了必要的动态范围。 这一重构使模型突破了此前的性能壁垒,达到高质量基准的速度提升了三倍。此外,模型学会了优化效率,在不牺牲创意输出的前提下,将代码长度从 13,500 个标记缩减至 2,000 个以内。该实验证明,在训练生成式智能体时,经过提炼的相对反馈比复杂的多维度评分准则更为有效。

抱歉。
相关文章

原文

The first rubric had nine separate signals. A compilation gate. A check that the code actually used p5.brush rather than native p5. A code length ramp targeting around 3,000 tokens. HPSv3, a human preference model. Prompt adherence, judged by a council of GPT-5.4 and Gemini. And four more quality judges: recognisability, aesthetics, technique, depth.

The model plateaued around 0.65 reward and stayed there. Every rollout looked the same. A flat, clip-art flower with five rounded petals. The reward kept going up but the capabilities didn't seem to improve.

The diagnosis came from looking at the sub-rewards in isolation. The four quality judges plus prompt adherence were correlated with each other at 0.85 to 0.95. They were measuring the same thing five times. Code length, contributing roughly a third of the total reward, had saturated by step thirty and was producing zero gradient afterward. HPSv3, the one signal showing real variance, was weighted at 0.10. The rubric we made was telling the model the same thing over and over again.

The fix had two halves.

  1. Replace absolute scoring with pairwise judgment. The original rubric asked the judge to score each rollout from zero to ten. The scores came back compressed near zero. Pairwise scoring asks a different question. The judge is shown the rollout, two references from the pool, and a single prompt: which of these is the better hibiscus watercolour? The reward is the fraction of comparisons it wins. The dynamic range opens up. The judge model handles a relative question more reliably than an abstract scale.

  2. Build a reference pool of hand-rated examples.1,664 images, rated one at a time into love, okay, and nope. The 117 love-tier examples seeded the comparison pool. Every rollout from that point onward was being judged against the things I had decided were good. The next step, which we did not get to, would have been training a small reward model on the ratings themselves, (proper RLHF) so the model's sense of good could be applied without needing to compare against the pool every time.

The new rubric collapsed all of it into four components: a binary compile-and-uses-brush gate (0.05), a binary length check (0.05), HPSv3 (0.30), and the pairwise judge against the reference pool (0.60). Same base model, same training data. The next run reached the previous plateau three times faster, kept climbing past it, and produced code that compressed from 13,500 tokens to under 2,000. The model learned that winning compositions did not need verbose code.

联系我们 contact @ memedata.com