arXiv:2610.35131cs.DSOct 2026

Manuscript Offprint

arXiv:2610.35131

From Linear to Polylogarithmic: Dynamic Submodular Maximization over Matroids

Kiarash Banihashem, Samira Goudarzi, MohammadTaghi Hajiaghayi, Peyman Jabbarzade, Morteza Monemizadeh

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We study the problem of submodular maximization under a matroid constraint. In this problem, there is a monotone submodular function f:2N→R+f : 2^N \to \mathbb{R}^+ and a matroid M(N,I)\mathcal{M}(N, \mathcal{I}), accessible via value and independence oracles and the goal is to find the independent set S∈IS \in \mathcal{I} maximizing the objective function, i.e., f(S)=max⁡I∈If(I)f(S) = \max_{I \in \mathcal{I}} f(I). This problem has been extensively studied across a variety of settings, including the online setting [1] (JACM 2018), [31] (STOC 2012), the adaptive complexity model [4] (STOC 2019), and the streaming model [13] (Math. Program. 2015).

In the fully dynamic setting, the active ground set N⊆NN \subseteq N evolves through element insertions and deletions. The goal is to maintain a solution S⊆NS \subseteq N with S∈IS \in \mathcal{I} and f(S)=max⁡I⊆N,I∈If(I)f(S) = \max_{I \subseteq N, I \in \mathcal{I}} f(I) after each update. Two approximation algorithms have been proposed to solve this problem: Dütting et al. [18] developed a (4+ϵ)(4 + \epsilon)-approximation algorithm with an expected amortized update time of O(k2ϵlog⁡klog⁡nlog⁡3kϵ)O\left(\frac{k^2}{\epsilon} \log k \log n \log^3 \frac{k}{\epsilon}\right), which grows quadratically with the matroid rank kk, and Banihashem et al. [7] achieved a similar approximation with a better update time O(klog⁡klog⁡3kϵ)O(k \log k \log^3 \frac{k}{\epsilon}), which is linear in kk. However, these methods both become inefficient when the rank kk of the matroid is large (e.g., when k=no(1)k = n^{o(1)}).

The central open question in this line of work is whether a fully dynamic algorithm with polylogarithmic update time exists. This question was posed in [35] (NeurIPS'20) and [18] (TALG'25), and remains a natural open problem following [17] (STOC'22) and [7] (SODA'24).

We resolve this question by presenting the first fully dynamic algorithm for submodular maximization over matroids with polylogarithmic update time. Our algorithm maintains a (4+ϵ)(4 + \epsilon)-approximate solution with expected amortized update time poly(log⁡n,ϵ−1)\text{poly}(\log n, \epsilon^{-1}), where n=∣N∣n = |\mathcal{N}|. In particular, the update time is independent of the matroid rank kk, thereby eliminating the dependence on kk and settling the open problem.

1 Introduction

Many Web applications repeatedly need to select a high-quality subset of items from a large and continuously changing collection. For example, a Web platform may need to select a set of articles, products, advertisements, or recommended items to display to users. The quality of a selected set is often naturally modeled by a submodular function: adding an item provides diminishing marginal benefit as increasingly similar or redundant items are already selected. Submodular objectives have been widely used to model coverage and information-gathering objectives [33], as well as diversity in recommendation and search [43, 45].

In practice, however, a platform cannot select an arbitrary subset of items. The selected items must satisfy combinatorial constraints reflecting limited display space, business rules, or diversity requirements. Matroid constraints provide a particularly natural and expressive way to model such requirements. For example, a partition matroid can impose quotas on different categories or content providers, such as allowing at most rir_i

*Computer Science Department, University of Maryland, College Park, MD, USA. kiarash@umd.edu.

†^{\dagger}Computer Science Department, University of Maryland, College Park, MD, USA. samirag@umd.edu.

‡^{\ddagger}Computer Science Department, University of Maryland, College Park, MD, USA. hajiagha@cs.umd.edu.

§^{§}Computer Science Department, University of Maryland, College Park, MD, USA. peymanj@umd.edu.

^{¶}Department of Mathematics and Computer Science, TU Eindhoven, the Netherlands. m.monomizadeh@tue.nl.

items from category i. The rank of the matroid then has a direct interpretation as the total number of available selection slots. More general matroids can capture overlapping eligibility and resource constraints while allowing the algorithm to exchange selected items in a structured way. Thus, submodular maximization under a matroid constraint provides a general framework for balancing the quality of a selection with diversity and resource limitations that arise naturally in Web applications.

The role of the matroid rank is particularly intuitive in recommendation and content-selection systems. Suppose a platform must display at most k items. A uniform matroid of rank k models the basic capacity constraint that at most k items can be selected. A partition matroid can further distribute these k slots across categories or providers, for example by requiring that no category contribute more than a specified number of items. The submodular objective can then favor selections that cover diverse topics, users, or interests. In this setting, the rank represents the scale of the selection that the platform can maintain, while the matroid structure specifies how those limited slots may be allocated. More sophisticated matroids can similarly represent multiple interacting resource or eligibility constraints.

A defining characteristic of many Web applications is that their underlying collections and interactions evolve continuously. For example, in recommender systems, new items are introduced and users continuously interact with existing items, changing the interaction graph and the information available for recommendation [42, 24]. Real-world recommendation systems must also adapt to changing item-popularity trends while scaling to millions of items [37]. These changes can affect both the objective value of a selected set and its feasibility under application-specific constraints. Recomputing an approximately optimal solution from scratch after every insertion or deletion can be prohibitively expensive at Web scale. This motivates the fully dynamic version of submodular maximization, in which the active ground set changes over time and the algorithm must efficiently maintain a near-optimal feasible solution after each update.

For instance, consider a recommendation platform that maintains a set of items to display while promoting diversity across categories or providers [45]. The utility of a recommendation set can be modeled by a submodular function that captures user engagement, coverage, or diversity, while category or provider quotas can be represented by a matroid constraint. As new items become available and existing items are removed, the platform must continuously update its recommendations to adapt to the changing collection [24, 42]. Ideally, these updates should be processed in time that is polylogarithmic in the size of the system, rather than in time that grows with the number of available items or with the matroid rank.

Our work addresses this challenge by developing a fully dynamic algorithm for monotone submodular maximization under a matroid constraint with expected amortized update time poly(log⁡n,ϵ−1)\text{poly}(\log n, \epsilon^{-1}), independent of the matroid rank. This result provides a general algorithmic framework for maintaining approximately optimal constrained selections in dynamic Web environments, where both the collection of available items and the feasible solution may change continuously.

Submodular functions naturally express the principle of diminishing returns: the gain from adding an element decreases as the chosen set grows. Formally, a set function f:2N→R+f: 2^N \to \mathbb{R}^+ defined on a finite ground set N\mathcal{N} is submodular if, for every A⊆B⊆NA \subseteq B \subseteq \mathcal{N} and element e∈N∖Be \in \mathcal{N} \setminus B, f(A∪{e})−f(A)≥f(B∪{e})−f(B)f(A \cup \{e\}) - f(A) \geq f(B \cup \{e\}) - f(B). If, in addition, f(A)≤f(B)f(A) \leq f(B) for all A⊆BA \subseteq B, then ff is monotone.

Constraints often reflect structural or resource limitations—such as selecting a subset of features, sensors, or network links, which can be modeled as a matroid to capture independence and exchange properties. A matroid M=(N,I)\mathcal{M} = (\mathcal{N}, \mathcal{I}) is defined by a collection of independent sets I⊆2N\mathcal{I} \subseteq 2^N that satisfy non-emptiness, heredity, and the exchange property. The rank kk of M\mathcal{M} is the size of its largest independent set. The classical offline problem of submodular maximization under a matroid constraint seeks an independent set S∈IS \in \mathcal{I} that maximizes f(S)f(S), i.e., max⁡S∈If(S)\max_{S \in \mathcal{I}} f(S).

Submodular maximization has a broad range of applications. In machine learning, it appears in feature selection [11, 16], data summarization [38, 3], and active learning [44, 23]. In data mining and network science, it models influence maximization [30, 40] and community detection [25, 36], while in network design [15, 14], it captures objectives related to connectivity, reliability, and information flow.

The dynamic variant of submodular maximization under a matroid constraint has received growing attention [7, 18, 26, 27]. Here, the ground set N evolves over time through insertions and deletions, and the goal is to maintain an independent set S∈IS \in I that remains near-optimal for the current instance, while limiting the computational overhead per update. Formally, the algorithm interacts with f through a value oracle and with M through an independence oracle, and must update its maintained solution as the input changes.

While the offline version of submodular maximization under a matroid constraint is well understood—for instance, the classic greedy algorithm attains a (1−1/e)(1-1/e)-approximation [41]—these offline methods recompute the entire solution from scratch following each change, resulting in linear update time in ∣N∣|N|. Such costs become prohibitive in large-scale settings, which has spurred interest in efficient dynamic submodular maximization algorithms that offer near-optimal guarantees while maintaining polylogarithmic update times.

Designing efficient algorithms for maintaining near-optimal solutions to monotone submodular maximization under matroid constraints in a fully dynamic setting has been a longstanding challenge (was posed in [35, 18], and remains a natural open problem following [17, 7]). The goal is to handle insertions and deletions of elements while simultaneously achieving two key objectives:

• maintain a constant-factor approximation (e.g., (4+ϵ)(4 + \epsilon)) to the optimal solution, and

  • ensure that each update requires only polylogarithmic time in the size of the ground set, measured in oracle queries to f and M.

Prior work has made substantial progress toward this goal. Dütting et al. [18] provided a (4+ϵ)(4+\epsilon)-approximation algorithm with expected amortized update time O(k2ϵlog⁡klog⁡nlog⁡3kϵ)O(\frac{k^2}{\epsilon} \log k \log n \log^3 \frac{k}{\epsilon}). In concurrent and independent work, Banihashem et al. [7] improved this to a linear dependence on kk, achieving O(klog⁡klog⁡3kϵ)O(k \log k \log^3 \frac{k}{\epsilon}) expected amortized update time while preserving the same approximation guarantee. Despite these advances, both approaches become computationally expensive when the matroid rank is large, since the update time still grows polynomially with kk.

In this work, we overcome this barrier by introducing the first fully dynamic algorithm for submodular maximization under a general matroid constraint whose update time is polylogarithmic in n. Our algorithm maintains a (4+ϵ)(4 + \epsilon)-approximate solution with expected amortized update time poly(log⁡n,ϵ−1)\text{poly}(\log n, \epsilon^{-1}), independent of the matroid rank k. This breakthrough ensures that even rapidly evolving datasets can be handled efficiently, resolving the open problem posed by earlier studies.

Overview of Our Algorithm. Our dynamic algorithm for submodular maximization under matroid constraints builds on the dynamic framework developed for the simpler setting of cardinality constraints [5], which was later extended to submodular cover [9] and submodular matching [8]. Prior to our work, it remained unclear whether these ideas could yield an algorithm with polylogarithmic update time under matroid constraints, whose rich combinatorial structure is notoriously difficult to handle 1^{1}.

1^{1}A well-known illustration of this difficulty is the classical secretary problem. Babaioff, Immorlica, and Kleinberg [2] introduced the matroid secretary problem as a generalization, in which the goal is to select a maximum-weight independent set of a matroid from elements arriving in random order. Constant-competitive algorithms are known for several structured matroid families, including graphic, partition, and laminar matroids [32, 28, 22]. Similarly, constant-factor approximations are known under matching constraints [19], suggesting that similar algorithms might also work for the matroid constraints and that comparable guarantees could extend to matroids.

To process elements, the algorithm organizes them into TT hierarchical layers, with TT polylogarithmic in expectation. At each layer ℓ\ell, our data structure maintains an independent set Iℓ∈II_\ell \in \mathcal{I}, together with an auxiliary set Iℓ∪I^\cup_\ell as the union of all elements present in the independent set II of its preceding levels. A key design choice is that marginal gains are always evaluated with respect to I∪I^\cup rather than II. Since I∪I^\cup only grows over time, marginal values are non-increasing, and elements that were discarded at some layer because of their small marginal contribution do not need to be reconsidered. This prevents costly re-evaluations.

Each layer ℓ\ell contains a set of elements EℓE_{\ell} whose marginal gains with respect to I∪I^{\cup} exceed a threshold and are feasible for addition to I under the matroid constraint. These elements are further partitioned into logarithmically many buckets according to their marginal values, and in each layer, the largest bucket is selected for processing. This bucket has two key properties: its elements have nearly equal marginal gains, and processing a constant fraction of them both ensures a substantial contribution to the solution and provides robustness against small deletions. These properties are crucial for controlling solution quality and for bounding the approximation guarantee.

Within each chosen bucket, we employ a sampling mechanism to estimate how many elements should be drawn so that a sufficient number can be successfully added to I without violating independence or, if necessary, by displacing existing elements that are less valuable. Once the sample size is determined, a set SℓS_{\ell} of that size is drawn uniformly from the bucket. With high probability, most of these elements are successfully added to I. In the case of conflicts, elements currently in I are removed to restore independence while remaining in I∪I^{\cup}, and the total marginal gain of the inserted elements is always at least twice that of the evicted ones. This geometric dominance guarantees that the overall loss is bounded and that the approximation ratio is preserved over time.

Insertions and deletions are handled using buffered updates. For insertions, each layer maintains a buffer AℓA_{\ell} of new elements, and the layer is rebuilt only when the buffer reaches an ϵ\epsilon-fraction of the size of EℓE_{\ell}. For deletions, a single shared buffer D is used across all layers, and a layer is rebuilt once an ϵ\epsilon-fraction of its elements have been deleted. These lazy updates spread the cost of reconstruction evenly over time, leading to low amortized query complexity.

Finally, to accommodate elements of widely varying submodular values, we run parallel copies of the algorithm with thresholds of the form τ=ϵ4k⋅2i\tau = \frac{\epsilon}{4k} \cdot 2^i, where ii ranges over integers. Each element participates only in the runs whose thresholds match its value interval, ensuring efficiency across the full value range. This thresholding technique is inspired by the parallel-run method of [35].

Theorem 1. For any ϵ>0\epsilon > 0, there exists a fully dynamic randomized algorithm for submodular maximization under a matroid constraint that maintains an expected (4+ϵ)(4 + \epsilon)-approximate solution against an oblivious adversary. The expected amortized update time is poly(log⁡n,1ϵ)\text{poly}(\log n, \frac{1}{\epsilon}), where n=∣N∣n = |\mathcal{N}| is the ground set size.

Next, we highlight the key novelties of our work in comparison with prior dynamic algorithms for submodular maximization under matroid and cardinality constraints. The dynamic algorithm for matroid constraints proposed in [7] achieves an update time linear in the rank k of the underlying matroid. In contrast, the dynamic algorithm for the cardinality constraint introduced in [5] achieves a polylogarithmic update time. However, neither of these techniques alone can be extended to develop a dynamic algorithm for matroid constraints that maintains a (4+ϵ)(4 + \epsilon)-approximate solution with an expected amortized update time of poly(log⁡n,ϵ−1)\text{poly}(\log n, \epsilon^{-1}).

However, achieving such guarantees for general matroids remains one of the central open problems in the area. Despite being conjectured as early as 2007, the existence of constant-competitive algorithms for general matroids is still unresolved after nearly two decades of research, and the best known results achieve an O(log⁡log⁡k)O(\log \log k)-competitive ratio, where k denotes the matroid rank [34, 21]. This persistent gap highlights the inherent difficulty of extending techniques that succeed under uniform (cardinality) or matching constraints to the broader class of matroid constraints.

The approach in [7] maintains O(k)O(k) layers and, upon the deletion of an element ee from the current solution, reconstructs the layer ℓ\ell where ee was added, along with all subsequent layers. As a result, this framework cannot be directly transformed into a data structure that supports poly(log⁡n,ϵ−1)\text{poly}(\log n, \epsilon^{-1}) update time under matroid constraints. To overcome this limitation, we partition the active set EℓE_\ell in each layer ℓ\ell into logarithmically many buckets according to the marginal values of their elements, and we select the largest bucket for processing. This bucket contains at least O(ϵlog⁡n∣Eℓ∣)O(\frac{\epsilon}{\log n}|E_\ell|) elements whose marginal gains are nearly identical. Using a sampling mechanism, we estimate the fraction of elements in this bucket that can be added to the current solution through a single uniform sample. The key insight is that, since all elements added to the solution at layer ℓ\ell have nearly equal marginal gains, as long as only an O(ϵ)O(\epsilon) fraction of them are modified, the maintained solution continues to provide a (4+ϵ)(4 + \epsilon)-approximation guarantee. Consequently, unlike the approach in [7], which can tolerate only one update to the maintained solution (and therefore requires O(k)O(k) layers), our method can tolerate changes to an O(ϵ)O(\epsilon) fraction of elements with nearly equal marginal gains. This property enables us to achieve an expected amortized update time of poly(log⁡n,ϵ−1)\text{poly}(\log n, \epsilon^{-1}).

Moreover, while submodular maximization under cardinality or matching constraints is closely related to the matroid-constrained problem—specifically where the matroid is uniform of rank k—extending dynamic algorithms (e.g., [35, 5, 8]) to general matroids is far from trivial. The primary challenge lies in the structural nature of matroids, particularly the strong exchange property, which governs how independence is maintained as elements are inserted or deleted. Under a cardinality constraint, feasibility is a simple function of the set's size. This simplicity facilitates efficient update operations and enables the maintenance of approximate solutions with amortized polylogarithmic complexity. Similarly, matching constraints possess a specific localized structure that limits the ripple effect of updates. In contrast, for general matroids, maintaining independence requires intricate coordination across the entire ground set; adding or removing a single element can shift the feasibility status of numerous other subsets. Consequently, existing algorithms cannot be directly adapted to general matroids without substantial new insights. Our analysis introduces non-trivial arguments leveraging matroid axioms to ensure that dynamic updates preserve both independence and near-optimality.

One of the technicalities of this dynamic framework lies in its sampling size estimation procedure, which differs fundamentally from the binary-search sampling method used in [5], originally introduced in [20] and [4]. Due to the exchange property inherent in matroid constraints, this binary-search approach cannot be directly applied. Instead, we design a new sampling mechanism adapted to the matroid structure. For each layer ℓ\ell, to estimate the number of elements of the largest bucket that can be uniformly sampled all at once (i.e., non-adaptively), we consider a polylogarithmic number of random permutations of elements in the largest bucket. For each permutation, we iterate from its beginning to determine the elements that can be added to the current solution while maintaining independence. (Recall that if a conflict arises, elements currently in I are removed to restore feasibility, and the removed elements are added to I∪I^{\cup}. It is important to note that, unlike the dynamic algorithm for cardinality constraint [5], where marginal gains are compared directly against the current solution, in our matroid-constrained setting, the marginal gains are compared with respect to I∪I^{\cup}, while the independence condition is enforced relative to the solution set I.)

After processing all permutations, we identify the largest index ii of the permutations such that, in at least a (1−ϵ)(1 - \epsilon)-fraction of the permutations, the element at index ii could be added to I∪I^{\cup}. Finally, in contrast to the cardinality-constrained setting, where all tt uniformly sampled elements from the largest bucket are added to the solution, our framework must verify each sampled element individually to ensure matroid feasibility.

However, the primary technical challenge of this work, distinguishing it from [8], arises from the fundamental structural disparities between matroids and matchings. Specifically, the INSPECT and ADJUST procedures required for matroids are more involved than those employed in the matching framework. These structural differences ultimately lead to a substantially different and more complex analysis to establish approximation guarantees.

References (41)