arXiv:2610.21185cs.AIOct 2026

Manuscript Offprint

arXiv:2610.21185

Mine, Sample, Render: Test-Time Diversity Alignment Of Generative Models

Kostas Triaridis, Morris E. Sharp, Nebojsa Jojic

ABSTRACT

Modern generative models produce high-quality individual outputs but struggle to sample diversely, even when explicitly instructed to do so. We introduce MINE-SAMPLE-RENDER (MSR), a test-time approach that externalizes the diversity into an explicit, corpus-derived sampling procedure. Our pipeline (i) mines an interpretable categorical schema from a corpus of real artifacts and supplies statistics for sampling; (ii) samples attribute configurations from the corpus-derived statistics; (iii) uses a generative model purely as a conditional renderer of a sampled configuration. Across weather report generation, user simulation, webpage design, text-to-image generation, and agent-generated 3D assets, we evaluate the diversity and output quality of MSR-guided generation and show that MSR improves alignment with corpus distributions and diversity of generated outputs.

1 INTRODUCTION

Many applications of generative AI require diverse samples, not just individually plausible outputs. Synthetic datasets (Huang et al., 2025) and simulated user populations should reflect the variation in the populations they represent. Diverse exploration can also improve reasoning and generalization in LLMs (Liu et al., 2025), while in text-to-image models, diversity in generations directly drives their test-time scaling capability (Rawal et al., 2026). Yet modern generators (and even tool-using agents) often sample a much narrower range of variation than what is typically found in real data. This gap has been observed in user simulation (Mehri et al., 2026), engineering design (Ma et al., 2025), creative ideation (Anderson et al., 2024), and story generation (Xu et al., 2025b), and is exacerbated by reward-maximizing post-training (e.g., Shao et al., 2024; Gao et al., 2023) which is commonly used to improve model quality, but can further concentrate samples around high-reward modes and suppress less common but valid alternatives (Hu et al., 2024; Zhu et al., 2026; Liu et al., 2026).

Changing the prompt does change the output, creating an impression of variety, but every prompt leaves choices unspecified, and models repeatedly resolve them in the same way (Figure 1). Simply increasing temperature or asking a model to “be diverse” does not identify what should vary, how often, or which combinations are plausible. Even visibly different generations may cover little of the variation in real data, and convincing outputs can therefore be collectively homogeneous; even when each user asks for only one. “Just give me one good webpage” does not mean “make it look like everyone else’s.” A single coherent, correct output can still feel obviously AI-generated.

We pursue test-time diversity alignment: bringing the distribution of generated outputs into closer agreement with the real-data distribution relevant to the task. A reference corpus supplies an empirical target—what varies, how often, and in which combinations. The relevant examples or regularities may already have appeared during pretraining, but that variation is not reliably recovered in the deployed model's samples. Crucially, off-the-shelf models can often identify meaningful differences among real examples and produce the corresponding attributes when explicitly instructed. We introduce MINE–SAMPLE–RENDER (MSR), shown in Figure 2. In a one-time preprocessing stage for a given reference corpus, MSR compares small cohorts of artifacts to discover attributes, then labels the corpus to estimate their joint distribution. To generate a new artifact, it samples an attribute configuration from this distribution and asks a generative model or tool-using agent to render it. This separates what can be generated from how often it should be generated.

∗^{*}Work done during a research internship at Microsoft.

Figure

Figure 1: Different generations, familiar choices. Five baseline outputs per task. Top: GPT-5.5 webpages generated from the same simple prompt and a given website content. Middle: GPT Image 2 outputs for “A cat is curled up next to a light teddy bear.” Bottom: Independent GPT-6 Astra agent runs asked to build a functional 3D folding chair. See Figures 4, 5, and 6 for comparison with MSR, with protocols and results in Sections 3.3, 3.4, and 3.5.

MSR relates to attribute-guided generation (Yu et al., 2023; Huang et al., 2025), persona conditioning (Moon et al., 2024; Ge et al., 2024), and quality-diversity search (Bradley et al., 2024). Its mining step connects to work on data-induced semantic features and concepts (Jojic & Jojic, 2025; Zhong et al., 2023; Lam et al., 2024; Pham et al., 2024; Wan et al., 2024), while separating structure from realization has precedents in hierarchical text and layout generation (Fan et al., 2018; Inoue et al., 2023). A close generative precursor is fLSA (Xu et al., 2025a), which learns natural-language segment tags through reconstruction-based fitting, and samples tag sequences before rendering text. MSR's distinguishing contribution is to discover compositional, artifact-level attributes through direct cohort comparisons and sample their corpus-estimated joint distribution to guide generation. An expanded discussion of related research appears in Appendix A.

We apply MSR to multiple diverse domains: (i) in a controlled setting of synthetically generated weather reports with known axes of variation, we show that the mining stage can recover the real axes of variation that were used in generating the dataset and that the sampling can reproduce their joint distribution faithfully, (ii) in synthetic user simulation, we show that MSR reduces the distributional gap between LLM-simulated and real user behavior, (iii) in open-ended webpage design with LLMs, MSR greatly improves the diversity of generated webpages over prompt-only baselines, (iv) in text-to-image generation, MSR improves the sample diversity of state-of-the-art text-to-image generative models, and (v) in 3D asset generation with tool-using agents we show that MSR increases both the diversity and quality of generated assets.

References (44)