Manuscript Offprint

arXiv:2610.27220

Sparse RL Relaxation for LLM Reasoning

Jiabin Fan, Matthias Lindemann, Zita Marinho, André FT Martins, Lili Mou

Jiabin Fan1,2^{1,2}, Matthias Lindemann4^{4}, Zita Marinho5^{5}, André FT Martins4,5,6^{4,5,6}, Lili Mou1,2,3^{1,2,3}

1^{1}University of Alberta, 2^{2}Alberta Machine Intelligence Institute (Amii), 3^{3}Canada CIFAR AI Chair, 4^{4}Instituto de Telecomunicações, 5^{5}Instituto Superior Técnico, Universidade de Lisboa, 6^{6}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

Figure

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 1^{1} but soft reasoning considers the

1^{1}In the standard token-level MDP for autoregressive LLMs, the policy is defined on vocabulary tokens ai∈Va_i \in V as πθ(ai∣si)\pi_{\theta}(a_i | s_i) for some state sis_i. A soft token e~i∉V\tilde{e}_i \notin V 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 ( §4.2§4.2). We also observe that our approach utilizes the superposition encoded by soft tokens more than existing methods ( §4.3§4.3). 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 ( §4.4§4.4).

References (52)