arXiv:2608.22859cs.IRAug 2026

Manuscript Offprint

arXiv:2608.22859

WARP: Wasserstein-Aligned RAG for Population Opinions

Aman Singh Thakur, Aditya Agrawal, Alwarappan Nakkiran, Alex Karlsson

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

Abstract

RAG systems are increasingly used to summarize what large collections of documents say. A user asks “What do people think about X?” and receives an answer that reads as consensus. But standard top-k retrieval ranks documents by query similarity, not by how faithfully they represent the population, so minority views quietly disappear. Existing fixes fall short. Diversity re-rankers like MMR and DPP spread retrieved documents apart, but with no target distribution to aim for. Calibration methods based on KL or JS divergence do target one, yet treat opinion bins as unordered: confusing strong positive with strong negative costs no more than an adjacent-bin miss.

We introduce WARP, a family of post-retrieval algorithms that calibrate retrieved evidence to the population’s opinion distribution. WARP first recovers underrepresented opinions that cosine ranking may bury, then uses Wasserstein-1 distance to select documents whose sentiment-intensity distribution matches the population target, capturing the ordinal structure ignored by KL and JS divergence. We develop three variants for dense, sparse, and variable candidate pools, trading off calibration quality and speed. Across three review domains spanning 35K documents, 156 queries, and 26 entities, WARP’s domain-matched variants reduce distributional error by at least 43% with sub-second latency. These gains carry through to generation: a five-judge LLM panel prefers WARP-generated answers in 86% of decided comparisons at k≤5k \leq 5.

1 Introduction

Users used to browse reviews themselves - clicking through results, weighing contradictions, building a mental picture. Noisy, but transparent: you could see disagreement. RAG systems (Lewis et al., 2020) replace this with a single synthesized answer, but a new failure mode emerges. Standard top-k retrieval selects evidence by query similarity, without factoring spread of opinions in the corpus. Take a hotel where 60% of reviewers are satisfied and 40% complain about noise. Retrieval over-represents the majority because similarity scoring favors the dominant cluster. Every claim in the resulting summary traces to a real review, yet the user never learns that two in five guests had a bad experience. This leads to distributional distortion. A synthesized response from a skewed sample would read factual but would not present the whole picture.

For opinion queries, uncertainty is aleatoric: it reflects genuine disagreement. A faithful system must preserve the distribution without collapsing it. Agrawal et al. (2026) formalize this distinction; Nayeem and Rafiei (2025) build a scalable opinion summarization pipeline but do not optimize the retriever for distributional fidelity. What's missing is the engineering: in a production stack with sub-second latency budgets, how do you select a small evidence set whose opinion distribution actually matches the population?

A standard cosine retriever maximizes query similarity, producing relevant but homogeneous evidence - four glowing reviews when two would suffice. Diversity re-rankers (MMR (Carbonell and Goldstein, 1998), DPP (Kulesza and Taskar, 2012)) push back by maximizing pairwise spread, which helps until each sentiment bin has one representative; past that point they quietly revert to relevance ordering. KL and JS calibration (Steck, 2018; Dang and Croft, 2012) come closer by explicitly optimizing against a target distribution. But they remain categorical. Confusing “positive” with “negative” costs the same as confusing “positive” and “neutral”. Opinions are ordinal and we need a metric which supports this.

Wasserstein-1 respects this ordering. Its closed-form CDF computation (O(m)(O(m) for m sentiment

∗^{*} Correspondence: amanzing@amazon.com

Figure

Figure 1: WARP pipeline. Stage 1: semantic retrieval returns a Top-N candidate pool. Stage 1.5: deficit-aware pool expansion recovers under-represented sentiment poles via re-retrieval (Entity-Gated or Adaptive Expansion; §3.3; self-bypasses when the pool is already balanced). Stage 2: W1W_1 re-ranking selects the final kk documents whose empirical opinion distribution matches the population target PpopP_{\text{pop}} ( W1W_1 Minimizer for dense pools, W1W_1-MMR for sparse pools, or WassRank OT as a tuning-free fallback; §3.4). Pool density drives the variant choice (decision matrix in Table 3).

bins) makes per-candidate evaluation cheap enough for runtime re-ranking without offline precomputation. We built WARP (Figure 1) around this in two stages. First, a deficit-aware pool expansion pass compares the retrieved distribution against the population target, identifies under-represented poles, and issues targeted re-retrievals only where gaps exist. Then a greedy re-ranker selects the final evidence set by minimizing W1W_{1} distance to PpopP_{pop}. The pipeline instantiates in three variants (Section 3.4): the Minimizer greedily selects from entity-matched candidates - effective for dense pools; for sparser conditions, W1W_{1}-MMR blends relevance with calibration, and WassRank OT solves the full slot-assignment as rectangular optimal transport requiring no per-domain tuning.

Our contributions:

  1. Pool expansion that recovers what cosine retrieval buries. Entity-gated and adaptive re-retrieval recover under-represented opinions with near-complete entity coverage. Self-bypasses at zero cost when already balanced.

  2. W1W_{1} re-rankers ensure faithful population representation. A greedy minimizer that matches opinion distribution for entity dense domains and the hybrid variants trade opinion diversity for relevance on sparse domains.

  3. Deployment characterization across 3 domains. Pool density determines algorithm choice. All variants add under 330 ms re-ranking latency (p99) and generalize across labeling methods and index types.