Skip to main content
QUICK REVIEW

[Paper Review] Efficient Contraction of Large Tensor Networks for Weighted Model Counting through Graph Decompositions

Jeffrey M. Dudek, Leonardo Dueñas‐Osorio|arXiv (Cornell University)|Aug 12, 2019
Tensor decomposition and applicationsMathematics56 references9 citations
TL;DR

This paper proposes TensorOrder, a weighted model counter that leverages graph decompositions—specifically tree and carving decompositions—to efficiently contract large tensor networks for constrained counting. By applying heuristic tree-decomposition solvers to find low-memory, high-efficiency contraction orders, the authors introduce two methods: Line-Graph (LG) for general tensor networks and Factor-Tree (FT) for high-rank, structured tensors. The key contribution is a practical, high-performance tool that outperforms existing counters on unweighted benchmarks and improves the virtual best solver by 21% on weighted ones.

ABSTRACT

Constrained counting is a fundamental problem in artificial intelligence. A promising new algebraic approach to constrained counting makes use of tensor networks, following a reduction from constrained counting to the problem of tensor-network contraction. Contracting a tensor network efficiently requires determining an efficient order to contract the tensors inside the network, which is itself a difficult problem. In this work, we apply graph decompositions to find contraction orders for tensor networks. We prove that finding an efficient contraction order for a tensor network is equivalent to the well-known problem of finding an optimal carving decomposition. Thus memory-optimal contraction orders for planar tensor networks can be found in cubic time. We show that tree decompositions can be used both to find carving decompositions and to factor tensor networks with high-rank, structured tensors. We implement these algorithms on top of state-of-the-art solvers for tree decompositions and show empirically that the resulting weighted model counter is quite effective and useful as part of a portfolio of counters.

Motivation & Objective

  • Address the challenge of efficiently contracting large tensor networks in weighted model counting, a #P-complete problem with broad AI applications.
  • Overcome the scalability limitations of exhaustive contraction order search by leveraging heuristic graph decomposition techniques.
  • Enable effective handling of high-rank, structured tensors—common in real-world constraints—through a novel preprocessing factorization method.
  • Develop a practical, high-performance model counter that integrates with state-of-the-art tensor and decomposition libraries for industrial-scale use.
  • Demonstrate the effectiveness of tensor-network-based counting as a competitive component in a portfolio of model counters.

Proposed method

  • Apply tree decompositions to derive low-width carving decompositions, which directly correspond to memory-efficient tensor contraction orders.
  • Implement the Line-Graph (LG) method to transform the tensor network’s line graph into a tree decomposition, enabling structure-based contraction order selection.
  • Introduce the Factor-Tree (FT) method to factor high-rank, structured tensors (e.g., those from XOR or exactly-one constraints) using Hierarchical Tucker representations before contraction.
  • Integrate LG and FT into TensorOrder, a new weighted model counter that combines heuristic tree-decomposition solvers (htd, Flow, Tamaki) with high-performance tensor libraries.
  • Use online, incremental tree-decomposition solvers to generate contraction trees dynamically, allowing early termination and performance monitoring.
  • Evaluate contraction quality via max-rank of the contraction tree and runtime, using real-world and synthetic benchmarks.

Experimental results

Research questions

  • RQ1Can heuristic graph decompositions be effectively used to derive efficient contraction orders for large tensor networks in weighted model counting?
  • RQ2To what extent can tree decompositions and carving decompositions reduce memory usage during tensor network contraction?
  • RQ3Can a structure-aware preprocessing method (Factor-Tree) enable effective contraction of high-rank, structured tensors that standard tensor methods fail to handle?
  • RQ4How does the performance of the proposed tensor-based model counter (TensorOrder) compare to state-of-the-art exact counters on standard weighted model counting benchmarks?
  • RQ5What is the impact of different heuristic tree-decomposition solvers (htd, Flow, Tamaki) on the efficiency and scalability of the overall model counting pipeline?

Key findings

  • TensorOrder, using the LG method, outperforms all other exact model counters and tensor-based methods on unweighted benchmarks, solving more instances within the time limit.
  • The FT method improves the virtual best solver on 21% of standard weighted model counting benchmarks, demonstrating its effectiveness for structured, high-rank tensors.
  • FT+Tamaki and FT+Flow achieve superior performance on probabilistic inference benchmarks: FT+Flow finds low-max-rank contraction trees fastest, while FT+Tamaki solves the most benchmarks within 1000 seconds.
  • On a set of 1091 probabilistic-inference benchmarks, tensor-based methods without factoring (e.g., LG, greedy, metis) solved only one benchmark within 1000 seconds, highlighting the necessity of FT’s factorization.
  • The Line-Graph method is effective for general tensor networks, while the Factor-Tree method uniquely enables handling of complex, structured constraints such as XOR and exactly-one clauses.
  • The integration of heuristic tree-decomposition tools with high-performance tensor libraries results in a scalable, practical model counter suitable for use in a portfolio setting.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.