How to Square Tensor Networks and Circuits Without Squaring Them
Lorenzo Loconte, Adrián Javaloy, Antonio Vergari
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. 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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
2 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Not All Neuro-Symbolic Concepts Are Created Equal: Analysis and Mitigation of Reasoning Shortcuts cites A Compositional Atlas of Tractable Circuit Operations for Probabilistic Inference
- Not All Neuro-Symbolic Concepts Are Created Equal: Analysis and Mitigation of Reasoning Shortcuts cites Semantic Probabilistic Layers for Neuro-Symbolic Learning
- An Embarrassingly Simple Way to Optimize Orthogonal Matrices at Scale cites A Compositional Atlas of Tractable Circuit Operations for Probabilistic Inference
- Semantic Probabilistic Layers for Neuro-Symbolic Learning cites A Compositional Atlas of Tractable Circuit Operations for Probabilistic Inference
- Semantic Probabilistic Layers for Neuro-Symbolic Learning cites Einsum Networks: Fast and Scalable Learning of Tractable Probabilistic Circuits
- The Theory and Practice of MAP Inference over Non-Convex Constraints cites A Compositional Atlas of Tractable Circuit Operations for Probabilistic Inference
Cited by top-tier papers2
Builds on23
- On the Variance of the Adaptive Learning Rate and BeyondLiyuan Liu, Haoming Jiang, Pengcheng He, Weizhu Chen et al.ICLR 2020 · 2,210 citations
- Einsum Networks: Fast and Scalable Learning of Tractable Probabilistic CircuitsRobert Peharz, Steven Lang, Antonio Vergari, Karl Stelzner et al.ICML 2020 · 155 citations
- Semantic Probabilistic Layers for Neuro-Symbolic LearningKareem Ahmed, Stefano Teso, Kai-Wei Chang, Guy Van den Broeck et al.NeurIPS 2022 · 133 citations
- A Compositional Atlas of Tractable Circuit Operations for Probabilistic InferenceAntonio Vergari, YooJung Choi, Anji Liu, Stefano Teso et al.NeurIPS 2021 · 112 citations
- Not All Neuro-Symbolic Concepts Are Created Equal: Analysis and Mitigation of Reasoning ShortcutsEmanuele Marconato, Stefano Teso, Antonio Vergari, Andrea PasseriniNeurIPS 2023 · 83 citations
Related papers
- Sum of Squares CircuitsLorenzo Loconte, Stefan Mengel, Antonio VergariAAAI 2025 · 20 citations
- Subtractive Mixture Models via Squaring: Representation and LearningLorenzo Loconte, Aleksanteri M. Sladek, Stefan Mengel, Martin Trapp et al.ICLR 2024 · 42 citations
- On the Relationship Between Monotone and Squared Probabilistic CircuitsBenjie Wang, Guy Van den BroeckAAAI 2025 · 16 citations
- Probabilistic Circuits for Variational Inference in Discrete Graphical ModelsAndy Shih, Stefano ErmonNeurIPS 2020 · 29 citations
- Scaling Probabilistic Circuits via Monarch MatricesHonghua Zhang, Meihua Dang, Benjie Wang, Stefano Ermon et al.ICML 2025
