Abstract
Diversity maximization is a fundamental problem with wide applications in data summarization, web search, and recommender systems. Given a set $X$ of $n$ elements, it asks to select a subset $S$ of $k \ll n$ elements with maximum diversity, as quantified by the dissimilarities among the elements in $S$. In this paper, we focus on the diversity maximization problem with fairness constraints in the streaming setting. Specifically, we consider the max-min diversity objective, which selects a subset $S$ that maximizes the minimum distance (dissimilarity) between any pair of distinct elements within it. Assuming that the set $X$ is partitioned into $m$ disjoint groups by some sensitive attribute, ensuring fairness requires that the selected subset $S$ contains $k_i$ elements from each group $i \in [1,m]$. We propose two approximation algorithms for fair diversity maximization in data streams: SFDM1, which is $\frac{1-\varepsilon}{4}$-approximate for $m=2$, and SFDM2, which achieves a $\frac{1-\varepsilon}{3m+2}$-approximation for arbitrary $m$. Experimental results show that both algorithms provide solutions of comparable quality to state-of-the-art offline algorithms while running several orders of magnitude faster.
Introduction
In the era of big data, summarizing massive datasets into small, representative subsets is essential for efficient processing and human interpretation. Two critical requirements have emerged for these summaries: Diversity and Fairness. Diversity ensures that selected items are as distinct as possible, typically measured by the max-min dispersion (maximizing the minimum distance between any two items). Fairness ensures that the subset respects group representation constraints, such as ensuring specific counts for different demographic groups (e.g., race, gender, or genre).
While diversity and fairness have been studied individually, solving them simultaneously in a streaming setting—where data arrives sequentially and memory is limited—presents significant challenges. Existing fair diversity algorithms are largely designed for offline use, making them too slow and memory-intensive for real-time applications like live recommender systems or web search. This paper introduces the first efficient streaming algorithms for Fair Diversity Maximization (FDM).
Methodology
The proposed algorithms, SFDM1 and SFDM2, operate using a two-phase approach: stream processing and post-processing. Both algorithms utilize a "guessing" framework to handle the unknown optimal diversity value ($OPT$).
The Guessing Framework
Since the optimal minimum distance $OPT$ is not known beforehand, the algorithms maintain a set of guesses for $OPT$ in a geometric progression. For each guess, the algorithm maintains a small candidate set of items that are at least a certain distance apart. This allows the algorithm to adapt to the scale of the data as it arrives.
SFDM1: The Two-Group Specialist
SFDM1 is optimized for scenarios with exactly two groups (e.g., binary gender). During the stream, it maintains both group-blind candidates and group-specific candidates. In the post-processing phase, it employs a greedy swapping strategy. It starts with a diverse but potentially unfair set and swaps items with group-specific candidates to satisfy fairness constraints while minimizing the loss in diversity. This approach yields a $\frac{1-\varepsilon}{4}$-approximation.
SFDM2: The Generalist via Matroid Intersection
For an arbitrary number of groups $m$, the authors propose SFDM2. This algorithm leverages Matroid Intersection theory to bridge the gap between fairness and diversity. It treats the fairness requirement as a "partition matroid" and the diversity requirement (represented by clusters of nearby points) as another matroid structure. By applying Cunningham’s algorithm in the post-processing phase, SFDM2 finds a subset that satisfies both constraints, achieving a $\frac{1-\varepsilon}{3m+2}$-approximation.
Experimental Evaluation
The algorithms were evaluated on four real-world datasets—Adult (census data), CelebA (face images), Census (1990 US Census), and Lyrics (song genres)—alongside synthetic datasets to test scalability.
Key Findings
- Efficiency: SFDM1 and SFDM2 are 2 to 4 orders of magnitude faster than state-of-the-art offline algorithms like FairSwap and FairFlow.
- Quality: Despite the constraints of the streaming model, the diversity of the subsets produced is nearly identical to (and occasionally exceeds) the quality of much slower offline versions.
- Scalability: Experiments on synthetic data (up to $10^7$ points) demonstrated that the update time per element remains constant regardless of the total dataset size, confirming the algorithms' suitability for massive data streams.
- Memory Footprint: The memory requirements are independent of the total dataset size $n$, depending only on the summary size $k$ and the number of groups $m$.
Conclusion and Future Work
This research demonstrates that streaming is a viable paradigm for fair diversity maximization. By combining a guessing framework with matroid theory, the authors provide a solution that balances theoretical guarantees with practical performance.
Future work may address the degradation of the approximation ratio in SFDM2 as the number of groups $m$ increases. Additionally, extending these algorithms to handle sliding windows—where only the most recent data points are considered—would further enhance their utility in volatile, real-time environments. Finally, exploring dynamic fairness constraints that adapt to the incoming stream's composition remains an open and promising challenge.
Summary updated