Fast Multi-Subset Transform and Weighted Sums over Acyclic Digraphs

Mikko Koivisto, Antti Röyskö

Abstract

This paper presents a significant advancement in the computational complexity of set functions, specifically addressing the multi-subset transform. By reducing the transform to rectangular matrix multiplication (RMM) and exploiting the structured sparsity of the underlying combinatorial operations, we demonstrate that the long-standing $O(3^n)$ complexity barrier can be broken. We provide an algorithm that achieves $O(2.985^n)$ complexity, with implications for weighted counting of directed acyclic graphs (DAGs) and Bayesian network structure learning.

1. Introduction

In combinatorial optimization and computer science, set functions—functions mapping subsets of a ground set to a value—are fundamental. While many operations on these functions, such as the Zeta transform or subset convolution, possess "fast" algorithms running in nearly linear time relative to the input size ($O(2^n)$), the multi-subset transform has remained a persistent bottleneck.

The multi-subset transform is an $n$-ary operation that combines $n$ different set functions. It serves as the primary computational engine for the inclusion-exclusion recurrence used to count directed acyclic graphs (DAGs). Historically, the complexity of this transform was believed to be fixed at $O(3^n)$. Because learning Bayesian network structures from data often requires summing over possible DAG configurations, this exponential complexity has strictly limited the scale of networks that researchers could feasibly analyze.

2. The Multi-Subset Transform Problem

The challenge of the multi-subset transform lies in its specific structure. The authors observe a "broken reduction": if the transform's formula were slightly modified—for instance, if a variable $i$ were required to be in the subset $S$ rather than the target set $T$—the problem would simplify into a standard Zeta transform. However, the actual multi-subset structure necessitates a more complex approach to avoid the $O(3^n)$ brute-force summation.

3. Methodology: Reduction to Rectangular Matrix Multiplication

The core innovation of this work is the mapping of combinatorial subset operations to Rectangular Matrix Multiplication (RMM). The authors propose a multi-stage approach to refine this reduction:

3.1 Ground Set Partitioning

By partitioning the ground set $U$ into two halves, $U_1$ and $U_2$, the transform can be represented as a product of two large, structured matrices ($F_1$ and $F_2$). While these matrices are technically $2^{n/2} \times 2^n$, they exhibit significant structured sparsity; most entries are zero due to the subset constraints inherent in the transform's definition.

3.2 Algorithmic Refinements

The paper introduces three progressively optimized algorithms to exploit this sparsity:

  1. Algorithm Columns: This approach splits the computation based on subset size, utilizing fast RMM for small subsets and falling back to brute-force methods for larger ones.
  2. Algorithm Rows&Columns: This refines the process by "trimming" rows (subsets) that are too small to contribute to the final sum, effectively narrowing the matrices.
  3. Algorithm Covering-based: This method uses combinatorial set covers to group subsets into blocks containing high concentrations of zeros, allowing for more efficient matrix operations.

By plugging the resulting matrix dimensions into the latest theoretical upper bounds for RMM complexity (specifically the $\omega(k)$ exponents provided by Gall and Urrutia), the authors derive the new complexity bound.

4. Key Results

The theoretical analysis yields two primary theorems and a significant conjecture:

  • Theorem 1: The multi-subset transform can be computed using $O(2.985^n)$ arithmetic operations. This marks the first formal proof that the complexity base is strictly less than 3.
  • Theorem 2: The weighted sum over acyclic digraphs (DAGs) with modular weights can similarly be computed in $O(2.985^n)$.
  • Conjecture 14: Based on numerical evaluations of the Covering-based algorithm, the authors suggest the complexity may be further reducible to $O(2.930^n)$, though a formal proof for this specific bound remains an open challenge.

5. Discussion and Limitations

While this work represents a theoretical breakthrough, several practical considerations remain. The use of fast matrix multiplication algorithms often involves large hidden constants, and this paper does not provide empirical timing data. Consequently, the exact value of $n$ at which these algorithms outperform the $O(3^n)$ naive approach in a practical setting is currently unknown.

Furthermore, the specific constant (2.985) is intrinsically linked to the current state-of-the-art bounds for RMM. Any future improvements in the efficiency of rectangular matrix multiplication will directly translate to a faster multi-subset transform. The gap between the proven $O(2.985^n)$ and the conjectured $O(2.930^n)$ suggests that the complexity of combinatorial counting over DAGs is likely even lower than currently established.

Summary updated

BibTeX
@inproceedings{koivisto2020fast,
  author = {Mikko Koivisto and Antti Röyskö},
  title = {{Fast Multi-Subset Transform and Weighted Sums over Acyclic Digraphs}},
  booktitle = {SWAT},
  year = {2020},
  url = {https://openreview.net/forum?id=t7Tmw165hyb},
}
Figure