TL;DR
Training iterative models (like world models or recursive Transformers) by only looking at the final output leads to noisy gradients and "black box" intermediate states. DICE (Dense Intermediate Consistency for Endpoints) fixes this by supervising every iteration through a shared readout head, turning these models into "anytime" forecasters that are more stable to train, more accurate, and up to 6.6x faster at inference.
What Problem Does This Paper Address?
Many state-of-the-art models don't just give an answer in one go; they iterate. Think of a world model rolling out a trajectory or a "Deep Thinking" network refining a logic puzzle. Usually, we train these using endpoint supervision: we only calculate the loss on the very last step.
The authors identify two major "failure modes" caused by this approach:
- Long-horizon instability (F1): Gradients have to travel back through a long chain of iterations. These gradients become "direction-corrupted" and noisy, making training unstable.
- Horizon foreclosure (F2): Because the intermediate steps aren't supervised, the model is free to use them as "opaque scratch space." This means you can't stop the model early to get a partial answer (anytime prediction), and the model often fails to generalize if you ask it to run for more steps than it saw during training (horizon extrapolation).
Methods
The authors propose DICE (Dense Intermediate Consistency for Endpoints). It’s a deceptively simple change to the training process:
- Dense Supervision: Instead of just one loss at the end, an auxiliary loss is added at every iteration.
- Shared Readout: Crucially, every iteration is decoded using the same readout head. This forces the model’s internal state at step 5 to mean the same thing as its state at step 50—a valid, calibrated forecast.
- Adaptive Stability Halting (ASH): Because DICE ensures intermediate steps are valid forecasts, the authors introduce a decision-theoretic stopping rule. If the prediction stops changing significantly between steps (measured by $\ell_1$ drift), the model simply stops iterating.
Datasets
The researchers evaluated DICE across three distinct families of Iterative Neural Computations (INCs):
- Prefix Sums: An algorithmic task used to test "horizon extrapolation" (training on 32-bit strings but testing on up to 256-bit).
- 30x30 Mazes: A long-horizon planning task where the shortest path exceeds 110 steps.
- bAbI: A standard benchmark for multi-step temporal reasoning in natural language.
- CIFAR-10: Used specifically to test stability in Deep Equilibrium Models (DEQs).
Key Insights and Ideas
- The "Anti-Alignment" Discovery: The authors found that under standard training, early-step gradients are actually anti-aligned with the final goal (cosine similarity between -0.6 and -0.2). The model is essentially fighting itself during the early stages of a rollout. DICE realigns these gradients immediately.
- Shared Heads vs. Deep Supervision: Unlike "Deep Supervision" (which uses different heads for different layers), DICE uses a shared head. This is the "aha moment": it forces the trajectory to be a sequence of progressively refined forecasts rather than a series of unrelated internal representations.
- Calibration for Free: The paper provides a mathematical proof (Proposition 1) showing that a low DICE loss provides a "stability bound." This means you can trust that the model's confidence is well-calibrated throughout the entire iteration process, not just at the end.
Key Results
- Perfect Extrapolation: On the prefix sums task, while the baseline collapsed to 0% accuracy on long strings, DICE maintained 100% accuracy even when testing on strings 4x longer than those seen in training.
- Better Planning: In maze solving, DICE improved exact-match accuracy by 7.4 percentage points over the baseline and reached the baseline's peak performance using only 75% of the training budget.
- Massive Speedup: By using the ASH stopping rule, the model achieved a 6.6x inference-time speedup on maze tasks with zero loss in accuracy. It simply stops thinking once it has the right answer.
- Stability: In Deep Equilibrium Models (DEQs), DICE eliminated a "catastrophic mid-training collapse" that plagued the baseline, reaching 90% accuracy 20% faster.
Limitations and Future Work
- Weight Schedules: The "optimal" way to weight the intermediate losses (linear, exponential, or uniform) depends on the specific task. Finding a universal, adaptive schedule is still an open question.
- Multi-Phase Logic: DICE assumes every step should be a decodable forecast. This might not hold for models that need to perform "hidden" sub-computations (like a multi-step sorting algorithm) before a forecast is even possible.
- Continuous Outputs: While the calibration bounds work for classification (probability space), extending these guarantees to continuous regression or density estimation remains a future challenge.
Summary updated