Manuscript Offprint
arXiv:2610.27220Sparse RL Relaxation for LLM Reasoning
Jiabin Fan, Matthias Lindemann, Zita Marinho, André FT Martins, Lili Mou
University of Alberta, Alberta Machine Intelligence Institute (Amii), Canada CIFAR AI Chair, Instituto de Telecomunicações, Instituto Superior Técnico, Universidade de Lisboa, ELLIS Unit Lisbon
Recent work has explored continuous representations in place of discrete tokens during Chain-of-Thought (CoT) reasoning, often referred to as soft CoT. This is motivated by the idea that a mixture of token embeddings can represent a superposition of multiple reasoning possibilities within a single step. However, it remains challenging to train large language models to realize this potential. Existing work has explored reinforcement learning (RL)-style training for soft CoT. However, these approaches treat soft tokens as actions in a Markov decision process rather than as differentiable intermediate computation steps. Thus, they do not propagate gradients across the soft tokens and miss out on the signal of how the choice of one soft token affects the next. In this paper, we propose a sparse relaxation method for RL (called SpaRLax), which leverages the differentiability of soft-CoT reasoning over time steps and makes training more stable and effective. We adopt an entmax sparsity method that adaptively determines the degree of softness, which truncates long-tail noise at confident steps while retaining multiple plausible candidates when uncertain. Across nine reasoning benchmarks, our method achieves the highest average performance compared with baseline methods. Further analyses validate the effective use of soft-token superposition in our approach, and also demonstrate the contribution of adaptive sparsity in our approach.
Date: October 21, 2026

1 Introduction
Chain of Thoughts (CoT; Wei et al., 2022) improves the reasoning ability of large language models (LLMs) by generating intermediate steps before the final answer. Despite its effectiveness, CoT produces a single discrete token at each step, collapsing the LLM's output distribution to one token and discarding alternatives that may be useful later. This has motivated recent work on soft CoT, where intermediate reasoning tokens are represented by continuous embeddings (Hao et al., 2025; Shen et al., 2025; Wang et al., 2025; Wu et al., 2025; Xu et al., 2025a; Zhang et al., 2025). Among these approaches, Zhang et al. (2025) construct each CoT token as a probability-weighted mixture of token embeddings, referred to as a soft token, allowing multiple candidate semantics to coexist at a reasoning step. Theoretical analyses (Zhu et al., 2025) further show that such continuous representation can represent multiple reasoning paths in superposition and can be more expressive than discrete CoT, suggesting soft CoT as a promising direction for improving LLM reasoning.
However, training LLMs to realize the potential of soft reasoning remains challenging. Recent methods struggle to fit soft CoT training into the reinforcement learning (RL) framework, which allows us to learn soft CoT without groundtruth labels. To facilitate RL, researchers have introduced various stochasticity mechanisms to soft CoT, such as Gaussian embedding perturbations (Butt et al., 2026) and Gumbel-softmax sampling (Zheng and Lee, 2025). However, such a formulation is problematic, as the output-generating process defines the vocabulary as the action space but soft reasoning considers the
In the standard token-level MDP for autoregressive LLMs, the policy is defined on vocabulary tokens as for some state . A soft token is not in this action space, so a policy-gradient objective over soft tokens is ill-defined under standard RL frameworks for LLMs (Ramamurthy et al., 2023).
Fan et al.
ami
embedding as an action. They do not coexist in the same Markov decision process (MDP), making the action space, and thus the entire RL formulation, ill-defined. In addition, such a formulation fails to take advantage of the differentiable nature of soft tokens, as the gradient is not back-propagated across the soft tokens. This misses out on the signal of how the choice of one soft token affects the next.
In this paper, we propose a Sparse RL Relaxation (SpaRLax) method to train soft reasoning for LLMs. For every reasoning step, we sample a mixture probability by Gumbel-softmax (Jang et al., 2017; Maddison et al., 2017), which introduces stochasticity compared with directly using softmax. Different from Zheng and Lee (2025), however, we notice that Gumbel-softmax is differentiable, and with this insight, we restore the cross-step gradient path, allowing gradients to flow backward from each soft token to the one before it. Moreover, we notice an additional challenge that the typical large vocabulary size of an LLM dilutes probability mass, causing a loss of reasoning focus. We propose a solution to this problem by using sparse relaxation, which concentrates probability mass on a few candidate tokens, while assigning exactly zero probability to low-scoring tokens. In particular, we apply entmax (Peters et al., 2019) on top of the Gumbel reparametrization trick when constructing the soft-token distribution, as entmax can naturally adapt the degree of softness by the uncertainty of each reasoning step.
We conduct experiments on nine benchmarks spanning mathematical, knowledge-intensive, and code reasoning. We compare our method against soft-CoT post-training methods under a controlled GRPO framework. The results show that our SpaRLax achieves the strongest weighted-average performance under both soft- and hard-CoT inference, demonstrating the benefits of cross-step learning in the relaxed reasoning space ( ). We also observe that our approach utilizes the superposition encoded by soft tokens more than existing methods ( ). In addition, we analyze the sparsity mechanism across different candidate-set sizes and find that entmax outperforms dense softmax, suggesting its effectiveness in adaptively suppressing long-tail noise ( ).
At the ith reasoning step, the LLM with its policy yields a probability vector over the vocabulary and samples a token by
Once is sampled, its embedding, denoted by , is passed to the next step, while the remaining information in is not carried forward. After , the LM switches to answer generation.
Soft CoT reasoning. Zhang et al. (2025) propose soft CoT, which replaces the discrete token in classic CoT with a continuous soft-token embedding to improve CoT expressivity. In this paradigm, the model predicts the soft-token distribution and constructs the soft-token embedding by
where is the kth element of . The resulting is fed back to the model for the next step until is generated (details can be seen in Appendix A.3). Then the LLM generates discrete tokens
Sparse RL Relaxation for LLM Reasoning
ami
for the final answer, and the entire autoregressive sequence becomes
RL training for LLMs. LLMs are often post-trained with reinforcement learning (RL) to improve reasoning ability, where the model explores different reasoning trajectories and is rewarded for trajectories that lead to correct answers. For a prompt x, the model samples a trajectory including CoT and final answer . Then, the model receives a scalar reward for an entire trajectory, based on the correctness of the final answer for the input, but typically not based on CoT steps. RL optimizes the policy parameter to maximize the expected reward:
where D denotes the distribution of training prompts.
Because discrete token sampling is non-differentiable, policy-gradient methods (Sutton et al., 1999; Williams, 1992) can be used to differentiate Eqn. (5):
Recent studies extend the likelihood-based formulation to soft reasoning. Let denote the likelihood of a sampled soft token by the Gaussian- (Butt et al., 2026) or Gumbel-based (Zheng and Lee, 2025) stochastic mechanism. Their policy gradient takes the form
Such methods view the soft token defined by Eqn. (3) as a continuous RL action, which is less justified under the standard Markov decision process (MDP) framework for autoregressive LLMs. This is because an LLM treats discrete vocabulary tokens as the action space, but it becomes unclear how a soft token embedding is compatible with discrete actions of tokens in the vocabulary. In addition, soft tokens could have been modeled as differentiable variables, but treating them as RL actions breaks this differentiable structure. Hence, these methods miss out on the gradient signal of how the choice of one soft token affects the later reasoning steps.
3 Our Method: Sparse RL Relaxation (SpaRLax)
In this section, we introduce the proposed SpaRLax approach in detail. In §3.1, we discuss our RL relaxation based on Gumbel-softmax; we also present an efficient approximation for implementation considerations. Then, in §3.2 we introduce sparsity by replacing Gumbel-softmax with Gumbel-entmax, yielding sparse soft tokens whose degree of softness adapts across reasoning steps.
3.1 RL Relaxation
Soft CoT naturally forms a differentiable autoregressive computation across reasoning steps. We exploit this structure and propose an RL relaxation method. At reasoning step i, the LLM produces pre-softmax logits
Fan et al.
ami

Figure 1. Overview of our approach. Black arrows indicate forward propagation, and blue arrows indicate backpropagation. Different from Soft-GRPO (Zheng and Lee, 2025), we only apply policy gradient to output steps, but backpropagate cross-step gradients for reasoning steps.
To introduce stochastic exploration, we perturb each logit with i.i.d. Gumbel noise . By the Gumbel-Max trick (Maddison et al., 2014), the argmax of the perturbed logits is an exact categorical sample from softmax( ). For differentiability, the argmax operation is replaced with softmax, resulting in the Gumbel-softmax operation (Jang et al., 2017; Maddison et al., 2017). For the next step , the input is a soft token embedding, given by
where is the relaxation temperature (Goyal et al., 2017). As seen, given sampled , the relaxed soft token remains differentiable with respect to .
After the reasoning steps, the LLM generates a discrete output by sampling from its policy. The training objective is to maximize the expected reward:
In other words, Gumbel-softmax allows us to sample from unparametrized Gumbel noise, eliminating the parameters underneath the expectation operation. This facilitates backpropagation through the reasoning steps. The gradient of Eqn. (10) can be written as
where the policy gradient applies to the discrete answer tokens only, which differs from previous work (Butt et al., 2026; Zheng and Lee, 2025) treating soft reasoning tokens as actions. As illustrated in Fig. 1, the reasoning trajectory remains differentiable through the relaxed soft-token construction, allowing the learning signal to propagate across reasoning steps.
Efficient approximation for implementation considerations. Modern RL implementations (Fu et al., 2025; Sheng et al., 2025) adopt a two-pass strategy: (1) The first pass performs roll-out by generating an entire trajectory without backpropagation. This does not require us to store activation values of the neural network and is memory-efficient, but it is slow because tokens are generated autoregressively. (2) The second pass takes in the sampled actions for gradient calculation, which is memory-intensive but fast. The two-pass strategy is essential for performing RL on LLMs, as it allows us to perform the roll-out and policy update (of different batches) simultaneously, so as to maximize GPU parallelization (Fu et al., 2025).
Sparse RL Relaxation for LLM Reasoning
ami
However, this presents a challenge for our backpropagation. Note that the sampled soft token embeddings are generated in the first pass, but are fed as input in the second pass, thus detached from the computational graph. Consequently, there is no gradient flow from to , , and .
Inspired by surrogate-gradient methods (Bengio et al., 2013; Wang et al., 2021), we propose a proxy gradient grafting technique that connects the gradient from to its previous step. The key idea is to preserve the cached rollout values in the forward pass, while recomputing each soft-token distribution under the current policy and using its gradient in the backward pass.
Let denote the soft-token distribution and embedding cached from rollout, together with the sampled Gumbel noise . In a traditional implementation, the logits are computed from . However, we reconstruct it from at one-step earlier:
Here, we reuse the same sampled during rollout, so we have . Then, we graft the proxy gradient onto the cached one for calculating the soft-token embedding for the next step.
where denotes stop gradient of a variable. Then, replaces in the standard second pass of the policy update. Note that the cached variable is already detached due to the two-pass implementation, but we explicitly add the sg operation in the formula for clarity.
With this construction, the forward computation exactly preserves the cached roll-out trajectory, as we always have . However, we can now let the gradient flow from to by standard backpropagation.
In terms of efficiency, our grafting technique does not have high latency, as we only graft one earlier step. Therefore, Eqns. (12) and (13) can be computed in parallel for all time steps i. However, this grafting trick has a limitation, as the gradient backpropagates to only one earlier step from to (for each value of i). That said, all steps can be adequately trained because the attention layers backpropagate gradients to all earlier steps. Moreover, we argue that our cross-step gradient is important even for one step. This is because the nearest step receives the strongest signal, as the gradient tends to vanish as the number of steps increases in recurrent computation (Bengio et al., 1994; Pascanu et al., 2013).
Our method provides meaningful signal on how one soft token should affect the next.
Compatibility with RL post-training objectives. Our RL relaxation is independent of the particular policy-optimization rule used for RL post-training. It modifies how the soft-CoT computation is constructed and differentiated, while the RL policy optimization is an outer layer often involving advantage estimation, importance weighting, and policy-update mechanism. Thus, our RL relaxation can be combined with commonly used post-training algorithms such as PPO (Schulman et al., 2017), GRPO (Shao et al., 2024), DAPO (Yu et al., 2025), GSPO (Zheng et al., 2025), and REINFORCE++ (Hu, 2025).
3.2 Sparse RL Relaxation
Prior soft-CoT methods (Zhang et al., 2025; Zheng and Lee, 2025; Zhou et al., 2026) use softmax to map LLM logits into a soft-token distribution, assigning non-zero probability to every vocabulary token. This mixes a long tail of low-probability tokens into soft token embeddings, which introduces unnecessary noise aggregated over a large vocabulary. A common remedy is top-k truncation, which limits the mixture to a fixed number of highest-scoring tokens. However, a fixed k cannot accommodate the varying uncertainty across reasoning steps. As observed by Fu and Luo (2026), token distributions
Fan et al.
ami
| Method | Math Reasoning | Knowledge | Code | W.Avg. | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| GSM8K | MATH | AIME24 | AIME25 | AMC23 | Olym. | GPQA | HEval | MBPP | ||
| Hard CoT Inference | ||||||||||
| Initial | ||||||||||
| Discrete-GRPO | ||||||||||
| Soft-GRPO | ||||||||||
| STHT | ||||||||||
| LEPO | ||||||||||
| SpaRLax (ours) | ||||||||||
| Soft CoT Inference | ||||||||||
| Initial | ||||||||||
| Discrete-GRPO | ||||||||||
| Soft-GRPO | ||||||||||
| STHT | ||||||||||
| LEPO | ||||||||||
| SpaRLax (ours) | ||||||||||
Table 1. Pass@1 performance (%) under hard and soft chain-of-thought (CoT) inference. Results are reported as mean ± standard deviation. Bold and underlined values indicate the best and second-best mean performance within each inference setting, respectively.
can be highly concentrated at some steps but much more diffuse at others. Thus, a large fixed k may retain unnecessary noise, while a small k may discard useful alternatives.
To suppress this long-tail noise while retaining multiple candidates when necessary, we replace the softmax relaxation in Eqn. (9) with -entmax (Peters et al., 2019), yielding an adaptive sparse RL Relaxation. For logits , entmax is defined by
where normalizes the distribution and controls its sparsity, with recovering softmax and corresponding to sparsemax (Martins and Astudillo, 2016). For , entmax assigns exactly zero probability to sufficiently weak tokens, while the number of retained tokens is determined by their relative scores. Accordingly, Sparse RL Relaxation constructs the soft-token distribution as
If only one logit dominates (after Gumbel noise in our scenario), entmax suppresses the remaining tokens, and the soft token approaches a discrete representation. When several candidates have comparable logits, it retains them as a sparse mixture. Thus, the degree of softness adapts to the uncertainty of each reasoning step without requiring a manually specified support size.
The same replacement can be applied when reconstructing during proxy gradient grafting. Since entmax remains differentiable on its active support, gradients can propagate through the sparse soft-token construction in the same manner as in §3.1.
4 Experiments
4.1 Setup
Models and datasets. We use DeepSeek-R1-Distill-Qwen-1.5B as the base LLM for all experiments. We perform RL training on DAPO-MATH-17k (Yu et al., 2025), a collection of mathematical reasoning
https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B
Sparse RL Relaxation for LLM Reasoning
ami
| Method | Math Reasoning | Knowledge GPQA | Code | W.Avg. | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| GSM8K | MATH | AIME24 | AIME25 | AMC23 | Olym. | HEval | MBPP | |||
| Hard CoT Inference | ||||||||||
| Initial | 97.50 | 91.60 | 50.00 | 55.00 | 87.50 | 42.07 | 82.32 | 83.54 | 86.77 | 81.22 |
| Discrete-GRPO (Guo et al., 2025) | 97.50 | 91.80 | 46.67 | 58.33 | 95.00 | 42.96 | 82.32 | 84.76 | 87.16 | 81.65 |
| SofT-GRPO (Zheng and Lee, 2025) | 97.35 | 91.80 | 40.00 | 53.33 | 90.00 | 41.19 | 74.75 | 81.71 | 84.05 | 80.14 |
| STHT (Butt et al., 2026) | 97.12 | 91.60 | 46.67 | 56.67 | 97.50 | 42.37 | 85.35 | 83.54 | 84.82 | 81.28 |
| LEPO (Zhou et al., 2026) | 97.19 | 92.20 | 46.67 | 53.33 | 95.00 | 43.41 | 90.40 | 82.32 | 86.38 | 81.90 |
| SpaRLax (ours) | 97.35 | 91.80 | 50.00 | 58.33 | 95.00 | 44.15 | 90.40 | 84.15 | 85.60 | 82.21 |
| Soft CoT Inference | ||||||||||
| Initial | 97.35 | 93.60 | 46.67 | 60.00 | 95.00 | 46.52 | 96.97 | 83.54 | 85.99 | 83.38 |
| Discrete-GRPO (Guo et al., 2025) | 97.12 | 93.00 | 50.00 | 61.67 | 95.00 | 46.52 | 94.95 | 85.37 | 87.16 | 83.32 |
| SofT-GRPO (Zheng and Lee, 2025) | 97.27 | 93.40 | 56.67 | 58.33 | 92.50 | 45.33 | 96.46 | 85.98 | 87.55 | 83.32 |
| STHT (Butt et al., 2026) | 97.42 | 93.60 | 46.67 | 61.67 | 97.50 | 45.93 | 97.47 | 84.76 | 85.60 | 83.41 |
| LEPO (Zhou et al., 2026) | 97.27 | 91.40 | 30.00 | 48.33 | 92.50 | 43.41 | 92.42 | 82.32 | 87.55 | 81.75 |
| SpaRLax (ours) | 97.35 | 93.00 | 50.00 | 58.33 | 95.00 | 47.11 | 96.46 | 84.15 | 87.94 | 83.56 |
Table 2. Pass@32 performance (%) under hard and soft chain-of-thought (CoT) inference. Bold and underlined values denote the best and second-best results within each inference setting, respectively.
problems, which is selected to reduce potential overlap with the base model's pretraining corpus, allowing the effect of RL fine-tuning to be evaluated cleanly.
We evaluate the trained models on nine benchmarks spanning multiple reasoning domains. For mathematical reasoning, we use GSM8K (Cobbe et al., 2021), MATH (Hendrycks et al., 2021), AIME 2024, AIME 2025, AMC 2023, and OlympiadBench (He et al., 2024). We further evaluate general knowledge and scientific reasoning on GPQA-Diamond (Rein et al., 2024), and code reasoning on HumanEval (Chen et al., 2021) and MBPP (Austin et al., 2021). We compute the weighted average performance based on the number of data points in each test dataset.
Competing approaches. We compare our SpaRLax method against representative discrete- and soft-reasoning baselines. Initial denotes the base model without training. Discrete-GRPO applies standard GRPO (Shao et al., 2024) to discrete-token CoT. For RL with soft reasoning, we compare against Soft-GRPO (Zheng and Lee, 2025), STHT (Butt et al., 2026), and LEPO (Zhou et al., 2026). To ensure a controlled comparison, we implement all methods within the same GRPO framework, meaning that Soft-GRPO, STHT, LEPO, and our method modify only the components required by their respective soft-CoT learning mechanisms. This experimental protocol minimizes performance differences caused by the choice of the underlying RL algorithm and allows the experiments to focus on the effectiveness of the soft-CoT stage. Appendix A.1 provides the pseudo-code of our SpaRLax under the GRPO framework.
Training and evaluation settings. During training, our SpaRLax uses soft tokens for reasoning steps, but for the answer steps, hard tokens are generated by top-p sampling (with ) in conjunction with top-k tokens (), which is standard in previous work (Zheng and Lee, 2025; Zhou et al., 2026). After training, our model supports either soft CoT or hard CoT (simply sampling discrete tokens for training steps). More configurations can be found in Appendix A.2.
For evaluation, we report Pass@1 (single-sample accuracy) and Pass@32 (accuracy of whether at least one correct solution is found among 32 sampled responses). They are commonly used in previous literature. To account for the variance of Pass@1 induced by stochastic sampling, we repeat each evaluation four times from the same checkpoint and report the mean and standard deviation.
4.2 Main Results
Based on the above setups, we conduct post-training from the same initial model, select the checkpoint with the best validation performance, and evaluate each model with both hard-CoT and soft-CoT inference. We report Pass@1 and Pass@32 in Tabs. 1–2.
Pass@1. We observe that soft-CoT inference on the initial model already provides a notable improvement
Fan et al.
ami


Figure 2. Comparing the hidden states when using the soft token embedding and replacing it with top-1 token embedding. Higher KL and lower cosine indicate a stronger utilization of superposition.
over hard-CoT inference, consistent with prior work (Zhang et al., 2025). This advantage persists after post-training, as soft-CoT inference generally achieves higher Pass@1 than hard-CoT inference across different post-training methods. Meanwhile, soft CoT post-training also brings notable gains under hard-CoT inference, consistent with prior observations (Butt et al., 2026).
Our method achieves the strongest Pass@1 under both inference modes, reaching 63.43 with hard CoT and 65.42 with soft CoT. Soft CoT provides a richer training space and more expressive inference representation (Zhu et al., 2025). Our method propagates the gradient of reward across soft tokens, providing a learning signal on how the choice of one soft token affects the next. This enables more effective training for soft reasoning in such a richer training space. As a result, SpaRLax achieves strong improvements under both soft CoT and hard CoT inference.
Pass@32. Pass@32 is much higher than Pass@1 for all methods, which is expected as Pass@32 only requires one successful solution among 32 stochastic rollouts. Soft CoT inference continues to outperform hard CoT inference at Pass@32, consistent with observations in prior work (Butt et al., 2026; Zheng and Lee, 2025). Although the gain of our method is much smaller than those observed for Pass@1, other post-training methods yield even smaller Pass@32 improvements over the initial model. This behavior is in line with prior observations that, under moderate RL budgets, post-training improves sampling efficiency but does not expand large-k solution coverage (Liu et al., 2025; Yue et al., 2025). That being said, our method achieves the largest average improvement over the initial model among all competing methods.
4.3 Superposition Utilization
Rizvi-Martel et al. (2026) show that recent soft reasoning methods often collapse their superposed representation toward a single token, indicating the observed gain may be associated simply with more greedy reasoning. In this subsection, we analyze if our method suffers from the same collapse or actually makes use of the multiple alternatives encoded in soft tokens.
Following Rizvi-Martel et al. (2026), we examine whether the information beyond the top-1 component of the soft token persists in the model's hidden states. For each data sample and each reasoning step i, we keep all preceding soft tokens unchanged and perform two forward passes that differ only at the current position: one uses the original soft token , while the other replaces it with its top-1 token's embedding. This isolates the effect of the non-top-1 components at a single reasoning step. At each Transformer layer, we compare the resulting hidden states using cosine similarity and symmetric KL divergence between their Logit-Lens distributions. We compute these metrics for every inference step of every sample, and then average them across inference steps and data samples for each layer. The resulting layerwise averages are plotted in Fig. 2. Higher KL divergence and lower cosine similarity
We project an intermediate hidden state to the vocabulary space as , where is the output unembedding matrix and denotes the index of transformer layer. Then, we compute the symmetric KL divergence between the distributions obtained from the soft-token and top-1-token forward passes.
Sparse RL Relaxation for LLM Reasoning
ami

Figure 3. Effect of candidate-set size on softmax and entmax training. Softmax becomes increasingly sensitive to larger k, whereas entmax remains robust as k increases.
indicate that the non-top-1 components have a stronger effect on subsequent computation, indicating a better utilization of the soft tokens in superposition.
As shown in Fig. 2, our method exhibits larger KL divergence and lower cosine similarity than Soft-GRPO and discrete-GRPO across decoder layers, suggesting stronger utilization of the information retained in the soft-token mixture.
4.4 Effect of Adaptive Sparsity
Constructing a soft token over a large vocabulary requires aggregating all token embeddings, which introduces a huge memory burden and long-tail noise. Recent methods apply top-k truncation, retaining only the highest-scoring k tokens before constructing the soft-token embedding (Zheng and Lee, 2025; Zhou et al., 2026). While a small k reduces both computational cost and long-tail noise, it also imposes a limit on the number of alternatives retained at every reasoning step. This can restrict the superposition capability of soft tokens when more candidates are useful.
Our intuition is that the degree of softness should be step-dependent. As observed in prior work (Fu and Luo, 2026), token distributions are concentrated at most reasoning steps but highly uncertain at a small fraction of steps. Thus, confident steps may require little superposition, whereas uncertain steps can benefit from retaining multiple plausible alternatives. This motivates adaptive sparsity rather than a fixed top-k truncation.
To examine this hypothesis, we compare softmax and entmax under different candidate-set sizes . For each , we retain the top-k logits and construct the soft token using either softmax or entmax. Softmax assigns non-zero probability to all retained candidates, whereas entmax can further reduce the active support according to their relative scores. Therefore, controls the maximum candidate budget, while entmax determines the effective degree of softness within this budget. We train all variants on GSM8K using the same configuration as the main experiments, except that the maximum response length is set to 2,048 tokens for computational efficiency, and record the mean Pass@1 over 4 rollouts at each validation.
Fig. 3 shows a clear difference between the two schemes. With softmax, training becomes increasingly sensitive to k, and larger candidate sets lead to substantial performance degradation. In contrast, entmax improves the performance considerably as k increases, showing the RL training benefits from a larger candidate pool without forcing all candidates to participate in the soft token. These results support our hypothesis that soft reasoning benefits from adaptive rather than fixed sparsity: a larger candidate set provides additional alternatives when needed, while entmax suppresses unnecessary components at confident reasoning steps.
Fan et al.
ami
5 Related Work
RL reasoning for LLMs. RL has been shown to be effective for improving LLM reasoning with Chain-of-Thought (Hu, 2025; Shao et al., 2024; Yu et al., 2025; Zheng et al., 2025). However, exploration through discrete token sampling is inefficient over the large space of possible reasoning trajectories (Liao et al., 2025). This exploration bottleneck can be further exacerbated as RL training suppresses valuable low-probability alternatives (Huang et al., 2026), which limits the diversity of reasoning trajectories explored by the model (Wu et al., 2026a; Zhang et al., 2025).
Soft reasoning. Recent studies perform reasoning in a continuous representation space so that a single reasoning step can preserve information from multiple reasoning paths (Hao et al., 2025; Shen et al., 2025; Wu et al., 2025; Xu et al., 2025a). Theoretical analyses show that continuous reasoning representation can encode multiple reasoning paths in superposition and track multiple search frontiers in parallel, providing greater representational expressivity and more efficient exploration than following a single discrete trajectory (Gozeten et al., 2026; Zhu et al., 2025).
Building on this principle, continuous reasoning has been realized in various ways, such as through internal hidden representations (Hao et al., 2025; Shen et al., 2025; Wu et al., 2025; Xu et al., 2025a) and through mixtures of token embeddings (Tang et al., 2026; Wang et al., 2025; Zhang et al., 2025). We focus on the latter formulation, which constructs each soft token as a mixture of vocabulary-token embeddings, preserving multiple token-level alternatives while remaining anchored to the pretrained token embedding space. Subsequent work extends the simple weighted-average soft-token construction through diversified test-time reasoning (Xu et al., 2025b), uncertainty-aware activation (Fu and Luo, 2026; Xu et al., 2026), and stochastic perturbations that mitigate soft-token collapse (Wu et al., 2026b). These works indicate the potential of soft-token-based continuous reasoning for improving the expressiveness, efficiency, and exploration capability of LLM inference.
RL training with soft CoT. While soft CoT improves reasoning at inference time, pretrained LLMs are optimized over discrete token sequences and are never trained to exploit continuous mixtures of token alternatives (Rizvi-Martel et al., 2026), which limits the potential of soft reasoning. This motivates post-training methods for soft reasoning. Recent approaches introduce stochastic soft tokens through Gaussian perturbations or Gumbel-based sampling and optimize them with RL objectives (Butt et al., 2026; Zheng and Lee, 2025; Zhou et al., 2026). However, such optimization does not propagate reward credit through the differentiable dependence between consecutive soft tokens. SpaRLax fills this gap by reparameterizing soft-token generation and propagating pathwise gradients through the soft-token sequence, allowing an earlier soft-token distribution to receive credit according to how it affects subsequent reasoning and the final answer.
6 Conclusion
We propose Sparse RL Relaxation for post-training soft reasoning with differentiable cross-step gradient propagation. Our method further uses entmax-based adaptive sparsity to retain useful alternatives while suppressing low-probability noise. Experiments show consistent gains under both soft- and hard-CoT inference, indicating that improvements learned in the relaxed reasoning space can transfer effectively to discrete decoding. Overall, Sparse RL Relaxation provides an effective framework for learning soft reasoning while remaining compatible with standard discrete inference.
Acknowledgments
This research was supported in part by the Natural Sciences and Engineering Research Council of Canada (NSERC), the Amii Fellow Program, the Canada CIFAR AI Chair Program, and the Digital Research Alliance of Canada. This work was also supported in part by the project DECOLLAGE (ERC-2022-CoG 101088763) and by FCT/MECI through national funds and when applicable co-funded EU funds under UID/50008: Instituto de Telecomunicações.
Sparse RL Relaxation for LLM Reasoning
ami
References
Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc V. Le, and Charles Sutton. Program synthesis with large language models. arXiv preprint arXiv:2108.07732, 2021.
Yoshua Bengio, Patrice Simard, and Paolo Frasconi. Learning long-term dependencies with gradient descent is difficult. IEEE Transactions on Neural Networks, pages 157–166, 1994.
Yoshua Bengio, Nicholas Léonard, and Aaron Courville. Estimating or propagating gradients through stochastic neurons for conditional computation. arXiv preprint arXiv:1308.3432, 2013.
Natasha Butt, Ariel Kwiatkowski, Ismail Labiad, Julia Kempe, and Yann Ollivier. Soft tokens, hard truths. In The Fourteenth International Conference on Learning Representations, 2026.
Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021.
Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.
Gonçalo M. Correia, Vlad Niculae, and André F. T. Martins. Adaptively sparse transformers. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, pages 2174–2184, 2019.
Renyu Fu and Guibo Luo. SeLaR: Selective latent reasoning in large language models. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 7073–7087, 2026.
Wei Fu, Jiaxuan Gao, Xujie Shen, Chen Zhu, Zhiyu Mei, Chuyi He, Shusheng Xu, Guo Wei, Jun Mei, Jiashu Wang, Tongkai Yang, Binhang Yuan, and Yi Wu. AReaL: A Large-Scale Asynchronous Reinforcement Learning System for Language Reasoning. In Advances in Neural Information Processing Systems, 2025.
Nuno Gonçalves, Marcos V Treviso, and Andre Martins. AdaSplash: Adaptive sparse flash attention. In Proceedings of the 42nd International Conference on Machine Learning, pages 19878–19896, 2025.
Kartik Goyal, Chris Dyer, and Taylor Berg-Kirkpatrick. Differentiable scheduled sampling for credit assignment. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 366–371, 2017.
Alperen Gozeten, Muhammed Ildiz, Xuechen Zhang, Hrayr Harutyunyan, Ankit Singh Rawat, and Samet Oymak. Continuous chain of thought enables parallel exploration and reasoning. In International Conference on Learning Representations, pages 82881–82914, 2026.
Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, Xiaokang Zhang, Xingkai Yu, Yu Wu, Z. F. Wu, Zhibin Gou, Zhihong Shao, Zhuoshu Li, Ziyi Gao, Aixin Liu, Bing Xue, Bingxuan Wang, Bochao Wu, Bei Feng, Chengda Lu, Chenggang Zhao, Chengqi Deng, Chong Ruan, Damai Dai, Deli Chen, Dongjie Ji, Erhang Li, Fangyun Lin, Fucong Dai, Fuli Luo, Guangbo Hao, Guanting Chen, Guowei Li, H. Zhang, Hanwei Xu, Honghui Ding, Huazuo Gao, Hui Qu, Hui Li, Jianzhong Guo, Jiashi Li, Jingchang Chen, Jingyang Yuan, Jinhao Tu, Junjie Qiu, Junlong Li, J. L. Cai, Jiaqi Ni, Jian Liang, Jin Chen, Kai Dong, Kai Hu, Kaichao You, Kaige Gao, Kang Guan, Kexin Huang, Kuai Yu, Lean Wang, Lecong Zhang, Liang Zhao, Litong Wang, Liyue Zhang, Lei Xu, Leyi Xia, Mingchuan Zhang, Minghua Zhang, Minghui Tang, Mingxu Zhou, Meng Li, Miaojun Wang, Mingming Li, Ning Tian, Panpan Huang, Peng Zhang, Qiancheng Wang, Qinyu Chen, Qiushi Du, Ruiqi Ge, Ruisong Zhang, Ruizhe Pan, Runji Wang, R. J. Chen, R. L. Jin, Ruyi Chen, Shanghao Lu, Shangyan Zhou, Shanhuang Chen, Shengfeng Ye, Shiyu Wang, Shuiping Yu, Shunfeng Zhou, Shuting Pan, S. S. Li, Shuang Zhou, Shaoqing Wu, Tao Yun, Tian Pei, Tianyu Sun, T. Wang, Wangding
Fan et al.
ami
Zeng, Wen Liu, Wenfeng Liang, Wenjun Gao, Wenqin Yu, Wentao Zhang, W. L. Xiao, Wei An, Xiaodong Liu, Xiaohan Wang, Xiaokang Chen, Xiaotao Nie, Xin Cheng, Xin Liu, Xin Xie, Xingchao Liu, Xinyu Yang, Xinyuan Li, Xuecheng Su, Xuheng Lin, X. Q. Li, Xiangyue Jin, Xiaojin Shen, Xiaosha Chen, Xiaowen Sun, Xiaoxiang Wang, Xinnan Song, Xinyi Zhou, Xianzu Wang, Xinxia Shan, Y. K. Li, Y. Q. Wang, Y. X. Wei, Yang Zhang, Yanhong Xu, Yao Li, Yao Zhao, Yaofeng Sun, Yaohui Wang, Yi Yu, Yichao Zhang, Yifan Shi, Yiliang Xiong, Ying He, Yishi Piao, Yisong Wang, Yixuan Tan, Yiyang Ma, Yiyuan Liu, Yongqiang Guo, Yuan Ou, Yuduan Wang, Yue Gong, Yuheng Zou, Yujia He, Yunfan Xiong, Yuxiang Luo, Yuxiang You, Yuxuan Liu, Yuyang Zhou, Y. X. Zhu, Yanping Huang, Yaohui Li, Yi Zheng, Yuchen Zhu, Yunxian Ma, Ying Tang, Yukun Zha, Yuting Yan, Z. Z. Ren, Zehui Ren, Zhangli Sha, Zhe Fu, Zhean Xu, Zhenda Xie, Zhengyan Zhang, Zhewen Hao, Zhicheng Ma, Zhigang Yan, Zhiyu Wu, Zihui Gu, Zijia Zhu, Zijun Liu, Zilin Li, Ziwei Xie, Ziyang Song, Zizheng Pan, Zhen Huang, Zhipeng Xu, Zhongyu Zhang, and Zhen Zhang. DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature, 645(8081):633–638, 2025.
Shibo Hao, Sainbayar Sukhbaatar, DiJia Su, Xian Li, Zhiting Hu, Jason E Weston, and Yuandong Tian. Training large language models to reason in a continuous latent space. In Second Conference on Language Modeling, 2025.
Chaoqun He, Renjie Luo, Yuzhuo Bai, Shengding Hu, Zhen Thai, Junhao Shen, Jinyi Hu, Xu Han, Yujie Huang, Yuxiang Zhang, Jie Liu, Lei Qi, Zhiyuan Liu, and Maosong Sun. OlympiadBench: A challenging benchmark for promoting AGI with Olympiad-level bilingual multimodal scientific problems. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3828–3850, 2024.
Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the MATH dataset. In Advances in Neural Information Processing Systems, 2021.
Jian Hu. REINFORCE++: A simple and efficient approach for aligning large language models. arXiv preprint arXiv:2501.03262, 2025.
Guanhua Huang, Tingqiang Xu, Mingze Wang, Qi Yi, Xue Gong, Siheng Li, Ruibin Xiong, Kejiao Li, Yuhao Jiang, and Bo Zhou. Low-probability tokens sustain exploration in reinforcement learning with verifiable reward. In Findings of the Association for Computational Linguistics: ACL 2026, pages 24158–24188, 2026.
Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with Gumbel-softmax. In International Conference on Learning Representations, 2017.
Mengqi Liao, Xiangyu Xi, Ruinian Chen, Jia Leng, Yangen Hu, Ke Zeng, Shuai Liu, and Huaiyu Wan. Enhancing efficiency and exploration in reinforcement learning for LLMs. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 1451–1463, 2025.
Mingjie Liu, Shizhe Diao, Ximing Lu, Jian Hu, Xin Dong, Yejin Choi, Jan Kautz, and Yi Dong. Prorl: Prolonged reinforcement learning expands reasoning boundaries in large language models. In Advances in Neural Information Processing Systems, 2025.
Chris J. Maddison, Daniel Tarlow, and Tom Minka. A* sampling. In Advances in Neural Information Processing Systems, 2014.
Chris J. Maddison, Andriy Mnih, and Yee Whye Teh. The concrete distribution: A continuous relaxation of discrete random variables. In International Conference on Learning Representations, 2017.
André F. T. Martins and Ramón Fernandez Astudillo. From softmax to sparsemax: A sparse model of attention and multi-label classification. In International Conference on Machine Learning, pages 1614–1623, 2016.
Razvan Pascanu, Tomas Mikolov, and Yoshua Bengio. On the difficulty of training recurrent neural networks. In Proceedings of the 30th International Conference on Machine Learning, pages 1310–1318, 2013.
Ben Peters, Vlad Niculae, and André F. T. Martins. Sparse sequence-to-sequence models. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 1504–1519, 2019.
Rajkumar Ramamurthy, Prithviraj Ammanabrolu, Kianté Brantley, Jack Hessel, Rafet Sifa, Christian Bauckhage, Hannaneh Hajishirzi, and Yejin Choi. Is reinforcement learning (not) for natural language processing: Benchmarks, baselines, and building blocks for natural language policy optimization. In International Conference on Learning Representations, 2023.
David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanzhe Pang, Julien Dirani, Julian Michael, and Samuel R. Bowman. GPQA: A graduate-level google-proof Q&A benchmark. In First Conference on Language Modeling, 2024.
Sparse RL Relaxation for LLM Reasoning
ami
Michael Rizvi-Martel, Guillaume Rabusseau, and Marius Mosbach. The illusion of superposition? A principled analysis of latent thinking in language models. In Third Conference on Language Modeling, 2026.
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.
Zhenyi Shen, Hanqi Yan, Linhai Zhang, Zhanghao Hu, Yali Du, and Yulan He. CODI: Compressing chain-of-thought into continuous space via self-distillation. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 677–693, 2025.
Guangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu, Wang Zhang, Ru Zhang, Yanghua Peng, Haibin Lin, and Chuan Wu. HybridFlow: A flexible and efficient RLHF framework. In Proceedings of the Twentieth European Conference on Computer Systems, pages 1279–1297, 2025.
Richard S. Sutton, David A. McAllester, Satinder P. Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. In Advances in Neural Information Processing Systems, pages 1057–1063, 1999.
Yao Tang, Li Dong, Yaru Hao, Qingxiu Dong, Furu Wei, and Jiatao Gu. Multiplex thinking: Reasoning via token-wise branch-and-merge. arXiv preprint arXiv:2601.08808, 2026.
Maxat Tezekbayev, Vassilina Nikoulina, Matthias Gallé, and Zhenisbek Assylbekov. Speeding up entmax. In Findings of the Association for Computational Linguistics: NAACL 2022, pages 1142–1158, 2022.
Kang Wang, Xiangyu Duan, and Tianyi Du. Improving latent reasoning in LLMs via soft concept mixing. arXiv preprint arXiv:2511.16885, 2025.
Zhuo Wang, Wei Zhang, Ning Liu, and Jianyong Wang. Scalable rule-based representation learning for interpretable classification. In Advances in Neural Information Processing Systems, pages 30479–30491, 2021.
Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed H. Chi, Quoc V. Le, and Denny Zhou. Chain-of-thought prompting elicits reasoning in large language models. In Advances in Neural Information Processing Systems, pages 24824–24837, 2022.
Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, pages 229–256, 1992.
Haoyi Wu, Zhihao Teng, and Kewei Tu. Parallel continuous chain-of-thought with jacobi iteration. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 914–926, 2025.
Junda Wu, Yuxin Xiong, Xintong Li, Sheldon Yu, Zhengmian Hu, Tong Yu, Rui Wang, Xiang Chen, Jingbo Shang, and Julian McAuley. CTRLS: Chain-of-thought reasoning via latent state transition. In Proceedings of the 29th International Conference on Artificial Intelligence and Statistics, pages 2728–2736, 2026a.
Junhong Wu, Jinliang Lu, Zixuan Ren, Gangqiang Hu, Zhi Wu, Dai Dai, and Hua Wu. LLMs are single-threaded reasoners: Demystifying the working mechanism of soft thinking. In The Fourteenth International Conference on Learning Representations, 2026b.
Xin Xu, Tong Yu, Xiang Chen, Haoliang Wang, Julian McAuley, and Saayan Mitra. ThinkRouter: Efficient reasoning via routing thinking between latent and discrete spaces. arXiv preprint arXiv:2602.11683, 2026.
Yige Xu, Xu Guo, Zhiwei Zeng, and Chunyan Miao. SoftCoT: Soft chain-of-thought for efficient reasoning with LLMs. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 23336–23351, 2025a.
Yige Xu, Xu Guo, Zhiwei Zeng, and Chunyan Miao. SoftCoT++: Test-time scaling with soft chain-of-thought reasoning. arXiv preprint arXiv:2505.11484, 2025b.
Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yue Yu, Weinan Dai, Tiantian Fan, Gaohong Liu, Juncai Liu, Lingjun Liu, Xin Liu, Haibin Lin, Zhiqi Lin, Bole Ma, Guangming Sheng, Yuxuan Tong, Chi Zhang, Mofan Zhang, Ru Zhang, Wang Zhang, Hang Zhu, Jinhua Zhu, Jiaze Chen, Jiangjie Chen, Chengyi Wang, Hongli Yu, Yuxuan Song, Xiangpeng Wei, Hao Zhou, Jingjing Liu, Wei-Ying Ma, Ya-Qin Zhang, Lin Yan,
Fan et al.
ami
Yonghui Wu, and Mingxuan Wang. DAPO: An open-source LLM reinforcement learning system at scale. In Advances in Neural Information Processing Systems, 2025.
Yang Yue, Zhiqi Chen, Rui Lu, Andrew Zhao, Zhaokai Wang, Yang Yue, Shiji Song, and Gao Huang. Does reinforcement learning really incentivize reasoning capacity in LLMs beyond the base model? In Advances in Neural Information Processing Systems, 2025.
Zhen Zhang, Xuehai He, Weixiang Yan, Ao Shen, Chenyang Zhao, and Xin Wang. Soft thinking: Unlocking the reasoning potential of LLMs in continuous concept space. In Advances in Neural Information Processing Systems, 2025.
Chujie Zheng, Shixuan Liu, Mingze Li, Xiong-Hui Chen, Bowen Yu, Chang Gao, Kai Dang, Yuqiong Liu, Rui Men, An Yang, Jingren Zhou, and Junyang Lin. Group sequence policy optimization. arXiv preprint arXiv:2507.18071, 2025.
Zhi Zheng and Wee Sun Lee. Soft-GRPO: Surpassing discrete-token LLM reinforcement learning via Gumbel-reparameterized soft-thinking policy optimization. arXiv preprint arXiv:2511.06411, 2025.
Yuyan Zhou, Jiarui Yu, Hande Dong, Zhezheng Hao, Hong Wang, Jianqing Zhang, and Qiang Lin. LEPO: Latent reasoning policy optimization for large language models. In Findings of the Association for Computational Linguistics: ACL 2026, pages 14416–14427, 2026.
Hanlin Zhu, Shibo Hao, Zhiting Hu, Jiantao Jiao, Stuart J. Russell, and Yuandong Tian. Reasoning by superposition: A theoretical perspective on chain of continuous thought. In Advances in Neural Information Processing Systems, 2025.
Sparse RL Relaxation for LLM Reasoning
ami
Appendix
A Implementation Details
A.1 Sparse RL Relaxation with GRPO
We provide two implementations of Sparse RL Relaxation on the GRPO framework. The first implements the full relaxation by differentiating through the complete soft-CoT trajectory, while the second uses Proxy Gradient Grafting for efficient training with decoupled rollout and optimization. Both implementations use the Gumbel–entmax soft-token construction in Eqn. (15) and differ only in how gradients through the soft-token sequence are computed.
For a rollout group with rewards , the group-relative advantage is
Given token-level importance ratios , define the shared clipped GRPO loss
We instantiate Sparse RL Relaxation on a common GRPO backbone. The two implementations below differ only in the construction of the current-policy soft-token gradient and the resulting importance ratio.
Sparse RL Relaxation with GRPO Algorithm 1 differentiates through the complete current-policy soft-CoT trajectory.
Efficient Sparse RL Relaxation with Proxy Gradient Grafting Algorithm 2 replaces the full recursive gradient with Proxy Gradient Grafting.
For clarity, Algorithms 1 and 2 present the full-vocabulary formulation and omit optimizer-specific and shared GRPO regularization details. In practice, this may result in heavy memory burden. Thus, recent methods (Butt et al., 2026; Zheng and Lee, 2025; Zhou et al., 2026) typically select only top- candidate logits for soft token construction. More details of hyperparameter of the implementation can be found in the next subsection.
A.2 Implementation Configuration and Hyperparameters
To ensure a controlled comparison, we use a unified training configuration across all methods and keep all shared components fixed whenever applicable. Our setup closely follows Soft-GRPO (Zheng and Lee, 2025), including the GRPO backbone, rollout configuration, optimization settings, and training budget. Competing methods differ only in hyperparameters required by their respective soft-CoT mechanisms. Full configurations are reported in Table 3.
For SpaRLax, we set the entmax parameter to . This is a commonly used choice in prior entmax-related papers (Correia et al., 2019; Peters et al., 2019; Tezekbayev et al., 2022), providing an intermediate level of sparsity between softmax () and sparsemax (). Importantly, also admits a specialized exact algorithm, making it particularly convenient to implement and with lower latency compared with general values of , which typically require iterative computation (Peters et al., 2019; Tezekbayev et al., 2022).
Fan et al.
ami
In addition, we use a candidate-set size of for SpaRLax for lower memory usage; future work can consider implementations with fused kernels (Gonçalves et al., 2025). Unlike softmax, entmax can adaptively reduce its effective support by assigning exactly zero probability to unnecessary candidates. This allows us to expose the model to a larger candidate pool without forcing all retained candidates to participate in the soft-token mixture. As shown in §4.4, softmax becomes increasingly sensitive to large (which may be the reason why other methods (Butt et al., 2026; Zheng and Lee, 2025) select a modest in their work), whereas entmax remains substantially more robust and can benefit from a larger candidate budget. We therefore use for SpaRLax while retaining the smaller candidate sets used by the softmax-based baselines.
Apart from these method-specific choices, all shared training configurations are held fixed across methods.
A.3 Stopping Criterion for Soft Reasoning
We follow the stopping criterion used in prior soft-thinking methods (Zhang et al., 2025; Zheng and Lee, 2025) to determine when to transition from soft reasoning back to standard discrete decoding. At each reasoning step i, after constructing the soft-token distribution , we identify its most probable vocabulary token as
Soft reasoning continues while . Once the end-of-thinking token becomes the most probable token, i.e., , we terminate the soft reasoning phase and switch to standard autoregressive decoding for the final answer. All subsequent answer tokens are discrete and sampled from the model's vocabulary in the usual manner.
This stopping rule is applied during both rollout and inference and does not introduce an additional learned stopping module or a method-specific stopping criterion.
B Limitations and Future Work
Superposition utilization. Our analysis in §4.3 provides evidence that the non-top-1 components of a soft token have a measurable effect on downstream model computation, as our SpaRLax exhibits a stronger effect than the competing methods. This intervention provides an indirect measure of superposition utilization, as it does not fully show that multiple trajectories are truly used during exploration. In future work, we are interested in exploring how such superposition can help search tasks, such as the Traveling Salesperson Problem.
Scale and generalization. Although we evaluate the trained models across nine benchmarks spanning mathematical, knowledge-intensive, and code reasoning, our post-training experiments are conducted with one base model and one RL training corpus. However, we cannot afford more experiments using assorted LLMs and corpora. Nevertheless, we have carefully designed the experiments by isolating the effect of the proposed learning mechanism from the underlying model, training data, and RL algorithm, as the configurations are fixed across all competing methods. Moreover, the consistent improvements observed across multiple reasoning domains suggest that the benefit is not confined to a specific setup. We leave the scaling of this study to large technology companies.
Sparse RL Relaxation for LLM Reasoning
ami
Algorithm 1 Full Sparse RL Relaxation with GRPO
Require: prompt batch , policy , group size , , , learning rate
1:
2:
3: for do
4: for do
5: for do
6:
7:
8:
9:
10: end for
11:
12:
13:
14: end for
15:
16: for do
17: for do
18:
19:
20:
21: end for
22:
23:
24: end for
25:
26: end for
27:
Fan et al.
ami
Algorithm 2 Efficient Sparse RL Relaxation with Proxy Gradient Grafting
Require: prompt batch , policy , group size , , , learning rate
1:
2:
3: for do
4: for do
5: for do
6:
7:
8:
9:
10: end for
11:
12:
13:
14: end for
15:
16: for do
17: for do
18:
19:
20:
21:
22: end for
23:
24:
25: end for
26:
27: end for
28:
Sparse RL Relaxation for LLM Reasoning
ami
| Parameter | Discrete GRPO (Guo et al., 2025) | Soft-GRPO (Zheng and Lee, 2025) | SpaRLax (ours) | STHT (Butt et al., 2026) | LEPO (Zhou et al., 2026) |
|---|---|---|---|---|---|
| Batch configuration | |||||
| Fine-tuning | Full-parameter fine-tuning | ||||
| Filter overlong prompts | Enabled | Enabled | Enabled | Enabled | Enabled |
| Prompt batch size | 32 | 32 | 32 | 32 | 16 |
| Responses per prompt (group size) | 8 | 8 | 8 | 8 | 8 |
| Global rollout batch (trajectories) | 256 | 256 | 256 | 256 | 128 |
| Effective PPO minibatch (trajectories) | 256 | 256 | 256 | 256 | 128 |
| Microbatch per GPU (trajectories) | 1 | 1 | 1 | 1 | 1 |
| Gradient accumulation steps | 64 | 64 | 64 | 64 | 64 |
| Optimization and regularization | |||||
| Optimizer | AdamW | AdamW | AdamW | AdamW | AdamW |
| Learning rate | |||||
| Adam () | (0.9, 0.999) | ||||
| Weight decay | 0.01 | 0.01 | 0.01 | 0.01 | 0.01 |
| LR schedule / warmup steps | Constant / 0 | ||||
| PPO epochs per rollout | 1 | 1 | 1 | 1 | 2 |
| PPO clipping interval | [0.8, 1.2] | ||||
| Dual-clip coefficient | 3.0 | 3.0 | 3.0 | 3.0 | 3.0 |
| Gradient-norm clipping | 1.0 | 1.0 | 1.0 | 1.0 | 0.5 |
| Group-standard-deviation normalization | Enabled | Enabled | Enabled | Enabled | Enabled |
| Entropy bonus coefficient | 0 | 0 | 0 | 0 | 0 |
| Actor KL coefficient | |||||
| LEPO KL estimator | - | - | - | - | 1 |
| Max training steps (outer iterations) | 3,000 | 3,000 | 3,000 | 3,000 | 3,000 |
| Training-time generation and method configuration | |||||
| Soft thinking | Disabled | Enabled | Enabled | Enabled | Enabled |
| Soft-token transform | - | Softmax | Entmax | Softmax | Softmax |
| Soft candidate count | - | 5 | 32 | 5 | 30 |
| Entmax | - | - | 1.5 | - | - |
| Relaxation temperature | - | 0.1 | 1.0 | 1.0 | 0.5 |
| Gumbel-noise multiplier | - | 1.0 | 1.0 | 1.0 | 1.0 |
| Categorical sampling temperature | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 |
| Categorical top-k / top-p | 5 / 0.95 | 5 / 0.95 | 5 / 0.95 | 5 / 0.95 | 5 / 0.95 |
| Direct PG positions | All | All | answer phase | All | answer phase |
| LEPO maximum latent steps | - | - | - | - | 64 |
| STHT density scale | - | - | - | 0.33 RMS() | - |
| STHT log-score range | - | - | - | [-50, 0] | - |
| Precision and parallelism | |||||
| Forward precision | BF16 | BF16 | BF16 | BF16 | BF16 |
| GPUs | 4 NVIDIA H100 GPUs | ||||
| Actor sharding | FSDP1 | FSDP1 | FSDP1 | FSDP1 | FSDP1 |
| Sequence / rollout tensor parallel size | 1 / 1 | 1 / 1 | 1 / 1 | 1 / 1 | 1 / 1 |
| Gradient checkpointing | Enabled | Enabled | Enabled | Enabled | Enabled |
| Parameter / optimizer offload | Enabled | Enabled | Enabled | Enabled | Enabled |
Table 3. Training hyperparameters. The first four columns retain the supplied GSM8K settings; LEPO reports launcher defaults, which use DeepScaleR training data. Batch sizes distinguish prompt groups from generated trajectories.