Proximal Targets: Training Looped Refiners on Problems with Many Correct Answers

Summary (Overview)

  • Core problem: Looped refiners (HRM, TRM) trained with deep supervision fail catastrophically when puzzles have multiple correct answers—solving only 2.5% of Sudoku puzzles with 2–64 answers versus 96% with unique answers.
  • Key diagnosis: When the stored training answer cannot be predicted from the input, the loss-minimizing pass blends answers into invalid mixtures, creating an irreducible loss floor that no model capacity can overcome (Lemma 1).
  • Proposed fix: The proximal target—train each pass toward the correct answer nearest to its own input draft—removes blending, makes every answer a fixed point, and guarantees loop convergence.
  • Results: With the same 1.7M-parameter network, the proximal target solves 98.8% of multi-answer Sudoku puzzles, 93.8% of sparse puzzles with >10,000 answers (no answer list needed), and 90.9% of 200-node 3-colourings (trained on ≤50 nodes).
  • Additional contributions: Three target sources (answer list scan, warm-started solver, quality knob), theoretical guarantees validated on 40.3M drafts, and favorable comparison against GRAM, MinLoss, PTRM-style noise, and ConsFormer.

Introduction and Theoretical Foundation

Background

Looped refiners apply one small shared network repeatedly to a draft answer, with each pass reading the puzzle and current draft to produce an improved draft. Training uses deep supervision: every pass is scored against a target answer. This works when answers are unique, but fails for underconstrained problems (Sudoku with multiple solutions, graph colourings, schedules, game moves) where the standard choice—one stored answer per puzzle—is problematic.

The Blending Problem

A two-cell example illustrates the core issue: given answers (1,2) and (2,1), the prediction minimizing training loss puts 50% probability on each digit in each cell, decoding to invalid mixtures (1,1) or (2,2). The network hasn't failed to learn; it has learned the optimal response to an arbitrary target.

Formal Setting

A puzzle xx has a set FF of mm free cells and a set S(x)S(x) of correct answers. A draft ss fills every free cell, and d(s,y)d(s, y) counts cells where ss and yy differ. The training loss is:

\mathcal{L} = \sum_{t=1}^{N} \sum_{i \in F} -\log p_{t,i}(y_{t,i}) \tag{1} ### Key Theoretical Result **Lemma 1 (blending, and a floor)**: If the target is drawn independently of the draft from a distribution $q_x$ over $S(x)$, then the loss-minimizing pass outputs per-cell marginals $p_{t,i}^{\star}(v) = q_x(y_i = v)$, with expected loss at least:

F(x) = \sum_{i \in F} H_{q_x}(y_i)

This floor is 35.5 bits per multi-answer Sudoku puzzle on the test set. The lemma rules out obvious fixes: more capacity doesn't lower the floor, and resampling the stored answer keeps it independent of the draft. ## Methodology ### The Proximal Target **Definition 1**: For a cost $c: S(x) \to \mathbb{R} \cup \{+\infty\}$, the proximal target of a draft $s$ is:

T_c(s) = \arg\min_{y \in S(x)} \left[ d(s, y) + c(y) \right] \tag{2}

With c=0c=0, this is the nearest-answer target: the correct answer closest to the current draft. Training follows Algorithm 1, where each pass is trained toward Tc(st−1)T_c(s_{t-1}) computed on the model's own drafts.

Three Target Sources

  1. Answer list: When all answers can be enumerated, the nearest-answer target is a scan over the list (must be complete—partial lists reintroduce blending).

  2. Search solver started at the draft: When answers are too numerous to list, depth-first search picks the most constrained cell first and tries the draft's value first. This needs no answer list and costs only 55–75 search nodes on Sudoku.

  3. Ranking and knob: For problems where answers differ in quality, the network receives a knob input k∈[0,1]k \in [0,1], with cost ck(y)=0c_k(y) = 0 if ∣r(y)−k∣≤w/2|r(y) - k| \leq w/2 and +∞+\infty otherwise, where r(y)r(y) is the quality rank of answer yy.

Theoretical Guarantees

Lemma 2 (every answer is a fixed point): Tc(Tc(s))=Tc(s)T_c(T_c(s)) = T_c(s) for every draft ss. With c=0c=0, every correct answer is a fixed point.

Lemma 3 (target stability during repair): If s′s' sets any subset of cells where ss differs from target yy to yy's values, then Tc(s′)=yT_c(s') = y. Partial repairs accumulate rather than chase a moving target.

Proposition 1 (progress without solving): For decoded output s′s' with errors e=d(s′,Tc(s))e = d(s', T_c(s)) against its own target:

V(s′)≤e+c(Tc(s))V(s') \leq e + c(T_c(s))

where V(s)=min⁡y[d(s,y)+c(y)]V(s) = \min_y [d(s,y) + c(y)]. Under argmax decoding, e≤∑i∈F−log⁡2pi(Tc(s)i)e \leq \sum_{i \in F} -\log_2 p_i(T_c(s)_i), the pass's loss in bits. The loop progresses whenever a pass leaves fewer errors than its input had.

Empirical Validation / Results

Main Results

TaskProximal TargetStandard Target
Sudoku (2–64 answers)98.8 ± 0.3%2.5 ± 0.2%
Sparse Sudoku (>10,000 answers)93.8 ± 0.7%0.0%
Nandwani benchmark89.3 ± 1.1%6.3 ± 4.0%
3-colouring (200 nodes)90.9 ± 1.0%36.9 ± 5.6%

Comparison with Other Methods (Sudoku, 2–64 answers)

MethodSolved (%)Found (%)
Standard target (TRM)2.5 ± 0.20.8 ± 0.0
4× parameters2.4 ± 0.10.8 ± 0.0
+ test-time noise (PTRM-style)4.5†8.8
Solver's first answer, fixed51.3 ± 0.78.3 ± 0.1
MinLoss98.3 ± 0.314.7 ± 0.2
GRAM (KL 0.045)57.7 ± 5.737.4 ± 1.9
ConsFormer (1,000 iterations)92.5 ± 0.564.3 ± 0.3
Proximal: solver (no list)97.0 ± 0.231.5 ± 1.3
Proximal: nearest answer98.8 ± 0.353.6 ± 0.4

†Share of noisy runs that are valid; with 20 runs, 24.4% of puzzles have at least one.

Theory Measured in Trained Loops

  • Floor: Standard-target models sit at 42.7–46.1 bits versus the 35.5-bit floor; proximal target reaches 0.5 bits.
  • Progress: The nearest-answer loop leaves 0.28–0.49× as many errors as its input in passes 1–6 (contracting); standard and fixed-solver targets exceed 1× from pass 3 and stall.
  • Displacement: Fixed targets still ask for 13.6 (standard) and 8.7 (solver's first answer) changed cells at pass 8, versus 0.18 for the proximal target.

Key Findings

  • Target must depend on input: Targets fixed per puzzle blend or solve half; targets from output solve but find few answers (14.7–17.1%); targets from input solve and find most (31.5–56.7%).
  • Fixed-point test: Given a correct answer as draft, the nearest-answer model returns it unchanged for 100.0% of answers, versus <1% for other targets.
  • Weak repairer iterated: Each pass fixes 33.8 cells versus breaking 1.3; wrong cells fall from 45.2 to 0.66 after 4 passes.
  • Complete answer set needed: With m=1m=1 random answer per puzzle, solving drops to 6.1%; with m=2m=2 and m=5m=5, it's 27.7% and 75.9%. A rules checker (verified target) recovers most of the gap.

Scrabble Quality Knob

The knob follows the request (Spearman 0.76 vs. 0.63 for temperature), plays fewer bottom-10% moves at equal strength (3.0% vs. 9.1%), and wins 5.8%, 14.7%, 42.5%, and 62.9% of games against MAGPIE's static-equity bot at k=0.7,0.8,0.9,1.0k = 0.7, 0.8, 0.9, 1.0.

Theoretical and Practical Implications

Theoretical Contributions

  1. Precise diagnosis: Lemma 1 formalizes why standard deep supervision fails with multiple answers—the blending floor is a property of the target choice, not model capacity.

  2. Guaranteed convergence: Lemmas 2–3 and Proposition 1 provide the first convergence guarantees for looped refiners on many-answer problems: every answer is a fixed point, targets stay stable during repair, and training loss bounds per-pass progress.

  3. Connection to DAgger: Training on the model's own drafts toward a correction of each draft is DAgger with a projection as the expert, explaining why training visits test-time states.

Practical Implications

  • No architectural changes needed: The fix is purely in the training target—the same 1.7M-parameter network solves 98.8% versus 2.5%.
  • No answer list required: The warm-started solver target works for problems with >10,000 answers, making the approach applicable to real-world constraint satisfaction.
  • Quality control: The knob mechanism enables calibrated strength adjustment in game AI, with potential applications in difficulty scaling.
  • Broad applicability: The principle extends to any iterative model trained with deep supervision on non-unique outputs (scheduling, game moves, constraint satisfaction).

Conclusion

The proximal target—choosing each pass's training target from its own input—removes the blending floor that cripples looped refiners on problems with many correct answers. It makes every answer a fixed point, turns training loss into guaranteed progress, and requires no extra networks or explicit rules. The approach solves 98.8% of multi-answer Sudoku puzzles (vs. 2.5% for standard target), handles problems with >10,000 answers without an answer list, and provides a calibrated quality knob for game AI.

Limitations: Requires the full answer set or a way to reach it (complete list, warm-started solver, or ranking); problems studied are small (≤6.9M parameters); finds 53.6% of answers (below the target's 64.3% ceiling); and cannot create answers of kinds never seen in training (99.9% on seen solution families vs. 2.7% on held-out ones for N-Queens).

Future directions: The choice of per-pass target is expected to matter wherever iterative models are trained with deep supervision on non-unique outputs, suggesting broad applicability beyond puzzle solving to scheduling, game playing, and other combinatorial optimization tasks.

Related papers