Accepted at NeSy 2026

Symmetry-Aware Foundation Model
for Logic Rule Induction

Yin Jun Phua

Institute of Science Tokyo

G-NRI is a symmetry-aware extension of NRI for zero-shot logical rule induction. It is trained on synthetic Boolean formulas and produces explicit rules from examples in new datasets, without task-specific retraining.

6–12variables during pretraining
1,024variables at evaluation
+6 ptsmean accuracy across 19 datasets
0extra learned parameters

How G-NRI works

Reordering examples or renaming variables should not change the underlying inference problem. G-NRI incorporates these symmetries, together with polarity flips and label swaps, into rule induction.

The method extends NRI through encoder changes, symmetrized training and evaluation, and canonical rule export. It retains the same model size and examples-to-rules interface.

Encoder symmetries

The encoder is modified to respect variable-renaming and polarity symmetries, without increasing the number of learned parameters.

Canonical rule export

The export procedure preserves score symmetries when converting model outputs into a discrete logical rule.

Label symmetry

Label-swap averaging and a symmetrized training objective account for both label encodings in binary classification.

Examples pass through a symmetry-aware NRI encoder and canonical rule export. Transforming the examples produces the corresponding transformation of the output rule.
The five changes from NRI to G-NRI. From Figure 1 of the paper; open full-size diagram.

Variable-count scaling

We train on synthetic logic problems with 6–12 variables and evaluate the same frozen checkpoints on problems with up to 1,024 variables. The plots report accuracy on the conditioning examples and rule fidelity on held-out inputs.

Accuracy on the conditioning examples as variable count grows. At 1,024 variables, G-NRI reaches 89.4%, compared with 48.7% for the NRI baseline.
Support-set accuracy. At 1,024 variables, G-NRI achieves 89.4%, compared with 48.7% for the NRI baseline.
The exported rule's agreement with the target rule on fresh inputs. G-NRI stays above the NRI baseline at 32, 128, and 1,024 variables.
Held-out rule fidelity. Agreement between the exported rule and the target rule on fresh inputs.
G-NRI NRI baseline Architecture changes only

Panels (a) and (b) of Figure 2, across eight training seeds. The dotted line marks the training maximum of 12 variables. These experiments increase variable count within the same rule family. View the full figure.

Benchmark results

Across 19 benchmark datasets, mean held-out accuracy is 76.2% for G-NRI and 70.2% for NRI, using frozen weights for both models. The datasets include tabular classification, MONK's logic tasks, molecular features, and symbolic scene descriptions.

Example rule

¬body_shape_octagon ∧ ¬jacket_blue

On MONK's-3, G-NRI returns this same two-literal rule across all eight seeds.

Results on 19 datasets
Held-out accuracy (%), averaged over eight seeds. NRI and G-NRI use frozen weights; the decision tree is trained per dataset. Results from Table 4 of the G-NRI paper.
DatasetVariablesNRIG-NRIDecision tree
adult10565.664.481.5
breast-cancer992.792.093.7
car2130.473.896.7
credit4670.780.780.6
diabetes872.071.870.0
german6158.460.965.3
hepatitis3280.680.077.7
ionosphere3471.973.179.4
kr-vs-kp7366.869.999.6
mushroom11678.081.0100.0
nursery2768.475.998.7
spambase5771.079.090.7
tic-tac-toe2760.169.993.1
vote3291.394.394.5
monks-11774.174.698.4
monks-21761.155.998.5
monks-31790.396.496.8
mutag5163.973.184.6
clevr-hans310566.481.5100.0
Mean (19)—70.276.289.5

Code and reproducibility

The G-NRI repository includes synthetic training, rule export, benchmark evaluation, and scripts for the paper's tables and figures. Instructions are available for CPU training and experiment reproduction.

For the original model and its results, visit the NRI project page.

BibTeX

TBD — will be updated once the official NeSy 2026 proceedings are released and registered.