Differentiable Submodular Maximization

Sebastian Tschiatschek, Aytunc Sahin, Andreas Krause

Abstract

This paper introduces differentiable versions of greedy algorithms for submodular maximization, enabling end-to-end training of set-prediction models. By smoothing the discrete decisions made during optimization, the authors allow gradients to flow through the maximization process, ensuring that the learned utility functions are specifically tuned to perform well with the optimization algorithm used at test time. The approach is evaluated on tasks including product recommendation and image summarization, demonstrating superior performance over traditional two-stage learning pipelines.

Introduction

Many real-world tasks involve predicting a set of items—such as product recommendations, image summarization, or object detection. These problems are notoriously difficult because the number of possible subsets grows exponentially with the number of items. To handle this, researchers often employ submodular functions, which satisfy the property of "diminishing returns." This property allows for efficient approximate maximization using simple greedy algorithms.

However, the standard pipeline is typically disjoint: first, a submodular function is learned using a proxy objective (like maximum likelihood); then, a greedy algorithm maximizes that function to select a set. This "two-stage" approach is suboptimal because the function is learned without knowledge of the specific optimization algorithm used during inference. This paper proposes a method for end-to-end training, where the learning process accounts for the optimization algorithm.

Methodology: Differentiable Greedy Algorithms

The core innovation is transforming discrete, non-differentiable greedy algorithms into probabilistic, differentiable counterparts. The authors propose two main algorithms:

  1. PD²GREEDY (Probabilistic Differentiable Double-Greedy): Designed for unconstrained maximization of non-monotone submodular functions. It replaces the hard "if-then" decisions of the standard double-greedy algorithm with smooth, sigmoid-like functions parameterized by a temperature $t$.
  2. PGREEDY (Probabilistic Differentiable Greedy): Designed for maximization under a cardinality constraint (picking exactly $k$ items). It treats the greedy selection at each step as a categorical distribution over available items, using a softmax-like transformation of the marginal gains.

By introducing a temperature parameter $t$, the authors create a differentiable likelihood over sets. As $t \to 0$, these algorithms behave exactly like their discrete counterparts. As $t$ increases, the distribution becomes smoother, providing more informative gradients for optimization via backpropagation.

Key Insights: The Smoothness-Accuracy Trade-off

A critical finding of this work is the existence of a "Goldilocks zone" for the temperature parameter $t$. If $t$ is too low, gradients vanish, making learning difficult. If $t$ is too high, the distribution becomes uniform and non-informative. Medium temperatures provide enough smoothness for stable learning while remaining close enough to the true greedy behavior to ensure accuracy.

Log-likelihood performance across training epochs and varying temperature parameters $t$.

As shown in the experimental results, the highest log-likelihoods on test data were consistently achieved at "medium" temperatures (around $t = 2^{-3}$), confirming the intuition behind this trade-off. Furthermore, the authors prove that these smoothed algorithms maintain approximation guarantees (e.g., a $1/2 - \epsilon$ guarantee for unconstrained maximization), where the error $\epsilon$ is a function of the temperature $t$.

Experimental Results

The authors evaluated their approach on three distinct tasks:

  • Synthetic Maximum Cut: The model learned a projection matrix that specifically helped the PD²GREEDY algorithm find better cuts, outperforming models where the function was learned independently of the optimizer.
  • Amazon Baby Registry: The proposed models consistently outperformed standard modular models and often beat Determinantal Point Processes (DPPs) in terms of "Fill-in Accuracy" and Mean Reciprocal Rank (MRR).
  • Image Collection Summarization: The model achieved a VROUGE score of 0.81, which is competitive with state-of-the-art specialized submodular learning methods, despite being a more general-purpose end-to-end architecture.

Conclusion and Future Work

Differentiable submodular maximization effectively bridges the gap between learning and optimization. While the approach shows significant promise, challenges remain regarding computational complexity—particularly for large cardinality constraints where exact likelihood computation is intractable. Future work may explore more sophisticated regularization to prevent overfitting in complex visual tasks and methods for learning the processing order of items within the algorithms.

Summary updated

BibTeX
@inproceedings{tschiatschek2018differentiable,
  author = {Sebastian Tschiatschek and Aytunc Sahin and Andreas Krause},
  title = {{Differentiable Submodular Maximization}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/379},
}
Figure