How to Square Tensor Networks and Circuits Without Squaring Them

Lorenzo Loconte, Adrián Javaloy, Antonio Vergari
12/18/2025
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Squared tensor networks (TNs) and their extension as computational graphs--squared circuits--have been used as expressive distribution estimators, yet supporting closed-form marginalization. However, the squaring operation introduces additional complexity when computing the partition function or marginalizing variables, which hinders their applicability in ML.

Show full abstract

To solve this issue, canonical forms of TNs are parameterized via unitary matrices to simplify the computation of marginals. However, these canonical forms do not apply to circuits, as they can represent factorizations that do not directly map to a known TN. Inspired by the ideas of orthogonality in canonical forms and determinism in circuits enabling tractable maximization, we show how to parameterize squared circuits to overcome their marginalization overhead. Our parameterizations unlock efficient marginalization even in factorizations different from TNs, but encoded as circuits, whose structure would otherwise make marginalization computationally hard. Finally, our experiments on distribution estimation show how our proposed conditions in squared circuits come with no expressiveness loss, while enabling more efficient learning.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{loconte2025square,
  title  = {How to Square Tensor Networks and Circuits Without Squaring Them},
  author = {Lorenzo Loconte and Adrián Javaloy and Antonio Vergari},
  year   = {2025},
  eprint = {2512.17090},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.17090v1}
}

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/2512.17090.svg)](https://codeofpaper.com/paper/2512.17090)

Discussion