Welfarist Formulations for Diverse Similarity Search

Siddharth BarmanNirjhar DasShivam GuptaKiran Shiragur

article2026arXiv0 citations

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.

Listen

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.

arXiv: 2602.08742

No sufficiently relevant recommendations were found.

Cover for Welfarist Formulations for Diverse Similarity Search

Abstract

Nearest Neighbor Search (NNS) is a fundamental problem in data structures with wide-ranging applications, such as web search, recommendation systems, and, more recently, retrieval-augmented generations (RAG). In such recent applications, in addition to the relevance (similarity) of the returned neighbors, diversity among the neighbors is a central requirement. In this paper, we develop principled welfare-based formulations in NNS for realizing diversity across attributes. Our formulations are based on welfare functions -- from mathematical economics -- that satisfy central diversity (fairness) and relevance (economic efficiency) axioms. With a particular focus on Nash social welfare, we note that our welfare-based formulations provide objective functions that adaptively balance relevance and diversity in a query-dependent manner. Notably, such a balance was not present in the prior constraint-based approach, which forced a fixed level of diversity and optimized for relevance. In addition, our formulation provides a parametric way to control the trade-off between relevance and diversity, providing practitioners with flexibility to tailor search results to task-specific requirements. We develop efficient nearest neighbor algorithms with provable guarantees for the welfare-based objectives. Notably, our algorithm can be applied on top of any standard ANN method (i.e., use standard ANN method as a subroutine) to efficiently find neighbors that approximately maximize our welfare-based objectives. Experimental results demonstrate that our approach is practical and substantially improves diversity while maintaining high relevance of the retrieved neighbors.

Citation

MLA
Barman, S., et al. “Welfarist Formulations for Diverse Similarity Search”. arXiv, 2026, http://arxiv.org/abs/2602.08742v1.
APA
Barman, S., Das, N., Gupta, S., & Shiragur, K. (2026). Welfarist Formulations for Diverse Similarity Search. arXiv. http://arxiv.org/abs/2602.08742v1
Chicago
Barman, S., N. Das, S. Gupta, and K. Shiragur. 2026. “Welfarist Formulations for Diverse Similarity Search”. arXiv. http://arxiv.org/abs/2602.08742v1.
Harvard
Barman, S. et al. (2026) “Welfarist Formulations for Diverse Similarity Search”, arXiv [Preprint]. Available at: http://arxiv.org/abs/2602.08742v1.
Vancouver
1. Barman S, Das N, Gupta S, Shiragur K (2026) Welfarist Formulations for Diverse Similarity Search. arXiv

BibTeX

@article{barman2026welfarist,
  title = {Welfarist Formulations for Diverse Similarity Search},
  author = {Barman, Siddharth and Das, Nirjhar and Gupta, Shivam and Shiragur, Kirankumar},
  year = {2026},
  journal = {arXiv},
  url = {http://arxiv.org/abs/2602.08742v1},
  eprint = {2602.08742}
}
Metadata:arXiv

Access the Paper

This paper is available from its original source. Click below to access the PDF.

Open PDF
License: https://creativecommons.org/licenses/by-sa/4.0/