Fine Grained Lower Bounds for Multidimensional Knapsack

Ilan Doron-Arad, Ariel Kulik, Pasin ManurangsiarXiv 2024

Abstract: We study the $d$-dimensional knapsack problem ($d$-VK), where items have $d$-dimensional cost vectors and a profit, and the goal is to maximize profit within a $d$-dimensional budget. While a Polynomial Time Approximation Scheme (PTAS) with running time $n^{O(d/\varepsilon)}$ has been known for decades, lower bounds explaining this exponential dependence on $d$ have been restricted to the $d=2$ case. In this work, we establish that the running times of the best-known PTAS and exact algorithms are essentially optimal under the Exponential Time Hypothesis (ETH) and its gap version (Gap-ETH). Using a robust reduction from 2-CSP that embeds constraints into multiple dimensions, we show that no $n^{o(d/\varepsilon \cdot 1/(\log(d/\varepsilon))^2)}$-time $(1-\varepsilon)$-approximation exists for $\varepsilon = O(1/\log d)$. We also provide lower bounds for exact algorithms and constant-factor approximations, alongside a new algorithm for specific instance regimes.

Introduction

The knapsack problem is a cornerstone of combinatorial optimization. In its classic one-dimensional form, it is well-understood: while NP-hard, it admits a Fully Polynomial Time Approximation Scheme (FPTAS), allowing for near-optimal solutions in time polynomial in both the number of items $n$ and $1/\varepsilon$. However, the multidimensional version ($d$-VK) is significantly more challenging. For over 50 years, the best algorithms for $d$-VK have suffered from the "curse of dimensionality," with running times where $d$ appears in the exponent of $n$.

Despite the practical and theoretical importance of $d$-VK, a significant gap has persisted in our understanding of its complexity. While we have known since the 1970s that a PTAS exists with a running time of $n^{O(d/\varepsilon)}$, lower bounds justifying this complexity were only available for the $d=2$ case. This paper provides the first fine-grained lower bounds that scale with $d$, proving that the $d/\varepsilon$ term in the exponent is likely unavoidable.

The Problem: $d$-Dimensional Knapsack

In the $d$-dimensional knapsack problem, we are given a set of $n$ items. Each item $i$ is characterized by:

  • A profit $p_i$.
  • A $d$-dimensional cost vector $v_i = (v_{i,1}, v_{i,2}, \dots, v_{i,d})$.

Given a budget vector $W = (W_1, W_2, \dots, W_d)$, the goal is to select a subset of items $S$ such that for every dimension $j \in \{1, \dots, d\}$, the sum of the costs does not exceed the budget: $\sum_{i \in S} v_{i,j} \leq W_j$. The objective is to maximize the total profit $\sum_{i \in S} p_i$.

Methodology: Dimension Embedding

The authors derive their results through a reduction from the 2-Constraint Satisfaction Problem (2-CSP), specifically a variant with rectangular constraints (R-CSP). The technical core of the paper is a "dimension embedding" technique designed to bridge the gap between CSP constraints and knapsack dimensions.

Robust Dimension Embedding

To prove hardness for approximation schemes (PTAS), the reduction must be "robust." The authors developed a method to compress many CSP constraints into a smaller number of dimensions. This creates a "depth" within each dimension—representing the maximum number of items that can contribute to a specific budget.

This embedding reveals a fundamental trade-off: reducing the number of dimensions $d$ increases the required "depth," which in turn necessitates a smaller error parameter $\varepsilon$ to maintain the hardness of the reduction. This relationship precisely mirrors the $d/\varepsilon$ structure found in the upper bounds of existing algorithms.

Key Results and Lower Bounds

Conditioned on the Exponential Time Hypothesis (ETH) and Gap-ETH, the paper establishes several tight lower bounds:

  1. PTAS Optimality: For $\varepsilon = O(1/\log d)$, there is no $(1-\varepsilon)$-approximation algorithm for $d$-VK that runs in $n^{o(d/\varepsilon \cdot 1/(\log(d/\varepsilon))^2)}$ time. This confirms that the $d/\varepsilon$ dependence in the exponent is nearly optimal.
  2. Exact Algorithm Hardness: The standard dynamic programming approach for $d$-VK runs in $O(n \cdot W^d)$ time. The authors show that no exact algorithm can run in $(n + W)^{o(d / \log d)}$ time, matching the DP complexity up to a logarithmic factor in the exponent.
  3. Constant Approximation: Even if we settle for a constant error $\varepsilon$, the problem remains difficult, requiring $n^{\Omega(\sqrt{d})}$ time.
  4. A New Algorithmic Upper Bound: The authors identify "2-unbounded" instances—where items are large relative to the budget—and provide a new algorithm. It achieves a $1/\sqrt{d}$-approximation in $(d \cdot \log W)^{O(d^2)} + n^{O(1)}$ time. This matches their lower bound in certain regimes and suggests that "large item" instances are the primary source of the problem's hardness.

Discussion and Future Work

This work provides a long-awaited theoretical justification for the difficulty of multidimensional knapsack. It demonstrates that the $d/\varepsilon$ barrier is not a limitation of current algorithmic techniques but an inherent property of the problem itself.

However, some gaps remain. The lower bounds are tight "up to polylogarithmic factors" in the exponent, and there is still a discrepancy between the $n^{\Omega(\sqrt{d})}$ lower bound and the $n^{O(d)}$ upper bound for constant-factor approximations. Future research may focus on closing these gaps or determining if a $1/\sqrt{d}$-approximation can be achieved in Fixed-Parameter Tractable (FPT) time, where the exponent of $n$ is independent of $d$.

Summary updated

BibTeX
@misc{doronarad2024fine,
  author = {Ilan Doron-Arad and Ariel Kulik and Pasin Manurangsi},
  title = {{Fine Grained Lower Bounds for Multidimensional Knapsack}},
  year = {2024},
  eprint = {2407.10146},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.10146},
}
Figure