Abstract
SoftCoT++ is a novel framework that enhances Large Language Model (LLM) reasoning by shifting the process into a continuous latent space. By generating diverse "soft thoughts" at inference time through specialized initialization tokens and contrastive learning, SoftCoT++ enables effective test-time scaling. Our results across mathematical, commonsense, and symbolic reasoning tasks demonstrate that scaling in the latent space provides significant performance gains over traditional discrete-token methods.
Introduction
Current reasoning techniques like Chain-of-Thought (CoT) primarily operate in the discrete token space, where intermediate steps are generated as literal text. This approach often suffers from information loss and deterministic latents in existing continuous reasoning models, which limits the effectiveness of sampling-based techniques like Self-Consistency (SC). SoftCoT++ addresses these limitations by enabling the generation of diverse latent reasoning paths, allowing the model to explore a wider variety of solutions for a single query.
Methodology
SoftCoT++ utilizes an "assistant" model to generate latent vectors (soft thoughts) that serve as input for a larger LLM. The framework introduces two primary innovations to enable effective scaling:
- Diverse Input Sequences: Instead of a single generic placeholder, SoftCoT++ uses multiple specialized initial tokens (
[INI]1,[INI]2, etc.) that act as unique seeds to prompt the assistant model to generate distinct latent reasoning trajectories. - Contrastive Learning: A contrastive loss is applied during training to ensure that different soft thought representations are distinct in the latent space, encouraging the model to explore varied reasoning paths.
As shown in Figure 1, the process is divided into a Thinking Stage, where multiple latent vectors are generated by the assistant and projected for the LLM, and a Reasoning Stage, where the LLM decodes these vectors into final text answers.
Experimental Setup
The framework was evaluated using two state-of-the-art 8B-parameter models (LLaMA-3.1-8B-Instruct and Qwen3-8B) across five diverse benchmarks:
- Mathematical Reasoning: GSM8K, ASDiv-Aug, and AQuA.
- Commonsense Reasoning: StrategyQA.
- Symbolic Reasoning: Date Understanding (DU) from the BIG-bench suite.
Key Results
SoftCoT++ consistently outperforms standard Zero-Shot CoT and previous continuous reasoning models like Coconut.
Key findings from the experimental evaluation include:
- Superior Accuracy: On the GSM8K math benchmark, SoftCoT++ achieved 90.99% accuracy with LLaMA-3.1-8B, surpassing standard Self-Consistency (90.36%).
- Orthogonal Scaling: A critical insight is that latent-space scaling and token-space scaling are complementary. By combining 10 soft thoughts with 10 text samples each (100 total chains), the model reached peak accuracies of 92.71% on LLaMA and 94.12% on Qwen3.
- Stability: The method exhibits lower standard deviation across runs, suggesting that latent-space scaling provides a more stable and reliable path to the correct answer than purely stochastic token sampling.
Discussion and Conclusion
SoftCoT++ demonstrates that scaling the "thinking" stage in latent space is a potent alternative to traditional text-based scaling. The results suggest that diversity in the latent neighborhood is more effective than simple random noise. While currently tested on 8B-parameter models with a trained projection module, future work could explore end-to-end training and scaling to larger model architectures (70B+) to further unlock the potential of continuous-space reasoning.
Summary updated