Learning to Optimize Combinatorial Functions

Nir Rosenfeld, Eric Balkanski, Amir Globerson, Yaron Singer

TL;DR

This paper bridges the gap between machine learning and combinatorial optimization by proving that a class of functions can be optimized from samples if and only if it can be learned. The authors introduce Distributional Optimization from Samples (DOPS), a framework that avoids the "worst-case" hardness of previous methods by focusing on expected performance over the data distribution. They demonstrate its effectiveness in predicting trending social media content.

What Problem Does This Paper Address?

In many real-world scenarios—like predicting which set of users will make a hashtag go viral—we don't actually know the underlying mathematical function we are trying to maximize. Instead, we only have historical data (samples).

The standard approach is a two-step process:

  1. Learn a surrogate function from the data.
  2. Optimize that surrogate to find the best solution.

However, recent theoretical work on Optimization from Samples (OPS) delivered a discouraging result: for submodular functions (a common class of functions with diminishing returns), no algorithm can guarantee a good approximation of the true optimum using only a polynomial number of samples. This happens because errors in the learned model are often magnified exactly where the function is at its peak.

The authors argue that this hardness is a "worst-case" artifact. In practice, we usually care about how well an algorithm performs on the same distribution of data it was trained on, rather than its performance against a worst-case adversary.

Methods

The authors propose a new objective called Distributional Optimization from Samples (DOPS). Instead of trying to find a global maximum across the entire (massive) combinatorial space, DOPS asks: can we pick the best item out of a randomly sampled set $T$?

Key Contributions:

  • The Equivalence Theorem: They prove a tight theoretical link between PMAC-learnability (Probably Mostly Approximately Correct learning) and DOPS-optimizability. Essentially, if you can learn the function, you can optimize it in this distributional sense, and vice versa.
  • Learning to Optimize at Scale: They move beyond pure theory to provide a practical algorithm. They identify that many complex combinatorial functions (like graph cuts or coverage functions) can be "linearized" relative to their parameters.
  • Surrogate Loss Function: They design a convex surrogate loss (similar to a hinge loss used in SVMs) that specifically penalizes the model if it ranks a sub-optimal item higher than the "true" best item in a sampled set. This allows them to use efficient, scalable convex solvers to "learn to optimize."

Datasets

The authors evaluate their approach on a real-world benchmark:

  • Twitter Hashtag Dataset: A dataset containing over 612,000 users and 226,000 distinct hashtags.
  • The Task: Given the first few "early adopters" of a hashtag, predict which hashtags will eventually become the most widespread. This is modeled as a coverage function optimization problem on a social graph.

Key Insights and Ideas

  • Distributional Consistency: The "aha moment" is realizing that the discrepancy between how an algorithm gains information (samples) and how it is evaluated (globally) is what makes the problem hard. By aligning the evaluation with the data distribution, the problem becomes tractable.
  • Optimization as Ranking: The paper reframes optimization not as finding a needle in a haystack, but as a ranking problem. If your model can correctly identify that "Option A is better than Option B" for most pairs in your distribution, you can effectively optimize.
  • Linearization of Submodularity: While submodular functions are non-linear in their inputs (the sets), they are often linear in their parameters (the weights assigned to elements). This observation allows the authors to apply powerful machine learning tools to combinatorial problems.

Key Results

  • Superior Performance: In the Twitter trending task, the DOPS model significantly outperformed several baselines, including standard linear regression (LinReg), first-order extrapolation (Slope), and previous state-of-the-art OPS and PMAC algorithms.
Average number of adopters vs. k (number of early adopters)
  • Scaling with Sample Size: Interestingly, while the performance of most baselines stayed flat or even degraded as the test set size ($m$) increased, DOPS's performance improved steadily. This suggests that the model truly captures the underlying structure of the distribution.
Average number of adopters vs. m (test set size)
  • Robustness: The method proved effective even when the output was restricted to a set of sampled alternatives, a common constraint in human-centric systems (e.g., choosing which existing trending item to promote).

Limitations and Future Work

  • Parametric Assumptions: The practical "at scale" algorithm requires the user to specify a function class (e.g., "this is a coverage function"). If the underlying phenomenon doesn't fit that class, performance may suffer.
  • Computational Complexity of Kernels: For some classes (like coverage with unknown sets), the authors suggest using kernels. However, as the degree of the polynomial grows, the explicit size of the transformation can become very large, necessitating more complex dual-form solvers.
  • Open Question on Hardness: The authors conclude by wondering if there are function classes that are seemingly "hard-to-learn" but, because of their specific optimizational properties, can actually be learned efficiently through this framework.

Summary updated

BibTeX
@inproceedings{rosenfeld2018learning,
  author = {Nir Rosenfeld and Eric Balkanski and Amir Globerson and Yaron Singer},
  title = {{Learning to Optimize Combinatorial Functions}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
}
Figure