Welfarist Formulations for Diverse Similarity Search
Siddharth BarmanNirjhar DasShivam GuptaKiran Shiragur
Develops an axiomatic welfare-economics framework for diverse nearest neighbor search that adaptively balances relevance and diversity with provable guarantees while serving as an efficient wrapper over any standard approximate nearest neighbor algorithm.
Modern data systems across web search, product recommendation, advertising, and retrieval-augmented generation increasingly rely on nearest neighbor search to identify the most relevant items for a given user query. However, optimizing solely for similarity often leads to redundant or unfair outcomes, such as a single seller or product category dominating all displayed results. While existing techniques attempt to enforce diversity by setting rigid caps on how many results can share the same attribute, these hard constraints fail to adapt dynamically to user intent and can significantly degrade search relevance when a specific category is explicitly requested.
The article develops a principled, economics-inspired framework that balances relevance and attribute diversity in similarity search without relying on ad hoc quotas. By treating attributes as economic agents and applying collective welfare formulations—specifically Nash social welfare and generalized p-mean welfare functions—the authors design algorithms that adaptively balance diversity and relevance in a query-dependent manner.
To evaluate this framework, the authors conducted theoretical analyses and empirical experiments across both single-attribute and multi-attribute environments. They tested their algorithms on real-world and semi-synthetic benchmark datasets comprising up to nearly 10 million vectors, including product image queries, academic machine learning papers, and high-dimensional image descriptors. The evaluation compared the welfare-based approach against standard approximate nearest neighbor search and prior hard-constrained diversity methods using standard relevance and diversity metrics.
The findings establish that the Nash-based formulation achieves high diversity while consistently maintaining strong relevance, regularly achieving an approximation ratio above 0.90 across datasets. In contrast, hard-constrained baselines demonstrated extreme sensitivity to user-defined quotas, occasionally suffering severe relevance drops with approximation ratios falling below 0.20 to 0.40. Furthermore, the generalized p-mean objective allows practitioners to smoothly tune the system between pure relevance and maximum diversity. For practical deployment, the authors showed that their algorithms can layer directly on top of existing search infrastructure, and an optimized union-fetching heuristic delivered up to a tenfold throughput increase and substantial latency reductions.
These results demonstrate that organizations can implement diversity and fairness safeguards in large-scale search and recommendation platforms without sacrificing relevance or overhauling existing index pipelines. Because the multi-attribute optimization problem is proved to be computationally hard, the authors provide a polynomial-time approximation algorithm that guarantees approximately 63% of optimal welfare. For latency-critical enterprise environments, adopting the union-fetching heuristic offers an effective balance between throughput and diverse retrieval, though practitioners should select tuning parameters to match their specific domain needs.
- Paper: The use of MMR, diversity-based reranking for reordering documents and producing summaries, Jaime Carbonell et al. (1998). Introduces Maximal Marginal Relevance (MMR) for balancing relevance and diversity in information retrieval, establishing the foundational trade-off problem that welfarist formulations seek to generalize.
- Paper: Improving recommendation lists through topic diversification, Cai-Nicolas Ziegler et al. (2005). Demonstrates the practical necessity and trade-offs of diversifying similarity-based recommendation lists beyond pure relevance matching.
- Paper: Determinantal Point Processes for Machine Learning, Alex Kulesza et al. (2012). Provides the mathematical foundations and probabilistic formulations for balancing item quality with set diversity in machine learning.
- Paper: Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs, Yu. A. Malkov et al. (2016). Details the Hierarchical Navigable Small World (HNSW) graph algorithm, a foundational approximate nearest neighbor search method that serves as a standard subroutine for downstream retrieval frameworks.
- Paper: Fairness of Exposure in Rankings, Ashudeep Singh et al. (2018). Formulates exposure fairness and demographic parity constraints in ranking systems, providing key background on constraint-based approaches to diverse and fair retrieval.
- Paper: DiskANN: Fast Accurate Billion-point Nearest Neighbor Search on a Single Node, Suhas Jayaram Subramanya et al. (2019). Presents DiskANN as an efficient graph-based approximate nearest neighbor search architecture, representing the standard indexing infrastructure extended by diverse retrieval methods.
No sufficiently relevant recommendations were found.
