arXiv:2610.01456cs.LGOct 2026

Manuscript Offprint

arXiv:2610.01456

Streaming algorithms for robust max-min diversification

Andrea Pietracaprina, Geppino Pucci, Stefano Zanon

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Andrea Pietracaprina, Geppino Pucci, and Stefano Zanon

Department of Information Engineering, University of Padova, Italy

{andrea.pietracaprina,geppino.pucci}@unipd.it,

stefano.zanon.3@studenti.unipd.it

Abstract. Given a set of nn points XX in a metric space and an integer kk, max-min diversification aims to select kk points of XX maximizing their minimum pairwise distance. This objective function is however highly vulnerable to noisy points. In [4], a robust formulation is proposed which addresses this vulnerability by excluding solutions containing any of zz outliers, defined as the zz points in XX with the largest nearest-neighbor distances. That paper also presents a coreset-based streaming algorithm for the new formulation, based on a suitable inlier-outlier separation assumption. However, we identify three shortcomings in the algorithm by [4]: its coreset construction requires an offline computation over XX, which needs memory linear in nn, in stark contrast with the typical goals of stream processing; the one-pass procedure used to extract the solution from the coreset may return fewer than kk points (hence, an unfeasible solution) because it permanently discards points too far from the current solution; and its outlier-exclusion guarantee is only probabilistic and weakens as the coreset size shrinks. In contrast, we present a deterministic coreset-based algorithm that, under a natural inlier-outlier separation assumption (similar to the one used in [4]), returns exactly kk inliers which are a (2+ε)(2+\varepsilon)-approximate solution, for any ε>0\varepsilon > 0, thus only ε\varepsilon above the best polynomial-time sequential approximation, even without outliers. Its one-pass streaming implementation adapts obviously to the dataset's doubling dimension DD and, for wide ranges of kk, zz, ε\varepsilon, and DD, it uses memory independent of nn. For sufficiently long streams, its amortized update time is proportional to the coreset size, thus also independent of nn.

1 Introduction

Given a set X of n points from a metric space and an integer k, the maximum diversification (also known as diversity maximization) problem requires to select k points of X maximizing some measure of how different the selected points are from one another. Maximum diversification is a fundamental primitive in the analysis of large datasets, as it returns a small subset of the input points which preserves its variety, and it has applications in web search, recommender systems, databases and data mining [4,9]. Among the measures proposed in the literature (see [13] for an exhaustive list), one of the most popular is the max-min (also known as remote-edge) measure, which we adopt in this work, and states that the diversity of a set SS is the minimum distance between any two distinct points of SS. The resulting max-min diversification problem is NP-hard, and the simple farthest-first heuristic of [10] (widely known as GMM) returns a 2-approximate solution in O(kn)O(kn) time, which is the best that can be achieved in polynomial time unless P=NPP = NP [15].

Since the objective function is a minimum of distances, the returned solution may be very sensitive to the presence of noise: for instance, spurious data points lying very far away from all other points in X, may unduly increase the value of the objective, and GMM, which iteratively selects the next point as the farthest from the previously selected ones, tends to return these noisy and hardly representative points of the dataset [4]. This issue calls for a robust formulation of the problem, where a fixed subset of z points of X are regarded as outliers and are forbidden to appear in any solution. The max-min diversification problem with outliers, introduced by [4] and considered in our work, requires, given a dataset X of n points, and two integer parameters k and z, with k+z≤nk + z \leq n, to determine the k points that optimize the max-min measure, among the points of X∖XoutX \setminus X_{out}, where XoutX_{out} are the z points of X farthest from their respective nearest neighbors. We note that this formulation is different from the one used for the robust version of the well-known k-center problem, where each solution (a set of k points) induces a different set of z outliers, defined as the z farthest points from that solution, and whose exclusion thus improves the objective function the most. Instead, when outliers are a fixed subset of the input, they must be identified by some criterion which does not depend on the objective function.

When the dataset is too large to be stored in main memory, it is natural to process it as a stream, that is, by a single processor which reads the input in one sequential pass using a working memory much smaller than n. A very effective strategy in this scenario is the extraction of a c-coreset [1], a small subset of the input which contains a c-approximation of the optimal solution for the whole dataset, for some c > 1, so that the execution of an expensive sequential algorithm for the problem can run on the coreset rather than on the entire dataset. As shown in [5–9] for a host of problems, the quality of the coresets that can be extracted, and hence the final approximation, is often regulated by the doubling dimension D of the metric space underlying the input instance [12].