From Noise to Diversity: Random Embedding Injection in LLM Reasoning
Heejun Kim, Seungpil Lee, Jewon Yeom, Jaewon Sok, Seonghyeon Park, Jeongjae Park, Taesup Kim, Sundong Kim
NeurIPS page · Open on the map
Category: LLM Reasoning, Memory & RAG › LLM Reasoning Enhancement · Type: new method · Keywords: random soft prompts, LLM reasoning, prompt injection, token diversity, Pass@N, DAPO training
Areas: LLM Reasoning › Language Model Reasoning › LLM reasoning
Summary
Random Soft Prompts (RSP) inject freshly sampled random embedding vectors into LLM inputs without training, achieving comparable reasoning performance to learned soft prompts and improving Pass@N through increased early-stage diversity.
Explained to a 5-year-old
Some smart computers called LLMs need help to think hard, like solving math problems. Researchers tried adding special words that they learned, but they wondered if the words themselves helped or just the act of adding them. They discovered that simply adding random numbers (like random doodles) to the computer's input works almost as well. This random addition makes the computer explore many possible answers early on, which helps it find the right one more often. The trick can be used both when the computer is just answering a question and when it is learning new things.
Explained to a 5-year-old, longer
Large language models are computer programs that can write sentences and solve problems. To make them solve tricky math questions, researchers sometimes add extra information called soft prompts. Usually these prompts are learned by training, which takes a lot of time and computer power. The new idea is to ask: does the learning matter, or does just adding something help? So they tried adding completely random numbers instead of learned ones. These random numbers are drawn from a simple pattern that matches the way the model normally works. Even though the numbers are random, they still improve the model's performance on math tasks. The reason is that the random addition forces the model to consider many different possibilities early in its thinking. This makes the model's early choices more varied, like branching paths in a game. As the model continues generating text, the effect of the random numbers fades, and it settles on a final answer. The technique works both when the model is just answering a question and when it is being trained on new data. This gives researchers a simple way to boost reasoning without having to train new prompts.
For a technical reader
The paper introduces Random Soft Prompts (RSP), which append freshly sampled random embedding vectors to the LLM input without any training. By injecting unseen random positions, RSP increases early-stage token diversity, causing reasoning trajectories to branch before converging to a final answer. Empirically, RSP matches the performance of optimized soft prompts on math reasoning benchmarks and improves Pass@N when combined with temperature sampling. The authors also extend RSP to DAPO training, showing additional practical gains. This training-free approach provides a clean way to study the structural impact of prompt injection.
Problem
It is unclear whether improvements from soft prompt injection stem from learned content or simply from the act of injecting vectors into the model.
Method
The approach appends a freshly drawn sequence of random embedding vectors to the input, sampled from a Gaussian fitted to the pretrained embedding statistics, without any training, thereby influencing early-stage token diversity and reasoning trajectories.
Results
The approach reaches accuracy comparable to optimized soft prompts on math reasoning benchmarks and widens Pass@N by boosting early-stage token diversity, with additional gains when incorporated into DAPO training.
Contributions
The work isolates the simplest form of soft prompt-training-free random injection-providing a unified lens for the structural effect of injection; it offers theoretical and empirical validation of the underlying mechanism; and it extends the effect from inference to training.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction