arXiv:2610.32101cs.LGOct 2026

Manuscript Offprint

arXiv:2610.32101

PRISM: Promoting Sampling Diversity of Large Language Models with Implicit Stochastic Modulation

Qixin Xu, Zihan Zhu, Xiaojiang Liu, Bohan Lyu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language models (LLMs) exhibit mode collapse, where their output distribution concentrates on familiar semantic modes. When diversity disappears, repeated sampling becomes semantic repetition rather than discovery, making rare but stronger solutions unlikely to surface and leaving self-evolution and continual learning difficult to sustain. Most remedies intervene only at inference time, shaping samples without making diversity a model capability. We propose PRISM, a training-time framework that internalizes diversity within the model. PRISM combines (i) submodular curation that pairs each prompt with diverse-yet-correct multi-teacher solutions, and (ii) stochastic embedding modulation, which turns special-token perturbations into implicit signals for sampling distinct outputs. A theoretical analysis establishes the stability of this mechanism. On WritingPrompts and BookMIA, PRISM moves the quality-diversity frontier outward, achieving the best generation quality in all model-benchmark settings while maintaining the strongest or near-strongest semantic diversity across two open-weight model families. It also improves sampling efficiency on math and code benchmarks. Beyond inference, PRISM yields a stronger foundation for reinforcement learning, sustaining diverse rollouts and mitigating the diversity collapse commonly observed during RL training.

1 Introduction

Post-trained large language models (LLMs) exhibit mode collapse, where their output distribution concentrates on a small set of familiar semantic modes (Padmakumar and He, 2024; West and Potts, 2025; Zhang et al., 2025a; Lanchantin et al., 2025). This collapse weakens the model's ability to use sampling as exploration: repeated samples revisit the same trajectories, making rare but stronger outputs harder to discover and limiting the rollout diversity needed for self-improvement. The effect appears in both open-ended generation, where outputs become homogeneous (Lu et al., 2025; Zhang et al., 2025a; Jiang et al., 2025), and verifiable reasoning, where near-identical solution paths reduce the gains from scaled test-time compute (Snell et al., 2024; Muennighoff et al., 2025; Hooper et al., 2025; Ju et al., 2025; Lyu et al., 2025a; Wang et al., 2024a; Song et al., 2025). Because diversity loss can be shaped by post-training data and learned weights, not only decoding choices (Karouzos et al., 2026), reducing mode collapse is crucial for preserving a model's capacity to explore, discover, and self-evolve.

Existing methods for improving LLM output diversity fall into several families, but they rarely make diversity something the model can be steered to produce on demand. Inference-time methods, including token-level decoding strategies (Vijayakumar et al., 2016; Ippolito et al., 2019; Meister et al., 2023), prompt-based interventions (Naik et al., 2023; Zhang et al., 2025a; Wong et al., 2025; Ruan et al., 2025; Santos et al., 2025), search-based methods (Mouret and Clune, 2015; Romera-Paredes et al., 2024; Novikov et al., 2025; He et al., 2026), and latent or decoding-space alternatives (Geiping et al., 2025; Zhang et al., 2025c; Chen et al., 2025), try to force variation at generation time. Because the model itself has not learned when and how to vary its answers, these methods can stop at surface-level changes or spend extra tokens for each prompt. Training-time noise methods, in contrast, do modify the model itself, but typically inject noise into embeddings as a generic regularizer (Jain et al., 2023b; Yadav and Singh, 2023; Zhu et al., 2019), improving instruction-following or robustness without making diversity controllable. Recent data-centric and multi-solution training methods improve coverage, especially in reasoning and code, but they largely decide which traces to train on or how to label modes (Wang et al., 2024b; Ju et al., 2025; Just et al., 2025; Jia et al., 2026). The

Figure

Figure 1: Overview of PRISM. Left: Traditional SFT collapses onto a single dominant trajectory. Middle: PRISM internalizes diversity through submodular curation of diverse-yet-correct trajectories and stochastic embedding modulation that perturbs the prompt embedding with Gaussian noise. Right: At inference, different noise samples steer the model toward distinct modes, producing diverse trajectories from the same prompt.

remaining gap is a model-level mechanism that lets the same prompt produce different valid outputs through an internal control signal.

To this end, we propose PRISM, a training-time framework that teaches LLMs to use a small internal signal to choose among multiple valid outputs for the same prompt. PRISM has two coupled components: one defines what diverse outputs the model should learn, and the other gives the model a way to move among them. First, we build specialized training datasets via submodular curation, in which each prompt is paired with multiple diverse-yet-correct solutions drawn from a multi-teacher candidate pool; this defines the target space of valid output trajectories the model should be able to produce. Second, we inject Gaussian noise into a small set of special-token embeddings during both training and inference; under the curated supervision provided by the first component, different noise samples become learned navigation signals that steer the model toward distinct trajectories within this target space, rather than acting as generic regularization. We provide a theoretical analysis showing that this noise injection is provably stable and can be interpreted as a regularizer on the Hessian of the loss with respect to embeddings.

We center our evaluation on open-ended creative writing, where diversity must be semantic rather than merely lexical. On WritingPrompts and BookMIA across two open-weight model families, PRISM achieves the best generation quality in all model-benchmark settings and the strongest or near-strongest semantic diversity among competitive inference-time and training-time baselines. These results shift the quality-diversity frontier outward rather than trading one axis for the other. We further evaluate PRISM on verifiable math and code reasoning, where it improves sampling efficiency by discovering more correct solutions under equivalent inference budgets.

For reinforcement learning (RL) post-training, diversity determines what behaviors the policy can still explore: once rollouts collapse, reward feedback comes from repeated variants of the same solution and policy improvement stalls (Cui et al., 2025b,a; Wang et al., 2025; Xu et al., 2025). By exposing multiple correct modes through a controllable sampling interface, PRISM lets RL train on a wider range of rollouts; in math and code reasoning, this preserves diversity during training and avoids the sampling collapse observed with standard SFT initialization.

In conclusion, our main contributions are:

• We introduce PRISM, a training-time framework that pairs per-prompt submodular curation with stochastic special-token embeddings to make diversity controllable at inference.

• We show that PRISM improves the quality-diversity frontier on creative writing tasks on two open-weight models.

  • We demonstrate stronger sampling-based exploration on eight math and code benchmarks, discovering more correct solutions than SFT and prior diversity-enhancing baselines under the same inference budgets.

  • We show that diversity supports policy improvement: PRISM checkpoints preserve exploratory rollouts during RL and help the policy continue discovering correct programs.