Papers › Sum of Squares Circuits

Sum of Squares Circuits

21 Aug 2024arXiv:2408.11778archive 2025-07-28

Lorenzo Loconte, Stefan Mengel, Antonio Vergari

Designing expressive generative models that support exact and efficient inference is a core question in probabilistic ML. Probabilistic circuits (PCs) offer a framework where this tractability-vs-expressiveness trade-off can be analyzed theoretically. Recently, squared PCs encoding subtractive mixtures via negative parameters have emerged as tractable models that can be exponentially more expressive than monotonic PCs, i.e., PCs with positive parameters only. In this paper, we provide a more precise theoretical characterization of the expressiveness relationships among these models. First, we prove that squared PCs can be less expressive than monotonic ones. Second, we formalize a novel class of PCs -- sum of squares PCs -- that can be exponentially more expressive than both squared and monotonic PCs. Around sum of squares PCs, we build an expressiveness hierarchy that allows us to precisely unify and separate different tractable model classes such as Born Machines and PSD models, and other recently introduced tractable probabilistic models by using complex parameters. Finally, we empirically show the effectiveness of sum of squares circuits in performing distribution estimation.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2408.11778")

Code

Syntology Ran 17 of 17 code samples harvested from 2 repositories linked to this paper; 0 have no recorded run. Of those that ran: 5 ran · our draft was wrong; 12 ran with no contract checked.

By repository: official repository: 2 samples from 1 repository, 2 ran; community (archive-listed): 12 samples from 1 repository, 12 ran; 3 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

april-tools/sos-npcs officialmentioned in papermentioned on GitHubpytorch report
anon-npc/squared-npcs mentioned on GitHubpytorchGPL-3.0 report
april-tools/squared-npcs mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 17 ran; 0 honoured the contract we drafted; 0 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

5ran · our draft was wrong
12ran

Licence: 17 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

expand_hparams_grid april-tools/sos-npcs/src/scripts/grid.py official repository ran · our draft was wrong GPL-3.0 (copyleft) · pointer only · 7746745799ad0ab6 · report
model_hparams april-tools/sos-npcs/src/scripts/grid.py official repository ran · our draft was wrong GPL-3.0 (copyleft) · pointer only · dd5e6dd5f354baf7 · report
buffer_to_image anon-npc/squared-npcs/src/graphics/utils.py community (archive-listed) ran GPL-3.0 (copyleft) · pointer only · eacdb22f5eefb5d5 · report
check_random_state anon-npc/squared-npcs/src/pcs/utils.py community (archive-listed) ran GPL-3.0 (copyleft) · pointer only · fab203f5b6ecbb28 · report
csv_2_numpy anon-npc/squared-npcs/src/datasets/loaders.py community (archive-listed) ran GPL-3.0 (copyleft) · pointer only · 4d77a736574f9185 · report
discrete_samples_hmap anon-npc/squared-npcs/src/graphics/distributions.py community (archive-listed) ran GPL-3.0 (copyleft) · pointer only · b89bd908b0455c50 · report
load_binary_dataset anon-npc/squared-npcs/src/datasets/loaders.py community (archive-listed) ran GPL-3.0 (copyleft) · pointer only · 3a19f6640f6ef263 · report
load_small_uci_dataset anon-npc/squared-npcs/src/datasets/loaders.py community (archive-listed) ran GPL-3.0 (copyleft) · pointer only · 2aca30b37dd7ce52 · report
log_binomial anon-npc/squared-npcs/src/pcs/utils.py community (archive-listed) ran fingerprinted GPL-3.0 (copyleft) · pointer only · 6b32c122c9131461 · report
matplotlib_buffer_to_image anon-npc/squared-npcs/src/graphics/utils.py community (archive-listed) ran GPL-3.0 (copyleft) · pointer only · 91e3b397098a38a8 · report
nll anon-npc/squared-npcs/src/pcs/losses.py community (archive-listed) ran fingerprinted GPL-3.0 (copyleft) · pointer only · ef985b93b7854c9f · report
retrieve_default_dtype anon-npc/squared-npcs/src/pcs/utils.py community (archive-listed) ran GPL-3.0 (copyleft) · pointer only · 1591f37e9f3e25fc · report
setup_loss anon-npc/squared-npcs/src/pcs/losses.py community (archive-listed) ran GPL-3.0 (copyleft) · pointer only · 6a655f054c264d71 · report
setup_optimizer anon-npc/squared-npcs/src/pcs/optimizers.py community (archive-listed) ran GPL-3.0 (copyleft) · pointer only · d5335bb3b5b07df3 · report
build_command_string identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · c0d74e939e75280c · report
expand_hparams_grid identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · 8d8c8801ff44a2d9 · report
model_hparams identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · 3ca57844af5358f9 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections