Efficient Contraction of Large Tensor Networks for Weighted Model Counting through Graph Decompositions

Jeffrey M. Dudek, Leonardo Dueñas-Osorio, Moshe Y. Vardi
8/12/2019
cs.DScs.AIcs.LO

Official code: vardigroup/TensorOrder (21 stars, Python, MIT, last commit 2021-11-13).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

A tool for weighted model counting through tensor network contraction

213Python, CythonJul 12, 20195 years agoMIT

Similar Papers

Cite this paper

@article{dudek2019efficient,
  title  = {Efficient Contraction of Large Tensor Networks for Weighted Model Counting through Graph Decompositions},
  author = {Jeffrey M. Dudek and Leonardo Dueñas-Osorio and Moshe Y. Vardi},
  year   = {2019},
  eprint = {1908.04381},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1908.04381}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1908.04381.svg)](https://codeofpaper.com/paper/1908.04381)

Discussion