SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2408.11778 · 2024

Sum of Squares Circuits

arXiv · PDF · Open in the Atlas

Code that ran

17 of 17 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 4 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 13 failures of our instrument; 0 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2408.11778.json · badge: /api/ran/2408.11778.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
anon-npc/squared-npcs canonical (classifier label)
classifier basis: census
12 ran · 0 no recorded run
april-tools/sos-npcs canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
3 ran · 0 no recorded run
FunctionStatusWhere it lives
buffer_to_image Ran
ran, honoured the contract we drafted
anon-npc/squared-npcs/src/graphics/utils.py
pointer only (licence: GPL-3.0) · get_code("eacdb22f5eefb5d5")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, anon-npc/squared-npcs, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_command_string Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from april-tools/squared-npcs
pointer only; the stored copy get_code serves, from april-tools/squared-npcs, is pointer only (licence: GPL-3.0) · get_code("c0d74e939e75280c")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

check_random_state Ran
ran; our contract draft was wrong, not the code
anon-npc/squared-npcs/src/pcs/utils.py
pointer only (licence: GPL-3.0) · get_code("fab203f5b6ecbb28")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, anon-npc/squared-npcs, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

csv_2_numpy Ran
ran, honoured the contract we drafted
anon-npc/squared-npcs/src/datasets/loaders.py
pointer only (licence: GPL-3.0) · get_code("4d77a736574f9185")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, anon-npc/squared-npcs, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

discrete_samples_hmap Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anon-npc/squared-npcs/src/graphics/distributions.py
pointer only (licence: GPL-3.0) · get_code("b89bd908b0455c50")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, anon-npc/squared-npcs, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

expand_hparams_grid Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from april-tools/squared-npcs
pointer only; the stored copy get_code serves, from april-tools/squared-npcs, is pointer only (licence: GPL-3.0) · get_code("8d8c8801ff44a2d9")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

expand_hparams_grid Ran
ran; our contract draft was wrong, not the code
april-tools/sos-npcs/src/scripts/grid.py
pointer only (licence: GPL-3.0) · get_code("7746745799ad0ab6")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, april-tools/sos-npcs, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_binary_dataset Ran
ran; our contract draft was wrong, not the code
anon-npc/squared-npcs/src/datasets/loaders.py
pointer only (licence: GPL-3.0) · get_code("3a19f6640f6ef263")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, anon-npc/squared-npcs, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_small_uci_dataset Ran
ran; our contract draft was wrong, not the code
anon-npc/squared-npcs/src/datasets/loaders.py
pointer only (licence: GPL-3.0) · get_code("2aca30b37dd7ce52")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, anon-npc/squared-npcs, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

log_binomial Ran
ran, honoured the contract we drafted
anon-npc/squared-npcs/src/pcs/utils.py
pointer only (licence: GPL-3.0) · get_code("6b32c122c9131461")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, anon-npc/squared-npcs, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

matplotlib_buffer_to_image Ran
ran, honoured the contract we drafted
anon-npc/squared-npcs/src/graphics/utils.py
pointer only (licence: GPL-3.0) · get_code("91e3b397098a38a8")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, anon-npc/squared-npcs, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

model_hparams Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from april-tools/squared-npcs
pointer only; the stored copy get_code serves, from april-tools/squared-npcs, is pointer only (licence: GPL-3.0) · get_code("3ca57844af5358f9")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

model_hparams Ran
ran; our contract draft was wrong, not the code
april-tools/sos-npcs/src/scripts/grid.py
pointer only (licence: GPL-3.0) · get_code("dd5e6dd5f354baf7")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, april-tools/sos-npcs, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

nll Ran
ran; our contract draft was wrong, not the code
anon-npc/squared-npcs/src/pcs/losses.py
pointer only (licence: GPL-3.0) · get_code("ef985b93b7854c9f")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, anon-npc/squared-npcs, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

retrieve_default_dtype Ran
ran; our contract draft was wrong, not the code
anon-npc/squared-npcs/src/pcs/utils.py
pointer only (licence: GPL-3.0) · get_code("1591f37e9f3e25fc")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, anon-npc/squared-npcs, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

setup_loss Ran
ran; our contract draft was wrong, not the code
anon-npc/squared-npcs/src/pcs/losses.py
pointer only (licence: GPL-3.0) · get_code("6a655f054c264d71")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, anon-npc/squared-npcs, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

setup_optimizer Ran
ran; our contract draft was wrong, not the code
anon-npc/squared-npcs/src/pcs/optimizers.py
pointer only (licence: GPL-3.0) · get_code("d5335bb3b5b07df3")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, anon-npc/squared-npcs, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 14 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
build_command_string 1 other paper
1 dated earlier
2310.00724 (2023-10)
Subtractive Mixture Models via Squaring: Representation and Learning
expand_hparams_grid 1 other paper
1 dated earlier
2310.00724 (2023-10)
Subtractive Mixture Models via Squaring: Representation and Learning
model_hparams 1 other paper
1 dated earlier
2310.00724 (2023-10)
Subtractive Mixture Models via Squaring: Representation and Learning

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2408.11778")
get_code_for_paper("2408.11778")
have("2408.11778")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2408.11778.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2408.11778.svg)](https://syntology.ai/paper/2408.11778)

Connect an agent — have() is free.