HyperLogic: Enhancing Diversity and Accuracy in Rule Learning with HyperNets

Yang Yang, Wendi Ren, Shuang Li
2/3/2026

No official code found. Best implementation: YangYang-624/HyperLogic (3 stars, last commit 2025-03-22).

Abstract

Exploring the integration of if-then logic rules within neural network architectures presents an intriguing area. This integration seamlessly transforms the rule learning task into neural network training using backpropagation and stochastic gradient descent. From a well-trained sparse and shallow neural network, one can interpret each layer and neuron through the language of logic rules, and a global explanatory rule set can be directly extracted. However, ensuring interpretability may impose constraints on the flexibility, depth, and width of neural networks. In this paper, we propose HyperLogic: a flexible approach leveraging hypernetworks to generate weights of the main network. HyperLogic can be combined with existing differentiable rule learning methods to generate diverse rule sets, each capable of capturing heterogeneous patterns in data. This provides a simple yet effective method to increase model flexibility and preserve interpretability. We theoretically analyze the benefits of the HyperLogic by examining the approximation error and generalization capabilities under two types of regularization terms: sparsity and diversity regularization. Experiments on real data demonstrate that our method can learn more diverse, accurate, and concise rules. Our code is publicly available at https://github.com/YangYang-624/HyperLogic.

DOISemantic Scholar

Code Implementations(1)

Neurips 2024 paper —— HyperLogic: Enhancing Diversity and Accuracy in Rule Learning with HyperNets

30PythonOct 25, 20241 years ago

Similar Papers

Cite this paper

@article{yang2026hyperlogic,
  title  = {HyperLogic: Enhancing Diversity and Accuracy in Rule Learning with HyperNets},
  author = {Yang Yang and Wendi Ren and Shuang Li},
  year   = {2026},
  doi    = {10.52202/079017-0118},
  url    = {https://doi.org/10.52202/079017-0118},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/51150d49acab448dbb0edd3c50112c7407104f16.svg)](https://codeofpaper.com/paper/51150d49acab448dbb0edd3c50112c7407104f16)

Discussion