TL;DR
Standard training for iterative AI models (like Chain-of-Thought or looped Transformers) only looks at the final answer, leading to noisy gradients and "nonsensical" intermediate thoughts. This paper introduces DICE, a method that applies a shared readout and auxiliary losses to every step of reasoning, enabling models to extrapolate to harder problems and speed up inference by 6.6× through adaptive halting.
What Problem Does This Paper Address?
Modern AI is moving toward "Iterative Neural Computations" (INCs)—systems that don't just give a one-shot answer but "think" through a problem over multiple steps. Examples include Universal Transformers, Deep Equilibrium Models (DEQs), and even Chain-of-Thought prompting.
The standard way to train these is endpoint supervision: you run the model for $K$ steps and only calculate the loss on the final output. The authors argue this is a "poor mechanism" for two reasons:
- Gradient Pathology: To update the first step of reasoning, the error signal must travel backward through a long chain of updates. This signal becomes incredibly noisy and often points in the wrong direction.
- Unconstrained Intermediates: Because only the end result matters, the model treats intermediate steps as "latent scratch space." These states often don't represent anything meaningful, which causes the model to break if you ask it to "think longer" at test time than it did during training.
Methods
The authors propose DICE (Dense Intermediate Consistency for Endpoints). Instead of just looking at the end, DICE attaches a shared readout head to every single iteration.
Key features include:
- Dense Auxiliary Losses: Every intermediate step is supervised using the final target label. This creates "short-range" gradients that reach early steps without being corrupted by the long chain.
- Anytime Decodability: Because the readout head is shared across all steps, every intermediate state is forced to be a valid, decodable prediction. The model's "internal thoughts" must always be heading toward the right answer.
- Adaptive Stability Halting (ASH): Since every step is now decodable, the model can monitor its own progress. ASH stops the computation as soon as the predicted probability distribution stabilizes, saving massive amounts of compute.
Datasets
The researchers evaluated DICE across several challenging reasoning benchmarks:
- Prefix Sums: A test of algorithmic extrapolation where a model trained on 32-bit sequences is tested on sequences up to 256 bits.
- 30×30 Mazes: A benchmark for search-based reasoning requiring long-range planning.
- bAbI: A classic reasoning-heavy question-answering dataset.
- CIFAR-10: Used specifically to test the stability of Deep Equilibrium Models (DEQs).
Key Insights and Ideas
- Training Objectives as Mechanisms: The authors frame the loss function not just as a way to measure error, but as a "mechanism" that physically shapes the trajectory of the model’s internal logic.
- Functional Constraint vs. Simple Regularization: Unlike previous methods that just try to keep internal states "small" or "smooth," DICE forces them to be functional. Every step must be a useful partial solution.
- The "Anti-Aligned" Gradient: One of the most striking findings is that under standard training, the gradient signal at early steps is often negatively correlated with the final goal. The model is essentially being told to move in the wrong direction for the first two-thirds of its "thought process." DICE fixes this alignment.
- Robustness to "Thinking Longer": Because DICE ensures every step is meaningful, models can be run for more iterations at test time than they saw during training (extrapolation) without the logic "falling apart."
Key Results
- Algorithmic Extrapolation: On the prefix sum task, the baseline model failed completely (0% accuracy) on 128-bit inputs. DICE achieved 100% accuracy, showing it truly learned the iterative algorithm.
- Maze Solving: DICE improved exact-match accuracy by 7.4 percentage points and converged significantly faster than the baseline.
- Inference Speedup: By using the ASH halting rule, DICE achieved a 6.6× speedup on maze solving by stopping early on easier problems without losing accuracy.
- Stability: In Deep Equilibrium Models, DICE eliminated "catastrophic training collapse," a common failure mode where accuracy suddenly drops to near-random during training.
Limitations and Future Work
- Schedule Sensitivity: The "weight" given to intermediate steps ($\alpha$ and the weight schedule) needs to be tuned for different architectures. There is no "one-size-fits-all" setting yet.
- Multi-Phase Tasks: DICE assumes that every step should look like the final answer. This might be a limitation for tasks that require distinct phases (e.g., first "sorting" then "calculating"), where intermediate steps shouldn't necessarily decode to the final answer.
- Constraint Strength: The authors note that for some very complex multi-step computations, forcing every step to be decodable might be too strong of a constraint, potentially limiting the model's ability to use "scratchpad" space for non-trivial sub-tasks.
Summary updated