Optimizing Polymatroid Functions

Sungjin Im, Benjamin Moseley, Hung Q. Ngo, Kirk Pruhs, Alireza SamadianarXiv 2022 · DOI

Introduction

In database systems, query optimization relies on accurately estimating the size of results from join operations, a process known as cardinality estimation. This problem can be mathematically modeled as finding the maximum value of an entropic function—which represents the information content or size of the data—subject to difference constraints that represent known functional relationships. For example, in a US Postal Service database, a Zip Code uniquely determines a City, creating a constraint on the possible data distributions.

Because the space of entropic functions is often uncomputably complex, researchers utilize polymatroid functions (submodular, monotone, and normalized) as a more manageable upper bound proxy. This paper investigates the computational foundations of determining these polymatroid bounds efficiently.

The Dual-Project-Dual (DPD) Technique

We introduce the Dual-Project-Dual (DPD) technique, a systematic framework for solving optimization problems involving entropic and polymatroid functions. The DPD process consists of three primary stages:

  1. Dualize: The "Primal" optimization problem, often containing exponentially many variables and constraints, is converted into its "Dual" form. This Dual typically manifests as a min-cost flow problem on a complex hypergraph.
  2. Project: The Dual problem is simplified by projecting it onto a smaller set of essential variables, effectively reducing complexity while preserving the core constraints.
  3. Dualize Again: A second dualization of this simplified version yields a new "Primal" problem that is significantly smaller and computationally tractable.
Graph-based structures representing constraints in the dual problem.

This technique allows for the re-derivation of previous results and provides a robust methodology for analyzing new classes of constraints.

Tractable Constraints and Flow-Based Algorithms

Applying the DPD technique, we identify several classes of constraints where the polymatroid bound is efficiently computable:

  • Simple Constraints: For constraints where the dependency involves at most one attribute (e.g., $X \to Y$), the problem is equivalent to routing a unit of flow through a graph. This allows for the application of standard, highly efficient flow algorithms.
  • Acyclic Instances: Problems where attribute dependencies do not form cycles are shown to be tractable.
  • Strongly Connected Components (SCCs): We prove that for any set of constraints, an optimal solution exists that is "semimodular" relative to the SCCs of the dependency graph. This enables decomposition of the problem into independent pieces.

The complexity for these cases is often Fixed-Parameter Tractable (FPT), with runtimes proportional to an exponential function of the size of the largest SCC.

Complexity and Hardness Results

While specific subclasses are tractable, the general problem of computing bounds remains challenging. We establish a hierarchy of bounds: Modular $\leq$ Coverage $\leq$ Entropic $\leq$ Polymatroid. Our analysis reveals several key hardness results:

  • Computing the coverage bound for general constraints is NP-hard.
  • Reductions show that even highly restricted cases (e.g., constraints involving only 2 or 3 variables) are as difficult as the general problem.
  • The question of whether the polymatroid bound for arbitrary difference constraints is computable in polynomial time remains an open and significant challenge.

Conclusion

The DPD technique provides a powerful tool for query optimization by mapping the boundaries of tractability for polymatroid functions. While simple and acyclic cases are now solvable in polynomial time, the general case continues to be a subject of active research. Future work will focus on closing the remaining complexity gaps and identifying broader classes of tractable constraints.

Summary updated

BibTeX
@misc{im2022optimizing,
  author = {Sungjin Im and Benjamin Moseley and Hung Q. Ngo and Kirk Pruhs and Alireza Samadian},
  title = {{Optimizing Polymatroid Functions}},
  year = {2022},
  eprint = {2211.08381},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.08381},
}
Figure