Soft Reasoning: Navigating Solution Spaces in Large Language Models through Controlled Embedding Exploration

Qinglin Zhu, Runcong Zhao, Hanqi Yan, Yulan He, Yudong Chen, Lin Gui

TL;DR

Soft Reasoning is a novel, training-free framework that improves Large Language Model (LLM) reasoning by searching through the model's internal embedding space rather than just its text output. By applying Bayesian Optimization to perturb the embedding of the very first generated token, the method systematically identifies high-quality reasoning paths, outperforming traditional search methods like Tree-of-Thoughts while using significantly less computation.

What Problem Does This Paper Address?

LLMs often fail at complex reasoning because their default "greedy" decoding (picking the most likely next word) is too narrow, while "diverse" decoding (like increasing temperature) introduces random noise that leads to incoherent answers.

Existing solutions like Chain-of-Thought (CoT) or Reasoning-as-Planning (RAP) attempt to fix this by sampling multiple text paths or using heuristic tree searches. However, these methods are often inefficient, highly sensitive to prompt variations, and treat the model's internal logic as a black box. The authors identify a "wild-goose chase" in current search methods: they rely on surface-level text variations rather than systematic optimization of the model's internal representations.

Comparison of mainstream decoding approaches versus the proposed Soft Reasoning framework.

Methods

The authors propose Soft Reasoning, which shifts the search from the discrete space of words to the continuous space of embeddings.

The Soft Reasoning architecture, illustrating embedding perturbation, diverse output generation, and Bayesian Optimization.
  1. Embedding Perturbation: Instead of changing the prompt, the method injects a small amount of Gaussian noise into the embedding of the first token of the answer.
  2. Deterministic Generation: After this initial "nudge" in the embedding space, the model generates the rest of the answer using standard greedy decoding. This ensures that every unique perturbation vector corresponds to exactly one unique reasoning path.
  3. Bayesian Optimization (BO): To find the best "nudge," the authors use BO (specifically the Expected Improvement acquisition function). They treat the LLM as a black-box verifier that provides a reward based on:
  4. Correctness: Does the verifier think the answer is right?
  5. Coherence: Is the generated text fluent (measured by log probabilities)?
  6. Dimension Reduction: Since LLM embeddings are high-dimensional (e.g., 4096 dimensions), optimizing them directly is hard. The authors use random projections to map the search into a much smaller space (around 50 dimensions), making the optimization computationally feasible.

Datasets

The framework was evaluated across several challenging reasoning benchmarks:

  • Mathematical Reasoning: GSM8K, GSM-Hard, and SVAMP.
  • Commonsense Reasoning: StrategyQA.
  • Advanced Math: AIME-2024 (used specifically for the Qwen2-70B model).

The authors tested these on a variety of open-source models, including LLaMA-3.1-8B, Mistral-7B, and Qwen2 (7B and 70B).

Key Insights and Ideas

  • The First Token is a Steering Wheel: One of the most striking findings is that optimizing only the first token's embedding is sufficient to drastically change the trajectory of the entire reasoning chain. Naively extending optimization to multiple tokens actually led to overfitting and degraded performance.
  • Triggering Diverse Pathways: By analyzing neuron activations (MLP layers), the authors found that Soft Reasoning increases the activation rate of "critical neurons" by 3–4% compared to standard sampling. This suggests the perturbations are successfully triggering latent reasoning capabilities that are usually bypassed.
  • Verification via Generation: The authors found that asking a model to re-generate a solution and compare it to a candidate (a strategy they call "Multi-Generate") is a much more accurate verification signal than simply asking the model to judge if an answer is "Correct" or "Incorrect."
  • Efficiency over Brute Force: Soft Reasoning achieves better results than RAP while using only 6.19% of the input tokens and 14.3% of the inference time.

Key Results

  • Accuracy Gains: On GSM8K with LLaMA-3.1-8B, Soft Reasoning improved zero-shot accuracy from 53.0% (CoT) to 79.4%.
  • Consistency: It consistently outperformed Self-Consistency (SC) decoding across all models and datasets without requiring the extensive hyperparameter tuning (like temperature searching) that SC usually needs.
  • Scalability: The method scales well to larger models; on the difficult AIME-2024 benchmark, it nearly doubled the performance of the base Qwen2-70B model in a few-shot setting.

Limitations and Future Work

  • Verifier Dependency: The method's success relies on the quality of the reward signal. If the verifier (even if it's the same model) is consistently wrong about what a "good" answer looks like, the optimization will fail.
  • Interpretability: While the authors show that the perturbations work by activating different neurons, they acknowledge that exactly how these specific embedding shifts translate to specific logical changes remains a "black box."
  • Future Directions: The authors suggest exploring optimization beyond the first token in a more sophisticated way and improving the reliability of the verifier to handle even more complex, multi-step tasks.

Summary updated

BibTeX
@inproceedings{zhu2025soft,
  author = {Qinglin Zhu and Runcong Zhao and Hanqi Yan and Yulan He and Yudong Chen and Lin Gui},
  title = {{Soft Reasoning: Navigating Solution Spaces in Large Language Models through Controlled Embedding Exploration}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=4gWE7CMOlH},
}
Figure