cd82-fb555c5d(ARC3_004),6 个 level,64×64 棋盘,16 色interactive grid games; one game here, cd82-fb555c5d (ARC3_004): 6 levels, 64×64 board, 16 colourslook / act / status);知识以工作区 QWEN.md 进入上下文;每个条件 100 局Qwen Code agent loop: the model plays through tools the way it was post-trained (MCP tools look / act / status); knowledge enters as the workspace's QWEN.md; 100 episodes per condition| 动作Action | 真实效果(来自源码与引擎逐条核过)True effect (checked against the source and the live engine) |
|---|---|
| ACTION1–4 | 把"涂色器"沿 3×3 环移动一格(上 / 下 / 左 / 右);移出环或移到中心 = 无效果,但仍计一步Move the applicator one place around a 3×3 ring (up / down / left / right); off the ring or onto the centre = no effect, still costs a step |
| ACTION5 | 用当前颜色涂画布中面向涂色器的区域:在边上 = 一半,在角上 = 一个三角;覆盖写Paint the canvas region facing the applicator with the selected colour: a half from an edge, a triangle from a corner; overwrites |
| ACTION6 x y | 点击:点在色板框上 = 选色;点在涂色器旁的小方块上 = 涂该边中段(仅 level 3–6);其它位置 = 无效果Click: on a colour box = select that colour; on the small sprite beside the applicator = paint that edge's middle third (levels 3–6 only); elsewhere = nothing |
| RESET | 恢复本 level 起始状态,不计步Restore the level's starting state; free |
| 目标 / 预算Goal / budget | 画布 = 参考图案(忽略两条对角线);每 level 99 步,第 100 步 = 输Canvas = reference pattern (two diagonals ignored); 99 actions per level, the 100th loses |
模型看到的只有 64×64 的整数网格和动作名字(下方灰框),没有任何说明;上表全部要靠它自己在游戏里发现。The model sees only the 64×64 integer grid and the action names (grey box below) — no description; everything in the table it has to discover by playing.
图 1.Figure 1. Δ = 该步改变的格子数,是模型能观察到的全部反馈。Δ = cells changed by the step — the only feedback the model can observe.
State: NOT_FINISHED Levels completed: 0 Win levels: 6 Current frame (row-major numeric grid): [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3… [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3… [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,3,4,4,4,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3… [5,5,5,0,0,0,0,0,0,0,0,0,0,5,5,5,4,4,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,0,0,0,4,3,4,15,15,15,4,3,3,3,3,3,3,3,3,3,3,3,3,… … (64 rows × 64 integers; 8,657 characters ≈ 8.6k tokens per observation) Available actions: - ACTION1 - ACTION2 - ACTION3 - ACTION4 - ACTION5 - ACTION6 x y (integers 0-63)
模型每步收到的观测:状态、完成的 level 数、整数网格、可用动作名 —— 仅此而已。The observation the model receives each step: state, levels completed, the integer grid, the available action names — and nothing else.
SDPO(自蒸馏策略优化)怎么做。同一个模型跑两遍:教师的 prompt 里放进 oracle 答案(或其它特权信息),学生只看原 prompt;在学生自己采出的 token 上最小化 KL(π学生 ∥ π教师),可再加 RL reward。学生学会"像看到了答案那样"作答。How SDPO (self-distillation policy optimization) works. The same model is run twice: the teacher's prompt contains the oracle answer (or other privileged information), the student sees only the original prompt; on the student's own samples the KL(πstudent ∥ πteacher) is minimized, optionally with an RL reward. The student learns to answer "as if it had seen the answer".
问题。信号全部来自模型对那个答案的自我反思:学到的东西隐含在答案里、绑定于具体题目,没有外部检验,也不会超出 oracle 给的范围 —— 它复制答案,不产生新知识。The problem. All signal comes from the model reflecting on that answer: what is learned stays implicit and answer-bound, nothing checks it externally, and it never grows beyond what the oracle handed over — it copies answers rather than producing knowledge.
我们的想法。LLM 擅长组合创新,缺的是对"什么算知识"的约束。所以把知识做成显式的声明式规则,用两个 reward 引导模型自己去获得:正确性(在游戏里复现)和泛化性(在别的 level 上仍成立)。多轮迭代:第一轮拿到最底层的原子(ARC 里的动作映射),后面各轮把原子放在一起,组合出新的、更高层的知识;每轮的知识再通过 SFT ⊕ RL 内化。整个过程只需在现有 multi-step RL(harness)循环里加一个 SFT 项。Our idea. LLMs are good at combinatorial innovation; what is missing is a constraint on what counts as knowledge. So knowledge becomes explicit declarative rules that the model acquires itself under two rewards: correctness (reproduced in the game) and generalization (still holds on other levels). Iterated over rounds: round 1 yields the lowest-level atoms (ARC action mappings), later rounds put atoms together and compose new, higher-level knowledge; each round's set is internalized by SFT ⊕ RL. Only one SFT term is added to the existing multi-step RL (harness) loop.
当前实现的是 r = 1;NLL 项只作用于声明式陈述,从不作用于轨迹。Currently r = 1; the NLL term applies to declarative statements only, never to trajectories.
| 实验组Arm | SFT 何时进入When SFT enters | 每步目标Per-step objective |
|---|---|---|
| baseline | — | ℒPG |
| sft_first | RL 前 4 轮纯 SFT4 SFT-only rollouts before RL | NLL → ℒPG |
| sft_interleaved | 每轮 RL 后 2 轮 SFT2 SFT rollouts after every RL rollout | ℒPG ⇄ NLL |
| sft_joint | 每一步every step | ℒPG + w·NLL |
| oracle | 同 sft_first,𝒦 = 手写规则(14 条)as sft_first, 𝒦 = hand-written rules (14) | NLL → ℒPG |
表 1.Table 1. 消融:同一 𝒦、同一 RL(Dr.GRPO,每轮 32 局 × ≤80 步)、同一评测(level 5–6,prompt 中无 𝒦);只改 SFT 的调度。Ablation: same 𝒦, same RL (Dr.GRPO, 32 episodes × ≤80 decisions per rollout), same evaluation (levels 5–6, no 𝒦 in the prompt); only the SFT schedule changes.
验真者是同一个模型的另一个会话,拿到一条 claim 和过去的对局记录。它不判断 claim 对不对,而是写代码去复现:把 claim 拆成子句,对每个子句设计检查 —— 在对局记录里数、或开一局新游戏用 act 去试;计数 reproduced / total,声明极性(数成功还是数违例:"从不发生"的子句 0/N 才算通过);再用 set_level(k) 在至少两个别的 level 上重跑同样的检查。产出一份结构化 ledger。过滤器只读 ledger:任一子句被驳回 → 删掉该子句;本 level 检查成立 → 正确;别的 level 的结果 → 泛化分 0–3;点击配方 / 解法型 → 拒绝。The verifier is another session of the same model, given one claim and the past episode journals. It does not judge the claim; it writes code that reproduces it: the claim is split into clauses, each gets a check — counted in the journals, or tried in a fresh episode through act; it records reproduced / total with a declared polarity (successes or violations: a "never happens" clause passes at 0/N); then the same checks are re-run on at least two other levels via set_level(k). The output is a structured ledger. The filter reads only the ledger: any refuted clause is cut; home-level checks hold → correct; the other-level results → a generalization score 0–3; click recipes / solutions → rejected.
一份真实 ledger 的两条子句(verifier v2 示例):一条 claim 里对的部分进入 𝒦,错的子句连同证据被去掉 —— 不是整条接受或整条拒绝。Two clauses of a real ledger (verifier v2 example): the correct part of a claim enters 𝒦, the wrong clause is removed with its evidence — not accept-or-reject the whole claim.
图 5.Figure 5. 六个 level 的起始棋盘。同一套机制、不同布局:知识若可泛化,应在 L5–L6 上仍成立。Starting boards of the six levels. Same mechanics, different layouts: knowledge that generalizes should still hold on L5–L6.
蓝色:旧 level-1 集深审保留的原子(36 条中的 4 条);橙色:最终 𝒦₁ 中来自 level 2–4 的新原子(888 条中的 4 条),已由代码验真,标注其成立的 level。每条 = 一个机制 + 条件,不含解法。Blue: level-1 atoms kept after the claim-by-claim review (4 of 36); amber: new atoms of the final 𝒦₁ from levels 2–4 (4 of 888), verified by code and tagged with the levels they hold on. Each = one mechanism + its condition, no solution.
| Level | 局Episodes | 清关Cleared | claims (v3)Claims (v3) | 已验真Verified | 子句通过Clauses kept | 原子Atoms |
|---|---|---|---|---|---|---|
| 1 | 100 | 9 | 101 | 96 | 167 | 198 |
| 2 | 100 | 0 | 121 | 100 | 167 | 194 |
| 3 | 100 | 0 | 128 | 123 | 168 | 244 |
| 4 | 100 | 0 | 124 | 117 | 172 | 228 |
| Σ | 400 | 9 | 474 | 436 | 674 | 888 |
表 2.Table 2. 知识流水线(四个 level 同一流程)。已验真 = 有账本的 claim(38 条验真会话超预算未出账本);子句通过 = 过 v2 门控的子句;原子 = 两遍 Qwen(原子化、同事实合并)+ 门控后的最终 𝒦₁:888 条,其中 24 条跨 level 合并、269 条泛化 3/3。Knowledge pipeline (one procedure for all four levels). Verified = claims with a ledger (38 verifier sessions ran out of budget before writing one); clauses kept = clauses passing the v2 gates; atoms = the final 𝒦₁ after two Qwen passes (atomize, merge same-fact) and the gates: 888 atoms, 24 merged across levels, 269 with generalization 3/3.