Skip to main content
QUICK REVIEW

[Paper Review] Submodlib: A Submodular Optimization Library

Vishal Kaushal, Ganesh Ramakrishnan|arXiv (Cornell University)|Feb 22, 2022
Rough Sets and Fuzzy LogicComputer Science6 citations
TL;DR

Submodlib is an open-source, efficient, and scalable Python library for submodular optimization, leveraging a C++ engine to accelerate computation. It enables effective data subset selection, summarization, and guided learning by modeling diversity, coverage, and relevance through submodular functions, with demonstrated success in real-world image and text applications.

ABSTRACT

Submodular functions are a special class of set functions which naturally model the notion of representativeness, diversity, coverage etc. and have been shown to be computationally very efficient. A lot of past work has applied submodular optimization to find optimal subsets in various contexts. Some examples include data summarization for efficient human consumption, finding effective smaller subsets of training data to reduce the model development time (training, hyper parameter tuning), finding effective subsets of unlabeled data to reduce the labeling costs, etc. A recent work has also leveraged submodular functions to propose submodular information measures which have been found to be very useful in solving the problems of guided subset selection and guided summarization. In this work, we present Submodlib which is an open-source, easy-to-use, efficient and scalable Python library for submodular optimization with a C++ optimization engine. Submodlib finds its application in summarization, data subset selection, hyper parameter tuning, efficient training and more. Through a rich API, it offers a great deal of flexibility in the way it can be used. Source of Submodlib is available at https://github.com/decile-team/submodlib.

Motivation & Objective

  • To address the high computational cost and inefficiency of training deep learning models by enabling efficient data subset selection using submodular optimization.
  • To support guided subset selection for targeted learning, where models are improved by selecting training data most relevant to rare or underperforming classes.
  • To provide a flexible, easy-to-use library that supports diverse applications such as extractive summarization, hyperparameter tuning, and privacy-preserving data selection.
  • To bridge the gap between theoretical submodular optimization and practical deployment by offering a rich, extensible API with support for multiple submodular functions and optimization algorithms.
  • To enable researchers and practitioners to efficiently apply submodular functions to real-world problems including image collection summarization and query-aware data selection.

Proposed method

  • The library implements a suite of submodular functions, including Facility Location, Graph Cut, and mutual information-based functions (e.g., FLQMI, GCMI), to model diversity, coverage, and relevance.
  • It uses a C++-based optimization engine to accelerate greedy and approximate optimization algorithms, significantly improving performance over pure Python implementations.
  • The library supports two core optimization problems: knapsack-constrained maximization (Problem 1) and submodular cover (Problem 2), enabling flexible subset selection under budget or coverage constraints.
  • It integrates parameterized submodular information measures (e.g., FLQMI) that balance relevance to a query set and diversity among selected items, controlled by a hyperparameter η.
  • The API supports both batch and incremental optimization, with options for early stopping and verbose logging, facilitating experimentation and integration into ML pipelines.
  • The library is designed with extensibility in mind, allowing users to define custom submodular functions and integrate them with existing optimization workflows.

Experimental results

Research questions

  • RQ1How can submodular optimization be efficiently and scalably applied to real-world data subset selection and summarization tasks?
  • RQ2To what extent can submodular functions improve model training efficiency and performance by selecting representative, diverse, and query-relevant subsets?
  • RQ3How do parameterized submodular information measures (e.g., FLQMI) balance relevance to a target distribution and diversity in subset selection?
  • RQ4Can a unified, open-source library with a high-performance C++ backend significantly lower the barrier to adopting submodular optimization in machine learning and data science?
  • RQ5How does the performance of submodular optimization in Submodlib compare to baseline implementations in terms of speed and solution quality across diverse datasets?

Key findings

  • Submodlib achieves significant speedups in submodular optimization through its C++-based engine, enabling efficient processing of large-scale datasets.
  • The FLQMI function successfully balances query relevance and diversity, with performance improving as the hyperparameter η increases, though higher η values reduce query coverage.
  • The GCMI function acts as a pure retrieval function, prioritizing query relevance over diversity, making it suitable for targeted data selection tasks.
  • On the Imagenette dataset, Submodlib successfully selected 20 image subsets aligned with query images using 4096-D VGG features, demonstrating effectiveness in real-world image collection summarization.
  • The library’s implementation supports both synthetic and real-world evaluations, showing consistent behavior across different data distributions and optimization objectives.
  • The availability of Google Colab notebooks and a comprehensive README enhances usability, enabling rapid prototyping and deployment of submodular optimization in diverse applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.