Measures of diversity and space-filling designs for categorical data

Cedric Malherbe, Emilio Domínguez-Sánchez, Merwan Barlier, Igor Colin, Haitham Bou Ammar, Tom Diethe

Selecting a small, highly diverse subset of items from a massive population is a foundational task in machine learning. It is the engine behind active learning (choosing which data to label), hyperparameter tuning (exploring a search space), and recommendation systems (displaying a diverse feed).

When data lives in a continuous space, well-established "space-filling" methods like Latin Hypercube or Halton sequences provide robust solutions. However, these methods break down entirely for categorical data—such as network architecture choices, job categories, or molecular structures. Categorical data lacks a natural ordering; we only know if two items are different, not how much greater or lesser one is than the other. Simply discretizing continuous space-filling designs often destroys their theoretical guarantees, sometimes yielding worse variance than purely random sampling. Because categorical spaces are combinatorial, finding the optimal diverse subset is an NP-hard problem, leaving a major gap in discrete experimental design.

This paper tackles this challenge by introducing novel exact and approximate algorithms based on linear programming and submodular optimization to generate optimal space-filling designs specifically for discrete spaces.

Formalizing Categorical Diversity

The authors first formalize categorical diversity using the Hamming distance to define three core optimization metrics:

  1. Packing Radius (PR): Maximize the minimum distance between any two points in the selected subset. This ensures points are as spread out as possible.
  2. Covering Radius (CR): Minimize the maximum distance from any point in the total space to the closest point in the subset. This ensures no region of the space is left unrepresented.
  3. Average Covering (AC): Minimize the average distance from any point in the total space to the subset.
Comparison of Packing Radius, Covering Radius, and Average Covering metrics for existing methods versus the proposed categorical approach.

Initially, the authors formulate the exact optimization of these metrics as Integer Linear Programs (ILPs). However, because exact solvers are computationally prohibitive for large spaces, they introduce two highly efficient approximate algorithms:

  • GIPPR (Greedy Integer Programming Packing Radius): Iteratively adds the point furthest away from the current design. Instead of an exhaustive search, it uses a clever ILP formulation at each step to find this exact point efficiently.
  • GAC (Greedy Average Covering): Iteratively adds the point that minimizes the Average Covering, leveraging the mathematical properties of the AC metric to perform greedy optimization.

Key Theoretical Insights

Categorical spaces behave fundamentally differently than continuous ones. Optimal categorical designs are invariant to permutations and the addition of points, meaning optimal designs are highly non-unique. While this makes closed-form solutions difficult, it allows for the easy generation of alternative designs via permutation.

A massive theoretical win in this paper is the mathematical proof that the Average Covering metric is supermodular. This means the metric exhibits "diminishing returns," unlocking the ability to use highly efficient greedy algorithms like GAC while still guaranteeing a mathematically sound approximation of the true optimal design. Even though GIPPR and GAC are greedy approximations, the authors prove they will always be at least half as good as the computationally impossible exact optimal solutions.

Empirical Results

The authors evaluated their methods across several benchmarks, including numerical integration, active learning (regression), and hyperparameter tuning.

  • Diversity Metrics: GIPPR and GAC consistently achieved the best empirical PR, CR, and AC scores compared to Random sampling, discretized Halton sequences, and k-DPP (Determinantal Point Processes).
  • Active Learning / Data Collection: When selecting 20 training samples to train a Gaussian Process, GAC and GIPPR yielded significantly lower Mean Squared Error (MSE). For example, on the Maximum Independent Set (MIS) task, the MSE dropped from 63.4 (Random) to 47.2 (GAC).
  • Hyperparameter Tuning: On a Graph Neural Network tuning task, GAC improved upon the default configuration by 84.0% (CiteSeer dataset), outperforming Random (82.0%) and k-DPP (83.0%). On SCIP linear solver tuning (Item placement), GAC achieved a 41.7% improvement versus Random's 23.4%.

Limitations and Future Work

While the theoretical guarantees are strong, the exact ILP solvers suffer from the curse of dimensionality and are only viable for very small dimensions ($d < 6$). The approximate algorithms (GIPPR/GAC) scale much better, but they still require fast-update tricks or stochastic approximations to run efficiently on larger dimensions ($d > 20$).

Future work will explore deep learning techniques—specifically, learning combinatorial optimization over graphs—to solve the underlying LP problems faster, allowing the methods to scale to even higher dimensions. The authors also plan to explore mixing different diversity measures and extending the framework to handle mixed continuous and discrete input spaces.

Summary updated

BibTeX
@inproceedings{malherbe2024measures,
  author = {Cedric Malherbe and Emilio Domínguez-Sánchez and Merwan Barlier and Igor Colin and Haitham Bou Ammar and Tom Diethe},
  title = {{Measures of diversity and space-filling designs for categorical data}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=YoUb2vW9WP},
}
Figure