NeurIPS 2026

From Noise to Diversity

Random Embedding Injection in LLM Reasoning

Heejun Kim1,* Seungpil Lee1,* Jewon Yeom2 Jaewon Sok2
Seonghyeon Park2 Jeongjae Park2 Taesup Kim2,† Sundong Kim1,†

1 Gwangju Institute of Science and Technology (GIST) · 2 Seoul National University

* Equal contribution · † Corresponding authors

(a) Attention from the token being generated. Attention on the RSP tokens is large at first and fades as generation proceeds (measured on Qwen2.5-Math-7B). (b) The same prompt sampled 8 times: RSP paths branch early and converge. Temperature-only paths stay close. Drag the timeline to scrub.

Append a few random vectors to the prompt. No training, no learned content. The model explores more reasoning paths early and still commits to one answer.

Random Soft Prompts

Soft-prompt methods improve reasoning by inserting trained vectors into the input, but whether the gain comes from the learned content or from the act of injection has not been separated. We study the simplest possible soft prompt: a Random Soft Prompt (RSP) drops the training step and appends a freshly drawn sequence of random embedding vectors to the input.

Each vector is sampled from an isotropic Gaussian fitted to the entrywise mean and variance of the pretrained embedding table, so it has the scale of a real token but no preferred direction. The sequence carries no learned content, yet it reaches accuracy comparable to optimized soft prompts (TTSV[1], SoftCoT[2], LTPO[3]) on MATH-500, GSM8K, and AIME24.

hj ~ N(μE·1, σE2·I), j = 1 … L, input = [X ; H]
Table 1. Comparison with optimized soft prompt methods. Accuracy (%) under a unified evaluation, mean ± std over five initialization seeds for RSP, TTSV[1], SoftCoT[2], and LTPO[3]. The baseline uses greedy decoding and RSP uses suffix injection. Bold and underline mark the highest and second-highest mean in each row.
ModelBenchmarkBaselineRSP (suffix)TTSVSoftCoTLTPO
Qwen2.5-Math-7B-InstructMATH-50083.2083.52±0.5683.44±0.5582.88±0.3282.64±0.43
GSM8K95.4595.60±0.0895.12±0.1194.74±0.2894.97±0.11
AIME2413.3316.67±0.0015.32±4.1118.00±2.6712.67±1.33
Qwen2.5-Math-1.5B-InstructMATH-50073.0074.12±1.3672.32±1.7572.88±2.2773.68±0.97
GSM8K85.2984.99±0.2284.04±1.0782.97±2.9784.76±0.52
AIME2410.0013.33±5.276.02±1.229.33±2.429.33±1.33

The same holds across injection positions and model families. Where the baseline is already strong, suffix RSP matches it. On the harder AIME24 it adds a few points. When a base model is evaluated with a chat template it was never trained on, a random prompt recovers much of the lost accuracy.

Table 2. Accuracy across model configurations and benchmarks. RSP accuracy (%) is mean ± std over five initialization seeds, and the baseline uses greedy decoding. On AIME24, suffix RSP adds 3.3 pp at both Qwen2.5-Math-Instruct scales. When a ChatML template is applied to a base model not trained for it, RSP recovers up to +27 pp (prefix, 1.5B) and +17 pp (suffix, 7B) on MATH-500.
ModelMATH-500GSM8KAIME24
BaselineRSP (prefix)RSP (suffix)BaselineRSP (prefix)RSP (suffix)BaselineRSP (prefix)RSP (suffix)
Instruct models
LLaMA-3.1-8B-Instruct52.2041.24±2.1649.52±1.4885.7576.30±0.7586.70±0.396.673.33±2.366.67±3.33
Qwen2.5-Math-7B-Instruct83.2081.72±0.4683.52±0.5695.4594.92±0.2895.60±0.0813.3313.33±2.3616.67±0.00
Qwen2.5-Math-1.5B-Instruct73.0075.60±0.5174.12±1.3685.2985.26±0.3984.99±0.2210.0012.00±1.8313.33±5.27
Base models + ChatML (format mismatch)
Qwen2.5-Math-7B52.2057.40±1.7169.40±1.0358.3056.25±1.1475.88±0.3623.339.33±4.3520.00±2.36
Qwen2.5-Math-1.5B34.4061.56±1.4248.80±2.0937.4566.07±1.0350.24±2.0913.3314.67±2.988.00±5.06

Content or injection? Replace the trained vectors and see.

We keep each method's injection length and position fixed and only change what is injected. Replacing all trained vectors with random draws does not consistently hurt. Shuffling token order or permuting coordinates inside each vector, which destroys the learned structure but keeps the norms, does not hurt either. The channel is not inert: overtraining the same vectors with a 1000× learning rate collapses accuracy.

Table 4. Intervening on learned prompt content. Qwen2.5-Math-1.5B-Instruct, accuracy (%) as mean ± std over three seeds. Injection length and position stay fixed within each method (20 prefix tokens for TTSV, 8 infix for LTPO, 4 infix for SoftCoT). 50% front / 50% random / 100% RSP replace trained vectors with RSP draws, Token-shuffle reorders the vectors, and Dim-permute permutes coordinates inside each vector. Bold marks the best mean in each column.
InterventionTTSV[1]LTPO[3]SoftCoT[2]
MATH-500GSM8KAIME24MATH-500GSM8KAIME24MATH-500GSM8KAIME24
Trained72.33±1.4684.08±1.086.67±0.0074.07±0.8284.69±0.217.78±1.5772.87±1.1884.84±1.248.89±1.57
50% front75.40±0.2884.99±0.7010.00±0.0074.27±0.4784.63±0.3410.00±2.7272.47±0.9884.15±1.2910.00±2.72
50% random72.93±1.9581.07±3.5412.22±1.5773.87±0.9084.91±0.398.89±1.5773.33±0.2584.53±0.3212.22±1.57
100% RSP75.13±0.2585.09±0.4411.11±1.5773.80±0.9185.06±0.5711.11±1.5773.67±0.5285.01±0.198.89±1.57
Token-shuffle72.40±0.9983.83±0.386.67±2.7273.60±0.4984.61±0.067.78±1.5772.80±1.5684.96±0.2911.11±1.57
Dim-permute71.93±0.5783.62±0.555.56±1.5774.00±0.4384.00±0.7712.22±1.5774.80±0.1684.99±0.1613.33±0.00

Branch early, anneal later.

RSP flattens the distribution over the first few generated tokens: entropy and varentropy go up, top-1 probability goes down, and the curves return to the baseline within a few percent of the generation. Optimized soft prompts show the same early pattern despite different training objectives.

The mechanism is attention mass. With a fixed number of RSP tokens and a growing KV cache, the share of attention on the random positions shrinks as generation proceeds, so the perturbation that opened a new branch fades and the response commits to a single completion.

Entropy, top-1 probability, and varentropy over the first 5% of generation for Baseline, RSP, LTPO, SoftCoT, and TTSV
First 5% of generation, Qwen2.5-Math-1.5B-Instruct on MATH-500. RSP (orange) lifts early entropy and varentropy, then converges to the baseline.

Diversity that turns into Pass@N.

Temperature rescales the same distribution and never changes the ranking of tokens. RSP reranks: the Spearman correlation with the baseline first-token distribution is 0.71 instead of 1.0. Matching RSP's distributional shift with temperature alone (τ = 3.0) drops accuracy to 1.4%, while RSP keeps 73.3%.

Drawing a fresh RSP for every sample and combining it with temperature sampling gives the highest Pass@N on both MATH-500 and AIME24. Sharing one RSP across samples gives no gain, so the benefit comes from varying the perturbation, not from any single one.

Pass@n curves on MATH-500 and AIME24 for Baseline, RSP single seed, RSP independent seed greedy, and RSP independent seed with temperature
Pass@N with 16 samples per problem, Qwen2.5-Math-1.5B-Instruct. Independent RSPs with temperature (red) reach 92.8% on MATH-500 and 36.7% on AIME24 at N = 16.
+27.2pp

MATH-500 accuracy recovered on Qwen2.5-Math-1.5B when a mismatched chat template is used, with a 20-token prefix RSP.

36.7%

Pass@16 on AIME24 with an independent RSP per sample, versus roughly 20% for temperature sampling alone.

0.71

Spearman correlation between RSP and baseline first-token rankings. Temperature keeps it at exactly 1.0.

Beyond inference: better training data.

If RSP finds correct solutions that plain sampling misses, it should help rejection-sampling fine-tuning. On 32,737 hard problems that Qwen2.5-Math-7B-Instruct solves at most once in four clean rollouts, we draw eight rollouts per problem with and without RSP, keep the correct ones, fine-tune the same model on each set, and evaluate without RSP.

Table 5. Rejection-sampling SFT with RSP on Qwen2.5-Math-7B-Instruct. Coverage is the share of hard problems with at least one correct rollout out of eight. The SFT average is over Minerva, GaoKao2023-EN, OlympiadBench, AIME24 and AMC23 (Avg@32 for the last two), evaluated without RSP. Mean ± std over three collection seeds.
CollectionProblem coverage (%)Rollout accuracy (%)Accuracy after SFT, 5-benchmark avg. (%)
No SFT––40.26
Baseline sampling23.75±0.105.54±0.0342.11±0.54
RSP49.68±0.1317.45±0.0543.77±0.54

Citation

@inproceedings{kim2026rsp,
  title     = {From Noise to Diversity: Random Embedding Injection in LLM Reasoning},
  author    = {Kim, Heejun and Lee, Seungpil and Yeom, Jewon and Sok, Jaewon and
               Park, Seonghyeon and Park, Jeongjae and Kim, Taesup and Kim, Sundong},
  booktitle = {Advances in Neural Information Processing Systems},
  year      = {2026},
  url       = {https://arxiv.org/abs/2605.11936}
}

References

  1. [1] Xinyue Kang, Diwei Shi, and Li Chen. Model Whisper: Steering vectors unlock large language models' potential in test-time. In AAAI, 2026. arXiv:2512.04748
  2. [2] Yige Xu, Xu Guo, Zhiwei Zeng, and Chunyan Miao. SoftCoT: Soft chain-of-thought for efficient reasoning with LLMs. In ACL, 2025. arXiv:2502.12134
  3. [3] Wengao Ye, Yan Liang, and Lianlei Shan. Thinking on the fly: Test-time reasoning enhancement via latent thought policy optimization. In ICLR, 2026. arXiv:2510.04182