String Seed of Thought: Prompting LLMs for Distribution-Faithful and Diverse Generation

Kou Misaki, Takuya Akiba · DOI

Introduction

Large Language Models (LLMs) are typically optimized to provide the single most likely or "best" response to a given prompt. While this behavior is desirable for factual queries, it creates a significant bottleneck for tasks requiring stochasticity or specific probability distributions—a challenge defined as Probabilistic Instruction Following (PIF). When asked to perform a simple task like flipping a fair coin multiple times, standard LLMs often exhibit "mode collapse," favoring one outcome due to inherent training biases or positional preferences.

Researchers from Sakana AI have introduced String Seed of Thought (SSoT), a prompting technique that enables LLMs to generate diverse content and follow probabilistic instructions with near-mathematical precision.

Methodology: The String Seed of Thought

SSoT shifts the focus of Chain-of-Thought (CoT) from logical deduction to entropy generation. Instead of moving directly to an answer, the model is prompted to generate an internal "random" string which serves as a seed for its subsequent decision-making process.

Overview of SSoT applied to Probabilistic Instruction Following and Diversity-Aware Generation.

The process involves two distinct stages within a single prompt:

  1. Seed Generation: The LLM is instructed to first output a long, complex, and unguessable random string (e.g., 7$Aq9!zR@k3...).
  2. Randomness Extraction: The model then applies a mathematical operation—such as a parity check on ASCII values or a rolling hash—to map that string to a final choice.

Frontier models like DeepSeek-R1 and GPT-4o have been observed autonomously developing sophisticated algorithms to ensure their choices remain faithful to the target distribution, effectively acting as internal pseudo-random number generators (PRNGs).

Experimental Setup and Benchmarks

The efficacy of SSoT was evaluated across three primary domains:

  • Custom PIF Tasks: Testing the model's ability to match uniform and biased distributions across 2, 3, and 9-choice scenarios.
  • NoveltyBench: Measuring response diversity in open-ended creative tasks using both curated prompts (NB-Curated) and real-world user data (NB-WildChat).
  • RPS Dojo: An adversarial Rock-Paper-Scissors environment where models face bots designed to exploit non-random patterns.

Key Results

Distribution Faithfulness

In PIF tasks, SSoT reduced Jensen-Shannon (JS) divergence—a metric for distributional difference—by 80% to 99% across various frontier models. On several benchmarks, DeepSeek-R1 using SSoT performed almost identically to a dedicated Python PRNG (numpy.random).

Diversity and Novelty

On NoveltyBench, SSoT significantly outperformed standard prompting and high-temperature settings in generating unique, high-quality responses. The "Distinct" scores, which measure the variety of unique responses, saw substantial increases while maintaining high utility.

NoveltyBench results comparing Baseline and SSoT performance across Curated and WildChat datasets.

Adversarial Robustness

In the RPS Dojo, standard LLMs were consistently defeated by pattern-matching bots. However, SSoT-enabled models achieved a near-zero average score, indicating they reached a Nash Equilibrium by playing with true randomness that left no patterns for the bots to exploit.

Discussion and Limitations

The study highlights that the quality of randomness scales with "think time"—the length of the reasoning trace used to process the seed. However, SSoT is not without limitations:

  • Reasoning Floor: Models with fewer than 8 billion parameters often struggle with the required modulo arithmetic and hashing steps.
  • Seed Bias: Some models exhibit "lazy" habits, such as starting random strings with the same character, which can compromise entropy.
  • Task Specificity: SSoT is intended for tasks requiring diversity or randomness; applying it to deterministic problems (like standard mathematics) may degrade performance by distracting the model.

Conclusion

String Seed of Thought demonstrates that LLMs possess the internal capacity for high-entropy reasoning. By formalizing the generation and extraction of internal seeds, SSoT provides a robust framework for making LLMs more faithful to probabilistic instructions and more capable of diverse, creative generation.

Summary updated

BibTeX
@inproceedings{misaki2026string,
  author = {Kou Misaki and Takuya Akiba},
  title = {{String Seed of Thought: Prompting LLMs for Distribution-Faithful and Diverse Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=luXtbX1lVK},
}
Figure