Gap Detection: Mitigating Homogenization through Demand and Defensibility
Organizations: University of Illinois Urbana-Champaign · Fudan University · University of Michigan, Ann Arbor
Abstract
Language models often produce semantically similar answers to open-ended questions, even when many plausible alternatives exist. Generating useful alternatives requires identifying both what the query calls for and what existing responses already cover. We introduce Gap Detection, a framework that searches for relevant but unoccupied directions in a shared text embedding space. Its objective, GapScore, combines query relevance (Demand) with dissimilarity to the nearest existing item (Defensibility). The framework optimizes this product on the unit sphere, maps candidate directions to concept words with a language model, and uses task-specific filtering and constrained prompting to turn those concepts into text. On five curated topics and 90 INFINITY-CHAT queries, the reported mean relative reductions in output Collision are 12.8% and 10.8%, respectively. We also instantiate the framework for generative engine optimization over four product markets and for iterative synthetic-data augmentation. In the latter setting, with 100 training examples per method, Gap Detection reduces Collision from 0.324 to 0.298 relative to undirected accumulation and increases the Vendi Score from 27.16 to 29.20; the accuracy difference is one example on a 40-example test set. Component ablations expose the trade-off between semantic separation and relevance, while also showing that better direction scores do not uniformly yield better downstream metrics. These results support explicit gap search as a practical mechanism for diversifying content, with task validity checked separately from geometric novelty.
Figures & tables
| Evaluation | Before | After | Reduction |
|---|---|---|---|
| Time metaphor | 0.7362 | 0.6573 | 10.7% |
| Loneliness metaphor | 0.7449 | 0.6634 | 10.9% |
| Redefine courage | 0.8046 | 0.7160 | 11.0% |
| Memory as substance | 0.8163 | 0.7080 | 13.3% |
| Hope via natural elements | 0.8178 | 0.6712 | 17.9% |
| Five-topic mean (reported) | 0.784 | 0.683 | 12.8% |
| Method | Direction GapScore | Collision reduction | Novelty pass |
|---|---|---|---|
| Random direction | 0.003 | 10.3% | 100% |
| Demand only | 0.298 | 7.8% | 92% |
| Defensibility only | 11.5% | 96% | |
| GapScore | 0.375 | 10.7% | 84% |
| Market or method | Direction GapScore | PAWC | Product |
|---|---|---|---|
| Water filters | 0.410 | 0.518 | 0.213 |
| Protein powder | 0.479 | 0.540 | 0.258 |
| Sports water bottles | 0.398 | 0.513 | 0.204 |
| Yoga mats | 0.403 | 0.524 | 0.211 |
| Reported market mean | 0.423 | 0.524 | 0.221 |
| Random direction | 0.469 |
| Method | Collision | Vendi Score | Accuracy |
|---|---|---|---|
| No Intervention | 0.362 | 9.06 | 60.0% |
| Data Accumulation | 0.324 | 27.16 | 60.0% |
| GapScore | 0.298 | 29.20 | 62.5% |
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| Topic | Lower bound | Search score | Difference | |
|---|---|---|---|---|
| Time metaphor | 0.6438 | 0.6492 | 0.0054 | 0.5841 |
| Loneliness metaphor | 0.7474 | 0.7493 | 0.0019 | 0.6644 |
| Redefine courage | 0.7156 | 0.7389 | 0.0233 | 0.6985 |
| Memory as substance | 0.5455 | 0.6011 | 0.0556 | 0.8381 |
| Hope via natural elements | 0.7731 | 0.7893 | 0.0162 | 0.6343 |
| Component | Setting |
|---|---|
| Encoder | text-embedding-3-small ; 1,536 dimensions; L2 normalization |
| Concept decoder | Qwen2.5-3B-Instruct-Q6_K; local GGUF on Apple M2 |
| Default filter / generator | GPT-4o-mini |
| Search starts | Demand direction, demand plus noise, and random direction |
| Search budget | 15 restarts per strategy; 100 steps; step size 0.05 |
| Answering / GEO directions |
| Group | Queries | Baseline Collision | Mean reduction |
|---|---|---|---|
| Hypothetical | 22 | 0.79 | 11.3% |
| Ideal | 7 | 0.78 | 11.8% |
| Metaphor | 1 | 0.92 | 17.0% |
| Explain | 12 | 0.77 | 10.3% |
| Describe | 20 | 0.78 | 10.1% |
| Imagine | 10 | 0.77 | 9.9% |
| Topic | Reported GapScore | Baseline Vendi | Vendi/20 |
|---|---|---|---|
| Time metaphor | 0.165 | 2.91 | 14.5% |
| Loneliness metaphor | 0.196 | 3.16 | 15.8% |
| Redefine courage | 0.221 | 2.58 | 12.9% |
| Memory as substance | 0.220 | 2.36 | 11.8% |
| Hope via natural elements | 0.229 | 2.12 | 10.6% |
| Reported mean | 0.206 | 2.63 | 13.1% |
| Model pair | Mean similarity |
|---|---|
| GPT-4o-mini / Claude | 0.660 |
| GPT-4o-mini / Gemini | 0.613 |
| GPT-4o-mini / Qwen2.5-3B | 0.576 |
| Claude / Gemini | 0.629 |
| Claude / Qwen2.5-3B | 0.578 |
| Gemini / Qwen2.5-3B | 0.554 |
| Evaluation | Before | After | Reported reduction |
|---|---|---|---|
| Mixed occupied set, | 0.602 | 0.561 | 7.4% |
| Occupied-set source | Before | After | Reduction | Novelty pass | GapScore |
|---|---|---|---|---|---|
| GPT-4o-mini | 0.6860 | 0.6098 | 11.2% | 86.7% | 0.1609 |
| Claude-Sonnet-4.5 | 0.7014 | 0.6126 | 12.7% | 100.0% | 0.1860 |
| Gemini-2.0-Flash | 0.5709 | 0.5189 | 8.8% | 100.0% | 0.1791 |
| Qwen2.5-3B | 0.6028 | 0.5475 | 8.8% | 100.0% | 0.1627 |
| Reported mean | 0.6403 | 0.5722 | 10.4% | 96.7% | 0.1722 |
| Realization model | Collision reduction | GapScore | Novelty | Novelty pass |
|---|---|---|---|---|
| GPT-4o-mini | 9.0% | 0.1500 | 0.3684 | 80.0% |
| GPT-4o | 11.6% | 0.1579 | 0.4314 | 100.0% |
| Claude-Sonnet-4.5 | 14.8% | 0.1632 | 0.4938 | 100.0% |
| Topic | Concept words | Generated excerpt |
|---|---|---|
| Time metaphor | poetic, nighttime, tempo | “The night hums a quiet tempo, its stars ticking softly…” |
| Loneliness metaphor | loner, soliloquy, joylessness | “In the quiet hours of twilight, a solitary tree stands…” |
| Redefine courage | fearlessness, brave, fortitude | “Grit is the lighthouse that stands tall amid the storm…” |
| Memory as substance | myelin, tissue, formalin | “Envision a soft, pliable tissue, reminiscent of myelin’s…” |
| Hope via natural elements | sunlight, warmth, naissance | “A warm breeze dances through the treetops, whispering…” |
| Market | Concept words | Demand | Defensibility |
|---|---|---|---|
| Water filters | campground, wilderness, hike | 0.446 | 0.922 |
| Protein powder | nutritional, ketogenic, peptide | 0.383 | 1.249 |
| Sports water bottles | insulated, lightweight, waterproof | 0.509 | 0.782 |
| Yoga mats | rubber, foam, handmade | 0.763 | 0.528 |
| Reported mean | 0.525 | 0.870 |
| Direction | Concept words | Demand | Def. | GS | PAWC | Product |
|---|---|---|---|---|---|---|
| 1 | campground, wilderness, hike | 0.446 | 0.922 | 0.410 | 0.518 | 0.213 |
| 2 | portable, filtration, faucet | 0.772 | 0.396 | 0.306 | 0.410 | 0.125 |
| 3 | filter, purification, filtering | 0.579 | 0.427 | 0.247 | 0.471 | 0.116 |
| 4 | screened, cleansing, reservoir | 0.730 | 0.185 | 0.135 | 0.544 | 0.073 |
| 5 | waterproof, tank, aquatic | 0.755 | 0.355 | 0.268 | 0.484 | 0.130 |
| Generator | Collision | Vendi |
|---|---|---|
| GPT-4o-mini | ||
| Claude-Sonnet-4.5 | ||
| Gemini-2.0-Flash | ||
| Qwen2.5-3B |
| Method | SetGapScore | Mean direction GapScore (diagnostic) |
|---|---|---|
| Random direction | 0.023 | — |
| Demand only | 0.199 | 0.199 |
| Defensibility only | ||
| GapScore | 0.276 | 0.192 |
Diverse Text Generation
Diverse text generation studies how to produce varied, useful language outputs without sacrificing coherence, accuracy, or task performance.
See all 50 papers