Manuscript Offprint

arXiv:2609.05988

DART: Distributional Adversarial Recurrent Training for Algorithm Learning

Hieu Tran Bao, Phung Thanh Dang, Pham Quang Nhat Minh, Hoang Thanh Tung

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Recurrent reasoning models (RRMs) can solve structured problems, achieving easy-to-hard generalization through iterative computation in hidden space. These models are typically trained with instance-level supervision, which becomes increasingly problematic as task difficulty grows: valid solutions occupy a tiny region of the solution space, while invalid solutions proliferate rapidly. We propose Distributional Adversarial Recurrent Training (DART), a training framework that replaces single-point supervision with a local target distribution around the ground-truth solution and aligns model outputs with this distribution through an adversarial objective. DART provides a richer learning signal and encourages more stable iterative trajectories toward valid solutions. When evaluated on Maze, Chess, and masked Sudoku with multiple RRMs, including Deep Thinking Systems and Tiny Recursive Models, DART improves solution quality, stability, and robustness under the evaluated distribution shifts. Comparisons with label smoothing, Gaussian softened targets, and progressive training show that DART is not explained by target softening alone and is complementary to training schemes that stabilize long-horizon recurrence. These results identify DART as a promising approach for improving robustness across the evaluated recurrent reasoning models.

1 Introduction

Logical reasoning has become a central benchmark for evaluating the reasoning capabilities of intelligent systems [1, 2]. In large language model literature, this goal is often pursued through explicit reasoning and inference-time search. LLM based approaches show that increasing inference-time computation—through sampling [3], branching [4, 5], and verification [6]—can substantially improve performance on complex reasoning tasks. These methods rely on large scale models to generate explicit reasoning traces and thus inherit the limitations of autoregressive models [7].

Parallel to these developments, another line of work explores implicit reasoning via iterative computation in hidden space. Recurrent reasoning models (RRMs), such as Tiny Recursive Models (TRM) [8] and Hierarchical Reasoning Models (HRM) [9], can solve challenging logical reasoning tasks by repeatedly applying a fixed computation block, effectively scaling depth at test time. These results suggest that reasoning can emerge from iterative transformations of hidden states without explicitly generating intermediate reasoning traces. However, these models are primarily designed and trained on in-distribution datasets, and their performance on out-of-distribution data has not been systematically examined.

Preprint.

Beyond logical reasoning and pattern matching, prior work [10, 11] suggests that RRMs can learn algorithms from data and exhibit systematic generalization capability. Extending this idea, Schwarzschild et al. [12] introduced the Deep Thinking System (DTS), an RRM trained on relatively simple problem instances that can generalize to substantially harder ones at test time by increasing the number of recurrent reasoning steps.¹ This phenomenon, referred to as easy-to-hard generalization, suggests that models capable of genuine reasoning do not merely interpolate within the training distribution, but instead learn algorithmic procedures that can be systematically applied to more complex inputs.

Despite these promising results, RRMs are still typically optimized at the instance level: for each logical input, the model is trained to match a single target solution. This creates a challenge for easy-to-hard generalization because, as problem complexity increases, the number of incorrect solutions grows explosively while the set of valid solutions remains highly constrained. As a result, the probability mass of correct solutions becomes vanishingly small relative to the vast space of invalid ones. Consequently, iterative reasoning models often exhibit unstable performance on difficult inputs, requiring substantially more iterations and still failing to converge to correct solutions.

To mitigate this limitation of instance-level training, we introduce Distributional Adversarial Recurrent Training (DART) for Reasoning Models. Inspired by latent-variable methods such as VAEs [13], our approach replaces single-point supervision with a target distribution that defines a neighborhood around the correct solution by injecting random noise during training. This local soft target preserves the original solution under arg max decoding, but it should not be interpreted as enumerating multiple distinct discrete solutions. Instead, it enlarges the supervised neighborhood around the observed solution in the probability simplex, making the learning signal less brittle than a single one-hot point.

To align generated reasoning states with this local target distribution, we introduce an adversarial training objective inspired by Wasserstein GANs (WGANs) [14]. The reasoning model acts as a generator that produces candidate solution distributions, while a critic network learns to distinguish generated reasoning states from samples drawn from the soft target distribution. By combining supervised reasoning loss with adversarial distribution alignment, our method encourages the model not only to produce correct solutions but also to remain close to an input-conditioned neighborhood of the target solution, thereby improving solution quality and trajectory stability on complex instances.

DART is generally applicable to different RRM architectures. We evaluate it on both the Deep Thinking System (DTS) and the Tiny Recursive Model (TRM). For DTS, we consider two complementary easy-to-hard reasoning tasks: two-dimensional maze solving and chess puzzles. Across these tasks, DART improves DTS by increasing accuracy and yielding more stable performance across reasoning iterations. Following [8, 9], we evaluate DART on TRM for Sudoku. Because TRM is originally trained on hard Sudoku instances with a fixed masking level in both training and evaluation, it is not naturally formulated as an easy-to-hard benchmark. To study easy-to-hard generalization, we vary the Sudoku masking ratio, train the model on puzzles with low mask ratios, and evaluate on more heavily masked ones. Under this setting, DART also improves TRM's reasoning capability on more difficult Sudoku instances.

Overall, we summarize our contribution as follows:

  • To the best of our knowledge, we are the first to analyze easy-to-hard generalization through the lens of solution-space imbalance. We argue that instance-level training exacerbates this difficulty as the imbalance becomes more severe as the complexity increases.
  • We reformulate the solution space of reasoning problems from a distributional perspective and propose distributional adversarial recurrent training (DART) to help recurrent reasoning models discover valid solutions more effectively.
  • We show that DART improves the performance of multiple RRMs across a range of logical reasoning tasks, yielding more stable accuracy across reasoning iterations. We further compare against label smoothing, Gaussian softened targets without a critic, and progressive

¹A problem instance is considered harder than another instance if its shortest solution is longer than that of the other. We can create harder problems by increasing the problem sizes or decreasing the amount of information in problem statements. For example, a larger maze requires a longer shortest path to escape than a smaller maze, a 50% masked Sudoku requires more steps to solve than a 30% masked Sudoku.

training baselines to separate target softening, adversarial alignment, and long-horizon stabilization.

References (26)