Mine, Sample, Render: Test-Time Diversity Alignment Of Generative Models
Organizations: Stony Brook University · Microsoft
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.
Figures & tables
| User simulator | JS | Coverage | ||
|---|---|---|---|---|
| GPT-5-mini (prompt only) | 0.5668 | 0.5764 | 0.5866 | 0.4646 |
| PersonaHub (coding-filtered) | 0.5971 | 0.6033 | 0.6157 | 0.4013 |
| MSR (compact) | 0.5236 | 0.5556 | 0.5319 | 0.5649 |
| MSR (fine-grained) | 0.5184 | 0.5339 | 0.5373 | 0.5106 |
| GPT-5.5 (prompt only) | 0.5258 | 0.5272 | 0.5167 | 0.6345 |
| PersonaHub (coding-filtered) | 0.5395 | 0.5505 | 0.5371 | 0.5850 |
| Webpage generator | Vendi Score | Odd-one-out | ||
|---|---|---|---|---|
| text | image | % removed | mean removal rank | |
| GPT-5.5 (prompt only) | 2.158 | 2.446 | - | - |
| MSR (WebSight) | 3.956 | 4.116 | 95.075% | 6.20 vs 19.30 |
| MSR (Design2Code) | 3.273 | 3.457 | 97.650% | 5.77 vs 19.73 |
| Kimi K2.6 (prompt only) | 2.426 | 3.150 | - | - |
| MSR (WebSight) | 3.842 | 4.077 | 75.575% | 9.16 vs 16.33 |
| Generator / conditioning | Vendi Score | Odd-one-out | ||
|---|---|---|---|---|
| CLIP | DINOv2 | % removed | mean removal rank | |
| GPT Image 2 (prompt only) | 2.37 | 2.16 | 13.80% | 37.97 |
| independent rewrite | 3.02 | 3.19 | 88.80% | 25.26 |
| coordinated rewrite | 3.86 | 4.32 | 97.40% | 16.45 |
| MSR –Direct | 5.14 | 4.97 | - | - |
| MSR –Resolved | 6.68 | 6.73 | 100.00% | 6.82 |
| Method | Mean odd-one-out removal rank | Quality |
|---|---|---|
| GPT-6 Astra independent generations | 48.800 | 82.35 |
| GPT-6 Astra coordinated generations | 25.125 | 70.80 |
| GPT-6 Astra MSR | 17.100 | 83.55 |
Appendix figures & tables24 assets
Supplementary material from the paper’s appendix.
Appendix
| Axis | Data-generating attribute | Recovered attribute | Source support |
|---|---|---|---|
| Temperature | temp_cold | temperature_cold | 64 |
| temp_mild | temperature_mild | 97 | |
| temp_warm | temperature_warm | 99 | |
| temp_hot | temperature_hot | 40 | |
| Sky | sky_clear | sky_clear | 74 |
| sky_partly | sky_partly_cloudy | 84 |
| Condition | Generated | Complete labels | Excluded |
|---|---|---|---|
| Prompt only | 3,000 | 2,838 | 162 |
| Append reports | 3,000 | 3,000 | 0 |
| Mine–Sample–Render recovered schema | 3,000 | 3,000 | 0 |
| Known-schema control | 3,000 | 3,000 | 0 |
| Schema | Attribute | Count | Frequency |
|---|---|---|---|
| Compact | tone_no_greeting_direct | 539 | 89.83% |
| Compact | expectation_of_code_full_snippet | 415 | 69.17% |
| Compact | request_imperative_command | 366 | 61.00% |
| Compact | no_or_small_code_sample | 283 | 47.17% |
| Compact | context_provides_short_example_or_none | 274 | 45.67% |
| Fine-grained | request_imperative_command | 409 | 68.17% |
| Schema | Attribute A | Attribute B | Joint count | Lift |
|---|---|---|---|---|
| Compact | expectation_of_code_full_snippet | tone_no_greeting_direct | 376 (62.67%) | 1.009 |
| Compact | request_imperative_command | tone_no_greeting_direct | 343 (57.17%) | 1.043 |
| Compact | expectation_of_code_full_snippet | request_imperative_command | 297 (49.50%) | 1.173 |
| Fine-grained | request_imperative_command | wants_full_runnable_code_or_complete_artifact | 258 (43.00%) | 1.198 |
| Fine-grained | evidence_pastes_existing_code_snippet | provides_code_or_artifact_example | 182 (30.33%) | 1.841 |
| Fine-grained | provides_code_or_artifact_example | request_imperative_command | 182 (30.33%) | 0.927 |
| User simulator | Inference control | Effective |
|---|---|---|
| GPT-5-mini | Low reasoning | 4,960 |
| GPT-5.5 | Low reasoning | 4,903 |
| GPT-4o | No explicit reasoning control | 4,946 |
| Kimi K2.6 | No explicit reasoning control | 4,935 |
| Qwen3.8-27B | Thinking enabled; private state removed | 4,956 |
| Schema | Attribute | Count | Frequency |
| WebSight | type_grotesque_sans | 8,134 | 81.34% |
| WebSight | color_light_neutral_background | 6,653 | 66.53% |
| WebSight | header_present | 6,192 | 61.92% |
| WebSight | content_left_aligned | 5,811 | 58.11% |
| WebSight | top_h1_heading_present | 4,314 | 43.14% |
| Design2Code | site_header_present | 418 | 87.08% |
| Schema | Attribute A | Attribute B | Joint count | Joint frequency | Lift |
|---|---|---|---|---|---|
| WebSight | color_light_neutral_background | type_grotesque_sans | 5,462 | 54.62% | 1.009 |
| WebSight | header_present | type_grotesque_sans | 5,148 | 51.48% | 1.022 |
| WebSight | content_left_aligned | type_grotesque_sans | 4,821 | 48.21% | 1.020 |
| Design2Code | site_footer_present | site_header_present | 372 | 77.50% | 1.065 |
| Design2Code | primary_navigation_present | site_header_present | 337 | 70.21% | 1.118 |
| Design2Code | body_typography_sans_serif | site_header_present | 325 | 67.71% | 0.998 |
| Schema | Attribute pair | Joint count | Joint frequency | Lift |
|---|---|---|---|---|
| WebSight | buttons_full_width , stacked_form_inputs | 104 | 1.04% | 19.10 |
| WebSight | header_fixed , nav_fixed_top | 103 | 1.03% | 11.63 |
| WebSight | layout_sidebar_offset , nav_side_vertical | 161 | 1.61% | 11.41 |
| Design2Code | article_caption_centered , article_image_captions_centered | 5 | 1.04% | 96.00 |
| Design2Code | body_copy_monospace , body_typography_monospace | 5 | 1.04% | 96.00 |
| Design2Code | coming_soon_content_upper_middle , launch_status_uppercase | 5 | 1.04% | 96.00 |
| # | Category | Prompt ID | Exact prompt |
|---|---|---|---|
| 1 | baseball bat | baseball_bat_403675 | A guy holding a baseball bat is ready to play ball |
| 2 | cow | cow_537695 | A cow has a ring in its nose near two men. |
| 3 | wine glass | wine_glass_285773 | A table with a wine glass and wine bottles on it |
| 4 | dining table | dining_table_106338 | a big table that has some plates of food on it |
| 5 | spoon | spoon_306638 | A bowl of food set on a table with a spoon. |
| 6 | scissors | scissors_223362 | a close up of a person holding a pair of scissors |
| Valid images (%) | Attributes realized (%) | |||
|---|---|---|---|---|
| Generator | Direct | Resolved | Direct | Resolved |
| GPT Image 2 | 99 | 97 | 61.6 | 80.2 |
| MAI-Image-2.5 | 96 | 97 | 65.3 | 78.5 |
| FLUX.2-flex | 95 | 90 | 71.1 | 77.9 |
| CLIP Vendi | DINOv2 Vendi | |
|---|---|---|
| 0.0 | 4.23 | 4.40 |
| 0.5 | 5.14 | 4.97 |
| 1.0 | 5.34 | 5.21 |
| Representation | Resolved | Resolved |
|---|---|---|
| CLIP | 6.68 | 6.62 |
| DINOv2 | 6.73 | 6.42 |
| Source | Retained records |
|---|---|
| Amazon Berkeley Objects | 65 |
| Wikimedia Commons | 83 |
| Art Institute of Chicago | 1 |
| Cleveland Museum of Art | 1 |
| Metropolitan Museum of Art | 10 |
| Property A | Property B | P(B A) | P(B not A) | Phi |
|---|---|---|---|---|
| Feet: metal | Frame: tubing | 95.3% | 6.3% | 0.890 |
| Back: sling | Back: visible textile weave | 95.8% | 8.5% | 0.876 |
| Back: light | Seat: light | 91.3% | 3.8% | 0.879 |
| Back: edge binding | Seat: edge binding | 95.7% | 11.8% | 0.841 |
| Back: geometric | Seat: geometric | 71.4% | 2.2% | 0.750 |
| Post-hoc topic description | Two enriched properties: topic probability / corpus prevalence |
|---|---|
| Textile camping frames | Hardware: connector hubs: 95.2% / 24.9%; Arms: matte: 98.2% / 35.8% |
| Timber slats and panels | Back: slats: 97.6% / 17.3%; Seat: wood: 96.8% / 18.6% |
| Carved and weathered timber | Arms: brown: 97.5% / 15.0%; Feet: distressed: 93.0% / 12.0% |
| Low striped slings | Continuous seat back: 96.6% / 34.9%; Low seat: 97.5% / 36.3% |
| Laced lounge seating | Head cushion: 97.7% / 13.0%; Back: edge laced: 98.0% / 13.5% |
| Solid-panel and molded seating | Back: solid panel: 94.7% / 21.2%; Seat: molded shell: 65.6% / 8.5% |
| Quality criterion | Weight | MSR | Coordinated |
|---|---|---|---|
| Coherent deployed chair and support | 25% | 4.40 | 3.70 |
| Resolved, meaningful folding transformation | 30% | 4.40 | 3.85 |
| Human use, handling, and folded-state usefulness | 15% | 3.90 | 3.35 |
| Integrated form and detailed resolution | 20% | 4.20 | 3.35 |
| Compelling and purposeful design idea | 10% | 3.90 | 3.75 |
| Weighted total / 100 | 100% | 84.70 | 72.55 |
Generative Modeling
Generative modeling learns data distributions to create new samples, from images and text to molecules, simulations, and structured records.
See all 487 papers