---
title: 'Submodular Knapsack Problem: Theory & Methods'
url: https://www.emergentmind.com/topics/submodular-knapsack-problem-skp
type: topic
---

# Submodular Knapsack Problem: Theory & Methods

The Submodular Knapsack Problem (SKP) is the problem of maximizing a submodular set function under a single knapsack budget. In its standard form, one is given a finite ground set \(N\), a non-negative submodular function \(f:2^N\to \mathbb{R}_{\ge 0}\), item costs \(w_i\), and a budget \(B\), and seeks
\[
\max\{f(S): S\subseteq N,\ \sum_{i\in S} w_i\le B\}.
\]
SKP is the \(d=1\) specialization of submodular maximization under \(d\) knapsack constraints, and it sits at the intersection of discrete optimization, approximation algorithms, stochastic optimization, and exact combinatorial search. Its modern theory is organized around two complementary views: a discrete view based on greedy, local-search, and branch-and-bound methods, and a continuous view based on the multilinear extension \(F(x)=\mathbb{E}[f(R(x))]\), which transfers approximation guarantees from fractional relaxations back to feasible sets [1101.2940].

## 1. Formal model and structural notions

A set function \(f\) is submodular if it satisfies diminishing returns. Equivalently, for all \(S,T\subseteq N\),
\[
f(S)+f(T)\ge f(S\cup T)+f(S\cap T).
\]
In the monotone case, \(S\subseteq T\) implies \(f(S)\le f(T)\); in the non-monotone case, monotonicity is dropped but non-negativity is typically retained [1101.2940]. In many formulations, especially those centered on classical greedy analysis, \(f\) is also normalized, \(f(\emptyset)=0\), and accessed through a value oracle [2209.09668].

The single-knapsack constraint assigns each item \(i\) a nonnegative weight \(w_i\) and imposes \(\sum_{i\in S} w_i\le B\). The marginal gain notation
\[
f(i\mid S):=f(S\cup\{i\})-f(S)
\]
is central, as are marginal densities \(f(i\mid S)/w_i\). These quantities drive both density-greedy algorithms and continuous-relaxation analyses.

Several structural notions recur in the literature. One is the partition of items into “big” and “small” elements relative to an accuracy parameter \(\epsilon\): for \(d\) knapsacks, an item is small if \(w_i^{(j)}\le \epsilon^3 B_j\) for all \(j\), and big otherwise [1101.2940]. Another is total curvature, which measures how much an element’s marginal can decay in the presence of others. For normalized, monotone, submodular \(f\), the total curvature is
\[
c = 1-\min_{j\in V}\frac{f(j\mid V\setminus\{j\})}{f(\{j\})}
=1-\min_{j\in V}\frac{f(V)-f(V\setminus\{j\})}{f(\{j\})},
\]
with \(c=0\) if and only if \(f\) is modular and \(c=1\) covering fully curved cases such as matroid rank [2209.09668].

## 2. Multilinear relaxation and continuous-to-discrete transfer

A foundational development for SKP is the extension by expectation, or multilinear extension. For \(x\in [0,1]^N\), let \(R(x)\) include each item independently with probability \(x_i\), and define
\[
F(x)=\mathbb{E}[f(R(x))]
=\sum_{S\subseteq N} f(S)\prod_{i\in S}x_i\prod_{i\notin S}(1-x_i).
\]
The continuous relaxation of SKP is
\[
\max\{F(x): x\in [0,1]^N,\ \sum_i w_i x_i\le B\}.
\]
Independent Bernoulli sampling is essential here: it gives \(F\) the continuity and diminishing-returns structure needed by continuous optimization methods [1101.2940].

For monotone objectives, continuous greedy achieves near-optimal value \(1-1/e-o(1)\), while for non-monotone objectives continuous algorithms achieve \(1/4-o(1)\) [1101.2940]. The central theorem of the 2011 transfer framework states that, for any non-negative submodular function and fixed \(d\), an \(\alpha\)-approximation for the continuous relaxation implies a polynomial-time randomized \((\alpha-\epsilon)\)-approximation for the discrete problem under \(d\) knapsack constraints, hence also for SKP [1101.2940].

The reduction has three main ingredients. First, profit enumeration guesses a small set \(T\) of highly profitable items from the unknown optimum, with enumeration size \(h=d\cdot \epsilon^{-4}\). For at least one guess, the residual instance preserves at least \((1-\epsilon)\cdot \mathrm{OPT}\), and all remaining items are small. Second, one solves the multilinear relaxation on the residual instance to obtain \(\hat x\) with \(F(\hat x)\ge \alpha(1-\epsilon)\mathrm{OPT}\). Third, one samples \(D\sim R(\hat x)\), discards outcomes that violate a \((1+\epsilon)\)-near-feasibility condition, and then applies a fixing procedure that removes a small-value subset to restore exact feasibility while losing only an \(O(\epsilon)\) fraction of the value. Altogether,
\[
\mathbb{E}[f(\text{output})]\ge (\alpha-\epsilon)\mathrm{OPT}.
\]

The same framework admits a deterministic reduction if an oracle for \(F\) is available. Pipage rounding shrinks the fractional support to \(O(\log |N|)\), after which all realizations of the induced product distribution can be enumerated in polynomial time, filtered for near-feasibility, and fixed. This yields deterministic \((\alpha-\epsilon)\)-approximations for the discrete problem from deterministic \(\alpha\)-approximations to the continuous relaxation [1101.2940].

A separate nearly-linear-time contribution showed that the traditional multilinear framework suffers from an \(\Omega(n^2)\) bottleneck because evaluating \(F\) and its gradient to high precision is expensive; the proposed remedy was to maintain only \(O(\epsilon^{-4})\) strictly fractional coordinates, so that multilinear values can be evaluated exactly by enumerating the \(2^{O(\epsilon^{-4})}\) outcomes on those coordinates [1709.09767].

## 3. Approximation algorithms for classical SKP

The modern approximation landscape for classical SKP separates near-optimal but often heavy multilinear methods from lighter combinatorial algorithms with weaker worst-case guarantees.

| Setting | Guarantee | Representative method |
|---|---:|---|
| Monotone SKP | randomized \((1-e^{-1}-\epsilon)\) | continuous-relaxation transfer |
| Non-monotone SKP | randomized \((1/4-\epsilon)\) | continuous-relaxation transfer |
| Monotone SKP | \(1/2\) | Greedy+Max |
| Monotone SKP | deterministic \((7/16-\epsilon)\) | threshold/backtracking |
| Monotone SKP | \((1-1/e-\epsilon)\) | nearly-linear-time multilinear method |
| Non-monotone SKP | \(5.83\)-approximation | randomized density-greedy |

The first two guarantees are immediate specializations of the continuous-to-discrete transfer theorem: monotone SKP admits a randomized \((1-e^{-1}-\epsilon)\)-approximation, and non-monotone SKP admits a randomized \((1/4-\epsilon)\)-approximation [1101.2940]. In settings where \(F\) is available or exactly computable, the same ratios can be obtained deterministically.

On the combinatorial side, “Bring Your Own Greedy” + Max augments every greedy prefix with the best additional item that still fits. In the offline setting it gives a \(1/2\)-approximation for monotone SKP with \(O(nL)\) time and oracle calls, where \(L=\min(n,K)\); it extends to multi-pass streaming and distributed models with \((1/2-\epsilon)\)-approximation [1910.05646]. A different deterministic line gives a \((7/16-\epsilon)\)-approximation for a single knapsack using nearly linear query complexity \(O(n\cdot \max\{\epsilon^{-1},\log\log n\})\), and exactly two streaming passes [1804.08178].

At the high end of the monotone spectrum, a nearly-linear-time algorithm achieves \((1-1/e-\epsilon)\) using \((1/\epsilon)^{O(1/\epsilon^4)}n\log^2 n\) function evaluations and arithmetic operations. Its main theoretical interest is that it breaks the classical multilinear-evaluation bottleneck, although its dependence on \(1/\epsilon\) makes it impractical [1709.09767]. A purely combinatorial alternative based on greedy local search also recovers the optimal \(1-1/e\) ratio when the framework for “one knapsack + intersection of \(k\) matroids” is specialized to \(k=0\), though with a higher naive complexity bound [1705.06319].

For non-monotone SKP, a simple randomized density-greedy method, SampleGreedy, achieves a \(5.83\)-approximation in \(O(n\log n)\) time and can be implemented with lazy evaluations using \(O(n\epsilon^{-1}\log(n/\epsilon))\) oracle calls for a \((3+2\sqrt 2+\epsilon)\)-approximation. The same design extends to an adaptive stochastic variant with a \(9\)-approximation to the best adaptive policy [2007.05014].

## 4. Curvature-sensitive and uncertain-capacity formulations

Curvature refines the approximation theory of monotone SKP by quantifying deviation from modularity. For any fixed \(\epsilon>0\), there exists a polynomial-time algorithm with approximation ratio
\[
1-\frac{c}{e}-\epsilon,
\]
where \(c\in [0,1]\) is the total curvature. This ratio is tight up to \(\epsilon\) for every \(c\in [0,1]\). The construction decomposes \(f\) into a monotone submodular part and a linear part, then applies a curvature-aware continuous-greedy scheme and rounding; the improvement is strict over the classical \(1-1/e\) barrier whenever \(c<1\) [1607.04527].

A different curvature-sensitive analysis revisits greedy itself. For known capacity, both AGreedy and MGreedy achieve the same approximation guarantee
\[
\alpha(c)=\frac{1-x}{2-(2-c)x},
\]
where \(x\in [0,1]\) is the unique solution of
\[
\frac{1}{c}(1-e^{-cx})=\frac{1-x}{2-(2-c)x}.
\]
This yields \(\alpha(0)=1/2\) in the modular case and \(\alpha(1)\approx 0.3578\) in the fully curved case [2209.09668].

The same paper studies the unknown-capacity model, where the capacity is not known in advance and is only revealed through feasibility of attempted items. It constructs a deterministic polynomial-time policy \(\Pi\) satisfying
\[
f(\Pi(\gamma))\ge f(\mathrm{AGreedy}(\gamma))\ge \alpha(c)\,f(\mathrm{OPT}(\gamma))
\quad \text{for all }\gamma>0.
\]
At \(c=0\), this matches the best possible deterministic robustness factor \(1/2\); at \(c=1\), it improves the previous best deterministic robustness from \(\approx 0.06\) to \(\approx 0.35\) [2209.09668].

An earlier uncertain-capacity study distinguishes cancellation-allowed and no-cancellation models. With cancellation allowed, it gives a randomized adaptive policy of robustness ratio \((1-1/e)/2\), a deterministic adaptive policy of robustness ratio \(2(1-1/e)/21\), and a randomized universal policy of robustness ratio \((1-1/\sqrt[4]{e})/2\). Without cancellation, no randomized adaptive policy achieves a constant robustness ratio in the worst case; with a known distribution over capacities, however, there is a polynomial-time randomized algorithm with approximation ratio \((1-1/\sqrt[4]{e})/4-\epsilon\) [1803.02565].

## 5. Generalizations beyond the classical single-knapsack model

SKP is the base case of a broad family of submodular packing problems. For a fixed number \(d\) of knapsack constraints, the multilinear-transfer theorem yields a randomized \((1-e^{-1}-\epsilon)\)-approximation for monotone objectives and \((1/4-\epsilon)\)-approximation for non-monotone ones [1101.2940]. For monotone submodular multiple knapsack with arbitrary bin capacities, an almost optimal \((1-e^{-1}-\epsilon)\)-approximation is obtained by structuring bins into leveled blocks, combining partial enumeration, continuous or unified greedy on a block polytope, and randomized rounding with slack [2004.12224]. A different deterministic combinatorial treatment reaches the same \((1-e^{-1}-\epsilon)\) ratio through a simpler grouping-and-greedy framework [2003.11450].

Fairness-augmented SKP adds lower and upper bounds on the number of selected elements from each color class. For a constant number of groups \(k\), there is a polynomial-time algorithm that achieves
\[
\frac{1}{2}\Bigl(1-\frac{1}{e}\Bigr)-\epsilon
\]
with probability at least \(1-1/e-1/e^2\), while strictly satisfying both knapsack and fairness constraints. If either fairness or knapsack is relaxed to hold only in expectation, then a tight \(1-1/e-\epsilon\) expected approximation becomes achievable [2505.12126].

The \(k\)-submodular generalization replaces binary selection by assignment of each item to one of \(k\) labels or to label \(0\). For monotone \(k\)-submodular maximization under a knapsack constraint, one deterministic algorithm based on partial enumeration and density-greedy was originally analyzed as \((1/2-1/(2e))\approx 0.316\), and a corrigendum strengthens the analysis to a \(0.4\)-approximation with the same \(O(n^4k^3)\) query complexity [2105.15159]. Another deterministic greedy-type framework gives \(\frac12(1-e^{-2})\approx 0.432\) for monotone objectives and \(\frac13(1-e^{-3})\approx 0.317\) for non-monotone objectives [2306.14520].

Related online and stochastic models enlarge the scope further. In online vector packing with free disposal, where items arrive online with \(d\)-dimensional weight vectors, there is a deterministic \(O(k/\epsilon^2)\)-competitive algorithm under an \(\epsilon\)-slack assumption, with matching hardness phenomena up to logarithmic factors [1706.06922]. In the correlated stochastic knapsack problem with a lattice-submodular objective, a pseudo-polynomial-time \((1-1/\sqrt e)/2\simeq 0.1967\) approximation is obtained by combining a time-indexed relaxation, stochastic continuous greedy, and a monotone \(1/2\)-contention resolution scheme [2207.01551].

## 6. Exact algorithms and branch-and-bound methods

Although approximation algorithms dominate the SKP literature, recent work has renewed attention to exact solution methods for monotone SKP. One exact branch-and-bound solver organizes the search tree by feasible partial solutions, uses a fractional knapsack upper bound on local marginal gains,
\[
\mathrm{FKV}(S,J)=f(S)+l(S,J),
\]
and augments it with Lazy Evaluations, Early Pruning, and Candidate Reduction. The combined LECR variant gives the best overall performance in experiments, with large reductions in oracle calls and search nodes relative to prior exact baselines [2507.16149].

A second exact framework introduces a refined subset upper bound
\[
\mathrm{ub}_{rs}(T)
= f(S_T)+\min_{X_i}\Bigl[g(X_i)+\mathrm{ub}_{fk}(\mathrm{SKP}(g(\cdot\mid X_i),C_T,W_T))\Bigr],
\]
where the minimum ranges over greedy prefixes \(X_i\) at node \(T=(S_T,C_T,W_T)\). This bound always dominates the plain fractional bound and satisfies a worst-case tightness guarantee:
\[
\mathrm{ub}_{rs}(T)-f(S_T)\le
\frac{g(X_p)}{1-e^{-w(X_p)/W_T}}
\le
\frac{g(X_T^*)}{1-e^{-w(X_p)/W_T}}.
\]
The same work couples the bound with a dual branching strategy that reuses greedy-prefix computations across siblings and yields approximately \(2\times\) speedups over standard branching in the reported experiments [2507.11107].

These exact methods target application domains where approximate solutions may be insufficient. Reported motivations include health-care facility location and risk management, and the benchmarks used in evaluation include weighted coverage, facility location, influence maximization, and partial dominating set [2507.11107]. A parallel exact branch-and-bound paper similarly evaluates on benchmark instances from weighted coverage, facility location, and bipartite influence, and reports improvements over the previously strongest exact solvers of Sakaue and Ishihata [2507.16149].

## 7. Applications, neighboring learning formulations, and open problems

SKP subsumes or models maximum coverage with costs, influence maximization with a budget, facility location, and budgeted variants of Max-Cut; these examples motivate both monotone and non-monotone formulations [1101.2940]. In applied machine learning, knapsack-constrained submodular optimization also appears in query-limited recommendation, summarization, and contextual list prediction. A DAgger-style reduction for contextual sequence prediction under a knapsack constraint learns policies that imitate greedy maximization by normalized marginal benefit
\[
b(s\mid L)=\frac{f(L\oplus s)-f(L)}{\ell(s)},
\]
and yields a \((1-1/e)\)-type guarantee relative to a randomized optimal policy list in extractive multi-document summarization [1308.3541].

Several open directions remain explicit in the literature. For fair SKP, when the number of groups is not constant and both knapsack and fairness bounds must hold exactly, the existence of a non-trivial approximation remains open [2505.12126]. For unknown-capacity SKP, tightness is known at \(c=0\), but tightness for \(c=1\) and intermediate curvature values remains unresolved [2209.09668]. For curvature-aware SKP, extending the \(1-c/e-\epsilon\) paradigm to multiple knapsacks is identified as open [1607.04527]. For nearly-linear-time near-optimal algorithms, the main unresolved issue is to reduce the prohibitive dependence on \(1/\epsilon\) and obtain practical implementations [1709.09767].

Taken together, these results position SKP as a canonical problem whose theory now spans value-oracle approximation, streaming and distributed computation, robustness to unknown budgets, stochastic and online variants, fairness constraints, \(k\)-submodular generalizations, and exact optimization. The single budget constraint remains deceptively rich: it is simple enough to expose fine distinctions among greedy, continuous, and exact paradigms, yet broad enough to serve as a template for much of modern submodular optimization.

Source: https://www.emergentmind.com/topics/submodular-knapsack-problem-skp