Human visual intelligence enables efficient reasoning capabilities on abstract visual problems with bounded cognitive resources and minimal experience, and yields remarkable generalization to novel problems with its ability to draw relational analogies and modular abstractions. In contrast, deep learning models require exhaustive task-specific training on large datasets, making them prone to exploiting visual shortcuts and resulting in poor generalization. While neuro-symbolic approaches attempt to bridge this gap by decoupling perception from reasoning with dedicated computation units, existing solutions rely either on explicit rule supervision or parameter-heavy transformer architectures that reintroduce the computational inefficiencies they aim to solve. We introduce Slot-Dwn to address these limitations, a novel neuro-symbolic architecture that unifies unsupervised object-centric perception with logic-based symbolic reasoning. Our model utilizes a Multi-Head Differentiable Weightless Network (MH-DWN) that performs efficient reasoning entirely in Boolean space using look-up tables (LUTs). Our framework reduces visual perception complexity and introduces a LUT-based relational bottleneck with sparse input routing to minimize computational overhead. We evaluate Slot-Dwn across various abstract visual reasoning benchmark tasks targeting systematic rule generalization, sample-efficient anomaly detection, and multi-relational reasoning. We demonstrate that Slot-Dwn yields competitive performance with respect to the state-of-the-art, under extreme out-of-distribution regimes, while requiring up to 52% fewer trainable parameters, with significantly faster convergence.
Figures & tables
Fig. 1 : Our Slot-Dwn architecture consisting of four components. (1) An object-centric disentangled representation learning backbone that is pretrained with a reconstruction loss. (2) The pretrained slots are post-processed to first filter out redundant slots, and then sorted by their estimated raster order for the subsequent LUT-based reasoning module. (3) A binarization bottleneck ( Eq. 4 ) converts each continuous-valued slot to a binarized representation. (4) A multi-head DWN (MH-DWN) reasoner initially processes all pairwise binary vectors in parallel with a shared LUT bottleneck Urel to extract relationships between objects. This relational matrix R is then processed by the subsequent multi-head LUT layer(s). The score for each context and candidate pair is calculated via a final population count operation.
Fig. 2 : Illustration of a multi-head LUT layer. All LUT heads process the incoming binary vector zl−1 individually, where the mapping wires specific input bits to each LUT Ul(h,i) . The input bits form an address that selects a row from each LUT, yielding a binary value. All LUTs in head h jointly produce zl(h) , and all H heads form zl for the next layer.
Fig. 3 : Visual illustration of the ART tasks.
Fig. 4 : Visual illustration of the O3 tasks.
Fig. 5 : Visual illustration of the RM tasks, where the number of relations between objects progressively increases.
SD
RMTS
Dist-3
ID
Model
Slot
# params
Acc.
# params
Acc.
# params
Acc.
# params
Acc.
ResNet-50 [ 49 ]
×
23.0M
66.60 ± 1.5
23.0M
49.89 ± 0.2
23.0M
50.07 ± 1.3
23.0M
54.84 ± 2.4
GAMR [ 25 ]
×
2.70M
83.49 ± 1.4
2.70M
72.20 ± 3.0
3.01M
68.62 ± 1.8
3.01M
66.23 ± 4.8
STSN [ 19 , 18 ] †
✓
2.07M
68.46 ± 2.0
2.07M
73.99 ± 3.0
2.07M
60.61 ± 1.9
2.07M
78.32 ± 1.8
Slot-IN [ 50 ]
✓
0.93M
59.23 ± 2.3
0.93M
56.93 ± 0.8
0.93M
49.48 ± 1.8
0.93M
72.82 ± 1.6
Slot-RN [ 22 ]
✓
1.14M
77.26 ± 1.9
1.14M
61.62 ± 1.1
1.14M
52.10 ± 0.7
1.14M
65.96 ± 1.1
TABLE I : Generalization results of the baselines and Slot-Dwn measured at m=95 test set objects (i.e., only 5 objects are seen during training). Results show average and standard error (±) of 10 runs. Best and second best values are indicated with bold and underlined text respectively. † indicates STSN [ 19 ] with a pre-trained slot model, without end-to-end training. # params represents the total model parameters, including the frozen perception backbone for slot-based models.
SD
RMTS
Dist-3
ID
Model
m=0
m=50
m=85
m=0
m=50
m=85
m=0
m=50
m=85
m=0
m=50
m=85
ResNet-50 [ 49 ]
95.65 ± 0.7
92.23 ± 0.6
82.83 ± 1.4
53.77 ± 4.0
69.43 ± 6.5
82.18 ± 1.0
88.61 ± 0.3
84.32 ± 0.7
74.82 ± 1.3
93.27 ± 0.6
84.97 ± 0.6
77.94 ± 1.1
GAMR [ 25 ]
97.28 ± 0.5
94.40 ± 0.3
87.88 ± 1.3
98.12 ± 0.4
91.98 ± 0.8
89.81 ± 0.5
91.98 ± 0.5
87.30 ± 0.4
80.57 ± 1.4
96.89 ± 0.5
91.90 ± 0.7
85.44 ± 1.2
STSN [ 18 , 19 ]
98.47 ± 0.6
95.95 ± 0.5
87.53 ± 1.1
99.73 ± 0.0
99.12 ± 0.1
96.77 ± 0.3
99.49 ± 0.0
99.08 ± 0.1
95.82 ± 0.5
99.44 ± 0.0
99.06 ± 0.1
97.15 ± 0.3
Slot-IN [ 50 ]
94.59 ± 1.4
92.43 ± 0.8
68.40 ± 4.3
93.42 ± 0.7
87.42 ± 0.7
86.71 ± 1.8
97.12 ± 0.2
96.22 ± 0.3
90.51 ± 2.7
97.62 ± 0.5
96.72 ± 0.6
94.78 ± 0.7
Slot-RN [ 22 ]
93.97 ± 2.8
94.23 ± 0.7
83.66 ± 1.2
91.31 ± 0.3
87.10 ± 0.9
68.40 ± 1.3
97.80 ± 0.1
96.82 ± 0.1
91.14 ± 0.5
93.44 ± 0.2
91.10 ± 0.3
86.73 ± 0.3
TABLE II : Generalization results of baselines and our model Slot-Dwn measured on the other generalization cases, i.e., m=0,m=50 and m=85 . Our model outperforms all baselines in most cases, showing its generalization capability both in-domain and out-domain scenarios. Results show average and standard error (±) of 10 runs. Best and second best values are indicated with bold and underlined text respectively.
Model
SD (m=98)
Dist-3 (m=96)
Dist-3 ⋆ (m=96)
OCRA
66.49 ± 7.2
65.60 ± 3.0
27.44 ± 0.3
Slot-Dwn (ours)
85.33 ± 0.2
72.12 ± 0.4
57.85 ± 2.0
TABLE III : Extreme OoD generalization results with the lowest amount of objects one can use to generate a sample. Results are averaged over 3 runs. Dist-3 ⋆ indicates no use of permutations of context objects in the training set.
Model
SD
RMTS
Dist-3 & ID
Slot encoding
10.8K
21.5K
43.0K
STSN [ 19 , 18 ]
17.2
34.4
68.9
Slot-IN [ 50 ]
7.8
15.6
31.3
Slot-RN [ 22 ]
14.3
28.6
57.1
Slot-GAMR [ 25 ]
39.0
77.9
298.0
OCRA [ 18 ]
58.0
115.9
231.8
TABLE IV : Inference computational cost (in MFLOPs) of slot-based reasoning models. All models share the same frozen slot-attention backbone, and the rows below indicate the MFLOPs measured for reasoning only. Our model requires FLOPs only for post-processing of slots (Sec. III-B ).
Model
# params
O3-Easy ( 1K )
O3-Easy ( 0.1K )
O3-Hard ( 1K )
O3-Hard ( 0.1K )
GAMR [ 25 ]
2.70M
97.59 ± 0.5
79.23 ± 4.7
88.99 ± 7.4
82.31 ± 3.0
OCRA [ 18 ]
2.07M
90.74 ± 0.8
56.51 ± 5.9
93.68 ± 0.5
43.52 ± 4.7
Slot-Abstractor [ 17 ]
2.85M
92.49 ± 0.4
34.82 ± 0.6
93.61 ± 0.6
34.03 ± 1.3
Slot-Dwn (ours)
1.04M
97.93 ± 0.2
92.63 ± 1.3
93.90 ± 1.0
77.45 ± 1.4
TABLE V : O3 task performances under varying training set sizes, shown in bold, evaluated on a fixed test set with 1K samples. All models are trained with early stopping criterion, where the patience is 10 epochs. Results show average and standard error (±) of 3 runs. Best and second best values are indicated with bold and underlined text respectively.
RM-1
RM-2
RM-3
Model
# params
MFLOPs
G→G
G→S
G→G
G→S
G→G
G→S
DeepIQ [ 8 ] †
5.66M
73.7
73.30
70.20
74.10
71.90
76.00
73.20
GAMR [ 25 ]
2.70M
12.5K
83.72
79.00
76.28
65.68
74.76
66.10
OCRA [ 18 ]
2.00M
13.6K ⋆ +151.3
98.27
87.54
88.52
79.13
84.80
76.87
Slot-Abst. [ 17 ]
2.78M
13.6K ⋆ +274.4
99.53
92.27
92.13
80.02
88.27
78.33
Slot-Dwn (ours)
1.66M
13.6K ⋆ +0.7
94.42
83.81
84.72
75.94
80.27
70.35
TABLE VI : Relational matrices ( RM ) task performance of baselines and our model Slot-Dwn , covering in-domain and out-domain tests (10 seeds). ⋆ FLOPs for slot encoding in object-centric methods. † DeepIQ [ 8 ] reserves feature-specific sub networks to learn the relations, whereas all other baselines use a single reasoning module overall.
Test
Model
Shape
Scale
Grayscale
Rotation
Avg.
G→G
Bij
57.0
97.4
98.0
64.8
79.3
R
56.1
97.4
98.4
67.6
79.9
z1
65.2
96.6
96.2
67.4
81.4
G→S
Bij
44.7
99.4
98.3
40.1
70.6
R
44.0
98.8
97.8
38.7
69.8
z1
56.5
99.4
94.6
58.3
77.2
TABLE VII : Results of attribute probing (%) on RM-1 task, averaged over 3 seeds.
Test
Model
Row
Column
Left-diag.
Right-diag.
Avg.
G→G
Bij
74.6
68.1
60.3
67.0
67.5
R
89.5
85.1
69.5
78.8
80.7
z1
95.4
86.3
74.6
89.4
86.4
Rrand
83.2
78.7
65.1
76.4
75.9
z1,rand
80.1
74.6
61.1
69.9
71.4
G→S
Bij
67.6
62.8
64.8
63.5
64.7
TABLE VIII : Results of rule direction probing (%) on RM-1 task, averaged over 3 seeds.
Fig. 6 : Training efficiency and convergence rate comparisons between OCRA [ 18 ] and Slot-Dwn on (a) SD , (b) Dist-3 , (c) O3-Easy and (d) O3-Hard , where the models were trained with early stopping. Dashed lines indicate training and solid lines indicate test accuracy. Results are averaged over 3 runs with shaded regions indicating standard error.
Dist-3
RMTS
Slot-Dwn
84.43±0.3
88.49±0.3
w/o OCL
60.78 ± 3.4
57.43 ± 2.7
w/o Filtering
N/A
72.53 ± 0.5
w/o Sorting
56.28 ± 2.0
61.79 ± 0.8
w/o Deterministic SA
75.48 ± 0.6
83.34 ± 0.7
w/o Object Pairs
61.88 ± 2.3
70.88 ± 2.0
TABLE IX : Ablation studies on RMTS and Dist-3 , isolating the contribution of each component of Slot-Dwn . Each row indicates one isolated design choice ablation. Results show average and standard error (±) of 10 runs.
Figure 16Figure 17Figure 18
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
Task
β
L
H
n
NU
p
λ
SD & O3
5
2
[1,2]
[2,4]
[320,256]
160
0.05
RMTS
5
2
[1,2]
[2,4]
[320,512]
240
0.05
ID
5
2
[1,2]
[2,4]
[320,1024]
160
0.1
Dist-3
5
2
[1,2]
[2,4]
[320,1024]
160
0.05
RM
5
2
[2,4]
[2,4]
[320,2048]
100
0.07
Appendix
TABLE A1 : Hyperparameters of the MH-DWN blocks.
Fig. A1 : Objects used in RM . G-set is used for in-domain tests, and S-set is used for out-domain generalization tests.
Attribute
Values
Scale
[0.6, 0.8, 1]
Grayscale
[0, 72, 109, 182, 255]
Rotation
[0, 45, 90, 135, 180, 225, 270, 315]
Appendix
TABLE A2 : Range of values used for object attributes in RM .
Task
(m=95)
(m=85)
(m=50)
(m=0)
SD
50
20
20
20
RMTS & Dist-3
100
50
50
50
ID
50
50
50
50
Appendix
TABLE A3 : Number of training epochs for ART tasks.
Type
Channels
Activation
Kernel
Stride
Padding
2D conv
64
ReLU
5×5
2
2
2D conv
64
ReLU
5×5
1
2
2D conv
64
ReLU
5×5
1
2
2D conv
64
ReLU
5×5
1
2
Position Emb.
-
-
-
-
-
Flatten
-
-
-
-
-
Appendix
TABLE A4 : Convolutional encoder architecture for RM .
Type
Channels
Activation
Kernel
Stride
Padding
Position Emb.
-
-
-
-
-
2D conv
64
ReLU
5×5
2
2
2D conv
64
ReLU
5×5
2
2
2D conv
64
ReLU
5×5
2
2
2D conv
64
ReLU
5×5
2
2
2D conv
2
-
3×3
1
1
Appendix
TABLE A5 : Spatial broadcast decoder hyperparameters for RM . We use an 8×8 grid for the positional embeddings in the spatial decoder [ 40 ] , instead of the latent height and width dimensions ( H=64×W=64 ), to create a bottleneck for better slot disentanglement during decoding.
Fig. B1 : Demonstration of post-processing of slots on (a) RMTS and (b) Dist-3 .
Fig. B2 : An illustration of strided pooling applied to the learnable matrix W , to create a sparse learnable mapping. We reduce the number of learnable parameters required for W from P×n×NU to p×n×NU .
Fig. B3 : Visualizations of slots and input reconstructions for G-set (in domain) and S-set (out domain) samples from RM .
RMTS
¬ RMTS
Dist-3
Dist-3-Rand
Accuracy (%)
88.49±0.3
87.78±0.5
84.43±0.3
23.81±2.1
Appendix
TABLE C1 : Generalization ( m=95 ) comparison of RMTS vs. its counterpart ¬ RMTS , and Dist-3 vs. Dist-3-Rand . Results show average and standard error (±) of 10 runs.
heads
RM-1
RM-2
RM-3
H1
H2
G→G
G→S
G→G
G→S
G→G
G→S
1
1
90.34
78.11
79.89
67.28
73.51
63.20
1
2
92.61
79.44
81.53
69.47
75.86
67.14
2
2
93.94
81.32
84.18
73.50
79.33
69.92
2
4
94.42
83.81
84.72
75.94
80.27
70.35
4
4
91.15
80.36
82.27
71.61
77.14
68.64
Appendix
TABLE C2 : Task accuracy vs. number of heads H1 in the first LUT layer ( Urel ), and H2 in the second LUT layer ( U1 ).