What is the Relationship between Tensor Factorizations and Circuits (and How Can We Exploit it)?
Lorenzo Loconte, Antonio Mari, Gennaro Gala, Robert Peharz, Cassio de Campos, Erik Quaeghebeur, Gennaro Vessio, Antonio Vergari
TL;DR
This work establishes a formal bridge between tensor factorizations and probabilistic circuits, showing that circuits encode generalized hierarchical tensor factorizations and that hierarchical tensor factorizations correspond to deep tensorized circuits. It introduces a modular tensorized-circuit pipeline built from Lego-like blocks (input, product, sum layers) and region graphs to represent, learn, and scale overparameterized architectures, including folding for speed-ups. The authors connect non-negative tensor factorizations to monotone probabilistic circuits, provide a pipeline for parameterizing and inferring probability tensors, and demonstrate parameter compression via CP/Tucker factorization while preserving tractable inference. Extensive empirical evaluations across image and tabular datasets reveal how region graphs and composite layers affect time, memory, and performance, with CP-based layers and certain RGs offering favorable scalability and accuracy. The work opens opportunities for tensor factorization methods to inform circuit design and for circuit-based methods to enable new, efficient probabilistic factorizations and neuro-symbolic systems.
Abstract
This paper establishes a rigorous connection between circuit representations and tensor factorizations, two seemingly distinct yet fundamentally related areas. By connecting these fields, we highlight a series of opportunities that can benefit both communities. Our work generalizes popular tensor factorizations within the circuit language, and unifies various circuit learning algorithms under a single, generalized hierarchical factorization framework. Specifically, we introduce a modular "Lego block" approach to build tensorized circuit architectures. This, in turn, allows us to systematically construct and explore various circuit and tensor factorization models while maintaining tractability. This connection not only clarifies similarities and differences in existing models, but also enables the development of a comprehensive pipeline for building and optimizing new circuit/tensor factorization architectures. We show the effectiveness of our framework through extensive empirical evaluations, and highlight new research opportunities for tensor factorizations in probabilistic modeling.
