Where to Approximate in Neurosymbolic Inference?
Samy Badreddine, Emile van Krieken, Luciano Serafini, Antonio Vergari
CoLoRAI @ ICML 2026
TL;DR. We propose a unified pipeline to understand where and when approximation in a probabilistic neuro-symbolic system matter under the lenses of circuits and Tensor Trains.
Abstract. Probabilistic neurosymbolic methods rely on weighted model counting (WMC) to combine neural predictors with symbolic constraints. Exact WMC is #P-hard and typically scales poorly, so many methods resort to approximations. By unifying existing approaches under a three-step bottom-up approximate compilation pipeline, we study where approximation budget is best allocated. Inspired by tensor networks, we instantiate two steps with tensor train decompositions and derive new pipelines that exactly multiply approximated factors and recompress their products via SVD- or interpolation-based schemes. Across six tasks in Sudoku, arithmetic reasoning, and scene understanding, and across increasing problem sizes, our pipelines produce WMC estimates orders-of-magnitude more accurate than prior methods. This translates into stronger downstream learning on tasks where reasoning relies on tight interactions between symbolic factors, where cruder approximations ignore these dependencies. Our pipelines open novel design space for effective approximate compilation of challenging probabilistic reasoning tasks.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:45 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes a new (bottom-up) knowledge compilation framework targeting WMC computation. Some key ideas are borrowed from existing literature in probabilistic/logic circuits and tensor trains. The high-level idea is to smartly decompose the original problem into sub-problems where tensor trains can be used for effective compilation. The paper then applied this framework and demonstrated (i) its WMC performance, and (ii) downstream performance in neurosymbolic tasks, where WMC is a key step.
The following are the key points raised by the reviewers that I believe would significantly help to better evaluate the paper:
-
Significance of the results. All reviewers had concerns regarding the significance in both cases (WMC and neurosymbolic tasks). For example, Reviewer C89B commented "... even for the Sudoku counting problem, existing model counters such as d4 and Ganak can compute the exact model count for 6x6 Sudoku in around 40 minutes and 5 minutes, respectively, on my laptop...". Similar problems also exist in the neurosymbolic applications.
-
It is unclear what is the relation between the WMC approximation error and the downstream performance.
-
Only Sudoku is used in the evaluation. More tasks/domains are needed to justify the effectiveness of the method.
Final justification
The rebuttal and discussion resolved the evaluation concern shared by all three reviewers. The authors added MNISTAdd and MNISTMul during the rebuttal and CLEVR-Diff and CLEVR-CountDiff during the discussion, bringing the evaluation to six tasks across three domains. Two reviewers raised their scores in response.
The new experiments also address the second shared concern, the unclear link between WMC approximation quality and downstream learning. The authors identify a concrete condition: accurate compilation matters when the program decomposition introduces symbolic latent variables that bridge the predicted concepts and the supervised outputs, and independence approximations suffice otherwise. This pattern holds consistently across all six tasks.
I note that this reverses a headline claim of the submitted version. The abstract and Section 5.2 assert that approximation quality matters far more for inference fidelity than for downstream learning. The camera-ready must revise the abstract, introduction, and Section 5.2 to state the corrected conclusion, and must report all six tasks. The authors should also state explicitly in the abstract and introduction that their claims concern bottom-up compilation and the structured-decomposable circuits it produces, so that readers do not read them as claims against search-based exact counters such as d4 and Ganak.
Reviewer C89B maintains a borderline reject score and remains unconvinced by the symbolic-latent characterization. I agree that this pattern is an empirical observation over six tasks rather than an established result, and the camera-ready should present it as such. This does not outweigh the contributions: the three-step framework organizes a scattered design space, the TACO pipelines are the first bottom-up approach that bypasses fuzzy independence approximations at scale, and the scaling results against SDD are convincing.
I keep my recommendation as Accept (Poster).
Read meta-review
Meta-review
This paper proposes a new (bottom-up) knowledge compilation framework targeting WMC computation. Some key ideas are borrowed from existing literature in probabilistic/logic circuits and tensor trains. The high-level idea is to smartly decompose the original problem into sub-problems where tensor trains can be used for effective compilation. The paper then applied this framework and demonstrated (i) its WMC performance, and (ii) downstream performance in neurosymbolic tasks, where WMC is a key step.
The following are the key points raised by the reviewers that I believe would significantly help to better evaluate the paper:
-
Significance of the results. All reviewers had concerns regarding the significance in both cases (WMC and neurosymbolic tasks). For example, Reviewer C89B commented "... even for the Sudoku counting problem, existing model counters such as d4 and Ganak can compute the exact model count for 6x6 Sudoku in around 40 minutes and 5 minutes, respectively, on my laptop...". Similar problems also exist in the neurosymbolic applications.
-
It is unclear what is the relation between the WMC approximation error and the downstream performance.
-
Only Sudoku is used in the evaluation. More tasks/domains are needed to justify the effectiveness of the method.
Final justification
The rebuttal and discussion resolved the evaluation concern shared by all three reviewers. The authors added MNISTAdd and MNISTMul during the rebuttal and CLEVR-Diff and CLEVR-CountDiff during the discussion, bringing the evaluation to six tasks across three domains. Two reviewers raised their scores in response.
The new experiments also address the second shared concern, the unclear link between WMC approximation quality and downstream learning. The authors identify a concrete condition: accurate compilation matters when the program decomposition introduces symbolic latent variables that bridge the predicted concepts and the supervised outputs, and independence approximations suffice otherwise. This pattern holds consistently across all six tasks.
I note that this reverses a headline claim of the submitted version. The abstract and Section 5.2 assert that approximation quality matters far more for inference fidelity than for downstream learning. The camera-ready must revise the abstract, introduction, and Section 5.2 to state the corrected conclusion, and must report all six tasks. The authors should also state explicitly in the abstract and introduction that their claims concern bottom-up compilation and the structured-decomposable circuits it produces, so that readers do not read them as claims against search-based exact counters such as d4 and Ganak.
Reviewer C89B maintains a borderline reject score and remains unconvinced by the symbolic-latent characterization. I agree that this pattern is an empirical observation over six tasks rather than an established result, and the camera-ready should present it as such. This does not outweigh the contributions: the three-step framework organizes a scattered design space, the TACO pipelines are the first bottom-up approach that bypasses fuzzy independence approximations at scale, and the scaling results against SDD are convincing.
I keep my recommendation as Accept (Poster).
1 comment
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
Probabilistic neurosymbolic methods usually involve taking a marginal over a logical formula. As this marginal is #P-hard, several approximations have been studied. This paper investigates approximate knowledge compilation using tensor trains, and discuss the various points at which to approximate (approximating the factors or the factor multiplications). The evaluate on a sudoku classification and generation benchmark, demonstrating the speed vs accuracy Pareto front for inference, and find that during learning approximation quality is less crucial.
Strengths and weaknesses
Strengths. Tensor trains are a workhorse for computing marginals in fields such as quantum computing, but have seen limited adoption in neurosymbolic AI. So altough the use of tensor trains for probailstic inference is certainly not new, to the best of my knowledge, this is the first work giving comprehensive insight into their application with neurosymbolic methods.
Furthermore, In my opinion, the paper is well-written and easy to follow, and contains extensive extra material in appendix.
Weaknesses. The experimental evaluation is limited to a single setting (Sudoku). Moreover, this Sudoku setting is also quite simple: the authors themselves note that “all pipelines reach near-saturated concept accuracy”. The reason this is a weakeness for me is that it's not clear what the conclusions are to take away from this paper. (As is well-known in the solver and compilation literature, experimental results can vary greatly from benchmark to benchmark.) For example, it remains unclear if these approximations perform the same during learning because the benchmarking is too simple to differentiate them, or if it really doesn't matter much what approximation is used.
Questions
Questions
-
A wide array of tensor-train methods are surveyed in this paper. What are the conclusions, besides that these can be used (which is not particularly suprising)? Should practicioners simply tune over all of these when handling a new task? Or are there simple heuristics of which method should be used, depending on e.g. the approximation guarantees, scalbility requirements. etc.
-
Can you say more of the advantages & disadvantages compared to other approximate inference schemes? When should people use tensor trains versus sampling based methods or neural approximations?
-
How does your work connect to results that relate tensor trains to circuit classes (e.g. [1]).
Some Minor Comments & Nitpicks
Logical circuits are special PCs encoding a Boolean function, and have sum unit weights equal to 1
This is not really the standard definition for logic circuits, which usually is based on AND and OR gates. As you note later, these definitions coincide for deterministic circuits. But this does mean that some claims like “if the circuits are compatible we can compute the WMC” are somewhat deceptive, as this wouldn’t be sufficient under the standard definition.
Additionally, TTs inherently handle categorical variables and do not need Boolean encoding.
Circuits also do not need Boolean encodings per se. I understand there might not be an off-the-shelf MDD (or multi-valued SDD) library available, but this is more a software problem.
Related, the paper states that binarizing categoricals “can significantly increase the size of a formula”. While true (the straightforward encoding used in the paper is quadratic), this heavily depends on the encodings used. See for example [2].
d4 is an exact compiler for d-DNNF [...]. It scales to formulas no SDD compiler can handle (e.g., 6x6 Sudoku, though still not 9x9), but the resulting circuits can only be weighted by fully-factorized probabilities.
I'm not sure I agree with this characterization. Top-down compilers can perfectely handle arbitrarly weightings, see e.g. [3]. Of course, you should compile in combination with the logical formula, instead of only compiling the logical formula and conjoining after. But as the weights factorization basically never changes during the same in NeSy experiments, this is not really a downside.
[1]: Onaka, Ryoma, et al. "Tensor Decomposition Meets Knowledge Compilation: A Study Comparing Tensor Trains with OBDDs." AAAI, 2025.
[2]: Bierlee, Hendrik, et al. "Coupling different integer encodings for SAT." CPAIOR, 2022.
[3]: Dilkas, Paulius, and Vaishak Belle. "Weighted model counting with conditional weights for Bayesian networks." UAI, 2021.
Limitations
yes
Final justification
The concern about the limited experimental evaluation remains for me. The new MNIST addition/multiplication results are commendable but even more toy than the sudoku task. However, in aggregate, I think the reasons to accept outweigh the reasons for rejection. This is a useful start to the more systematic study of bottom-up and approximate compliation methods in neurosymbolic AI. I hence increased my score.
Formatting concerns
- A first name is present in a folder name in the supplementary material.
- The paper checklist has broken references (e.g. line 980).
3 comments
Rebuttal
We thank the reviewer for their feedback and appreciate that the reviewer praises the originality of adopting tensor trains in neurosymbolic AI! We also thank the reviewer for minor comments and added the relevant corrections to the manuscript.
As suggested by the reviewer, we have broadened our empirical evaluation and added two new experiments on MNISTMul (predict the multiplication of two N-digit MNIST numbers) and MNISTAdd (predict the sum of two N-digit MNIST numbers). For more details, please refer to our answer to reviewer C89B. This helps clarify when the choice of approximations matters in a benchmark or not. Interestingly, we find new conclusions.
In particular, in both MNISTMul and MNISTAdd, we find that the independence approximation leads to subpar learning performance compared to TT multiplications. This is because the programs use latent variables (the carries) which are meaningless when ignoring dependence. In contrast, despite being a harder compilation benchmark than MNISTAdd in general, the Sudoku programs do not involve such latents and can be used for NeSy learning with the independence approximation.
This not only (i) demonstrates that a good strategy does matter in NeSy learning too, it also (ii) gives an insight on when bottom-up compilation matters in NeSy: when factors are connected via symbolic latents. Below, we hope to address the remaining questions.
Q1. Recommendations on the tensor-train methods surveyed + directions for future work.
The results show that the SVD-based approaches (TT-round, HaTT) are currently the most promising methods for this problem. HaTT, which relies on left/right environment sketching, does not give solid improvements over TT-round with simple. We believe this might be because the Gaussian sketches of HaTT are not meaningful for sparse tensors (nor the Rademacher sketches we experimented with). One possible future direction is therefore to explore new forms of sketches for sparse tensors. As for interpolation-based approaches like TCI, we think the limitation is their search for pivots which could also struggle to find good representative subset of rows/columns representing the tensor. A sparse Boolean tensor is a bad case for pivot searches. This could be the bottleneck of this method, rather than the interpolation itself, as we discuss with reviewer TMn4. We will add both of these future work directions to the paper.
Q2. Advantages and disadvantages of other approximate WMC methods in NeSy
Sampling approaches require many diverse positive samples to get accurate estimates for the WMC and their gradients [29]. Finding such samples is also #P hard, and is even harder when treating the program as a black box, as is commonly done in the NeSy literature [48]. Therefore, this is a significant practical limitation. Instead, TACO directly acts on the program and can use its structure to overcome the common scenario where the total probability mass is extremely low.
Neural approaches like A-NeSI [54] have a similar limitation in that they need to ensure they learn the WMC approximations for all input weightings separately, unlike TACO where we separate the compilation from the weighting, and have no formal error guarantees.
We will expand our discussion on how TACO relates to existing scalable NeSy methods in Appendix A.
Q3. Connection to boolean tensor train results in exact circuit compilation
In the paper linked by the reviewer, the authors are showing that TTs can be more succinct (expressive efficient) than OBDDs (another class of structured-decomposable logical circuits), which is not surprising as the first are not deterministic while the second are. Differently from TACO, they are assuming an exact representation of a logical formula as a TT, but they do not provide any compiler either.
C1. Correction on the definition of logic circuits.
The reviewer is right. At the same time, in practice, all relevant compilers always output a deterministic circuit. We agree we can be more precise, and given the additional space of the camera-ready, we will introduce logical circuits and probabilistic circuits in an algebraic semi-ring. This will clarify the confusion.
C2. Encoding of categorical variables
We agree, and we will update the camera-ready to stress that this limitation comes with available knowledge compilation software.
C3. Using d-DNNF to compile the multiplication of the constraint and PC directly
In principle, we could compile a logical formula into a non-structured decomposable circuit (e.g., with D4), and parameterize its sum unit parameters and input distributions directly with a neural network, as done in SPL [1]. However, for a large circuit this would result in the neural network having to predict a large number of parameters. A more parsimonious alternative, as highlighted in [1], is to multiply a probabilistic circuit by the logical circuit, which implies both need to be compatible. We note that one could still multiply an omni-compatible circuit (e.g., a fully-factorized circuit) to a non-structured decomposable circuit, but this would limit the expressiveness of the weight distribution. We will add a paragraph to the camera-ready to clarify this.
NB: We use [1], [48] etc to refer to the references of our paper.
Rebuttal Answer
Thank you for the rebuttal, I mostly agree with the points. Only the concern about the limited experimental evaluation remains for me. The new MNIST addition/multiplication results are commendable but even more toy than the sudoku task. However, in aggregate, I think the reasons to accept outweigh the reasons for rejection. This is a useful start to the more systematic study of bottom-up and approximate compliation methods in neurosymbolic AI. I hence increased my score.
We thank the reviewer for appreciating our rebuttal and increasing their score. If of interest, please also look at our discussions with reviewer TMn4, where we explored two new visual scene understanding tasks. The tasks are constructed on the CLEVR dataset recommended by TMn4 and are less toy than MNISTAdd/MNISTMul.
They confirm that accurate WMC compilation matters for learning if symbolic latents connect the concept/output NeSy variables: (i) CLEVR-Diff does not use such latents (like ViSudo-Classification/Completion), so fuzzy is competitive, (ii) CLEVR-CountDiff uses latents (like MNISTAdd/MNISTMul), so only TACO/SDD get accurate results. This new insight will correct the paper claim of Sec 5.2 that any approximation is generally sufficient for learning, as we know have a concrete (and intuitive) pattern of when this is not the case. The rest of the paper is unaffected.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper introduces a framework for approximate compilation in probabilistic neuro-symbolic inference. It divides the process into three stages: factor compilation, factor multiplication, and a reduction based on independence. The main idea is to represent factors with tensor trains and then recompress their products. This leads to new pipelines that give more accurate Sudoku inference than earlier methods, while also showing that downstream learning accuracy often does not depend strongly on where the approximation is introduced.
Strengths and weaknesses
Strengths
-
The paper’s strongest contribution is the way it frames the problem. It gives a clean breakdown of existing NeSy approximate inference methods into three places where approximation can happen, which makes error propagation and the design space easier to think about.
-
This framing is also useful beyond the specific algorithms in the paper. It helps explain why some methods can fail badly for inference but still work surprisingly well for learning.
-
The tensor-train-based TACO pipelines are also interesting.
-
The empirical results are strong on Sudoku. The new pipelines produce WMC estimates that are orders of magnitude better than prior methods on harder instances.
Weaknesses
-
However, he evaluation feels somewhat narrow. It is centered heavily on Visual Sudoku, and the learning benchmarks appear to reach near-ceiling performance. That makes it harder to judge how much better WMC estimates matter for downstream tasks in practice.
-
Due to this reason, the paper seems to be more convincing as a study of inference accuracy and approximate compilation mechanics. It is less convincing as broad evidence for downstream learning gains.
-
Another weakness is that several interpolation-based recompression methods are reported to be unstable on sparse Boolean tensors. That suggests part of the design space is not yet well developed for the target domain. However I don't think that is an issue of the paper itself.
-
I also think the paper’s claims about generality run a little ahead of the evidence. The framework is presented as broadly applicable, but the experiments do not yet show strong transfer beyond Sudoku-like structured reasoning problems.
Questions
-
Can you add an ablation that separates the value of each step, especially Step I vs Step II vs Step III? This would make it clearer which part of TACO is actually responsible for the inference gains.
-
How sensitive are the reported gains to the TT rank budget and the multiplication-order heuristic? A small robustness study would help show whether the improvement is stable or depends on careful tuning.
-
Could you include more structured reasoning benchmark beyond Sudoku to show that the results are not Sudoku-specific? This would make the generality claim stronger.
-
For the learning experiments, can you add a harder setting where concept accuracy is not already close to saturation, which is shown to be saturated for the visual Sudoku task as shown in Table 1? This would help determine whether better WMC approximation actually improves downstream predictions when there is still room for improvement; otherwise, the observed similarity across methods may simply reflect saturation rather than true equivalence.
-
For the unstable interpolation-based methods, can you describe the failure modes more precisely, for example when they fail on sparse Boolean tensors versus smoother tensors? That would make the limitations more useful and give future work clearer guidance.
Limitations
yes
Final justification
The additional results provided during the rebuttal addressed my main concerns and strengthened the empirical evaluation. Based on these results, I have increased my score. I encourage the authors to incorporate the additional results and relevant discussion into the final version of the paper.
Formatting concerns
N/A
6 comments
Rebuttal
We are happy that the reviewer appreciates the clarity of our paper, the usefulness of our framing of the problem, and the significance of our Sudoku results in bottom-up compilation.
Following the reviewer's suggestions, we have broadened our empirical evaluation and added two new experiments on MNISTMul (predict the multiplication of two N-digit MNIST numbers) and MNISTAdd (predict the sum of two N-digit MNIST numbers). For more details, please refer to our answer to reviewer C89B. In summary: (i) both experiments show a limitation of the Step III independence approximation (the common "fuzzy" approximation), (ii) the MNISTMul experiment shows a scenario where only TACO gets results and other approaches fail.
Below, we also address the remaining questions and introduce new ablations.
- Ablation on the values of Step I vs Step II vs Step III
Let us provide more discussions about the comparison of step 1 (options: exact or approximate factor compilation), step 2 (options: exact or approximate multiplications) and step 3 (options: independent reductions) from the Pareto front of Figure 3, and in light of the new MNISTMul/MNISTAdd experiments.
First, step 1 is better used together with step 2. Without step 2 multiplications, there is virtually no gain in compiling factors. Step 1 + step 3 only points, i.e., the left-most blue points and yellow points in Fig 3, are as good as using a fuzzy approximation on the non-compiled factors (step 3 only).
Using Step 3, in general, does not produce reliable WMC estimates. In some NeSy experiments (Sudoku), we see that this is enough for learning good classifiers; but in our new experiments (MNISTMul, MNISTAdd), we see that this can occasionally give poor learning performance too.
If time is not a constraint, exact multiplications in step 2 are always reliable. Whether step 1 is exact or approximate (yellow or blue points in Fig 3), the right-most points which multiply more factors are always more accurate. However, in both cases, exact step 2 multiplications are limited by a memory budget. Once the budget is exceeded, one must rely on truncated step 2 multiplications, which are only available if TTs were used for step 1 (purple points in Fig 3). These are not positioned against exact step 2; instead, they serve as an optional stage following it. Combining these two options give the best results, whether they can fully compile the formula (MNISTMul, MNISTAdd, Sudoku 6x6), or whether sometimes step 3 must still be used because truncations are not enough.
- Ablation on multiplication order and rank budget heuristic
We have conducted ablations on the multiplication order and rank budget on the Sudoku 6x6 MC estimates, with TACO using TT-round multiplications. To illustrate the benefit of the multiplication heuristic, we compile to 5 factors reduced fuzzily. Note that because the heuristic prioritizes multiplications of factors that share variables, it can make less exact multiplications within the allocated rank budget () than the random heuristic (). Similarly, the baseline with a lower rank budget can naturally fit less multiplications (). This is expected under the compilation algorithm.
| Model | Mult order | Rank | Time (s) | |log MC error| () |
|---|---|---|---|---|
| TACO $$ | Heuristic | 500 | 42.4s | 1.30 |
| TACO $$ | Random | 500 | 94.7s | 3.41 |
| TACO $$ | Heuristic | 50 | 5.1s | 1.97 |
Row 1 vs Row 2: We find that, as expected, the heuristic gives a much lower error in less time than the random alternative, likely because the 5 remaining factors still share a lot of information in the random setting.
Row 1 vs Row 3: We then compare the same heuristic variant but under two rank budgets: and . The results are as expected: (i) the variant is much faster because the multiplication algorithms have a complexity, (ii) however, the is more expressive and gets a significantly more accurate result.
Note that the variant with the heuristic order, is more accurate than the variant with the random order.
- More discussion on the interpolation-based methods
Our intuition is that the interpolation-based approaches are limited because they are local, sample-based methods: they reconstruct the tensor from a small subset of entries and assume that those are representative of the rest. A sparse Boolean constraint tensor is a bad case for this assumption: after a few multiplications, almost every sampled row/column is zero, so the pivot search has little signal to work with and the selected subsets become almost random. This could explain why the results are so unstable; the accuracy loss is not uniform and depends on the “almost random” subsets chosen. Maybe future work could focus on a new subset select selection approach (the “cross”) tailored for scattered tensors rather than abandoning the interpolation step altogether. We will expand our discussion in the results section of the paper.
Dear Reviewer TMn4, we hope our response addresses the concerns about limited experiments (two new NeSy experiments with non-saturated results) and the requested ablations. Please let us know if anything remains unclear. We are happy to engage within the remaining discussion time.
Thank you for the detailed rebuttal and additional experiments. The response addresses most of my questions.
My main concern remains the limited evaluation. The authors acknowledge that Step III does not reliably estimate WMC in general: it works sufficiently well for learning on Sudoku but causes poor performance in some MNISTAdd and MNISTMul settings. This task dependence is why I requested broader experiments. The added tasks are useful, but they are even more controlled and synthetic than Sudoku, as also noted by reviewer CLeQ. It therefore remains unclear when inaccurate WMC estimates are benign and whether TACO generalizes across more complex tasks, constraint structures, sparsity patterns, problem sizes, and learning regimes.
The idea is good, and I will maintain my positive score. However, the added experiments are not sufficiently complex or diverse for me to increase it further. Evaluations on benchmarks such as 2D Kandinsky Patterns and 3D CLEVR-Hans would provide stronger evidence that the method generalizes beyond arithmetic and visual Sudoku.
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes a unified framework for categorizing existing bottom-up compilation methods for weighted model counting (WMC) in the context of neurosymbolic inference. It further introduces new approximation configurations within this framework, based on tensor networks, to improve WMC performance. The empirical evaluation on Sudoku problems demonstrates that the proposed configuration achieves more accurate WMC estimates.
Strengths and weaknesses
The unified framework proposed in this paper helps position existing methods for bottom-up WMC compilation and motivates future research in a systematic way within this framework. The proposed TACO approach serves as a good demonstration of instantiating this framework. The paper is well structured around three dimensions of the framework: factor, product, and independence. These dimensions are then used to organize the background, approach, and experiments.
However, I am concerned about the primary intention of this paper. The paper spends considerable effort introducing the new TACO approach under this framework and claims that TACO achieves more accurate WMC estimates. If the major claim is superior WMC performance, the experimental setting appears weak to me: only a single benchmark, Sudoku, is considered, and standard Sudoku counting is not even a “weighted” model counting problem. A more comprehensive evaluation on WMC benchmarks should be performed. Additionally, even for the Sudoku counting problem, existing model counters such as d4 and Ganak can compute the exact model count for 6x6 Sudoku in around 40 minutes and 5 minutes, respectively, on my laptop. Therefore, the WMC results reported in this paper are not particularly impressive in general.
If the major claim is the broader impact on neurosymbolic tasks, then, as far as I understand, TACO does not show improvement over other approaches. As the authors point out at the end of the experiment section, “all pipelines achieve similar performance” on the downstream tasks, which does not demonstrate clear benefits from TACO. Additionally, in this case, a stronger evaluation on diverse neurosymbolic tasks would be expected.
Therefore, I do not see clear evidence from the experimental evaluation to support the practical usefulness of TACO. On the other hand, the contribution of framing existing methods within a unified framework, by itself, does not seem sufficient to qualify as a standalone paper.
Questions
I would be happy to increase my score if the authors can adequately address the following questions, which are motivated by my concerns in the weakness section.
- What are the main advantages of TACO compared with existing approaches for WMC or neurosymbolic inference?
- How does TACO perform on WMC tasks beyond Sudoku, and how does it compare with the baselines on these tasks?
- Have you evaluated TACO on other neurosymbolic tasks?
Limitations
Yes
Formatting concerns
N.A.
6 comments
Rebuttal
We thank the reviewer for their feedback and appreciate that they valued our unified framework for bottom-up compilation, how it helps organize existing approaches, and how it helps derive new approaches like TACO.
We hope we addressed the concerns of the reviewers below and are happy to follow up in the discussion phase.
On the comparison with d4 and Ganak on Sudoku 6x6.
Indeed, as mentioned in the paper (lines 267-269 and 551-553), d4 can exactly compile Sudoku 6x6. We will add a mention to Ganak. However, neither produces structured-decomposable circuits, which are interesting for us as many neuro-symbolic pipelines use them [1,31,62].
Our claim is that the WMC results reported are significant in the context of bottom-up compilation pipelines that produce such structured-decomposable circuits (see Figure 1, Section 2.1, Section 4). Structured-decomposability is especially useful for downstream queries that reduce to multiplication: in the context of the paper, multiplying a compiled circuit with other probabilistic circuits, but also more generally computing the KL-divergence between two circuits or some other information theory queries [59].
On a broader evaluation on neurosymbolic tasks and benchmarks that better distinguish baselines.
Following the reviewers suggestions, we extended our evaluation to more NeSy tasks. On these, not all baselines reach the same saturated performance. In light of these new experiments, we can more thoroughly highlight specific advantages of TACO.
-
We look into MNISTMul where one must compute the multiplication of two N-digit MNIST numbers. Though it looks similar to MNISTAdd, it is much more challenging and less frequently studied: exact compilation already times out at N=3 digits (even with d4). Only approximations can approach a solution at N=3.
-
Additionally, we compare also against MNISTAdd [31] where the goal is to compute the sum of two N-digit MNIST numbers. Although this benchmark is saturated by exact compilation even for high N, we wanted to see if approximate methods can at least match the exact performance. We find that TT multiplications can, but that fuzzy multiplications cannot.
We focus on three representative baselines instead of the whole Pareto front: (i) an exact SDD compilation, (ii) a fuzzy baseline multiplying all factors' WMCs independently (i.e., Step 3 only), (iii) a TACO multiplication of all TTs factors under a fixed rank budget (i.e., no Step 3 approximations like TACO A/B in the paper). Let us call it “TACO C”. We will use the additional Camera-Ready page for these two experiments.
MNISTMul
Given two multi-digit MNIST numbers A and B, we must compute their result . This constraint reads as a single clause which, represented as a tensor or enumerated, has size . For N digits, this has size , which is already infeasible for . One solution is to decompose this constraint into clauses that hold at each digit position . We can write $$ where is a latent carry denoting the part of the result at position k which exceeds 10 and rolls over positions or more. As is, the resulting clauses still have a large scope, mainly because of the large sum , which is problematic for both tensor representation (TACO) and grounding (logic compilers). By introducing more latents and clauses (e.g., and ), we can make the scopes drastically smaller. During compilation, once the factors mentioning them are multiplied, these latents can be contracted and eliminated.
| N | Model | Compile time | Input digit Acc (%) | Output Number Acc (%) |
|---|---|---|---|---|
| 1 | fuzzy | - | 99.0 | 43.0 |
| 1 | SDD | 0.07 s | 99.0 | 99.0 |
| 1 | TACO C | 0.32 s | 99.0 | 98.0 |
| 2 | fuzzy | - | 99.0 | 3.0 |
| 2 | SDD | 23.23 s | 99.0 | 96.0 |
| 2 | TACO C | 1.44 s | 99.0 | 96.0 |
| 3 | fuzzy | OOM | - | - |
| 3 | SDD | OOT | - | - |
| 3 | TACO C | 50.56 s | 99.0 | 13.1 |
Even using the decomposed formulation with latents, the problem remains challenging and SDD compilation times out for (in fact, so does d4 compilation). At and , TACO C matches exact SDD performance. At , TACO C is the only approach that can compile a program and derive good gradients to solve the input digit classification problem. The output number classification, derived using (i) the latent classification, (ii) the approximated WMC, still struggles and can correctly derive 13% of instances. This is because the TACO C compiled program misses some models. Its model count is 100.0 at N=1 (GroundTruth is 100), 10,000.0 at N=2 (GT is 10,000), and 716,908 at N=3 (GT is 1,000,000). There is room for improvement at N=3, but it's the only baseline producing results in this regime.
Interestingly, in this experiment, we immediately see the limitation of fuzzy approximations: because the carries are latent variables that are meaningless without conjoining factors, computing the WMCs of every factor independently loses a lot of information. Thanks to the occasional digit positions where carries are zero, there is enough information to learn some digit classification, but much less to derive the output number (where, with higher Ns, accounting for carries becomes mandatory). Furthermore, fuzzy prevents the introduction of latent clauses using and , under which the method has vanishing gradients. Fuzzy must use the basic carry formulation with the big sum and goes OOM at .
MNISTAdd
Multi-digit addition is also decomposed into factors via the "column addition" method. Every digit position k is constrained by a clause $$ where are carries (here, ). Encoded with categorical variables, there are N clauses. SDD compilation requires grounding them to binary encoding and is still exponential in the number of categorical variables in a clause; but, unlike in MNISTMul, here there are only three categorical variables per clause. Additionally, the high structure in the problem makes it such that it can be exactly compiled with SDD with the right vtree ordering.
| N | Model | Compile time (s) | Input Digit Acc (%) | Output Num Acc (%) |
|---|---|---|---|---|
| 1 | SDD | 0.21 | 99.0 | 98.0 |
| 1 | TACO | 0.01 | 99.0 | 98.0 |
| 1 | Fuzzy | - | 99.0 | 55.4 |
| 10 | SDD | 0.89 | 99.0 | 79.3 |
| 10 | TACO | 0.12 | 99.0 | 80.5 |
| 10 | Fuzzy | - | 98.9 | 0.1 |
| 100 | SDD | 25.29 | 99.0 | 12.0 |
| 100 | TACO | 9.40 | 99.1 | 11.4 |
| 100 | Fuzzy | - | 0.3 | 0.0 |
Here, as expected, TACO C matches SDD performance while compiling fewer clauses and therefore being faster. Its model count is perfect in all regimes: 100.0 at N=1 (GroundTruth is 100.0), 1.00e+20 at N=10 (GT is 1.00e+20), and 1.00e+200 at N=100 (GT is 1.00e+200).
Furthermore, this experiment shows even more strongly the limitations of fuzzy multiplications. By losing signal from the independently-meaningless carries, it cannot derive the right output number at small . However, , it cannot even derive good gradients for the input digit classification. This means that, out of the 100 positions, there are not enough positions where carries don’t intervene such that the classification is accurate.
Dear Reviewer C89B, we hope our response addresses the concerns about experiments (two new NeSy experiments with non-saturated results) and the distinction from non-bottom-up compilers (structured-decomposability). Please let us know if anything remains unclear. We are happy to engage within the remaining discussion time.
I thank the authors for their detailed response and the additional experimental results.
First, thank you for clarifying that the main WMC claim concerns structured-decomposable circuits. I suggest explicitly emphasizing this scope, structured-decomposable circuits, in the abstract, contributions, and conclusion. Without this qualification, the current presentation may appear to overstate the paper’s implications for bottom-up WMC in the general case.
Second, I appreciate the additional results distinguishing TACO from the other baselines and showing the limitations of fuzzy approximations on the new tasks. However, this new conclusion appears to conflict with the paper’s earlier statement that “fuzzy relaxations remain competitive.” The relationship between WMC performance and downstream application performance therefore remains unclear. In particular, the authors should clarify whether WMC performance is intended to serve as an indicator of downstream performance and, if not, explain how the two types of evaluation should be interpreted in relation to each other.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Global Response
We appreciate that all reviewers find our unified framework clear (CLeQ) as it gives a clean breakdown of the problem (TMn4) and helps systematically analyze existing approximate bottom-up methods and instantiate new ones (C89B). Our TACO instantiations using tensor trains are particularly interesting (TMn4) and this is the first work that gives a comprehensive insight on how tensor trains can be used for neurosymbolic tasks (CLeQ).
In our discussion with C89B, we clarified the significance of our results in comparison with compilers like d4 (discussed in lines 267-269, 551-553) and Ganak. We focus on bottom-up compilation methods. Unlike d4/Ganak, bottom-up methods produce structured-decomposable circuits which allow to repeatedly conjoin/multiply circuits. This property is especially useful for downstream NeSy queries that reduce to multiplication (multiplying a compiled circuit with other probabilistic circuits, compute the KL-divergence between two circuits, etc). Our results are impressive in the context of bottom-up compilation (CLeQ, TMn4). Our introduction will better stress the definition of bottom-up compilation to avoid confusion. Note that even non-bottom-up compilers like d4 struggle on our largest problem instances.
The most important improvement point highlighted by all reviewers was the limited evaluation, which in turn made the relationship between WMC quality and downstream learning performance (sec 5.2) hard to generalize. More tasks/domains were needed to strengthen the claims.
We agree with the concern and have added four new tasks on two domains, reaching a total of six tasks on three domains. The new results use
MNISTAddandMNISTMulin the rebuttal phase, thenCLEVR-DiffandCLEVR-CountDiffin the discussion phase following a suggestion by TMn4 for more realistic domains. They confirm our insights on how each approximations impact downstream inference (sec 5.1) with TACO most-competitive in large-scale settings. However, our initial conclusion that approximations matter less for downstream learning (sec 5.2) stands corrected. After doing more experiments, we now have better evidence of when dependencies do matter: it depends on the program decomposition containing latent symbolic variables that bridge the concepts predicted by the perception network and the supervised output variables.MNISTMul,MNISTAdd,CLEVR-CountDiff), accurate WMC compilation matters for learning. Modeling the dependencies is crucial to get accurate gradient signal via the latent variables, and our new TACO approaches are the most competitive.ViSudo-Classification,ViSudo-Completion,CLEVR-Diff), any approximations (incl. ignoring dependencies) remain competitive.This pattern, consistent across the six tasks, is intuitive. As predicted by the reviewers, more tasks helped clarify when accurate WMCs matter for learning and not just for inference. We need simply to update our presentation of the learning results in Section 5.2 with the new insight. The rest of the paper remains unchanged: framework, new TACO approaches, scalability results, and downstream inference quality results.
In aggregate, CLeQ noted "the reasons to accept outweigh the reasons for rejection". This was before we added the CLEVR experiments, and their remaining concern was including more non-toy experiments. With the new CLEVR results suggested by TMn4, we believe all significant concerns have been resolved. We sincerely thank all reviewers and believe the paper is strengthened.