atlas

Research map / Architectures and efficiency / RNNs and normalization

KLay: Accelerating Arithmetic Circuits for Neurosymbolic AI

ICLR 2025 · Architectures and efficiency › RNNs and normalization · approach: Neural-symbolic reasoning · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces KLay, a layered tensor representation of arithmetic circuits that reduces circuit evaluation to indexing and scatter-reduce operations, enabling fast GPU/CPU evaluation for neurosymbolic learning.

Problem

Arithmetic circuits compiled from logic formulas are highly irregularly sparse and hard to evaluate efficiently on modern tensor accelerators, bottlenecking neurosymbolic AI.

Approach

Layerize d-DNNF/arithmetic circuits by node height (inserting unary nodes so children lie in the previous layer), deduplicate nodes via Merkle hashes, and evaluate each layer as an index-then-scatter-reduce (sum/product or logsumexp) using standard tensor library primitives, with no custom kernels.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace naive PyTorch circuit evaluation with KLay on CUDANeurosymbolic circuit evaluation · Sudoku (4 × 4), batch size 128runtime (ms, forward and backward pass): $42.70 \pm 2.76$ -> $0.46 \pm 0.17$Helped
Replace naive PyTorch circuit evaluation with KLay on CUDANeurosymbolic circuit evaluation · Grid (4 × 4), batch size 128runtime (ms, forward and backward pass): $107.78 \pm 4.67$ -> $0.49 \pm 0.19$Helped
Replace naive PyTorch circuit evaluation with KLay on CUDANeurosymbolic circuit evaluation · HMLC, batch size 128runtime (ms, forward and backward pass): $175.58 \pm \phantom{00}1.26$ -> $1.03 \pm \phantom{00}0.35$Helped
Replace naive PyTorch circuit evaluation with KLay on CUDANeurosymbolic circuit evaluation · Warcraft (12 × 12), batch size 128runtime (ms, forward and backward pass): $18930.67 \pm 496.16$ -> $1.59 \pm \phantom{00}0.25$Helped
Use KLay instead of DeepProbLogMNIST-addition training · 1 digit, batch size 128training time per epoch (s): $241.63 \pm 4.38$ -> $1.26 \pm 0.03$Helped
Use KLay instead of Scallop (k=3)MNIST-addition training · 1 digit, batch size 128training time per epoch (s): $52.30 \pm 0.37$ -> $1.26 \pm 0.03$Helped
Use KLay instead of DeepProbLogMNIST-addition training · 2 digits, batch size 128training time per epoch (s): $323.26 \pm 22.20$ -> $1.25 \pm \phantom{0}0.01$Helped
Use KLay instead of Scallop (k=3)MNIST-addition training · 2 digits, batch size 128training time per epoch (s): $601.20 \pm 14.65$ -> $1.25 \pm \phantom{0}0.01$Helped
Use KLay instead of Scallop (k=3)MNIST-addition training · 3 digits, batch size 128training time per epoch (s): $5345.78 \pm 171.47$ -> $8.85 \pm \phantom{00}0.02$Helped

Surprising findings

Limitations

Experimental setup

Datasets: MNIST addition Sudoku Grid Warcraft HMLC random 3-CNF formulas

Benchmarks: Synthetic 3-CNF SDD circuits Sudoku Grid Warcraft HMLC MNIST-addition

Metrics: runtime in milliseconds runtime in seconds per epoch number of nodes and layers sparsity

Baselines: Naive PyTorch node-by-node evaluation Juice PySDD post-order traversal DeepProbLog Scallop

Builds on: Juice DeepProbLog SDD knowledge compilation Merkle hashing

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy